/**
 * Aurora Peptides — Affiliate Portal Styling (Coupon Affiliates Pro)
 * Covers the standalone /affiliates/ portal template (inc/portal/template.php)
 * Supports both Aurora Dark Mode and Light Mode with high specificity.
 */

/* =========================================================
   1. FONT & BASE PORTAL LAYOUT
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400..800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

html, body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.affiliate-portal-container {
  display: flex !important;
  min-height: 100vh !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  transition: background 0.25s ease, color 0.25s ease !important;
}

/* =========================================================
   2. DARK MODE (DEFAULT & html[data-theme="dark"])
   ========================================================= */
:root,
html[data-theme="dark"],
body.dark-mode {
  --wcu-portal-bg: #040814;
  --wcu-portal-sidebar-bg: #070b18;
  --wcu-portal-sidebar-border: rgba(255, 255, 255, 0.08);
  --wcu-portal-header-bg: #070b18;
  --wcu-portal-card-bg: linear-gradient(165deg, rgba(14, 23, 50, 0.85), rgba(8, 13, 30, 0.9));
  --wcu-portal-card-border: rgba(255, 255, 255, 0.08);
  --wcu-portal-txt: #e2e8f0;
  --wcu-portal-txt-title: #ffffff;
  --wcu-portal-txt-muted: rgba(148, 163, 184, 0.85);
  --wcu-portal-acc: #00d4ff;
  --wcu-portal-purple: #7b5cff;
  --wcu-portal-input-bg: #0b1228;
  --wcu-portal-input-border: rgba(255, 255, 255, 0.12);
}

body,
body.dark-mode,
html[data-theme="dark"] body {
  background: var(--wcu-portal-bg, #040814) !important;
  color: var(--wcu-portal-txt, #e2e8f0) !important;
}

/* Sidebar (Dark) */
.affiliate-portal-container .sidebar,
body.dark-mode .affiliate-portal-container .sidebar,
html[data-theme="dark"] .affiliate-portal-container .sidebar {
  width: 250px !important;
  min-width: 250px !important;
  background: linear-gradient(180deg, #070b18 0%, #040814 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
  padding: 24px 0 !important;
  box-sizing: border-box !important;
}

.affiliate-portal-container .sidebar-logo {
  padding: 12px 24px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 16px !important;
}

.affiliate-portal-container .sidebar-logo img {
  max-width: 160px !important;
  height: auto !important;
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.2)) !important;
}

.affiliate-portal-container .sidebar-logo h2 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em !important;
  margin: 12px 0 0 0 !important;
  text-align: left !important;
}

