:root {
  --irl-bg: #0f0b18;
  --irl-surface: #171124;
  --irl-surface-2: #201832;
  --irl-surface-3: #2a2140;
  --irl-text: #f7f3ff;
  --irl-muted: #b9afcc;
  --irl-border: rgba(255, 255, 255, 0.1);
  --irl-accent: #8b5cf6;
  --irl-accent-2: #22d3ee;
  --irl-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

body.primary-bg-color {
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 30rem),
    var(--irl-bg) !important;
  background-attachment: fixed !important;
  color: var(--irl-text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
.primary-content a {
  color: #a78bfa;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover,
.primary-content a:hover {
  color: #c4b5fd;
}

section#main-body {
  background: transparent !important;
  min-height: 100vh;
  padding: 34px 0 56px;
}

#main-body .container,
#main-body .container-fluid {
  max-width: 1280px;
}

.breadcrumb {
  background: transparent !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--irl-muted);
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 24px;
  overflow: visible;
  padding: 12px 24px;
  white-space: normal;
  word-break: break-word;
}

.breadcrumb li,
.breadcrumb li a,
.breadcrumb-item,
.breadcrumb-item a {
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
  white-space: normal;
  word-break: break-word;
}

.breadcrumb-item.active,
.breadcrumb li.active {
  color: var(--irl-text) !important;
}

.primary-content,
.main-content {
  color: var(--irl-text);
}

.primary-content .card,
.primary-content .panel,
.sidebar .card,
.card-sidebar {
  background: linear-gradient(180deg, rgba(32, 24, 50, 0.96), rgba(23, 17, 36, 0.96)) !important;
  border: 1px solid var(--irl-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--irl-shadow);
  overflow: hidden;
}

h1,
.h1 {
  color: var(--irl-text) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

h2,
h3,
h4,
.h2,
.h3,
.h4 {
  color: var(--irl-text) !important;
  font-weight: 750;
  letter-spacing: -0.025em;
}

article {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--irl-text);
  font-size: 1.02rem;
  line-height: 1.8;
  padding: 0;
}

article .container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

article p,
article li {
  color: #e8e0f6;
}

article p {
  margin-bottom: 1.15rem;
}

article h3 {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 2rem 0 0.85rem;
  padding-top: 1.4rem;
}

article .container:first-child h3:first-of-type {
  border-top: 0;
  margin-top: 1.25rem;
  padding-top: 0;
}

article ol,
article ul {
  margin: 0 0 1.6rem;
  padding-left: 1.35rem;
}

article li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

article strong {
  color: #ffffff;
  font-weight: 800;
}

article hr {
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), transparent);
  border: 0;
  height: 1px;
  margin: 2.4rem 0;
}

article img {
  background: var(--irl-surface) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
  display: block !important;
  height: auto !important;
  margin: 16px 0 !important;
  max-width: min(100%, 600px) !important;
  padding: 6px !important;
}

article p:empty,
article p:has(> br:only-child) {
  display: none;
}

.badge-pill.badge-info {
  background: rgba(139, 92, 246, 0.18) !important;
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd !important;
  font-weight: 600;
  font-size: 0.82rem;
}

.sidebar {
  position: sticky;
  top: 24px;
}

.sidebar .card,
.card-sidebar {
  margin-bottom: 18px !important;
}

.card-sidebar .card-header {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid var(--irl-border) !important;
  padding: 16px 18px !important;
}

.card-sidebar .card-title {
  color: var(--irl-text) !important;
  font-size: 0.93rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-sidebar .card-title i:first-child {
  color: var(--irl-accent-2);
}

.card-sidebar .list-group-item {
  align-items: center;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.075) !important;
  color: #e8e0f6 !important;
  display: flex;
  min-height: 48px;
  padding: 13px 18px !important;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.card-sidebar .list-group-item:hover,
.card-sidebar .list-group-item:focus {
  background: rgba(139, 92, 246, 0.16) !important;
  color: #ffffff !important;
  transform: translateX(3px);
}

.sidebar-menu-item-wrapper {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

.sidebar .badge,
.card-sidebar .badge {
  background: rgba(34, 211, 238, 0.14) !important;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #a5f3fc !important;
  font-weight: 800;
  min-width: 28px;
  padding: 5px 8px;
}

.btn,
button,
input[type="submit"] {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.btn-primary,
.primary-content .btn-primary {
  background: linear-gradient(135deg, var(--irl-accent), #6d5dfc) !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(109, 93, 252, 0.28);
  color: #fff !important;
}

.btn-primary:hover,
.primary-content .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.kb-article-details,
.text-muted,
.small,
small {
  color: var(--irl-muted) !important;
}

.alert,
.marketing-email-optin {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--irl-border) !important;
  border-radius: 18px !important;
  color: var(--irl-text) !important;
}

.card-body {
  background: transparent !important;
  color: var(--irl-text) !important;
}

.card-body .card-title {
  color: var(--irl-muted) !important;
  font-size: 0.9rem !important;
}

.card-body .card-title i {
  color: var(--irl-accent) !important;
}

.kb-article-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.075) !important;
  color: #e8e0f6 !important;
  padding: 14px 18px !important;
  transition: background-color 160ms ease;
}

.kb-article-item:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #ffffff !important;
}

.kb-article-item i.text-black-50,
.kb-article-item i {
  color: var(--irl-muted) !important;
}

.kb-article-item small {
  color: var(--irl-muted) !important;
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}

.primary-content > .card {
  background: linear-gradient(180deg, rgba(32, 24, 50, 0.96), rgba(23, 17, 36, 0.96)) !important;
  border: 1px solid var(--irl-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-bottom: 18px;
}

.primary-content > .card > .card-body {
  padding: clamp(18px, 3vw, 32px) !important;
}

.primary-content > .card hr {
  border-color: rgba(255, 255, 255, 0.08);
}

footer.footer,
.footer {
  background: #0b0812 !important;
  border-top: 1px solid var(--irl-border);
}

@media (max-width: 991.98px) {
  section#main-body {
    padding-top: 22px;
  }

  article {
    padding: 0;
  }

  .sidebar {
    margin-top: 24px;
    position: static;
  }
}

@media (max-width: 575.98px) {
  .breadcrumb {
    border-radius: 8px;
  }

  article {
    font-size: 0.98rem;
    padding: 0;
  }

  article ol,
  article ul {
    padding-left: 1.1rem;
  }
}

/* ==========================================================
   STORE / PRODUCT PAGES
   ========================================================== */

.product-group {
  padding: 0 !important;
}

.product-group h3 {
  font-size: 1.1rem !important;
  font-weight: 700;
  color: var(--irl-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.row-eq-height {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.row-eq-height > [class*="col-"] {
  display: flex;
  padding-left: 0;
  padding-right: 0;
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
}

.product,
.products .product {
  background: rgba(20, 15, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  overflow: visible;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.product:hover,
.products .product:hover {
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.product header,
.products .product header {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-left: 3px solid var(--irl-accent) !important;
  border-radius: 14px 14px 0 0 !important;
  margin: 0 !important;
  padding: 16px 22px !important;
}

.product header span,
.products .product header span {
  color: var(--irl-text) !important;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.product-desc {
  color: var(--irl-muted) !important;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 20px 24px;
}

.product-desc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-desc li {
  color: #d0c8e4;
  padding: 5px 0;
  position: relative;
  padding-left: 18px;
}

.product-desc li::before {
  content: "✓";
  color: var(--irl-accent-2);
  font-weight: 800;
  position: absolute;
  left: 0;
}

.product footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.product-pricing {
  color: var(--irl-muted) !important;
  font-size: 0.85rem;
  line-height: 1.5;
}

.product-pricing .price {
  color: #c4b5fd !important;
  font-size: 1.4rem;
  font-weight: 800;
  display: inline;
  margin-right: 4px;
}

.product-pricing br {
  display: none;
}

.btn-order-now,
.btn-success.btn-order-now {
  background: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  border-radius: 10px !important;
  color: #c4b5fd !important;
  font-size: 0.88rem;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  transition: all 180ms ease;
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: unset !important;
  min-width: fit-content;
  box-shadow: none;
}

.btn-order-now:hover,
.btn-success.btn-order-now:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

/* Product detail / configure pages */
.product-details {
  color: var(--irl-text);
}

.product-details .product-icon {
  display: none !important;
}

.product-details header,
.product-details .product-header {
  color: var(--irl-text);
}

/* Navbar refinements */
.navbar,
.main-navbar-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-nav .nav-link,
.navbar-nav > li > a {
  color: var(--irl-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 150ms ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav > li > a:hover {
  color: var(--irl-text) !important;
}

.dropdown-menu {
  background: rgba(23, 17, 36, 0.98) !important;
  border: 1px solid var(--irl-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 8px !important;
}

.dropdown-item,
.dropdown-item a {
  color: #d0c8e4 !important;
  border-radius: 8px;
  padding: 8px 14px !important;
  transition: background 150ms ease;
}

.dropdown-item:hover,
.dropdown-item a:hover {
  background: rgba(139, 92, 246, 0.14) !important;
  color: #fff !important;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Footer polish */
footer.footer,
.footer {
  background: linear-gradient(180deg, #0d0916, #080510) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 !important;
}

.footer .nav-link,
.footer a {
  color: var(--irl-muted) !important;
  font-size: 0.88rem;
}

.footer .nav-link:hover,
.footer a:hover {
  color: var(--irl-text) !important;
}

.footer .copyright {
  color: rgba(185, 175, 204, 0.5) !important;
  font-size: 0.82rem;
}

/* Form controls for dark theme */
.form-control,
select.form-control {
  background: rgba(15, 11, 24, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: var(--irl-text) !important;
  transition: border-color 150ms ease;
}

.form-control:focus {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12) !important;
}

/* Cart button badge */
#cartItemCount {
  background: var(--irl-accent) !important;
  color: #fff !important;
}

/* Modal dark theme */
.modal-content {
  background: var(--irl-surface) !important;
  border: 1px solid var(--irl-border) !important;
  border-radius: 16px !important;
  color: var(--irl-text) !important;
}

.modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.modal-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Search bar */
.search .form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.search .btn-default {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--irl-muted) !important;
}

/* Back button */
a.btn-default {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--irl-border) !important;
  color: var(--irl-muted) !important;
  transition: background 150ms ease, color 150ms ease;
}

a.btn-default:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--irl-text) !important;
}

/* Store layout spacing */
.cart-sidebar {
  padding-right: 24px !important;
}

.cart-body {
  padding-left: 10px;
}

.master-breadcrumb {
  padding-left: 12px;
}

.master-breadcrumb .container {
  padding-left: 24px;
  padding-right: 24px;
}

.breadcrumb-item:first-child {
  padding-left: 4px;
}

.header-lined {
  margin-bottom: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-lined h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
}

#order-standard_cart .panel-sidebar,
#order-standard_cart .card-sidebar,
.cart-sidebar .panel-sidebar,
.cart-sidebar .card-sidebar,
.cart-sidebar .card,
.cart-sidebar .panel {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.cart-sidebar {
  background: transparent !important;
}

#order-standard_cart .panel-heading,
#order-standard_cart .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#order-standard_cart .panel-title {
  color: var(--irl-text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

#order-standard_cart .list-group-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--irl-muted) !important;
  transition: background 150ms ease, color 150ms ease;
}

#order-standard_cart .list-group-item:hover,
#order-standard_cart .list-group-item.active {
  background: rgba(139, 92, 246, 0.12) !important;
  color: var(--irl-text) !important;
}

/* ==========================================================
   ORDER / CONFIGURE FORM
   ========================================================== */

.secondary-cart-body {
  color: var(--irl-text);
  padding-right: 24px;
}

.secondary-cart-body p {
  color: #d0c8e4;
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-info {
  background: transparent !important;
  border: none !important;
  border-left: 2px solid var(--irl-accent) !important;
  border-radius: 0 !important;
  padding: 4px 0 4px 14px !important;
  margin-bottom: 20px !important;
  color: var(--irl-text) !important;
  font-size: 0.88rem !important;
}

.product-info .product-title {
  color: var(--irl-text) !important;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

.product-info p:empty {
  display: none;
}

.sub-heading {
  margin: 24px 0 14px;
  padding: 0;
  border: none;
}

.sub-heading span,
.sub-heading span.primary-bg-color {
  background: #130f1d !important;
  color: var(--irl-muted) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

.sub-heading span small,
.sub-heading span i {
  color: rgba(185, 175, 204, 0.6) !important;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
}

.field-container {
  margin-bottom: 16px;
}

.field-container .form-group {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 16px;
  padding: 0;
}

.field-container label,
.secondary-cart-body label,
#order-standard_cart label {
  color: var(--irl-text) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin-bottom: 6px;
}

.field-help-text {
  color: rgba(185, 175, 204, 0.7) !important;
  font-size: 0.78rem;
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}

.select-inline,
.secondary-cart-body .form-control,
.field-container .form-control {
  background: rgba(15, 11, 24, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: var(--irl-text) !important;
  padding: 10px 14px 12px !important;
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 44px;
  transition: border-color 150ms ease;
}

.secondary-cart-body .form-control:focus,
.field-container .form-control:focus {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

.product-configurable-options {
  margin-bottom: 8px;
}

/* Order Summary sidebar */
.secondary-cart-sidebar {
  position: sticky;
  top: 24px;
}

.order-summary {
  background: rgba(20, 15, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.order-summary h2 {
  color: var(--irl-text) !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-container {
  color: var(--irl-text);
  font-size: 0.92rem;
}

.order-summary .loader {
  color: var(--irl-muted);
}

.order-summary .product-name {
  color: var(--irl-text);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.order-summary .product-group {
  color: var(--irl-muted);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-container .clearfix {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.summary-container .clearfix .float-left,
.summary-container .clearfix .pull-left {
  color: var(--irl-muted);
  font-size: 0.88rem;
  max-width: 65%;
}

.summary-container .clearfix .float-right,
.summary-container .clearfix .pull-right {
  color: var(--irl-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.summary-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-totals .clearfix {
  border-bottom: none;
  padding: 4px 0;
}

.total-due-today {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  margin-top: 16px;
  padding: 16px;
  text-align: center;
}

.total-due-today .amt {
  color: var(--irl-text);
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 2px;
}

.total-due-today span:last-child {
  color: var(--irl-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Alert styling for order form */
.alert-warning {
  background: rgba(234, 179, 8, 0.08) !important;
  border: 1px solid rgba(234, 179, 8, 0.2) !important;
  border-radius: 10px !important;
  color: var(--irl-muted) !important;
  font-size: 0.88rem;
}

.alert-warning .alert-link {
  color: #c4b5fd !important;
  font-weight: 700;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 10px !important;
  color: #fca5a5 !important;
}

/* Continue button on configure page */
#btnCompleteProductConfig,
.btn-primary.btn-lg {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

#btnCompleteProductConfig:hover,
.btn-primary.btn-lg:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

/* Secure warning at bottom */
.secure-warning {
  color: var(--irl-muted) !important;
  font-size: 0.8rem;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 20px;
}

/* Collapsed sidebar panels (mobile) */
.sidebar-collapsed .panel,
.sidebar-collapsed .card {
  background: rgba(20, 15, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
}

.sidebar-collapsed .panel-body,
.sidebar-collapsed .card-body {
  background: transparent !important;
}

.sidebar-collapsed .custom-select {
  background-color: rgba(15, 11, 24, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: var(--irl-text) !important;
}

/* ==========================================================
   VIEW CART / CHECKOUT PAGE
   ========================================================== */

.view-cart-items-header {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--irl-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.view-cart-items .item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px 8px;
  transition: background 150ms ease;
}

.view-cart-items .item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.view-cart-items .item:last-child {
  border-bottom: none;
}

.view-cart-items .item-title {
  color: var(--irl-text);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.view-cart-items .item-title .btn-link {
  color: #c4b5fd !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0 6px;
}

.view-cart-items .item-title .btn-link:hover {
  color: #ddd6fe !important;
}

.view-cart-items .item-group {
  color: var(--irl-muted);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 4px;
}

.view-cart-items .item small {
  color: rgba(185, 175, 204, 0.6);
  font-size: 0.8rem;
  line-height: 1.4;
}

.view-cart-items .item-qty {
  text-align: center;
}

.view-cart-items .item-qty .form-control {
  background: rgba(15, 11, 24, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--irl-text) !important;
  width: 60px;
  display: inline-block;
  padding: 6px 8px !important;
  font-size: 0.88rem;
}

.view-cart-items .item-qty .btn-xs {
  color: #c4b5fd !important;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.view-cart-items .item-price {
  text-align: right;
  color: var(--irl-text);
  font-size: 1rem;
  font-weight: 700;
}

.view-cart-items .item-price .cycle {
  color: var(--irl-muted);
  font-size: 0.78rem;
  font-weight: 400;
  display: block;
}

.btn-remove-from-cart {
  color: rgba(185, 175, 204, 0.4) !important;
  font-size: 0.82rem;
  transition: color 150ms ease;
}

.btn-remove-from-cart:hover {
  color: #f87171 !important;
}

.empty-cart {
  padding: 8px 0;
  text-align: right;
}

.empty-cart .btn-link {
  color: rgba(185, 175, 204, 0.5) !important;
  font-size: 0.78rem;
}

.empty-cart .btn-link:hover {
  color: #f87171 !important;
}

/* Cart tabs — Promo Code / Estimate Taxes */
.view-cart-tabs {
  margin-top: 24px;
}

.view-cart-tabs .nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.view-cart-tabs .nav-tabs .nav-link {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--irl-muted) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  transition: color 150ms ease, border-color 150ms ease;
}

.view-cart-tabs .nav-tabs .nav-link:hover {
  color: var(--irl-text) !important;
}

.view-cart-tabs .nav-tabs .nav-link.active {
  color: #c4b5fd !important;
  border-bottom-color: var(--irl-accent) !important;
}

.view-cart-tabs .tab-content {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 18px !important;
}

.view-cart-tabs .tab-content .form-control {
  background: rgba(15, 11, 24, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--irl-text) !important;
  font-size: 0.88rem;
  padding: 10px 14px !important;
}

.view-cart-tabs .tab-content .btn-default,
.view-cart-tabs .tab-content .btn-block {
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 8px !important;
  color: #c4b5fd !important;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

.view-cart-tabs .tab-content .btn-default:hover,
.view-cart-tabs .tab-content .btn-block:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #fff !important;
}

.view-cart-tabs .tab-content label {
  color: var(--irl-muted) !important;
  font-size: 0.85rem !important;
}

/* Promo code icon label */
.prepend-icon .field-icon {
  color: var(--irl-muted) !important;
}

/* ==========================================================
   CHECKOUT PAGE
   ========================================================== */

/* Already registered bar */
.already-registered {
  margin-bottom: 24px;
}

.already-registered p {
  color: var(--irl-muted) !important;
  font-size: 0.92rem;
  margin: 0;
  line-height: 2.4;
}

#btnAlreadyRegistered {
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 10px !important;
  color: #c4b5fd !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px !important;
  transition: background 150ms ease;
}

#btnAlreadyRegistered:hover {
  background: rgba(139, 92, 246, 0.22) !important;
  color: #fff !important;
}

#btnNewUserSignup {
  background: rgba(234, 179, 8, 0.1) !important;
  border: 1px solid rgba(234, 179, 8, 0.25) !important;
  border-radius: 10px !important;
  color: #fbbf24 !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px !important;
}

/* Sub-heading borderless (the "Or" divider) */
.sub-heading-borderless {
  text-align: center;
  margin: 20px 0;
}

.sub-heading-borderless span,
.sub-heading-borderless span.primary-bg-color {
  background: transparent !important;
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Social sign-in */
.social-signin-btns {
  text-align: center;
  margin-bottom: 20px;
}

/* Prepend icon form fields (checkout uses these everywhere) */
#frmCheckout .prepend-icon,
#containerExistingUserSignin .prepend-icon {
  position: relative;
}

#frmCheckout .field-icon,
#containerExistingUserSignin .field-icon {
  color: rgba(185, 175, 204, 0.5) !important;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 0.85rem;
}

#frmCheckout .field.form-control,
#containerExistingUserSignin .field.form-control {
  background: rgba(30, 24, 46, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 10px !important;
  color: var(--irl-text) !important;
  padding: 10px 14px 10px 38px !important;
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color 150ms ease;
}

#frmCheckout .field.form-control:focus,
#containerExistingUserSignin .field.form-control:focus {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

#frmCheckout .field.form-control::placeholder,
#containerExistingUserSignin .field.form-control::placeholder {
  color: rgba(200, 190, 220, 0.65);
}

#frmCheckout select.field.form-control {
  padding-left: 38px !important;
  appearance: auto;
}

/* Field validation error messages */
.field-error-msg {
  color: #f87171 !important;
  font-size: 0.78rem;
  display: block;
  margin-top: 4px;
}

/* Password strength meter */
.password-strength-meter {
  margin-top: 8px;
}

.password-strength-meter .progress {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}

.password-strength-meter .progress-bar {
  border-radius: 6px;
}

.password-strength-meter #passwordStrengthTextLabel {
  color: var(--irl-muted) !important;
  font-size: 0.78rem;
  margin-top: 6px;
}

.generate-password {
  background: rgba(139, 92, 246, 0.08) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 8px !important;
  color: #c4b5fd !important;
  font-size: 0.8rem;
  font-weight: 600;
}

.generate-password:hover {
  background: rgba(139, 92, 246, 0.18) !important;
}

/* Total Due Today alert */
#totalDueToday {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: 12px !important;
  color: var(--irl-text) !important;
  font-size: 1rem;
  padding: 16px !important;
}

#totalDueToday strong {
  color: #fff;
  font-size: 1.2rem;
}

/* Payment method radio buttons */
#paymentGatewaysContainer {
  text-align: center;
  margin: 16px 0;
}

#paymentGatewaysContainer p {
  color: var(--irl-muted) !important;
}

#paymentGatewaysContainer .radio-inline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--irl-text) !important;
  cursor: pointer;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 4px 6px;
  padding: 12px 24px;
  transition: border-color 150ms ease, background 150ms ease;
}

#paymentGatewaysContainer .radio-inline:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

#paymentGatewaysContainer .radio-inline input:checked ~ {
  color: #c4b5fd;
}

/* Apply credit container */
.apply-credit-container {
  color: var(--irl-muted);
  font-size: 0.88rem;
  margin: 16px 0;
}

.apply-credit-container label.radio {
  color: var(--irl-muted) !important;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

/* Credit card input area */
.cc-input-container {
  background: rgba(15, 11, 24, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-top: 12px;
}

.cc-input-container ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.cc-input-container label.radio-inline {
  color: var(--irl-text) !important;
  font-size: 0.88rem;
  cursor: pointer;
}

.cc-input-container .input-group .btn-default {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  color: #c4b5fd !important;
  border-radius: 0 10px 10px 0 !important;
}

/* Notes textarea */
#frmCheckout textarea.form-control {
  background: rgba(15, 11, 24, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: var(--irl-text) !important;
  padding: 12px 14px !important;
  font-size: 0.9rem;
  min-height: 90px;
  resize: vertical;
}

#frmCheckout textarea.form-control::placeholder {
  color: rgba(200, 190, 220, 0.65);
}

/* Marketing opt-in */
.marketing-email-optin {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.marketing-email-optin h4 {
  color: var(--irl-text) !important;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.marketing-email-optin p {
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Complete Order button */
#btnCompleteOrder {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700 !important;
  padding: 16px 40px !important;
  margin-top: 16px;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

#btnCompleteOrder:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

/* Checkout security message */
.checkout-security-msg {
  background: rgba(234, 179, 8, 0.06) !important;
  border: 1px solid rgba(234, 179, 8, 0.15) !important;
  border-radius: 10px !important;
  color: var(--irl-muted) !important;
  font-size: 0.8rem;
  margin-top: 24px;
  padding: 14px 18px !important;
}

.checkout-security-msg strong {
  color: var(--irl-text);
}

/* Gateway errors */
.gateway-errors {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 10px !important;
  color: #fca5a5 !important;
}

/* Alert info for checkout */
.alert-info {
  background: rgba(34, 211, 238, 0.08) !important;
  border: 1px solid rgba(34, 211, 238, 0.2) !important;
  border-radius: 10px !important;
  color: #a5f3fc !important;
}

/* ==========================================================
   CLIENT AREA DASHBOARD
   ========================================================== */

/* Client notification alerts */
.client-alerts {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.client-alerts li {
  margin-bottom: 6px;
}

.client-alerts li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(234, 179, 8, 0.06) !important;
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 10px;
  color: var(--irl-text) !important;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 150ms ease;
}

.client-alerts li a:hover {
  background: rgba(234, 179, 8, 0.1) !important;
}

.client-alerts li a i.fa-exclamation-triangle {
  color: #fbbf24 !important;
}

.client-alerts li a i.fa-info-circle {
  color: #60a5fa !important;
}

.client-alerts li a .message {
  color: rgba(247, 243, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Logged-in-as bar */
.btn-active-client {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: 10px !important;
  color: #c4b5fd !important;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Dashboard stat tiles */
.tiles {
  margin-bottom: 24px;
}

.tiles .tile {
  background: rgba(32, 24, 50, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--irl-text) !important;
  display: block;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
  position: relative;
  overflow: hidden;
}

.tiles .tile:hover {
  background: rgba(32, 24, 50, 0.85) !important;
  transform: translateY(-2px);
}

.tiles .tile i {
  color: var(--irl-muted);
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.tiles .tile .stat {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.tiles .tile .title {
  color: var(--irl-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tiles .tile .highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.7;
}

.tiles .row {
  border-radius: 14px;
  overflow: hidden;
}

/* Dashboard accent cards */
.client-home-cards .card {
  background: rgba(32, 24, 50, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 18px;
}

.client-home-cards .card-header {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 14px 18px !important;
}

.client-home-cards .card-title {
  color: var(--irl-text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.client-home-cards .card-title i:first-child {
  color: var(--irl-muted);
}

.client-home-cards .card-body {
  padding: 18px !important;
}

.client-home-cards .card-body p {
  color: var(--irl-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.client-home-cards .card-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  padding: 10px 18px !important;
}

/* Accent card top borders */
.card-accent-gold { border-top: 3px solid #eab308 !important; }
.card-accent-red { border-top: 3px solid #ef4444 !important; }
.card-accent-blue { border-top: 3px solid #3b82f6 !important; }
.card-accent-green { border-top: 3px solid #22c55e !important; }
.card-accent-teal { border-top: 3px solid #14b8a6 !important; }
.card-accent-asbestos { border-top: 3px solid #6b7280 !important; }

/* Accent-colored header buttons */
.btn-xs {
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  padding: 5px 12px !important;
}

.bg-color-gold { background: rgba(234, 179, 8, 0.18) !important; color: #fbbf24 !important; border: 1px solid rgba(234, 179, 8, 0.3) !important; }
.bg-color-red { background: rgba(239, 68, 68, 0.15) !important; color: #fca5a5 !important; border: 1px solid rgba(239, 68, 68, 0.3) !important; }
.bg-color-blue { background: rgba(59, 130, 246, 0.15) !important; color: #93c5fd !important; border: 1px solid rgba(59, 130, 246, 0.3) !important; }
.bg-color-green { background: rgba(34, 197, 94, 0.15) !important; color: #86efac !important; border: 1px solid rgba(34, 197, 94, 0.3) !important; }
.bg-color-teal { background: rgba(20, 184, 166, 0.15) !important; color: #5eead4 !important; border: 1px solid rgba(20, 184, 166, 0.3) !important; }
.bg-color-asbestos { background: rgba(107, 114, 128, 0.15) !important; color: #d1d5db !important; border: 1px solid rgba(107, 114, 128, 0.3) !important; }

/* Service list group items */
.client-home-cards .list-group-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--irl-text) !important;
  padding: 12px 18px !important;
  transition: background 150ms ease;
}

.client-home-cards .list-group-item:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* Service items in dashboard list */
.div-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.div-service-name {
  flex: 1;
}

.div-service-name .font-weight-bold {
  color: var(--irl-text);
  font-size: 0.88rem;
}

.div-service-name .text-domain {
  color: var(--irl-muted);
  font-size: 0.8rem;
}

.div-service-status .label {
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: uppercase;
}

.label-success {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #86efac !important;
}

.label-warning {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #fbbf24 !important;
}

.label-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
}

.label-placeholder {
  display: none !important;
}

.btn-view-details {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--irl-muted) !important;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-view-details:hover {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #c4b5fd !important;
}

/* View more link */
.btn-view-more {
  color: #c4b5fd !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-view-more:hover {
  color: #ddd6fe !important;
}

/* Sidebar card footer buttons */
.card-footer .btn-success {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #86efac !important;
  font-size: 0.82rem;
}

.card-footer .btn-success:hover {
  background: rgba(34, 197, 94, 0.25) !important;
}

.card-footer .btn-default {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
}

.card-footer .btn-default:hover {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #c4b5fd !important;
}

/* ==========================================================
   PRODUCT DETAILS PAGE
   ========================================================== */

/* Product status area */
.product-status {
  text-align: center;
  padding: 20px;
}

.product-status .product-icon {
  margin-bottom: 12px;
}

.product-status .product-icon .fa-stack {
  color: var(--irl-accent);
}

.product-status .product-icon .fa-circle {
  color: rgba(139, 92, 246, 0.15);
}

.product-status .product-icon .fa-inverse {
  color: #c4b5fd;
}

.product-status .product-icon h3 {
  font-size: 1.2rem;
  margin-top: 10px;
}

.product-status .product-icon h4 {
  color: var(--irl-muted) !important;
  font-size: 0.88rem;
  font-weight: 500;
}

.product-status-text {
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-status-active .product-status-text {
  color: #86efac;
}

/* Product info labels */
.product-details h4 {
  color: var(--irl-muted) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 16px;
  margin-bottom: 4px;
}

/* Product actions */
.product-actions-wrapper .btn-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  font-size: 0.85rem;
}

.product-actions-wrapper .btn-danger:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

/* Nav tabs on product detail page */
.product-details-tab-container,
.bg-white {
  background: transparent !important;
  color: var(--irl-text) !important;
}

.nav-tabs.responsive-tabs-sm {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.nav-tabs .nav-link {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: var(--irl-muted) !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-tabs .nav-link:hover {
  color: var(--irl-text) !important;
}

.nav-tabs .nav-link.active {
  color: #c4b5fd !important;
  border-bottom-color: var(--irl-accent) !important;
  background: transparent !important;
}

.responsive-tabs-sm-connector {
  display: none;
}

/* Tables */
.table {
  color: var(--irl-text) !important;
}

.table-bordered {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.table-bordered th,
.table-bordered td {
  border-color: rgba(255, 255, 255, 0.06) !important;
  padding: 10px 14px !important;
}

.table th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
  font-weight: 700;
}

.table td {
  background: transparent !important;
  color: var(--irl-text) !important;
}

/* Form controls inside product details (readonly inputs etc.) */
.product-details-tab-container .form-control,
.module-client-area .form-control {
  background: rgba(30, 24, 46, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--irl-text) !important;
  font-size: 0.88rem;
  padding: 8px 12px !important;
}

.module-client-area .form-control[readonly] {
  background: rgba(15, 11, 24, 0.7) !important;
  cursor: default;
}

/* Pre/code blocks for JSON config */
pre.bg-light,
pre {
  background: rgba(15, 11, 24, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #a5f3fc !important;
  font-size: 0.82rem;
  padding: 14px !important;
  text-align: left;
}

/* Input group text */
.input-group-text {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--irl-muted) !important;
  font-size: 0.85rem;
}

/* Affiliate link area */
#affdetailsarea .card {
  background: rgba(32, 24, 50, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
}

/* Module client area buttons */
.module-client-area .btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d5dfc) !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 0.88rem;
}

.module-client-area .btn-success {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #86efac !important;
  font-size: 0.88rem;
}

.module-client-area .btn-success:hover {
  background: rgba(34, 197, 94, 0.25) !important;
}

.module-client-area .btn-sm {
  font-size: 0.82rem;
  padding: 6px 14px !important;
}

/* ==========================================================
   AFFILIATES PAGE
   ========================================================== */

/* Affiliate stat boxes */
.affiliate-stat {
  border-radius: 12px !important;
  padding: 20px 16px !important;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.affiliate-stat i {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.affiliate-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.affiliate-stat.alert-warning {
  background: rgba(234, 179, 8, 0.08) !important;
  border: 1px solid rgba(234, 179, 8, 0.2) !important;
  color: #fbbf24 !important;
}

.affiliate-stat.alert-info {
  background: rgba(59, 130, 246, 0.08) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
}

.affiliate-stat.alert-success {
  background: rgba(34, 197, 94, 0.08) !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  color: #86efac !important;
}

/* Referral link card */
.affiliate-stat + .card,
.primary-content > .card {
  background: rgba(32, 24, 50, 0.6) !important;
}

/* Striped table */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: transparent !important;
}

/* DataTable / table-list */
.table-list {
  color: var(--irl-text) !important;
}

.table-list thead th {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
  font-weight: 700;
}

/* DataTables controls */
.dataTables_wrapper .dataTables_filter input {
  background: rgba(30, 24, 46, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--irl-text) !important;
  padding: 6px 12px !important;
}

.dataTables_wrapper .dataTables_length select {
  background: rgba(30, 24, 46, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--irl-text) !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px !important;
  color: var(--irl-muted) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: #c4b5fd !important;
}

/* Withdrawal button */
.btn-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

.btn-danger.disabled,
.btn-danger:disabled {
  opacity: 0.5;
}

/* Configurable Options tab */
.tab-pane .row > .col-sm-5 strong {
  color: var(--irl-muted);
  font-size: 0.85rem;
}

.tab-pane .row > .col-sm-7 {
  color: var(--irl-text);
  font-size: 0.88rem;
}

/* Topbar (logged-in area) */
.topbar {
  background: rgba(11, 8, 18, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 0;
}

.topbar .btn {
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
}

.active-client .input-group-text {
  background: transparent !important;
  border: none !important;
  color: var(--irl-muted) !important;
  font-size: 0.82rem;
}

/* ==========================================================
   PORTAL HOME PAGE
   ========================================================== */

/* Product browse cards */
.card-columns.home .card {
  background: rgba(32, 24, 50, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
}

.card-columns.home .card-title {
  color: var(--irl-text) !important;
  font-size: 1.1rem;
}

.card-columns.home .card p {
  color: var(--irl-muted);
  font-size: 0.88rem;
}

.btn-outline-primary {
  background: transparent !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  font-size: 0.88rem;
  transition: background 150ms ease, color 150ms ease;
}

.btn-outline-primary:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #fff !important;
}

/* Action icon buttons */
.action-icon-btns a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  border-radius: 14px;
  color: var(--irl-text) !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 150ms ease, transform 150ms ease;
  background: rgba(32, 24, 50, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

.action-icon-btns a:hover {
  background: rgba(32, 24, 50, 0.7);
  transform: translateY(-2px);
}

.action-icon-btns .ico-container {
  margin-bottom: 10px;
}

.action-icon-btns .ico-container i {
  font-size: 2rem;
}

/* Inline code-style for bold text in content paragraphs */
.primary-content > p b {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  color: #c4b5fd;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 8px;
}

/* Icon accent colors */
.action-icon-btns .card-accent-teal .ico-container i { color: #14b8a6; }
.action-icon-btns .card-accent-pomegranate .ico-container i { color: #ef4444; }
.action-icon-btns .card-accent-sun-flower .ico-container i { color: #eab308; }
.action-icon-btns .card-accent-asbestos .ico-container i { color: #6b7280; }
.action-icon-btns .card-accent-green .ico-container i { color: #22c55e; }
.action-icon-btns .card-accent-midnight-blue .ico-container i { color: #8b5cf6; }

/* ==========================================================
   LEGACY BOXES ORDER FORM (#order-boxes)
   ========================================================== */

#order-boxes {
  color: var(--irl-text);
}

#order-boxes .header-lined h1 {
  color: var(--irl-text) !important;
  font-size: 1.6rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

/* Product radio buttons as selectable cards */
#order-boxes .fields-container {
  margin-top: 16px;
  background: transparent !important;
  border: none !important;
}

#order-boxes .field-row {
  margin-bottom: 8px;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#order-boxes .product-radio {
  display: block;
  width: 100%;
  background: rgba(32, 24, 50, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  color: var(--irl-text) !important;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  font-weight: 600;
  margin: 0;
}

#order-boxes .product-radio:hover {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
}

#order-boxes .product-radio input[type="radio"] {
  accent-color: #8b5cf6;
  margin-right: 10px;
}

#order-boxes .product-radio input[type="radio"]:checked + strong {
  color: #c4b5fd;
}

/* Sidebar in legacy boxes */
#order-boxes .card-sidebar,
#order-boxes .panel-sidebar {
  background: rgba(23, 17, 36, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 12px !important;
}

#order-boxes .card-sidebar .card-header,
#order-boxes .panel-sidebar .panel-heading {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: var(--irl-text) !important;
}

#order-boxes .card-sidebar .panel-title,
#order-boxes .panel-sidebar .panel-title {
  color: var(--irl-text) !important;
  font-size: 0.88rem;
}

#order-boxes .list-group-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  color: var(--irl-muted) !important;
  transition: background 150ms ease, color 150ms ease;
}

#order-boxes .list-group-item:hover,
#order-boxes .list-group-item.active {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #c4b5fd !important;
}

/* Mobile sidebar collapsed */
#order-boxes .sidebar-collapsed .panel,
#order-boxes .sidebar-collapsed .card {
  background: rgba(23, 17, 36, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px !important;
}

#order-boxes .sidebar-collapsed .panel-heading,
#order-boxes .sidebar-collapsed .card-header {
  background: transparent !important;
  color: var(--irl-text) !important;
}

#order-boxes .sidebar-collapsed .form-control {
  background: rgba(30, 24, 46, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--irl-text) !important;
}

/* Secure warning */
#order-boxes .secure-warning,
.secure-warning {
  background: rgba(32, 24, 50, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px;
  color: var(--irl-muted) !important;
  font-size: 0.8rem;
  margin-top: 24px;
  padding: 12px 18px;
  box-shadow: none !important;
}

/* Responsive store */
@media (max-width: 767.98px) {
  .row-eq-height > [class*="col-"] {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .product header {
    padding: 16px 18px;
  }

  .product-desc {
    padding: 16px 18px;
  }

  .product footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .btn-order-now {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================
   IMAGE LIGHTBOX MODAL (knowledgebase articles)
   ========================================================== */

article img {
  cursor: zoom-in;
  transition: opacity 150ms ease;
}

article img:hover {
  opacity: 0.85;
}

#irl-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

#irl-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

#irl-lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 200ms ease;
}

#irl-lightbox-overlay.active img {
  transform: scale(1);
}

/* ==========================================================
   CUSTOM MODULES + FUTURE OAUTH SUITE
   ========================================================== */

/* Shared module containers */
.irl-module-panel,
.irl-oauth-panel,
.module-client-area .irl-card,
.module-client-area .irl-panel,
.module-client-area .card {
  background: rgba(23, 17, 36, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  color: var(--irl-text) !important;
}

.irl-module-panel,
.irl-oauth-panel,
.module-client-area .irl-card,
.module-client-area .irl-panel {
  padding: 22px;
}

.irl-module-panel h1,
.irl-module-panel h2,
.irl-module-panel h3,
.irl-oauth-panel h1,
.irl-oauth-panel h2,
.irl-oauth-panel h3,
.module-client-area .irl-card h1,
.module-client-area .irl-card h2,
.module-client-area .irl-card h3 {
  color: var(--irl-text) !important;
  font-weight: 800;
}

.irl-module-panel p,
.irl-oauth-panel p,
.module-client-area .irl-card p {
  color: var(--irl-muted) !important;
}

/* OAuth account linking dashboard */
.irl-oauth-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.irl-oauth-provider {
  align-items: center;
  background: rgba(32, 24, 50, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  padding: 16px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.irl-oauth-provider:hover {
  background: rgba(39, 30, 61, 0.75);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}

.irl-oauth-provider-icon {
  align-items: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 12px;
  color: #c4b5fd;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.irl-oauth-provider-details {
  flex: 1;
  min-width: 0;
}

.irl-oauth-provider-name {
  color: var(--irl-text);
  display: block;
  font-weight: 800;
}

.irl-oauth-provider-meta {
  color: var(--irl-muted);
  display: block;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.irl-oauth-provider-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.irl-oauth-provider.is-connected .irl-oauth-provider-status,
.irl-oauth-status-connected {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.irl-oauth-provider:not(.is-connected) .irl-oauth-provider-status,
.irl-oauth-status-disconnected {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.irl-oauth-provider-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.irl-oauth-provider-twitch .irl-oauth-provider-icon {
  background: rgba(145, 70, 255, 0.16);
  border-color: rgba(145, 70, 255, 0.35);
  color: #d8b4fe;
}

.irl-oauth-provider-kick .irl-oauth-provider-icon {
  background: rgba(83, 252, 24, 0.1);
  border-color: rgba(83, 252, 24, 0.28);
  color: #86efac;
}

.irl-oauth-provider-google .irl-oauth-provider-icon {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

/* External OAuth authorization screens */
body.irl-oauth-authorize,
.oauth-layout {
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.16), transparent 34%),
    var(--irl-bg) !important;
  color: var(--irl-text) !important;
}

.oauth-layout .content-container,
section#content .content-container {
  background: rgba(23, 17, 36, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  color: var(--irl-text) !important;
}

.oauth-layout .permission-grants,
section#content .permission-grants {
  background: rgba(15, 11, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--irl-muted);
  padding: 16px;
}

.oauth-layout .action-buttons,
section#content .action-buttons {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Module utility states */
.irl-status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.irl-status-pill.is-active {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.irl-status-pill.is-pending {
  background: rgba(234, 179, 8, 0.12);
  color: #fbbf24;
}

.irl-status-pill.is-error {
  background: rgba(239, 68, 68, 0.13);
  color: #fca5a5;
}

.irl-copy-success {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #86efac !important;
}