/* Sidebar Navigation Tabs (Dark) */
.affiliate-portal-container .portal-tabs {
  padding: 0 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.affiliate-portal-container .portal-tabs .portal-tablink,
.affiliate-portal-container .portal-tablink {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  color: rgba(148, 163, 184, 0.9) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.affiliate-portal-container .portal-tabs .portal-tablink i {
  font-size: 15px !important;
  width: 20px !important;
  text-align: center !important;
  color: inherit !important;
  transition: color 0.2s ease !important;
}

.affiliate-portal-container .portal-tabs .portal-tablink:hover {
  background: rgba(0, 212, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(0, 212, 255, 0.15) !important;
  border-left-color: var(--wcu-portal-acc, #00d4ff) !important;
}

.affiliate-portal-container .portal-tabs .portal-tablink:hover i {
  color: var(--wcu-portal-acc, #00d4ff) !important;
}

.affiliate-portal-container .portal-tabs .portal-tablink.active,
.affiliate-portal-container .portal-tablink.active {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.16) 0%, rgba(123, 92, 255, 0.12) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  border-left: 3px solid var(--wcu-portal-acc, #00d4ff) !important;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.12) !important;
}

.affiliate-portal-container .portal-tabs .portal-tablink.active i {
  color: var(--wcu-portal-acc, #00d4ff) !important;
}

.affiliate-portal-container .portal-tabs #tab-page-back {
  margin-top: 32px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 16px !important;
}

/* Content Area (Dark) */
.affiliate-portal-container .content,
body.dark-mode .affiliate-portal-container .content,
html[data-theme="dark"] .affiliate-portal-container .content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background: #040814 !important;
  color: #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Content Header */
.affiliate-portal-container .content-header,
body.dark-mode .affiliate-portal-container .content-header,
html[data-theme="dark"] .affiliate-portal-container .content-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px clamp(18px, 3vw, 36px) !important;
  background: rgba(7, 11, 24, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  box-sizing: border-box !important;
}

.affiliate-portal-container .welcome-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.affiliate-portal-container .welcome-header h1 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.affiliate-portal-container .welcome-header .wcu-coupon-title {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 4px 14px !important;
  border-radius: 8px !important;
  background: rgba(0, 212, 255, 0.12) !important;
  color: #00d4ff !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15) !important;
}

.affiliate-portal-container .welcome-header select#wcu-coupon-select {
  background: #0b1228 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  padding: 6px 14px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Coupon Switcher Dropdown */
.affiliate-portal-container .wcu-coupon-switcher-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #00d4ff !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
}

.affiliate-portal-container .wcu-coupon-switcher-menu {
  background: #0b1228 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45) !important;
  padding: 6px !important;
}

.affiliate-portal-container .wcu-coupon-switcher-item {
  color: #e2e8f0 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
}

.affiliate-portal-container .wcu-coupon-switcher-item:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  color: #00d4ff !important;
}

/* Header Controls: Theme Toggle & Profile Dropdown */
.affiliate-portal-container .dark-mode-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #00d4ff !important;
  cursor: pointer !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
  margin-right: 14px !important;
}

.affiliate-portal-container .dark-mode-toggle:hover {
  background: rgba(0, 212, 255, 0.18) !important;
  color: #ffffff !important;
  transform: rotate(20deg) !important;
}

.affiliate-portal-container .profile-dropdown {
  position: relative !important;
}

.affiliate-portal-container .profile-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 5px 12px 5px 14px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.affiliate-portal-container .profile-trigger:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(0, 212, 255, 0.3) !important;
}

.affiliate-portal-container .username-in-header {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

.affiliate-portal-container .profile-image {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(0, 212, 255, 0.4) !important;
}

.affiliate-portal-container .dropdown-content {
  background: #0b1228 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
  padding: 8px !important;
  min-width: 180px !important;
}

.affiliate-portal-container .dropdown-content a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.affiliate-portal-container .dropdown-content a:hover {
  background: rgba(0, 212, 255, 0.12) !important;
  color: #00d4ff !important;
}

/* Content Body */
.affiliate-portal-container .content-body {
  padding: clamp(20px, 3.5vw, 40px) !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
}

/* Tab Panels in Portal */
.affiliate-portal-container .portal-tabcontent,
.affiliate-portal-container .wcutabcontent {
  background: linear-gradient(165deg, rgba(14, 23, 50, 0.85), rgba(8, 13, 30, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: clamp(20px, 3vw, 36px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
}

/* Mobile Hamburger Menu */
.affiliate-portal-container .hamburger-menu {
  color: #ffffff !important;
  font-size: 20px !important;
  cursor: pointer !important;
}

.affiliate-portal-container .wcu-mobile-menu-close {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: calc(100% - 24px) !important;
  margin: 12px auto !important;
}

/* Logged-Out / Register Forms inside Portal */
.affiliate-portal-container .login-registration-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
  gap: 32px !important;
  margin: 20px 0 !important;
}

.affiliate-portal-container .login-form,
.affiliate-portal-container .registration-form,
.affiliate-portal-container .wcu-form-section {
  background: linear-gradient(165deg, rgba(14, 23, 50, 0.92), rgba(8, 13, 30, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: clamp(24px, 3vw, 36px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
}

.affiliate-portal-container .wcusage-login-form-title,
.affiliate-portal-container .wcusage-register-form-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.affiliate-portal-container label {
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

.affiliate-portal-container input[type="text"],
.affiliate-portal-container input[type="email"],
.affiliate-portal-container input[type="password"],
.affiliate-portal-container input[type="date"],
.affiliate-portal-container select,
.affiliate-portal-container textarea {
  background: #0b1228 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}

.affiliate-portal-container input:focus,
.affiliate-portal-container select:focus,
.affiliate-portal-container textarea:focus {
  border-color: rgba(0, 212, 255, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15) !important;
}

/* Action Buttons (Dark) */
.affiliate-portal-container .button,
.affiliate-portal-container input[type="submit"],
.affiliate-portal-container button[type="submit"],
.affiliate-portal-container #wcu-register-button,
.affiliate-portal-container .woocommerce-button,
.affiliate-portal-container .wcu-button-export,
.affiliate-portal-container .wcusage_copylink,
.affiliate-portal-container #wcu-orders-button,
.affiliate-portal-container #wcu-monthly-orders-button,
.affiliate-portal-container #wcu-summary-button {
  background: linear-gradient(135deg, #00d4ff 0%, #7b5cff 55%, #d400ff 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.25) !important;
  transition: all 0.2s ease !important;
}

.affiliate-portal-container .button:hover,
.affiliate-portal-container input[type="submit"]:hover,
.affiliate-portal-container button[type="submit"]:hover,
.affiliate-portal-container #wcu-register-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35) !important;
}

/* Footer in Portal */
.affiliate-portal-container .content-footer {
  padding: 20px clamp(18px, 3vw, 36px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(148, 163, 184, 0.8) !important;
  font-size: 13px !important;
}

/* =========================================================
   3. LIGHT MODE OVERRIDES FOR PORTAL (html[data-theme="light"])
   ========================================================= */
html[data-theme="light"] body,
html[data-theme="light"] body:not(.dark-mode) {
  background: #f6f8fb !important;
  color: #0b1220 !important;
}

/* Sidebar (Light) */
html[data-theme="light"] .affiliate-portal-container .sidebar,
html[data-theme="light"] .affiliate-portal-container .sidebar.logged-out {
  background: #ffffff !important;
  border-right: 1px solid rgba(11, 18, 32, 0.1) !important;
  color: #0b1220 !important;
  box-shadow: 2px 0 20px rgba(20, 30, 50, 0.04) !important;
}

html[data-theme="light"] .affiliate-portal-container .sidebar-logo {
  border-bottom: 1px solid rgba(11, 18, 32, 0.08) !important;
}

html[data-theme="light"] .affiliate-portal-container .sidebar-logo img {
  filter: none !important;
}

html[data-theme="light"] .affiliate-portal-container .sidebar-logo h2 {
  color: #0b1220 !important;
}

/* Tab Links (Light) */
html[data-theme="light"] .affiliate-portal-container .portal-tabs .portal-tablink,
html[data-theme="light"] .affiliate-portal-container .portal-tablink {
  color: #46536b !important;
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="light"] .affiliate-portal-container .portal-tabs .portal-tablink:hover {
  background: rgba(0, 144, 179, 0.06) !important;
  color: #0b1220 !important;
  border-left-color: #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .portal-tabs .portal-tablink:hover i {
  color: #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .portal-tabs .portal-tablink.active,
html[data-theme="light"] .affiliate-portal-container .portal-tablink.active {
  background: #ffffff !important;
  color: #0090b3 !important;
  border: 1px solid rgba(0, 144, 179, 0.25) !important;
  border-left: 3px solid #0090b3 !important;
  box-shadow: 0 2px 10px rgba(0, 144, 179, 0.1) !important;
}

html[data-theme="light"] .affiliate-portal-container .portal-tabs .portal-tablink.active i {
  color: #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .portal-tabs #tab-page-back {
  border-top: 1px solid rgba(11, 18, 32, 0.08) !important;
}

/* Content Area (Light) */
html[data-theme="light"] .affiliate-portal-container .content {
  background: #f6f8fb !important;
  color: #0b1220 !important;
}

/* Content Header (Light) */
html[data-theme="light"] .affiliate-portal-container .content-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08) !important;
}

html[data-theme="light"] .affiliate-portal-container .welcome-header h1 {
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container .welcome-header .wcu-coupon-title {
  background: rgba(0, 144, 179, 0.08) !important;
  border: 1px solid rgba(0, 144, 179, 0.28) !important;
  color: #0090b3 !important;
  box-shadow: 0 2px 8px rgba(0, 144, 179, 0.1) !important;
}

html[data-theme="light"] .affiliate-portal-container .welcome-header select#wcu-coupon-select {
  background: #f5f7fb !important;
  color: #0b1220 !important;
  border: 1px solid rgba(11, 18, 32, 0.14) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-coupon-switcher-toggle {
  background: #f5f7fb !important;
  border: 1px solid rgba(11, 18, 32, 0.12) !important;
  color: #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-coupon-switcher-menu {
  background: #ffffff !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
  box-shadow: 0 12px 34px rgba(20, 30, 50, 0.08) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-coupon-switcher-item {
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-coupon-switcher-item:hover {
  background: rgba(0, 144, 179, 0.08) !important;
  color: #0090b3 !important;
}

/* Header Controls (Light) */
html[data-theme="light"] .affiliate-portal-container .dark-mode-toggle {
  background: #f5f7fb !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
  color: #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .dark-mode-toggle:hover {
  background: rgba(0, 144, 179, 0.1) !important;
}

html[data-theme="light"] .affiliate-portal-container .profile-trigger {
  background: #f5f7fb !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
}

html[data-theme="light"] .affiliate-portal-container .profile-trigger:hover {
  border-color: rgba(0, 144, 179, 0.3) !important;
}

html[data-theme="light"] .affiliate-portal-container .username-in-header {
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container .profile-image {
  border-color: #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .dropdown-content {
  background: #ffffff !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
  box-shadow: 0 16px 40px rgba(20, 30, 50, 0.08) !important;
}

html[data-theme="light"] .affiliate-portal-container .dropdown-content a {
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container .dropdown-content a:hover {
  background: rgba(0, 144, 179, 0.08) !important;
  color: #0090b3 !important;
}

/* Tab Panels (Light) */
html[data-theme="light"] .affiliate-portal-container .portal-tabcontent,
html[data-theme="light"] .affiliate-portal-container .wcutabcontent {
  background: #ffffff !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
  box-shadow: 0 12px 34px rgba(20, 30, 50, 0.05) !important;
  color: #46536b !important;
}

/* Mobile Hamburger (Light) */
html[data-theme="light"] .affiliate-portal-container .hamburger-menu {
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-mobile-menu-close {
  background: #f5f7fb !important;
  border: 1px solid rgba(11, 18, 32, 0.12) !important;
  color: #0b1220 !important;
}

/* Forms in Portal (Light) */
html[data-theme="light"] .affiliate-portal-container .login-form,
html[data-theme="light"] .affiliate-portal-container .registration-form,
html[data-theme="light"] .affiliate-portal-container .wcu-form-section {
  background: #ffffff !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
  box-shadow: 0 12px 34px rgba(20, 30, 50, 0.06) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcusage-login-form-title,
html[data-theme="light"] .affiliate-portal-container .wcusage-register-form-title {
  color: #0b1220 !important;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08) !important;
}

html[data-theme="light"] .affiliate-portal-container label {
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container input[type="text"],
html[data-theme="light"] .affiliate-portal-container input[type="email"],
html[data-theme="light"] .affiliate-portal-container input[type="password"],
html[data-theme="light"] .affiliate-portal-container input[type="date"],
html[data-theme="light"] .affiliate-portal-container select,
html[data-theme="light"] .affiliate-portal-container textarea {
  background: #f5f7fb !important;
  border: 1px solid rgba(11, 18, 32, 0.14) !important;
  color: #0b1220 !important;
}

html[data-theme="light"] .affiliate-portal-container input:focus,
html[data-theme="light"] .affiliate-portal-container select:focus,
html[data-theme="light"] .affiliate-portal-container textarea:focus {
  border-color: rgba(0, 144, 179, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(0, 144, 179, 0.12) !important;
}

/* Action Buttons (Light) */
html[data-theme="light"] .affiliate-portal-container .button,
html[data-theme="light"] .affiliate-portal-container input[type="submit"],
html[data-theme="light"] .affiliate-portal-container button[type="submit"],
html[data-theme="light"] .affiliate-portal-container #wcu-register-button,
html[data-theme="light"] .affiliate-portal-container .woocommerce-button,
html[data-theme="light"] .affiliate-portal-container .wcu-button-export,
html[data-theme="light"] .affiliate-portal-container .wcusage_copylink,
html[data-theme="light"] .affiliate-portal-container #wcu-orders-button,
html[data-theme="light"] .affiliate-portal-container #wcu-monthly-orders-button,
html[data-theme="light"] .affiliate-portal-container #wcu-summary-button {
  background: linear-gradient(135deg, #0090b3 0%, #6a1fae 55%, #9c00b8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 144, 179, 0.22) !important;
}

html[data-theme="light"] .affiliate-portal-container .button:hover,
html[data-theme="light"] .affiliate-portal-container input[type="submit"]:hover,
html[data-theme="light"] .affiliate-portal-container button[type="submit"]:hover,
html[data-theme="light"] .affiliate-portal-container #wcu-register-button:hover {
  box-shadow: 0 6px 22px rgba(0, 144, 179, 0.32) !important;
}

/* Footer (Light) */
html[data-theme="light"] .affiliate-portal-container .content-footer {
  border-top: 1px solid rgba(11, 18, 32, 0.08) !important;
  color: #7c8aa0 !important;
}

/* =========================================================
   4. DASHBOARD COMPONENTS: STAT CARDS, TABLES, SETTINGS
   ========================================================= */

/* Stat Cards & Boxes (Dark) */
.affiliate-portal-container .wcu-stats-box,
.affiliate-portal-container .wcu-dash-stats-box,
.affiliate-portal-container .wcu-field-section,
.affiliate-portal-container .wcu-card,
.affiliate-portal-container .wcu-box,
.affiliate-portal-container .wcu-info-box,
.affiliate-portal-container .wcu-dash-header {
  background: linear-gradient(165deg, rgba(14, 23, 50, 0.85), rgba(8, 13, 30, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.25s ease !important;
}

.affiliate-portal-container .wcu-stats-box:hover,
.affiliate-portal-container .wcu-dash-stats-box:hover {
  border-color: rgba(0, 212, 255, 0.3) !important;
  box-shadow: 0 14px 36px rgba(0, 212, 255, 0.12) !important;
  transform: translateY(-2px) !important;
}

.affiliate-portal-container .wcu-stats-box h3,
.affiliate-portal-container .wcu-dash-stats-box h3,
.affiliate-portal-container .wcu-field-section h3 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: rgba(148, 163, 184, 0.85) !important;
  margin: 0 0 8px 0 !important;
}

.affiliate-portal-container .wcu-stats-box .wcu-stats-number,
.affiliate-portal-container .wcu-dash-stats-box .wcu-stats-number,
.affiliate-portal-container .wcu-stat-value {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: clamp(22px, 2.5vw, 28px) !important;
  font-weight: 700 !important;
  color: #00d4ff !important;
  letter-spacing: -0.02em !important;
}

/* Stat Cards & Boxes (Light) */
html[data-theme="light"] .affiliate-portal-container .wcu-stats-box,
html[data-theme="light"] .affiliate-portal-container .wcu-dash-stats-box,
html[data-theme="light"] .affiliate-portal-container .wcu-field-section,
html[data-theme="light"] .affiliate-portal-container .wcu-card,
html[data-theme="light"] .affiliate-portal-container .wcu-box,
html[data-theme="light"] .affiliate-portal-container .wcu-info-box,
html[data-theme="light"] .affiliate-portal-container .wcu-dash-header {
  background: #ffffff !important;
  border: 1px solid rgba(11, 18, 32, 0.09) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.04) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-stats-box:hover,
html[data-theme="light"] .affiliate-portal-container .wcu-dash-stats-box:hover {
  border-color: rgba(0, 144, 179, 0.35) !important;
  box-shadow: 0 12px 30px rgba(0, 144, 179, 0.1) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-stats-box h3,
html[data-theme="light"] .affiliate-portal-container .wcu-dash-stats-box h3,
html[data-theme="light"] .affiliate-portal-container .wcu-field-section h3 {
  color: #64748b !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-stats-box .wcu-stats-number,
html[data-theme="light"] .affiliate-portal-container .wcu-dash-stats-box .wcu-stats-number,
html[data-theme="light"] .affiliate-portal-container .wcu-stat-value {
  color: #0090b3 !important;
}

/* Tables (Dark) */
.affiliate-portal-container .wcuTable,
.affiliate-portal-container table.wcuTable,
.affiliate-portal-container .wcutabcontent table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #070b18 !important;
  margin: 16px 0 !important;
}

.affiliate-portal-container .wcuTableHeading,
.affiliate-portal-container table thead th,
.affiliate-portal-container .wcuTable th {
  background: #0b1228 !important;
  color: #00d4ff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 16px !important;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
  text-align: left !important;
}

.affiliate-portal-container .wcuTableRow,
.affiliate-portal-container .wcuTableRowDropdown,
.affiliate-portal-container table tbody tr {
  background: rgba(11, 18, 40, 0.6) !important;
  transition: background 0.15s ease !important;
}

.affiliate-portal-container .wcuTableRow:hover,
.affiliate-portal-container .wcuTableRowDropdown:hover,
.affiliate-portal-container table tbody tr:hover {
  background: rgba(0, 212, 255, 0.08) !important;
}

.affiliate-portal-container .wcuTableCell,
.affiliate-portal-container table tbody td,
.affiliate-portal-container .wcuTable td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  text-align: left !important;
  vertical-align: middle !important;
}

/* Table Foot / Totals (Dark Mode) */
body.dark-mode .affiliate-portal-container .wcuTableFoot,
body.dark-mode .affiliate-portal-container table tfoot,
body.dark-mode .affiliate-portal-container table tfoot tr,
body.dark-mode .affiliate-portal-container table tfoot tr.wcuTableRow,
body.dark-mode .affiliate-portal-container table tfoot td,
body.dark-mode .affiliate-portal-container table tfoot th,
body.dark-mode .affiliate-portal-container .wcuTable tfoot td,
body.dark-mode .affiliate-portal-container .wcu-table-monthly-summary tfoot td,
body.dark-mode .affiliate-portal-container #wcuTable.wcu-table-monthly-summary tfoot td,
body.dark-mode .affiliate-portal-container .wcu-table-recent-orders tfoot td,
body.dark-mode .affiliate-portal-container #wcuTable2.wcu-table-recent-orders tfoot td,
body.dark-mode .affiliate-portal-container .wcu-orders-table tfoot td,
body.dark-mode .affiliate-portal-container .wcu-table-mla-summary tfoot td,
body.dark-mode .affiliate-portal-container .wcu-table-payouts tfoot td,
html[data-theme="dark"] .affiliate-portal-container .wcuTableFoot,
html[data-theme="dark"] .affiliate-portal-container table tfoot,
html[data-theme="dark"] .affiliate-portal-container table tfoot tr,
html[data-theme="dark"] .affiliate-portal-container table tfoot tr.wcuTableRow,
html[data-theme="dark"] .affiliate-portal-container table tfoot td,
html[data-theme="dark"] .affiliate-portal-container table tfoot th,
html[data-theme="dark"] .affiliate-portal-container .wcuTable tfoot td,
html[data-theme="dark"] .affiliate-portal-container .wcu-table-monthly-summary tfoot td,
html[data-theme="dark"] .affiliate-portal-container #wcuTable.wcu-table-monthly-summary tfoot td,
html[data-theme="dark"] .affiliate-portal-container .wcu-table-recent-orders tfoot td,
html[data-theme="dark"] .affiliate-portal-container #wcuTable2.wcu-table-recent-orders tfoot td,
html[data-theme="dark"] .affiliate-portal-container .wcu-orders-table tfoot td,
html[data-theme="dark"] .affiliate-portal-container .wcu-table-mla-summary tfoot td,
html[data-theme="dark"] .affiliate-portal-container .wcu-table-payouts tfoot td {
  background: #0b1228 !important;
  background-color: #0b1228 !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-top: 2px solid rgba(0, 212, 255, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: none !important;
  border-right: none !important;
  vertical-align: middle !important;
}

body.dark-mode .affiliate-portal-container .wcuTableFoot strong,
body.dark-mode .affiliate-portal-container .wcuTableFoot span,
body.dark-mode .affiliate-portal-container table tfoot td strong,
body.dark-mode .affiliate-portal-container table tfoot td span,
body.dark-mode .affiliate-portal-container table tfoot th strong,
body.dark-mode .affiliate-portal-container table tfoot th span,
html[data-theme="dark"] .affiliate-portal-container .wcuTableFoot strong,
html[data-theme="dark"] .affiliate-portal-container .wcuTableFoot span,
html[data-theme="dark"] .affiliate-portal-container table tfoot td strong,
html[data-theme="dark"] .affiliate-portal-container table tfoot td span,
html[data-theme="dark"] .affiliate-portal-container table tfoot th strong,
html[data-theme="dark"] .affiliate-portal-container table tfoot th span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.dark-mode .affiliate-portal-container .wcufoot-commission,
body.dark-mode .affiliate-portal-container .wcufoot-commission strong,
html[data-theme="dark"] .affiliate-portal-container .wcufoot-commission,
html[data-theme="dark"] .affiliate-portal-container .wcufoot-commission strong {
  color: #00d4ff !important;
  font-weight: 700 !important;
}

body.dark-mode .affiliate-portal-container table tfoot tr:hover,
body.dark-mode .affiliate-portal-container table tfoot tr:hover td,
html[data-theme="dark"] .affiliate-portal-container table tfoot tr:hover,
html[data-theme="dark"] .affiliate-portal-container table tfoot tr:hover td {
  background: #0e1732 !important;
}

/* Tables (Light) */
html[data-theme="light"] .affiliate-portal-container .wcuTable,
html[data-theme="light"] .affiliate-portal-container table.wcuTable,
html[data-theme="light"] .affiliate-portal-container .wcutabcontent table,
body:not(.dark-mode) .affiliate-portal-container .wcuTable,
body:not(.dark-mode) .affiliate-portal-container table.wcuTable,
body:not(.dark-mode) .affiliate-portal-container .wcutabcontent table {
  background: #ffffff !important;
  border: 1px solid rgba(11, 18, 32, 0.1) !important;
  box-shadow: 0 6px 20px rgba(20, 30, 50, 0.03) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcuTableHeading,
html[data-theme="light"] .affiliate-portal-container table thead th,
html[data-theme="light"] .affiliate-portal-container .wcuTable th,
body:not(.dark-mode) .affiliate-portal-container .wcuTableHeading,
body:not(.dark-mode) .affiliate-portal-container table thead th,
body:not(.dark-mode) .affiliate-portal-container .wcuTable th {
  background: #f1f5f9 !important;
  color: #0b1220 !important;
  border-bottom: 2px solid #0090b3 !important;
}

html[data-theme="light"] .affiliate-portal-container .wcuTableRow,
html[data-theme="light"] .affiliate-portal-container .wcuTableRowDropdown,
html[data-theme="light"] .affiliate-portal-container table tbody tr,
body:not(.dark-mode) .affiliate-portal-container .wcuTableRow,
body:not(.dark-mode) .affiliate-portal-container .wcuTableRowDropdown,
body:not(.dark-mode) .affiliate-portal-container table tbody tr {
  background: #ffffff !important;
}

html[data-theme="light"] .affiliate-portal-container .wcuTableRow:hover,
html[data-theme="light"] .affiliate-portal-container .wcuTableRowDropdown:hover,
html[data-theme="light"] .affiliate-portal-container table tbody tr:hover,
body:not(.dark-mode) .affiliate-portal-container .wcuTableRow:hover,
body:not(.dark-mode) .affiliate-portal-container .wcuTableRowDropdown:hover,
body:not(.dark-mode) .affiliate-portal-container table tbody tr:hover {
  background: rgba(0, 144, 179, 0.05) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcuTableCell,
html[data-theme="light"] .affiliate-portal-container table tbody td,
html[data-theme="light"] .affiliate-portal-container .wcuTable tbody td,
html[data-theme="light"] .affiliate-portal-container .wcuTable > tr > td,
body:not(.dark-mode) .affiliate-portal-container .wcuTableCell,
body:not(.dark-mode) .affiliate-portal-container table tbody td,
body:not(.dark-mode) .affiliate-portal-container .wcuTable tbody td,
body:not(.dark-mode) .affiliate-portal-container .wcuTable > tr > td {
  border-bottom: 1px solid rgba(11, 18, 32, 0.08) !important;
  color: #334155 !important;
}

/* Table Foot / Totals (Light Mode - All Tabs: Monthly Summary, Referred Orders, MLA, etc.) */
html[data-theme="light"] .affiliate-portal-container .wcuTableFoot,
html[data-theme="light"] .affiliate-portal-container table tfoot,
html[data-theme="light"] .affiliate-portal-container table tfoot tr,
html[data-theme="light"] .affiliate-portal-container table tfoot tr.wcuTableRow,
html[data-theme="light"] .affiliate-portal-container table tfoot td,
html[data-theme="light"] .affiliate-portal-container table tfoot th,
html[data-theme="light"] .affiliate-portal-container .wcuTable tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcuTable tfoot th,
html[data-theme="light"] .affiliate-portal-container .wcu-table-monthly-summary tfoot td,
html[data-theme="light"] .affiliate-portal-container #wcuTable.wcu-table-monthly-summary tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcu-table-recent-orders tfoot td,
html[data-theme="light"] .affiliate-portal-container #wcuTable2.wcu-table-recent-orders tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcu-orders-table tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcu-table-mla-summary tfoot td,
html[data-theme="light"] .affiliate-portal-container #wcuTableMLASummary tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcu-table-payouts tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcusage-product-rates-table tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcu-table-clicks tfoot td,
html[data-theme="light"] .affiliate-portal-container .wcu-table-directlinks tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcuTableFoot,
body:not(.dark-mode) .affiliate-portal-container table tfoot,
body:not(.dark-mode) .affiliate-portal-container table tfoot tr,
body:not(.dark-mode) .affiliate-portal-container table tfoot tr.wcuTableRow,
body:not(.dark-mode) .affiliate-portal-container table tfoot td,
body:not(.dark-mode) .affiliate-portal-container table tfoot th,
body:not(.dark-mode) .affiliate-portal-container .wcuTable tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcuTable tfoot th,
body:not(.dark-mode) .affiliate-portal-container .wcu-table-monthly-summary tfoot td,
body:not(.dark-mode) .affiliate-portal-container #wcuTable.wcu-table-monthly-summary tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcu-table-recent-orders tfoot td,
body:not(.dark-mode) .affiliate-portal-container #wcuTable2.wcu-table-recent-orders tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcu-orders-table tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcu-table-mla-summary tfoot td,
body:not(.dark-mode) .affiliate-portal-container #wcuTableMLASummary tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcu-table-payouts tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcusage-product-rates-table tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcu-table-clicks tfoot td,
body:not(.dark-mode) .affiliate-portal-container .wcu-table-directlinks tfoot td,
body.light-mode .affiliate-portal-container .wcuTableFoot,
body.light-mode .affiliate-portal-container table tfoot,
body.light-mode .affiliate-portal-container table tfoot td {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #0b1220 !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-top: 2px solid rgba(11, 18, 32, 0.15) !important;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08) !important;
  border-left: none !important;
  border-right: none !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

html[data-theme="light"] .affiliate-portal-container .wcuTableFoot strong,
html[data-theme="light"] .affiliate-portal-container .wcuTableFoot span,
html[data-theme="light"] .affiliate-portal-container table tfoot td strong,
html[data-theme="light"] .affiliate-portal-container table tfoot td span,
html[data-theme="light"] .affiliate-portal-container table tfoot th strong,
html[data-theme="light"] .affiliate-portal-container table tfoot th span,
body:not(.dark-mode) .affiliate-portal-container .wcuTableFoot strong,
body:not(.dark-mode) .affiliate-portal-container .wcuTableFoot span,
body:not(.dark-mode) .affiliate-portal-container table tfoot td strong,
body:not(.dark-mode) .affiliate-portal-container table tfoot td span,
body:not(.dark-mode) .affiliate-portal-container table tfoot th strong,
body:not(.dark-mode) .affiliate-portal-container table tfoot th span,
body.light-mode .affiliate-portal-container .wcuTableFoot strong,
body.light-mode .affiliate-portal-container .wcuTableFoot span {
  color: #0b1220 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .affiliate-portal-container .wcufoot-commission,
html[data-theme="light"] .affiliate-portal-container .wcufoot-commission strong,
body:not(.dark-mode) .affiliate-portal-container .wcufoot-commission,
body:not(.dark-mode) .affiliate-portal-container .wcufoot-commission strong,
body.light-mode .affiliate-portal-container .wcufoot-commission,
body.light-mode .affiliate-portal-container .wcufoot-commission strong {
  color: #0090b3 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .affiliate-portal-container table tfoot tr:hover,
html[data-theme="light"] .affiliate-portal-container table tfoot tr:hover td,
body:not(.dark-mode) .affiliate-portal-container table tfoot tr:hover,
body:not(.dark-mode) .affiliate-portal-container table tfoot tr:hover td {
  background: #f1f5f9 !important;
}

/* Product list nested dropdown in light mode */
html[data-theme="light"] .affiliate-portal-container .listtheproducts,
body:not(.dark-mode) .affiliate-portal-container .listtheproducts {
  background: #f8fafc !important;
  border-top: 1px dashed rgba(11, 18, 32, 0.12) !important;
  border-bottom: 1px dashed rgba(11, 18, 32, 0.12) !important;
}

html[data-theme="light"] .affiliate-portal-container .listtheproducts td,
html[data-theme="light"] .affiliate-portal-container .listtheproducts li,
body:not(.dark-mode) .affiliate-portal-container .listtheproducts td,
body:not(.dark-mode) .affiliate-portal-container .listtheproducts li {
  color: #334155 !important;
}

html[data-theme="light"] .affiliate-portal-container .listproductsbutton,
body:not(.dark-mode) .affiliate-portal-container .listproductsbutton {
  color: #0090b3 !important;
}

/* Settings Tab Styling (Dark) */
.affiliate-portal-container .wcu-settings-tab-nav {
  display: flex !important;
  gap: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 12px !important;
  margin-bottom: 24px !important;
  list-style: none !important;
}

.affiliate-portal-container .wcu-settings-tab-nav li a {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
}

.affiliate-portal-container .wcu-settings-tab-nav li.active a,
.affiliate-portal-container .wcu-settings-tab-nav li a:hover {
  background: rgba(0, 212, 255, 0.15) !important;
  color: #00d4ff !important;
}

/* Settings Tab Styling (Light) */
html[data-theme="light"] .affiliate-portal-container .wcu-settings-tab-nav {
  border-bottom: 1px solid rgba(11, 18, 32, 0.08) !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-settings-tab-nav li a {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

html[data-theme="light"] .affiliate-portal-container .wcu-settings-tab-nav li.active a,
html[data-theme="light"] .affiliate-portal-container .wcu-settings-tab-nav li a:hover {
  background: rgba(0, 144, 179, 0.12) !important;
  color: #0090b3 !important;
}

/* Success & Alert Messages (Dark) */
.wcu-registration-response,
.affiliate-portal-container .wcu-alert,
.affiliate-portal-container .wcu-alert-success,
.affiliate-portal-container .woocommerce-message,
.affiliate-portal-container .notice-success {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(34, 197, 94, 0.12) 100%) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  border-left: 4px solid #22c55e !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  margin: 20px 0 !important;
}

.wcu-registration-response p,
.affiliate-portal-container .wcu-alert p {
  color: inherit !important;
  margin: 0 !important;
}

/* Success & Alert Messages (Light) */
html[data-theme="light"] .wcu-registration-response,
html[data-theme="light"] .affiliate-portal-container .wcu-alert,
html[data-theme="light"] .affiliate-portal-container .wcu-alert-success,
html[data-theme="light"] .affiliate-portal-container .woocommerce-message,
html[data-theme="light"] .affiliate-portal-container .notice-success {
  background: #f0fdf4 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  border-left: 4px solid #16a34a !important;
  color: #14532d !important;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.08) !important;
}

/* =========================================================
   5. SUPPRESS SHOPPING CARTS ON AFFILIATE PORTAL
   ========================================================= */
#aurora-cart-drawer,
.aurora-cart-drawer,
#aurora-cart-toast,
.aurora-cart-toast,
#aaCartOverlay,
#aaCartDrawer,
.aa-cart-overlay,
.aa-cart-drawer,
.widget_shopping_cart,
.woocommerce-mini-cart {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* =========================================================
   6. FLOATING AFFILIATE WIDGET (DARK & LIGHT MODE)
   ========================================================= */
.wcusage-floating-widget {
  --wcusage-button-bg-color: var(--acc, #00d4ff);
  --wcusage-button-text-color: #ffffff;
  --wcusage-button-hover-color: var(--mag, #d400ff);
  --wcusage-button-border-color: rgba(255, 255, 255, 0.22);
  --wcusage-widget-theme-color: var(--acc, #00d4ff);
  font-family: var(--font-b, 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif) !important;
}

.wcusage-floating-widget.wcusage-position-bottom-right {
  right: 88px !important;
}

/* Floating Button (Dark Mode Default) */
.wcusage-floating-widget .wcusage-floating-button,
#wcusage-floating-btn,
html[data-theme="dark"] .wcusage-floating-widget .wcusage-floating-button,
html[data-theme="dark"] #wcusage-floating-btn,
body:not([data-theme="light"]) .wcusage-floating-widget .wcusage-floating-button,
body:not([data-theme="light"]) #wcusage-floating-btn {
  background: linear-gradient(115deg, var(--acc, #00d4ff) 0, var(--mag, #d400ff) 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: var(--aurora-radius-pill, 999px) !important;
  padding: 12px 22px !important;
  font-family: var(--font-b, 'DM Sans', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 212, 255, 0.25) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease !important;
  outline: none !important;
}

.wcusage-floating-widget .wcusage-floating-button:hover,
.wcusage-floating-widget .wcusage-floating-button:active,
.wcusage-floating-widget .wcusage-floating-button:focus,
#wcusage-floating-btn:hover,
#wcusage-floating-btn:active,
#wcusage-floating-btn:focus,
html[data-theme="dark"] .wcusage-floating-widget .wcusage-floating-button:hover,
html[data-theme="dark"] #wcusage-floating-btn:hover {
  background: linear-gradient(115deg, var(--mag, #d400ff) 0, var(--acc, #00d4ff) 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 32px rgba(212, 0, 255, 0.35) !important;
  filter: brightness(1.06) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Floating Button (Light Mode) */
html[data-theme="light"] .wcusage-floating-widget .wcusage-floating-button,
html[data-theme="light"] #wcusage-floating-btn {
  background: linear-gradient(115deg, var(--acc, #0090b3) 0%, var(--purple, #6a1fae) 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(0, 144, 179, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 144, 179, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .wcusage-floating-widget .wcusage-floating-button:hover,
html[data-theme="light"] #wcusage-floating-btn:hover {
  background: linear-gradient(115deg, var(--purple, #6a1fae) 0%, var(--acc, #0090b3) 100%) !important;
  box-shadow: 0 12px 30px rgba(106, 31, 174, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
