/**
 * THE DIGITAL CURATOR: Editorial CRM Intelligence Design System
 * Focus: High-end curated insights, atmospheric depth, and sophisticated tones.
 */

:root {
  /* --- Color Palette --- */
  --primary: #006b5f;
  --primary-container: #63c9b9;
  --on-primary: #ffffff;
  --primary-fixed: #8ff4e3;
  --on-primary-fixed: #00201c;
  
  --secondary: #48626e;
  --on-secondary: #ffffff;
  
  --tertiary: #93492e; /* Ambient Warning/Highlight */
  
  /* --- Surface Philosophy (The Layering Principle) --- */
  --surface: #f8f9fa; /* Base Page Background */
  --surface-container-lowest: #ffffff; /* Primary Content Cards */
  --surface-container-low: #f3f4f5; /* Section Backgrounds */
  --surface-container: #edeeef; /* Sidebar / Utility Panels */
  --surface-container-high: #e7e8e9; /* Inputs / Hover states */
  --surface-container-highest: #e1e2e3;
  
  --on-surface: #191c1d; /* High-contrast text */
  --on-surface-variant: #3c4a3d; /* Editorial Labels / Secondary text */
  
  --outline-variant: rgba(25, 28, 29, 0.15); /* The "Ghost Border" */
  
  /* --- Typography Strategy --- */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  
  /* --- Spacing & Radii --- */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px; /* Primary component radius */
  --radius-lg: 20px; /* Card radius */
  --radius-pill: 980px;
  
  --spacing-4: 1.4rem;
  --spacing-6: 2rem;
  
  /* --- Elevation & Depth --- */
  --shadow-ambient: 0 12px 32px rgba(25, 28, 29, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-blur: 20px;
}

/* Backward compatibility for existing apple-radius tokens */
:root {
  --apple-radius-sm: var(--radius-sm);
  --apple-radius-md: var(--radius-md);
  --apple-radius-lg: var(--radius-lg);
  --apple-radius-pill: var(--radius-pill);
  --apple-border: var(--outline-variant);
  --apple-border-strong: rgba(0, 0, 0, 0.15);
  --apple-text: var(--on-surface);
  --apple-text-secondary: var(--on-surface-variant);
  --apple-bg: var(--surface);
  --apple-bg-secondary: var(--surface-container-low);
  --apple-bg-elevated: var(--surface-container-lowest);
  --apple-primary: var(--primary);
  --apple-primary-hover: #005c52;
  --apple-font: var(--font-body);
  
  --gradient-primary: var(--primary);
  --gradient-button: var(--primary);
  --gradient-button-hover: var(--apple-primary-hover);
}

/* Force theme variables to Digital Curator palette */
:root {
  --base: 173 100% 21%; /* Matches #006b5f approx */
  --body-bg: var(--surface);
  --title-color: var(--on-surface);
}

/* Set global body and base typography */
html, body {
  font-family: var(--font-body) !important;
  background-color: var(--surface) !important;
  color: var(--on-surface) !important;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

/* Manrope for Headlines and Metrics */
h1, h2, h3, h4, h5, h6, .title, .display-lg, .headline-md, .metric-value {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  color: var(--on-surface) !important;
}

p, span, label, td, th {
  font-family: var(--font-body) !important;
  color: var(--on-surface-variant) !important;
}

a {
  transition: all 0.2s ease;
  text-decoration: none;
}

/* --- "No-Line" Rule Implementation --- */
.card, .dashboard-card, .list-item, .table {
  border: none !important;
}

.card {
  background-color: var(--surface-container-lowest) !important;
  box-shadow: var(--shadow-ambient) !important;
  border-radius: var(--radius-lg) !important;
}

/* Footer: force light text and icons on dark background */
.footer-area,
.footer-area p,
.footer-area span,
.footer-area .footer-item__desc,
.footer-area .search-wrapper__title,
.footer-area .search-wrapper__text {
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

.footer-area .footer-item__title {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.footer-area .footer-menu__link,
.footer-area .footer-contact-menu__item-content a {
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
}

.footer-area .footer-menu__link:hover,
.footer-area .footer-contact-menu__item-content a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.footer-area .footer-contact-menu__item-icon,
.footer-area .footer-contact-menu__item-icon i,
.footer-area .footer-contact-menu__item-icon .las,
.footer-area .social-list__link,
.footer-area .social-list__link i,
.footer-area .social-list__link .las,
.footer-area .social-list__link .fab,
.footer-area .social-list__link .fas,
.footer-area .social-list__link svg {
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
}

.footer-area .social-list__link svg {
  fill: rgba(255, 255, 255, 0.95);
}

.footer-area .share-btn-wrapper .title,
.footer-area .share-btn-wrapper .title .icon {
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

.footer-area .bottom-footer-text {
  color: rgba(255, 255, 255, 0.7) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
}

/* ========== Headings – solid color for visibility (no gradient) ========== */
h1,
h2,
h3,
h4,
h5,
h6,
.section-heading__title,
.banner-content__title,
.feature-item__title,
.how-work-item__title,
.pricing-card__title,
.dashboard-body h1,
.dashboard-body h2,
.dashboard-body h3,
.dashboard-body h4,
.dashboard-body h5,
.dashboard-body h6,
.custom--card .card-header .card-title,
.breadcrumb__title,
.modal-title,
.page-title,
.card-title {
  color: #1d1d1f !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  -webkit-text-fill-color: #1d1d1f;
}

.section-heading__desc,
.banner-content__desc,
.feature-item__desc,
.how-work-item__desc,
.pricing-card__desc {
  color: var(--apple-text-secondary) !important;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ========== Header & navbar – glassmorphism (all pages) ========== */
.header {
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  -moz-backdrop-filter: saturate(200%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 18px 0 !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.header.fixed-header {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  -moz-backdrop-filter: saturate(200%) blur(28px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 20px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 991px) {
  .header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--apple-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  }
}

/* Nav links – black only */
.header .nav-menu .nav-link,
.header .navbar .nav-menu .nav-item .nav-link {
  color: var(--apple-text) !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  -webkit-text-fill-color: var(--apple-text);
  transition: color 0.2s ease;
}

.header .nav-menu .nav-item.active .nav-link,
.header .nav-menu .nav-item:hover .nav-link {
  color: var(--apple-text) !important;
  -webkit-text-fill-color: var(--apple-text);
}

.header .navbar-brand.logo img {
  filter: none;
}

/* Top buttons in navbar */
.header .top-button .btn--base {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background: var(--primary) !important;
  font-weight: 600 !important;
  border-radius: 980px !important;
  padding: 10px 24px !important;
  box-shadow: 0 4px 12px rgba(0, 107, 95, 0.2) !important;
}

.header .top-button .btn--base-two,
.header .top-button .btn--danger {
  color: var(--apple-text) !important;
  -webkit-text-fill-color: var(--apple-text);
  font-weight: 600 !important;
}

.header .top-button .btn--base-two {
  color: var(--on-surface) !important;
  -webkit-text-fill-color: var(--on-surface);
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  font-weight: 600 !important;
  border-radius: 980px !important;
  padding: 10px 24px !important;
}

.header .top-button .btn--base-two:hover {
  background: var(--surface-container-low) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Language dropdown – dark text on light */
.header .custom--dropdown .custom--dropdown__selected .text,
.header .custom--dropdown .dropdown-list__item .text {
  color: var(--apple-text) !important;
  -webkit-text-fill-color: var(--apple-text);
}

.header .custom--dropdown .dropdown-list {
  background: var(--apple-bg-elevated) !important;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-sm);
  box-shadow: var(--apple-shadow-md);
}

.header .custom--dropdown .dropdown-list__item:hover .text {
  color: var(--apple-text) !important;
}

/* Mobile nav (collapsed) – ensure links and buttons visible */
@media screen and (max-width: 991px) {
  .header .nav-menu .nav-link {
    color: var(--apple-text) !important;
    -webkit-text-fill-color: var(--apple-text);
  }

  .header .top-button .btn--base {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
  }

  .header .top-button .btn--base-two {
    color: var(--apple-text) !important;
    -webkit-text-fill-color: var(--apple-text);
  }
}

/* Navbar toggler icon – dark */
.header .navbar-toggler,
.header .header-button,
.header #hiddenNav {
  color: var(--apple-text) !important;
}

.header .navbar-toggler i,
.header #hiddenNav i {
  color: var(--apple-text) !important;
}

/* ========== Buttons – iOS 26 black/white ========== */
.btn,
.btn--base,
.btn--base-two,
.btn--danger,
.btn--primary,
.cookies-card__btn,
.payment-item__btn {
  border-radius: var(--apple-radius-pill) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  padding: 12px 24px !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--apple-font) !important;
}

.btn--base,
.top-button .btn--base,
.btn--primary {
  background: var(--primary) !important;
  border: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 
    0 4px 12px rgba(0, 107, 95, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn--base:hover,
.btn--base:focus,
.btn--base:focus-visible,
.top-button .btn--base:hover,
.header .top-button .btn--base:hover {
  background: var(--apple-primary-hover) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 107, 95, 0.3) !important;
}

.btn--base-two,
.btn--dark {
  background: var(--surface-container-lowest) !important;
  border: 1px solid var(--outline-variant) !important;
  color: var(--on-surface) !important;
  -webkit-text-fill-color: var(--on-surface);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  border-radius: 980px !important;
}

.btn--base-two:hover,
.btn--base-two:focus,
.btn--dark:hover,
.btn--dark:focus {
  background: var(--surface-container-low) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.btn--danger {
  background: #fdf2f2 !important;
  border: 1px solid rgba(185, 28, 28, 0.1) !important;
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c;
  border-radius: 980px !important;
}

.btn--danger:hover {
  background: #fee2e2 !important;
  transform: translateY(-1px);
}

.btn--info,
.btn--success {
  background: var(--surface-container-lowest) !important;
  border: 1px solid var(--outline-variant) !important;
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary);
  border-radius: 980px !important;
}

.btn--info:hover,
.btn--success:hover {
  background: var(--surface-container-low) !important;
  transform: translateY(-1px);
}

/* All black/dark buttons: white text and white icons */
.btn--base .btn-icon,
.btn--base .btn-icon i,
.btn--base .fas,
.btn--base .far,
.btn--base .fa-solid,
.btn--base .las,
.btn--base .lab,
.btn--base i {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.btn--base-two i,
.btn--dark i,
.btn--info i,
.btn--success i {
  color: inherit !important;
  -webkit-text-fill-color: inherit;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

/* ========== Main & sections ========== */
.frontend {
  background: var(--apple-bg) !important;
}

.section-bg {
  background-color: var(--apple-bg) !important;
}

.section-heading .section-heading__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
}

/* Section heading – animated gradient underline (home sections) */
.frontend .feature-section .section-heading__title,
.frontend .how-work-section .section-heading__title,
.frontend .pricing-section .section-heading__title,
.frontend .faq-section .section-heading__title {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.frontend .feature-section .section-heading__title::after,
.frontend .how-work-section .section-heading__title::after,
.frontend .pricing-section .section-heading__title::after,
.frontend .faq-section .section-heading__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--apple-text), rgba(0, 0, 0, 0.4), var(--apple-text), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

/* Banner section */
/* ========== Home: Gradient animation keyframes ========== */
@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 200% 0%;
  }
}

@keyframes gradient-orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
    opacity: 0.5;
  }

  66% {
    transform: translate(-20px, 15px) scale(0.95);
    opacity: 0.35;
  }
}

@keyframes gradient-glow-pulse {

  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  }
}

@keyframes gradient-border-spin {
  to {
    --angle: 360deg;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes gradient-button-shine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Banner section */
.banner-section {
  padding: 80px 0 60px !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
      var(--apple-bg) 0%,
      var(--apple-bg-secondary) 25%,
      rgba(0, 0, 0, 0.02) 50%,
      var(--apple-bg-secondary) 75%,
      var(--apple-bg) 100%) !important;
  background-size: 400% 400% !important;
  animation: gradient-shift 18s ease infinite !important;
}

.banner-section::after {
  display: none;
}

/* Decorative gradient orbs in banner */
.banner-section .container {
  position: relative;
  z-index: 1;
}

.banner-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: gradient-orb-float 20s ease-in-out infinite;
  z-index: 0;
}

.banner-section .container::before {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 45%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: gradient-orb-float 25s ease-in-out infinite reverse;
  animation-delay: -5s;
  z-index: 0;
}

/* Banner CTA button */
.banner-content__button .btn--base-two {
  background: var(--apple-bg-elevated) !important;
  color: var(--apple-text) !important;
  -webkit-text-fill-color: var(--apple-text);
  border: 1px solid var(--apple-border-strong) !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.banner-content__button .btn--base-two:hover {
  background: var(--apple-bg-secondary) !important;
  transform: translateY(-2px);
}

.banner-content__title {
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  line-height: 1.1;
  margin-bottom: 16px !important;
}

.banner-content__desc {
  font-size: 1.25rem !important;
  line-height: 1.5;
}

.banner-content__button .btn {
  font-size: 1.0625rem;
}

.banner-thumb {
  position: relative;
  border-radius: 40px !important;
}

.banner-thumb img {
  border-radius: 40px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.banner-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px !important;
  background: linear-gradient(145deg, transparent 40%, rgba(0, 0, 0, 0.03) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Feature section – very subtle gradient background */
.feature-section {
  padding: 80px 0 100px !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--apple-bg) 0%, var(--apple-bg-secondary) 50%, var(--apple-bg) 100%) !important;
}

.feature-section .container {
  position: relative;
  z-index: 1;
}

.feature-item {
  background: var(--apple-bg-elevated) !important;
  border-radius: var(--apple-radius-md) !important;
  border: 1px solid var(--apple-border) !important;
  box-shadow: var(--apple-shadow-sm) !important;
  padding: 32px !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--apple-radius-md);
  padding: 2px;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.08) 25%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.08) 75%, transparent 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-item:hover {
  box-shadow: var(--apple-shadow-md) !important;
  transform: translateY(-2px);
}

.feature-item:hover::before {
  opacity: 1;
  animation: gradient-flow 4s linear infinite;
}

.feature-item__icon {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--apple-text) !important;
  width: 56px;
  height: 56px;
  border-radius: var(--apple-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__title {
  color: var(--apple-text) !important;
  font-size: 1.25rem;
  margin-bottom: 8px !important;
}

.feature-item__desc {
  color: var(--apple-text-secondary) !important;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* How it work section – subtle gradient orbs */
.how-work-section {
  padding: 80px 0 100px !important;
  position: relative;
  overflow: hidden;
  background: var(--apple-bg-secondary) !important;
}

.how-work-section .container {
  position: relative;
  z-index: 1;
}

.how-work-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -5%;
  width: 35%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.03) 0%, transparent 65%);
  pointer-events: none;
  animation: gradient-orb-float 24s ease-in-out infinite;
  z-index: 0;
}

.how-work-section::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: -8%;
  width: 40%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 0%, transparent 65%);
  pointer-events: none;
  animation: gradient-orb-float 28s ease-in-out infinite reverse;
  animation-delay: -8s;
  z-index: 0;
}

.how-work-item {
  background: var(--apple-bg-elevated) !important;
  border-radius: var(--apple-radius-md) !important;
  border: 1px solid var(--apple-border) !important;
  padding: 28px 24px !important;
  box-shadow: var(--apple-shadow-sm);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.how-work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--apple-radius-md);
  padding: 2px;
  background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.how-work-item:hover {
  box-shadow: var(--apple-shadow-md);
  transform: translateY(-2px);
}

.how-work-item:hover::after {
  opacity: 1;
  animation: gradient-shift 5s ease infinite;
}

.how-work-item__icon {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--apple-text) !important;
  border-radius: var(--apple-radius-sm);
}

.how-work-item__title {
  color: var(--apple-text) !important;
  font-size: 1.125rem;
}

.how-work-item__desc {
  color: var(--apple-text-secondary) !important;
  font-size: 0.9375rem;
}

/* CTA section */
.cta-section {
  padding: 80px 0 !important;
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  background-size: 400% 400% !important;
}

/* Remove dark green shape patches from CTA section */
.cta-section .shape-bg,
.cta-section .shape-bg.two,
.cta-section .shape-bg.three,
.cta-section .shape-bg.four {
  display: none !important;
}

.cta-section .cta-wrapper__left .section-heading__title {
  color: var(--apple-text) !important;
}

.cta-section .cta-wrapper__left .section-heading__desc {
  color: var(--apple-text-secondary) !important;
}

/* CTA button */
.cta-section .cta-wrapper__btn .btn--base:hover {
  transform: translateY(-2px);
  box-shadow: var(--apple-shadow-md) !important;
}

/* Pricing section */
.pricing-section,
.pricing-section.banner-bg {
  padding: 80px 0 100px !important;
  background: #ffffff !important;
}

/* Remove black/dark overlay from pricing – white layout only */
.pricing-section.banner-bg::after {
  display: none !important;
}

/* Blog section – white background, remove black overlay */
.blog.banner-bg {
  background: #ffffff !important;
}

.blog.banner-bg::after {
  display: none !important;
}

/* Features page first section – white background, remove black overlay */
.key-feature-section.banner-bg {
  background: #ffffff !important;
}

.key-feature-section.banner-bg::after {
  display: none !important;
}

/* Blogs page first section – white background (same as pricing/features) */
.blog-section {
  background: #ffffff !important;
}

/* Remove breadcrumb dark overlay on blogs page so first section is clean */
body:has(.frontend .blog-section) .breadcrumb::before,
body:has(.frontend .blog-section) .breadcrumb::after {
  display: none !important;
}

body:has(.frontend .blog-section) .breadcrumb {
  background-color: #ffffff !important;
}

/* Contact Us page first section – white background (same as blogs/pricing/features) */
.contact-section {
  background: #ffffff !important;
}

/* Remove breadcrumb dark overlay on contact page so first section is clean */
body:has(.frontend .contact-section) .breadcrumb::before,
body:has(.frontend .contact-section) .breadcrumb::after {
  display: none !important;
}

body:has(.frontend .contact-section) .breadcrumb {
  background-color: #ffffff !important;
}

/* Blog single (details) page first section – white background (same as blogs/contact/pricing) */
.blog-detials {
  background: #ffffff !important;
}

/* Remove breadcrumb dark overlay on blog single page so first section is clean */
body:has(.frontend .blog-detials) .breadcrumb::before,
body:has(.frontend .blog-detials) .breadcrumb::after {
  display: none !important;
}

body:has(.frontend .blog-detials) .breadcrumb {
  background-color: #ffffff !important;
}

.pricing-card-top__text {
  color: var(--apple-text) !important;
}

.pricing-card {
  background: var(--apple-bg-elevated) !important;
  border-radius: var(--apple-radius-lg) !important;
  border: 1px solid var(--apple-border) !important;
  box-shadow: var(--apple-shadow-sm) !important;
  padding: 32px !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--apple-shadow-md) !important;
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: var(--apple-text) !important;
  position: relative;
  animation: gradient-glow-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), var(--apple-shadow-md) !important;
}

.pricing-card.popular::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--apple-radius-lg) + 2px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.06));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  z-index: -1;
  opacity: 0.5;
}

.pricing-card__title {
  color: var(--apple-text) !important;
  font-size: 1.5rem;
}

.pricing-card__number {
  color: var(--apple-text) !important;
  font-size: 2.5rem;
  font-weight: 600;
}

.pricing-list__item {
  color: var(--apple-text) !important;
  border-bottom: 1px solid var(--apple-border);
  padding: 12px 0;
}

.pricing-card__btn .btn--base {
  margin-top: 24px;
}

/* FAQ section */
.faq-section {
  padding: 80px 0 100px !important;
  background: var(--apple-bg) !important;
}

.custom--accordion .accordion-header {
  color: var(--apple-text) !important;
  font-weight: 500;
}

.custom--accordion .accordion-body {
  background: var(--apple-bg-secondary) !important;
  color: var(--apple-text-secondary) !important;
}

/* ========== Footer – dark Apple-style ========== */
.footer-area {
  background: #1d1d1f !important;
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  padding-top: 60px !important;
}

.footer-area .shape-bg {
  opacity: 0.15;
}

.footer-item__logo a {
  opacity: 0.95;
}

.footer-item__title {
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px !important;
  -webkit-text-fill-color: #fff;
}

.footer-menu__link,
.footer-contact-menu__item-content a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.2s ease;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
}

.footer-menu__link:hover,
.footer-contact-menu__item-content a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.footer-item__desc,
.search-wrapper__title,
.search-wrapper__text {
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
}

.footer-area .subscribe-form {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}

.footer-area .form--control {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  flex: 1 !important;
}

.footer-area .form--control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.footer-area .subscribe-form .btn {
  background: #fff !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 12px 28px !important;
  min-width: 110px !important;
  height: 100% !important;
}

.bottom-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-top: 24px !important;
  margin-top: 48px !important;
}

.bottom-footer-text,
.social-list__link {
  color: rgba(255, 255, 255, 0.6) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}

.social-list__link:hover {
  color: #fff !important;
}

/* ========== Cards – light bg, black text (fix invisible text) ========== */
.custom--card,
.custom--card.card-two,
.wa-card,
.wa-table,
.payment-system-list,
.gateway-card,
.purchase-option-card__item {
  background: #ffffff !important;
  border-radius: var(--apple-radius-md) !important;
  border: 1px solid var(--apple-border) !important;
  box-shadow: var(--apple-shadow-sm) !important;
}

.custom--card .card-header,
.custom--card.card-two .card-header {
  border-bottom: 1px solid var(--apple-border) !important;
}

.custom--card .card-header .card-title,
.custom--card .card-body,
.custom--card .card-footer,
.custom--card .form--label,
.custom--card label,
.custom--card .form--control,
.custom--card .form--control::placeholder,
.custom--card .input-group-text,
.custom--card .select2-selection__rendered,
.custom--card table,
.custom--card td,
.custom--card th,
.custom--card p,
.custom--card span:not(.icon) {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.custom--card .form--control::placeholder {
  color: #8e8e93 !important;
}

.custom--card .form--control {
  background: #f5f5f7 !important;
  border-color: var(--apple-border) !important;
}

/* ========== Form controls – always visible text ========== */
.form--control,
input:not([type="checkbox"]):not([type="radio"]):not(.select2-search__field),
select,
textarea,
span.select2-selection {
  background: #f5f5f7 !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-sm) !important;
  color: #1d1d1f !important;
  font-family: var(--apple-font) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form--control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #8e8e93 !important;
}

.form--label,
label:not(.form-check-label) {
  color: #1d1d1f !important;
}

.dashboard .dashboard-body .form--control,
.dashboard .dashboard-body .form--control::placeholder {
  color: #1d1d1f !important;
}

.dashboard .dashboard-body .form--control::placeholder {
  color: #8e8e93 !important;
}

.form--control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--apple-text) !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06) !important;
}

/* ========== Cookie card ========== */
.cookies-card {
  background: var(--apple-bg-elevated) !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-lg) !important;
  box-shadow: var(--apple-shadow-lg) !important;
  color: var(--apple-text) !important;
  backdrop-filter: none;
}

.cookies-card .cookies-card__btn,
.cookies-card .policy {
  color: var(--apple-text) !important;
}

/* ========== Login & Create Account (auth pages) – visible text ========== */
.account.banner-bg::after,
.account.section-shape::before {
  display: none !important;
}

.account {
  background: #f5f5f7 !important;
}

.account-inner {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

.account-form__title,
.account-form__desc,
.account-form label,
.account-form .form-check-label,
.account-form .form--control,
.account-form .form--control::placeholder,
.account .have-account__text,
.account .have-account__link,
.account .forgot-password__link,
.account .forgot-password,
.account .text--base,
.account .social-link-wrapper .title,
.account .social-link-wrapper .text {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.account .have-account__link:hover,
.account .forgot-password__link:hover {
  color: #000 !important;
  -webkit-text-fill-color: #000;
}

.account .form--control {
  background: #f5f5f7 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1d1d1f !important;
}

.account .form--control::placeholder {
  color: #8e8e93 !important;
}

.account .social-link-wrapper .social-btn-link {
  background: #1d1d1f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.account .social-link-wrapper .text::before,
.account .social-link-wrapper .text::after {
  background: rgba(0, 0, 0, 0.15) !important;
}

.account .btn--base {
  background: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.account .select2-selection__rendered,
.account .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1d1d1f !important;
}

.account .exists-error,
.account .exists-error a {
  color: #1d1d1f !important;
}

.account .text--danger {
  color: #c00 !important;
}

/* Verification / password reset – same as account (no dark overlay) */
.verification-section.banner-bg::after,
.verification-section.section-shape::before {
  display: none !important;
}

.verification-section {
  background: #f5f5f7 !important;
}

/* ========== Dashboard – same typography & gradients as original CSS ========== */
.dashboard {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    Inter, system-ui, sans-serif !important;
}

/* Base color / accent in dashboard uses theme (same as original) */
.dashboard .base-color {
  color: hsl(var(--main)) !important;
}

/* Navigation bar – Modern Minimalistic White */
.dashboard .dashboard-header.dashboard-nav {
  background: #ffffff !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  padding: 0 28px !important;
  min-height: 64px !important;
  border-radius: 0 !important; /* Remove bottom rounding for a cleaner join */
}

.dashboard .dashboard__right .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dashboard .dashboard__right .dashboard-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.dashboard .dashboard-nav .dashboard-header__inner {
  padding: 12px 0 !important;
  align-items: center !important;
  gap: 20px !important;
}

.dashboard .dashboard-nav .dashboard-header__left {
  align-items: center !important;
  gap: 16px !important;
}

.dashboard .dashboard-nav .title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  margin: 0 !important;
}

.dashboard .dashboard-nav .dashboard-header__right {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.dashboard .dashboard-nav .user-info__button {
  padding: 6px 14px 6px 8px !important;
  border-radius: var(--radius-pill) !important;
  background: var(--surface-container-lowest) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.12, 0, 0.39, 0) !important;
}

.dashboard .dashboard-nav .user-info__button:hover {
  background: var(--surface-container-low) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.dashboard .dashboard-nav .user-info__thumb {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.dashboard .dashboard-nav .user-info__profile {
  text-align: left !important;
}

.dashboard .dashboard-nav .user-info__name {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #1d1d1f !important;
  margin-bottom: 0 !important;
}

.dashboard .dashboard-nav .user-info__desc {
  font-size: 0.75rem !important;
  color: var(--on-surface-variant) !important;
  opacity: 0.9 !important;
}

.dashboard .dashboard-nav .user-info__desc .icon {
  color: #1d1d1f !important;
  margin-left: 4px;
}

.dashboard .dashboard-nav .dashboard-header__shape {
    display: none !important;
}

.dashboard .dashboard-nav .dashboard-body__bar-icon {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface-container-high) !important;
  color: var(--on-surface) !important;
}

/* Fallback header – modern white */
.dashboard .dashboard-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;
}

.dashboard .dashboard-header .title {
  color: #1d1d1f !important;
  font-weight: 700 !important;
}

.dashboard .dashboard-header .title {
  color: var(--on-surface) !important;
  -webkit-text-fill-color: var(--on-surface);
}

.dashboard .dashboard-header .user-info__name,
.dashboard .dashboard-header .user-info__desc,
.dashboard .dashboard-header .user-info__desc .icon {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.dashboard .dashboard-header .user-info-dropdown {
  background: hsl(var(--white)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--apple-border) !important;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1) !important;
}

.dashboard .dashboard-header .user-info-dropdown__link,
.dashboard .dashboard-header .user-info-dropdown__link .text {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.dashboard {
  background: var(--gradient-body) !important;
  min-height: 100vh !important;
}

.dashboard .dashboard__right {
  background: var(--surface) !important;
  padding-left: 280px !important;
}

@media screen and (max-width: 991px) {
  .dashboard .dashboard__right {
    padding-left: 0 !important;
  }
}

.dashboard .dashboard-body {
  color: #1d1d1f !important;
}

.dashboard .dashboard-body p,
.dashboard .dashboard-body td,
.dashboard .dashboard-body th,
.dashboard .dashboard-body li,
.dashboard .dashboard-body label,
.dashboard .dashboard-body .form--label,
.dashboard .dashboard-body h1,
.dashboard .dashboard-body h2,
.dashboard .dashboard-body h3,
.dashboard .dashboard-body h4,
.dashboard .dashboard-body h5,
.dashboard .dashboard-body h6 {
  color: #1d1d1f !important;
}

.dashboard .dashboard-body .text-muted,
.dashboard .dashboard-body small,
.dashboard .dashboard-body .text-secondary {
  color: #6e6e73 !important;
}

/* Sidebar – Apple frosted glass with subtle gradient */
/* --- Sidebar: The Digital Curator (Slate & Minimalism) --- */
.dashboard .sidebar-menu {
  background: var(--surface-container) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  border-right: none !important;
  box-shadow: none !important;
  width: 280px !important;
  height: 100vh !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 1000 !important;
  padding: 24px 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.dashboard .sidebar-menu__inner {
  padding: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

@media screen and (max-width: 991px) {
  .dashboard .sidebar-menu {
    border-radius: 0 !important;
    box-shadow: none;
    border-right: none !important;
  }
}

/* Sidebar – text always visible (high contrast) */
.dashboard .sidebar-menu-list__link,
.dashboard .sidebar-menu-list__link .icon,
.dashboard .sidebar-menu-list__link .text,
.dashboard .sidebar-submenu-list__link,
.dashboard .sidebar-submenu-list__link .text {
  color: var(--secondary) !important;
  -webkit-text-fill-color: var(--secondary);
  font-weight: 500 !important;
}

.dashboard .sidebar-menu-list__title {
  padding-left: 24px !important;
  margin-top: 24px !important;
  margin-bottom: 8px !important;
}

.dashboard .sidebar-menu-list__title .text {
  color: var(--apple-text-tertiary) !important;
  -webkit-text-fill-color: var(--apple-text-tertiary);
}

.dashboard .sidebar-menu__close {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.dashboard .sidebar-menu__top .form--control::placeholder {
  color: var(--apple-text-tertiary) !important;
}

/* Sidebar hover – subtle, clean; text stays visible */
.dashboard .sidebar-menu-list__link {
  padding: 12px 24px !important;
  margin: 4px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  background: transparent !important;
}

.dashboard .sidebar-menu-list__link:hover {
  color: var(--primary) !important;
}

.dashboard .sidebar-menu-list__link:hover .icon,
.dashboard .sidebar-menu-list__link:hover .text {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary);
}

/* Vertical Pill Active Indicator */
.dashboard .sidebar-menu-list__item.active > a,
.dashboard .sidebar-menu-list__link.active {
  background: transparent !important;
}

.dashboard .sidebar-menu-list__item.active > a::before,
.dashboard .sidebar-menu-list__link.active::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 24px !important;
  background-color: var(--primary) !important;
  border-radius: 0 4px 4px 0 !important;
}

.dashboard .sidebar-menu-list__item.active > a .icon,
.dashboard .sidebar-menu-list__item.active > a .text,
.dashboard .sidebar-menu-list__link.active .icon,
.dashboard .sidebar-menu-list__link.active .text {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary);
}

.dashboard .sidebar-menu-list__item.has-dropdown>a:after,
.dashboard .sidebar-menu-list__item.has-dropdown.active>a:after {
  color: #6e6e73 !important;
}

/* Submenu – clean hover, no bullet overlap */
.dashboard .sidebar-submenu-list__link {
  padding: 8px 14px 8px 36px !important;
  margin-left: 12px !important;
  position: relative !important;
}

.dashboard .sidebar-submenu-list__link::before {
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 6px !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
  border-radius: 50% !important;
}

.dashboard .sidebar-submenu-list__link:hover,
.dashboard .sidebar-submenu-list__item.active>a {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.dashboard .sidebar-submenu-list__link:hover .text,
.dashboard .sidebar-submenu-list__item.active>a .text {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

.dashboard .sidebar-submenu-list__link:hover::before,
.dashboard .sidebar-submenu-list__item.active>a::before {
  border-color: #1d1d1f !important;
}

.dashboard .sidebar-menu-list__link.active {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
  background: rgba(0, 0, 0, 0.06) !important;
}

.dashboard .sidebar-menu-list__link.active .icon,
.dashboard .sidebar-menu-list__link.active .text {
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

/* Sidebar icons – ensure Font Awesome & Line Awesome are always visible */
.dashboard .sidebar-menu-list__link .icon i,
.dashboard .sidebar-menu-list__link .icon .fas,
.dashboard .sidebar-menu-list__link .icon .far,
.dashboard .sidebar-menu-list__link .icon .fa-solid,
.dashboard .sidebar-menu-list__link .icon .fa-regular,
.dashboard .sidebar-menu-list__link .icon .las,
.dashboard .sidebar-menu-list__link .icon .lab {
  font-size: 1.25rem !important;
  transition: color 0.2s ease !important;
}

/* Dashboard header (dark) – all icons white */
.dashboard .dashboard-header .icon,
.dashboard .dashboard-header .icon i,
.dashboard .dashboard-header .fas,
.dashboard .dashboard-header .far,
.dashboard .dashboard-header .fab,
.dashboard .dashboard-header .fa-solid,
.dashboard .dashboard-header .fa-regular,
.dashboard .dashboard-header .fa-brands,
.dashboard .dashboard-header .las,
.dashboard .dashboard-header .lab,
.dashboard .dashboard-header .dashboard-body__bar-icon,
.dashboard .dashboard-header .dashboard-body__bar-icon i {
  color: var(--on-surface) !important;
  -webkit-text-fill-color: var(--on-surface);
}

/* Sidebar logo area – light theme */
.dashboard .sidebar-logo img {
  filter: none !important;
}

/* ========== Customer dashboard – Apple style (typography, buttons, rounded, clean UI) ========== */
/* --- Dashboard Body & Widgets: The Digital Curator Style --- */
.dashboard .dashboard-body {
  padding: 24px !important;
  background: var(--surface) !important;
}

.dashboard-widget {
  background: var(--surface-container-lowest) !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  box-shadow: var(--shadow-ambient) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.dashboard-widget:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 48px rgba(25, 28, 29, 0.1) !important;
}

.dashboard-widget__icon-box {
  flex-shrink: 0 !important;
}

.dashboard-widget__icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: var(--primary-fixed) !important;
  color: var(--on-primary-fixed) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
}

.dashboard-widget__icon i {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.dashboard-widget__content {
  flex: 1 !important;
}

.metrics-hero-card {
  background: #f8fafc !important; /* Very lite attractive color */
  border-radius: 40px !important;
  padding: 32px !important;
  box-shadow: var(--shadow-ambient) !important;
}

/* Vibrant Icon System */
.icon-vibrant {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
}

.icon-vibrant--blue { background: rgba(0, 122, 255, 0.12) !important; color: #007aff !important; }
.icon-vibrant--purple { background: rgba(175, 82, 222, 0.12) !important; color: #af52de !important; }
.icon-vibrant--orange { background: rgba(255, 149, 0, 0.12) !important; color: #ff9500 !important; }
.icon-vibrant--teal { background: rgba(48, 209, 88, 0.15) !important; color: #28a745 !important; }
.icon-vibrant--pink { background: rgba(255, 45, 85, 0.12) !important; color: #ff2d55 !important; }
.icon-vibrant--cyan { background: rgba(100, 210, 255, 0.15) !important; color: #00b8d4 !important; }
.icon-vibrant--emerald { background: rgba(0, 255, 192, 0.12) !important; color: #00c896 !important; }
.icon-vibrant--gold { background: rgba(255, 215, 0, 0.12) !important; color: #ccac00 !important; }

.wallet-account-card {
  background: #f0f7f6 !important; /* Very lite attractive teal tint */
  border-radius: 32px !important;
  padding: 24px !important;
}

.curator-section-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--on-surface-variant) !important;
  font-size: 1rem !important;
  margin-bottom: 20px !important;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background-size: 200% 200% !important;
  animation: gradientFlow 6s ease infinite !important;
}

.messaging-efficiency-card {
  background: linear-gradient(135deg, #006b5f 0%, #00897b 50%, #006b5f 100%) !important;
  border-radius: 32px !important;
  padding: 32px !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
}

.messaging-efficiency-card .campaign-box {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  padding: 12px 16px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-align: right !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}


.messaging-efficiency-card .campaign-box .label {
  display: block !important;
  font-size: 0.65rem !important;
  opacity: 0.7 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
}

.messaging-efficiency-card .campaign-box .value {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
}

.messaging-efficiency-card .stat-label {
  font-size: 0.8125rem !important;
  opacity: 0.8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
}

.messaging-efficiency-card .stat-value {
  font-family: var(--font-display) !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  margin: 12px 0 20px 0 !important;
}

.messaging-efficiency-card .sub-stats {
  display: flex !important;
  gap: 24px !important;
}

.messaging-efficiency-card .sub-stat-item {
  display: flex !important;
  flex-direction: column !important;
}

.messaging-efficiency-card .sub-stat-label {
  font-size: 0.7rem !important;
  opacity: 0.7 !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}

.messaging-efficiency-card .sub-stat-value {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

.editorial-hero-banner {
  background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #004d40 100%) !important;
  border-radius: 40px !important;
  padding: 40px 48px !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  margin-top: 32px !important;
}

.editorial-hero-banner .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 980px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.editorial-hero-banner h2 {
  font-family: var(--font-display) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  margin: 16px 0 24px 0 !important;
  max-width: 700px !important;
  line-height: 1.2 !important;
}

.dashboard-widget__text {
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--on-surface-variant) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
}

.dashboard-widget__number {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--on-surface) !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Remove default color backgrounds from widgets */
.widget-blue, .widget-green, .widget-red, .widget-yellow, .widget-two, .widget-three {
  background: var(--surface-container-lowest) !important;
}

.dashboard-body__top {
  margin-bottom: 40px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}

.dashboard-body__top .left .title {
  font-size: 2.5rem !important;
  margin-bottom: 8px !important;
}

.dashboard-body__top .left .text {
  font-size: 1.125rem !important;
  color: var(--on-surface-variant) !important;
}

.dashboard .dashboard-body .fab,
.dashboard .dashboard-body .fa-brands,
.dashboard .dashboard-body i[class*="fa-brands"],
.dashboard .dashboard-body__top .fab,
.dashboard .dashboard-body__top .fa-brands,
.dashboard .dashboard-body__top .btn-icon .fab,
.dashboard .dashboard-body__top .btn-icon .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

.dashboard .dashboard-body .la,
.dashboard .dashboard-body .las,
.dashboard .dashboard-body .lar,
.dashboard .dashboard-body .lad,
.dashboard .dashboard-body .lal,
.dashboard .dashboard-body i[class^="la-"],
.dashboard .dashboard-body i[class*=" la-"],
.dashboard .dashboard-body .btn-icon .las,
.dashboard .dashboard-body__top .las,
.dashboard .dashboard-body__top .btn-icon .las {
  font-family: "Line Awesome Free" !important;
}

.dashboard .dashboard-body .lab,
.dashboard .dashboard-body i[class*=" lab "],
.dashboard .dashboard-body__top .lab,
.dashboard .dashboard-body__top .btn-icon .lab {
  font-family: "Line Awesome Brands" !important;
}

.dashboard .dashboard-header .title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
}

.dashboard .dashboard-body__top {
  margin-bottom: 28px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid var(--apple-border) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%) !important;
  padding-top: 4px !important;
  margin-top: -4px !important;
  border-radius: 0 0 12px 12px !important;
}

.dashboard .dashboard-body__top .left .text {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--apple-text-secondary) !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.dashboard .dashboard-body__top .right {
  gap: 12px !important;
}

.dashboard .dashboard-body .btn,
.dashboard .dashboard-body .btn--base,
.dashboard .dashboard-body .btn--info,
.dashboard .dashboard-body .btn--base-two,
.dashboard .dashboard-body .btn--danger,
.dashboard .dashboard-body .btn--success,
.dashboard .dashboard-body .btn--warning,
.dashboard .dashboard-body .btn-shadow {
  border-radius: var(--apple-radius-pill) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: -0.02em !important;
  padding: 12px 22px !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  font-family: var(--apple-font) !important;
  border: none !important;
  box-shadow: var(--apple-shadow-sm) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dashboard .dashboard-body .btn .btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  font-size: 1rem !important;
}

.dashboard .dashboard-body .btn .btn-icon i,
.dashboard .dashboard-body .btn .btn-icon .fas,
.dashboard .dashboard-body .btn .btn-icon .fa-solid,
.dashboard .dashboard-body .btn .btn-icon .far {
  font-size: inherit !important;
}

.dashboard .dashboard-body .btn--base,
.dashboard .dashboard-body .btn--base.btn-shadow {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

.dashboard .dashboard-body .btn--base .btn-icon,
.dashboard .dashboard-body .btn--base .btn-icon i,
.dashboard .dashboard-body .btn--base .btn-icon .fas,
.dashboard .dashboard-body .btn--base .btn-icon .fa-solid {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.dashboard .dashboard-body .btn--base:hover,
.dashboard .dashboard-body .btn--base:focus {
  background: var(--apple-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

.dashboard .dashboard-body .btn--info,
.dashboard .dashboard-body .btn--info.btn-shadow {
  background: var(--gradient-button) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
}

.dashboard .dashboard-body .btn--info .btn-icon,
.dashboard .dashboard-body .btn--info .btn-icon i,
.dashboard .dashboard-body .btn--info .btn-icon .fas,
.dashboard .dashboard-body .btn--info .btn-icon .fa-solid {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.dashboard .dashboard-body .btn--info:hover,
.dashboard .dashboard-body .btn--info:focus {
  background: var(--gradient-button-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

.dashboard .dashboard-body .btn--base-two {
  background: var(--glass-bg) !important;
  border: 1px solid var(--apple-border-strong) !important;
  color: var(--apple-text) !important;
  -webkit-text-fill-color: var(--apple-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.9) !important;
}

.dashboard .dashboard-body .btn--base-two .btn-icon,
.dashboard .dashboard-body .btn--base-two .btn-icon i,
.dashboard .dashboard-body .btn--base-two .btn-icon .fas,
.dashboard .dashboard-body .btn--base-two .btn-icon .fa-solid {
  color: var(--apple-text) !important;
  -webkit-text-fill-color: var(--apple-text);
}

.dashboard .dashboard-body .btn--base-two:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-1px);
  box-shadow: var(--glass-shadow), var(--glass-inset) !important;
}

/* Black/dark buttons in dashboard – white text and white icons */
.dashboard .dashboard-body .btn--danger,
.dashboard .dashboard-body .btn--danger.btn-shadow {
  background: var(--apple-text) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

.dashboard .dashboard-body .btn--danger .btn-icon,
.dashboard .dashboard-body .btn--danger .btn-icon i,
.dashboard .dashboard-body .btn--danger .btn-icon .fas,
.dashboard .dashboard-body .btn--danger .btn-icon .fa-solid,
.dashboard .dashboard-body .btn--danger .btn-icon .las,
.dashboard .dashboard-body .btn--danger .btn-icon .lab {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.dashboard .dashboard-body .btn--success,
.dashboard .dashboard-body .btn--success.btn-shadow {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

.dashboard .dashboard-body .btn--success .btn-icon,
.dashboard .dashboard-body .btn--success .btn-icon i,
.dashboard .dashboard-body .btn--success .btn-icon .fas,
.dashboard .dashboard-body .btn--success .btn-icon .fa-solid,
.dashboard .dashboard-body .btn--success .btn-icon .las,
.dashboard .dashboard-body .btn--success .btn-icon .lab {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.dashboard .dashboard-body .btn--warning,
.dashboard .dashboard-body .btn--warning.btn-shadow {
  background: linear-gradient(180deg, #2d2d2f 0%, #1d1d1f 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

.dashboard .dashboard-body .btn--warning .btn-icon,
.dashboard .dashboard-body .btn--warning .btn-icon i,
.dashboard .dashboard-body .btn--warning .btn-icon .fas,
.dashboard .dashboard-body .btn--warning .btn-icon .fa-solid,
.dashboard .dashboard-body .btn--warning .btn-icon .las,
.dashboard .dashboard-body .btn--warning .btn-icon .lab {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.dashboard .dashboard-body .btn:active,
.dashboard .dashboard-body .btn--base:active,
.dashboard .dashboard-body .btn--info:active {
  transform: scale(0.98);
}

/* Dashboard widgets – Apple glass cards with gradient */
.dashboard .dashboard-widget,
.dashboard .dashboard-widget.widget-two {
  border-radius: 18px !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), var(--glass-inset) !important;
  padding: 22px !important;
  background: var(--gradient-card) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.dashboard .dashboard-widget:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), var(--glass-inset) !important;
  transform: translateY(-3px);
}

.dashboard .dashboard-widget__icon-box {
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.8) !important;
}

.dashboard .dashboard-widget__icon {
  border-radius: 12px !important;
  width: 44px !important;
  height: 44px !important;
}

.dashboard .dashboard-widget .dashboard-widget__text {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--apple-text-secondary) !important;
  letter-spacing: -0.01em !important;
}

.dashboard .dashboard-widget .dashboard-widget__number {
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  color: var(--apple-text) !important;
  letter-spacing: -0.03em !important;
}

.dashboard .sidebar-menu-list__link {
  border-radius: var(--apple-radius-sm) !important;
  padding: 10px 14px !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  letter-spacing: -0.01em !important;
}

.dashboard .sidebar-menu-list__title .text {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--on-surface-variant) !important;
  -webkit-text-fill-color: var(--on-surface-variant);
  opacity: 0.8;
}

.dashboard .dashboard-header .user-info-dropdown {
  border-radius: var(--apple-radius-md) !important;
  overflow: hidden;
}

.dashboard .dashboard-header .user-info-dropdown__link {
  padding: 12px 16px !important;
  font-size: 0.9375rem !important;
  border-radius: 0 !important;
}

/* Tables & cards – Apple glass style */
.dashboard .dashboard-table,
.dashboard .dashboard-body .custom--card {
  border-radius: 18px !important;
  overflow: hidden;
  background: var(--gradient-card) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), var(--glass-inset) !important;
}

/* Latest Transaction / Latest Contact – glass panels */
.dashboard .transaction-table-inner {
  border-radius: 18px !important;
  overflow: hidden;
  background: var(--gradient-card) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), var(--glass-inset) !important;
  padding: 22px !important;
}

.dashboard .transaction-table-inner h6,
.dashboard .dashboard-body .col-lg-6>h6 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 16px !important;
  color: var(--apple-text) !important;
}

/* Latest Contact column – glass card */
.dashboard .dashboard-body .col-lg-6:has(> .dashboard-table) {
  border-radius: 18px !important;
  overflow: hidden;
  background: var(--gradient-card) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow), var(--glass-inset) !important;
  padding: 22px !important;
}

.dashboard .transaction-table-inner .dashboard-table,
.dashboard .dashboard-body .col-lg-6 .dashboard-table {
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid var(--apple-border) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.5) !important;
}

.dashboard .dashboard-table .table thead th {
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  letter-spacing: -0.01em !important;
  color: var(--apple-text-secondary) !important;
  border-bottom: 1px solid var(--apple-border) !important;
  padding: 14px 16px !important;
}

.dashboard .dashboard-table .table tbody td {
  padding: 14px 16px !important;
  font-size: 0.9375rem !important;
  color: var(--apple-text) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dashboard .dashboard-table .table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Empty state – clean, modern “no data” */
.dashboard .empty-message-row td {
  padding: 48px 24px !important;
  border: none !important;
  background: transparent !important;
}

.dashboard .empty-message-row .py-5 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 40px 20px !important;
}

.dashboard .empty-message-row .empty-message {
  max-width: 120px !important;
  height: auto !important;
  opacity: 0.85 !important;
}

.dashboard .empty-message-row .d-block {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: var(--apple-text-secondary) !important;
  letter-spacing: -0.01em !important;
}

.dashboard .empty-message-row .text-muted,
.dashboard .empty-message-row .fs-13 {
  font-size: 0.8125rem !important;
  color: var(--apple-text-tertiary) !important;
}

.dashboard .dashboard-body h6:not(.dashboard-widget__text):not(.alert__title) {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 12px !important;
}

/* Alerts – glass style with subtle gradient */
.dashboard .dashboard-body .alert {
  border-radius: 14px !important;
  border: 1px solid var(--glass-border) !important;
  font-family: var(--apple-font) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 250, 0.9) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.8) !important;
}

.dashboard .dashboard-body .alert .alert__icon,
.dashboard .dashboard-body .alert .alert__icon i,
.dashboard .dashboard-body .alert .alert__icon .las {
  color: inherit !important;
  opacity: 1 !important;
}

.dashboard .dashboard-body .alert .alert__title {
  font-weight: 600 !important;
  font-size: 1rem !important;
}

/* Dashboard body padding for clean layout */
.dashboard .dashboard-body {
  padding: 24px !important;
}

/* Inputs – Apple style with subtle glass */
.dashboard .dashboard-body .form--control,
.dashboard .dashboard-body input:not([type="checkbox"]):not([type="radio"]):not(.select2-search__field),
.dashboard .dashboard-body select,
.dashboard .dashboard-body textarea {
  border-radius: 12px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--apple-border) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.5) !important;
  color: #1d1d1f !important;
}

/* Fix for browser autofill text visibility */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: #1d1d1f !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.9) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.dashboard .dashboard-body .form--control:focus,
.dashboard .dashboard-body input:focus:not(.select2-search__field),
.dashboard .dashboard-body select:focus,
.dashboard .dashboard-body textarea:focus {
  outline: none !important;
  box-shadow: var(--dashboard-focus-ring) !important;
}

/* Ensure table wrappers keep glass radius (no override) */
.dashboard .dashboard-body .custom--card .card-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
  border-bottom: 1px solid var(--apple-border) !important;
}

@media screen and (max-width: 767px) {
  .dashboard .dashboard-body {
    padding: 20px 16px !important;
  }
}

/* ========== Tabs ========== */
.custom--tab .nav-item .nav-link {
  border-radius: var(--apple-radius-pill) !important;
  font-weight: 500;
  color: #6e6e73 !important;
  -webkit-text-fill-color: #6e6e73;
}

.custom--tab .nav-item .nav-link.active {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #1d1d1f !important;
  -webkit-text-fill-color: #1d1d1f;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--apple-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ========== Breadcrumb ========== */
.breadcrumb-item a,
.breadcrumb-item.active {
  color: var(--apple-text-secondary) !important;
}

.breadcrumb-item a:hover {
  color: var(--apple-text) !important;
}

/* ========== Modals ========== */
.custom--modal .modal-content {
  border-radius: var(--apple-radius-lg) !important;
  border: 1px solid var(--apple-border);
  box-shadow: var(--apple-shadow-lg);
}

.custom--modal .modal-header {
  background: var(--apple-bg) !important;
  border-bottom: 1px solid var(--apple-border) !important;
}

.custom--modal .modal-title,
.custom--modal .modal-body,
.custom--modal p,
.custom--modal label {
  color: #1d1d1f !important;
}

.offcanvas .offcanvas-title,
.offcanvas .offcanvas-body {
  color: #1d1d1f !important;
}

/* ========== Payment items ========== */
.payment-item {
  border-radius: var(--apple-radius-sm) !important;
}

.payment-item:has(.payment-item__radio:checked) {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid var(--apple-border-strong);
}

/* ========== Text utilities – B&W ========== */
.text--success {
  color: var(--apple-text) !important;
}

.text--danger {
  color: var(--apple-text) !important;
}

.base-color {
  color: var(--apple-text) !important;
}

/* ========== Scroll to top ========== */
.scroll-top {
  background: var(--apple-primary) !important;
  color: #fff !important;
  border-radius: 50%;
  box-shadow: var(--apple-shadow-md);
}

.scroll-top:hover {
  background: var(--apple-primary-hover) !important;
  color: #fff !important;
}

.scroll-top i {
  color: #fff !important;
}

/* ========== Breadcrumb page ========== */
.breadcrumb__title {
  color: var(--apple-text) !important;
}

.breadcrumb__link {
  color: var(--apple-text-secondary) !important;
}

.breadcrumb__link:hover {
  color: var(--apple-text) !important;
}

.breadcrumb__item-text {
  color: var(--apple-text) !important;
}

/* ====================================================
   EXPANDABLE HOVER SIDEBAR (POLISHED)
==================================================== */
@media screen and (min-width: 992px) {

  /* Base Collapsed Sidebar */
  .dashboard .sidebar-menu {
    width: 80px !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
    z-index: 1040 !important;
    z-index: 1040 !important;
    overflow-x: hidden !important;
  }

  /* Keep main content padded only for the narrow sidebar */
  .dashboard .dashboard__right {
    width: 100% !important;
    padding-left: 80px !important;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .dashboard:has(.sidebar-menu:hover) .dashboard__right {
    padding-left: 300px !important;
  }

  .dashboard .sidebar-menu:hover~.dashboard__right {
    padding-left: 300px !important;
  }

  /* Center Icons and constrain width when collapsed */
  .dashboard .sidebar-menu-list__link {
    white-space: nowrap !important;
    transition: all 0.3s ease;
  }

  .dashboard .sidebar-menu-list__link .icon {
    min-width: 30px;
    text-align: center;
    transition: margin 0.3s ease;
  }

  /* FORMAT COLLAPSED STATE */
  .dashboard .sidebar-menu:not(:hover) .sidebar-menu-list__link {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    margin: 5px auto !important;
    /* Forces absolute centering regardless of container padding */
    border-radius: 12px !important;
  }

  .dashboard .sidebar-menu:not(:hover) .sidebar-menu-list__link .icon {
    margin-right: 0 !important;
    line-height: 1 !important;
    font-size: 20px !important;
  }

  /* FORMAT EXPANDED STATE (Fall back to Native values for perfect Chevron alignment) */
  .dashboard .sidebar-menu:hover .sidebar-menu-list__link {
    margin: 0 !important;
    border-radius: 5px !important;
    padding: 10px 15px !important;
    justify-content: flex-start !important;
    position: relative !important;
  }

  .dashboard .sidebar-menu:hover .sidebar-menu-list__link .icon {
    margin-right: 15px !important;
    font-size: 20px !important;
  }

  /* Hide text elements smoothly when collapsed */
  .dashboard .sidebar-menu:not(:hover) .sidebar-menu-list__title,
  .dashboard .sidebar-menu:not(:hover) .sidebar-menu-list__link .text {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0s !important;
    display: none !important;
  }

  .dashboard .sidebar-menu:not(:hover) .sidebar-menu-list__item.has-dropdown>a:after {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0s !important;
  }

  /* Close JS-opened submenus visually when collapsed */
  .dashboard .sidebar-menu:not(:hover) .sidebar-submenu {
    display: none !important;
  }

  /* ON HOVER - Expand to full previous sidebar style */
  .dashboard .sidebar-menu:hover {
    width: 300px !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
  }

  /* Fade text back in gently */
  .dashboard .sidebar-menu:hover .sidebar-menu-list__title,
  .dashboard .sidebar-menu:hover .sidebar-menu-list__link .text,
  .dashboard .sidebar-menu:hover .sidebar-menu-list__item.has-dropdown>a:after {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease 0.1s !important;
  }

  /* Mathematically true-center the chevron to the exact line height */
  .dashboard .sidebar-menu:hover .sidebar-menu-list__item.has-dropdown>a:after {
    top: 50% !important;
    margin-top: -6px !important;
  }

  .dashboard .sidebar-menu:hover .sidebar-menu-list__title {
    display: block !important;
  }

  /* Logo adjustment */
  .dashboard .sidebar-menu:not(:hover) .sidebar-logo img {
    display: none !important;
  }

  .dashboard .sidebar-menu__inner {
    padding-top: 10px !important;
  }

  .dashboard .sidebar-menu:not(:hover) .sidebar-logo__link {
    text-decoration: none !important;
    padding-left: 0 !important;
    display: flex;
    justify-content: center;
  }

  .dashboard .sidebar-menu:not(:hover) .sidebar-logo__link::after {
    content: "";
    display: block;
    width: 55px;
    height: 40px;
    background-image: var(--favicon-url, url('/assets/images/logoIcon/favicon.png'));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 5px;
  }

  /* Chatbox Scrollbar Hide - Clean Look */
.chatbox-wrapper::-webkit-scrollbar,
.chatbox-area__body::-webkit-scrollbar {
    display: none !important;
}

/* --- Global Toggle & Switch Polish (Digital Curator) --- */
html body .form--switch .form-check-input:checked,
html body .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    opacity: 0.85 !important;
}

html body .form--switch .form-check-input {
    background-color: #e5e5ea !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
  /* Enhance Scrollbar Customization for Sidebar */
  .dashboard .sidebar-menu::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
  }

  .dashboard .sidebar-menu::-webkit-scrollbar-thumb {
    background-color: transparent !important;
    border-radius: 10px !important;
  }

  .dashboard .sidebar-menu:hover::-webkit-scrollbar-thumb {
    background-color: hsl(var(--base) / 0.25) !important;
  }

  /* Make message read receipts (Ticks) visible inside right-side WhatsApp bubbles! */
  .single-message.message--right .message-status i {
    font-size: 14px !important;
  }

  .single-message.message--right .message-status i.text--secondary {
    color: #8696a0 !important;
    /* Authentic WhatsApp grey for sent/delivered */
  }

  .single-message.message--right .message-status i.text--info {
    color: #4fc3f7 !important;
    /* Authentic WhatsApp blue tick */
  }
}

/* Auth Screens Compact Viewport Mod */
.account {
  padding-block: 40px !important;
  margin-bottom: 20px !important;
}

.account .account-form {
  padding: 30px !important;
}

.account .account-form__title {
  font-size: 1.5rem !important;
  margin-bottom: 5px !important;
}

.account .account-form__desc {
  margin-bottom: 15px !important;
}

.account .site-logo {
  margin-bottom: 10px !important;
}

.account .site-logo img {
  max-height: 40px !important;
}

.account .form-group {
  margin-bottom: 10px !important;
}

.account .form-group label {
  margin-bottom: 4px !important;
}

.account .form--control {
  padding: 8px 15px !important;
  height: 42px !important;
}

.have-account {
  margin-top: 10px !important;
}

/* Password Eye Icon Polish */
.password-show-hide,
.toggle-password {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 15px !important;
  z-index: 10 !important;
  font-size: 11px !important;
  color: #adb5bd !important;
  opacity: 0.8 !important;
  cursor: pointer !important;
}

.password-show-hide:hover,
.toggle-password:hover {
  opacity: 1 !important;
  color: #6c757d !important;
}

/* Chat Media Action Buttons Height Sync */
.chat-media__btn,
.chat-send-area .btn-group .btn-item {
  height: 46px !important;
  width: 46px !important;
  font-size: 18px !important;
  border-radius: 8px !important;
}

/* Chat Header Border Polish */
.chat-box__header {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  background-color: #ffffff !important;
}

/* WhatsApp Authentic Background (#ECE5DD) */
.chatbox-area__body,
.chat-box,
.msg-body {
  background-color: #ECE5DD !important;
  background-image: none !important;
}

/* Doodle Blend Fix */
.chat-box__shape {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.chat-box__shape img {
  opacity: 0.08 !important;
  mix-blend-mode: multiply !important;
  filter: grayscale(1) !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar Polish - Advanced Decoupling & Gap */
.chatbox-area__left {
    background-color: #f8f9fa !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    width: 380px !important; /* Reduced from 430px */
}

.chatbox-wrapper__header {
    background-color: #f8f9fa !important;
    padding: 16px 14px !important; /* Reduced from 24px */
    border-bottom: none !important;
}

.chatbody {
    background-color: #f8f9fa !important;
    padding-top: 24px !important; /* THE GAP - Push list away from header */
}

.chat-list {
    padding: 0 16px !important;
}

/* Chat Header Border Polish */
.chat-box__header {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  background-color: #ffffff !important;
  position: relative;
  z-index: 10;
}

/* Search Box Refinement */
.search-form input.form--control.conversation-search {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    height: 40px !important; /* Smaller Height */
    padding-left: 44px !important;
    font-size: 13px !important;
}

.search-form__icon {
    left: 18px !important;
    color: rgba(0, 0, 0, 0.25) !important; /* Lighter magnifier */
    font-size: 14px !important;
}

/* Account Dropdown Refinement */
.chatbox-wrapper__header .select2-container--default .select2-selection--single {
    min-height: 40px !important; /* Smaller Height */
    height: 40px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
}

.chatbox-wrapper__header .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    font-size: 13px !important;
}

/* Account Dropdown Refinement - Ultra Specific */
html body .dashboard .dashboard-body .chatbox-wrapper__header .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 24px !important; /* Fix: Down arrow does not have a right margin - Increased */
    top: 50% !important;
    transform: translateY(-50%) !important;
}

html body .dashboard .dashboard-body .chatbox-wrapper__header .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(0, 0, 0, 0.4) transparent transparent transparent !important;
}

/* Message Input Padding - Ultra Specific Nuclear Fix */
html body .dashboard .dashboard-body .input-area .message-input {
    padding-left: 24px !important; /* Base padding to move cursor away from left edge */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

html body .dashboard .dashboard-body .input-area .emoji-icon {
    left: 18px !important;
    z-index: 20 !important;
}

/* Adjust textarea to make room for smiley icon - when bundled in input-area */
html body .dashboard .dashboard-body .input-area textarea.message-input {
    padding-left: 60px !important; /* More space for icons + cursor - Increased to 60px */
}

/* Chat Dropdown Arrow Polish */
.message-action-btn svg {
  color: inherit !important;
  fill: currentColor !important;
  opacity: 0.4 !important;
}

.message-action-btn:hover svg {
  opacity: 0.8 !important;
}

/* Fix User Profile Dropdown Hover Contrast */
.dashboard .dashboard-header .user-info-dropdown__link:hover {
  background-color: var(--surface-container) !important;
}

.dashboard .dashboard-header .user-info-dropdown__link:hover .text {
  color: var(--on-surface) !important;
}

.dashboard .dashboard-header .user-info-dropdown__link:hover .icon {
  color: var(--primary) !important;
}

/* --- Subscription Page UI Polish --- */

/* 1. Active Plan Card UI Polish */
.dashboard .active-card {
  background: var(--gradient-card) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 2px solid var(--primary) !important; /* Fix: Active plan needs a distinct border */
  box-shadow: 0 10px 30px rgba(0, 107, 95, 0.15) !important;
  border-radius: 20px !important;
}

.dashboard .active-card .active-card__title {
  color: var(--apple-text-primary) !important;
}

.dashboard .active-card,
.dashboard .active-card .active-card__desc,
.dashboard .active-card .text-list__item,
.dashboard .active-card .active-plan-title,
.dashboard .active-card label,
.dashboard .active-card p,
.dashboard .active-card .link {
  color: var(--apple-text-secondary) !important;
}

.dashboard .active-card .text--base {
  color: var(--apple-text-primary) !important;
  font-weight: 500 !important;
}

/* Fix "Renew Now" button visibility in Active Card - Unified with Design System */
.dashboard .active-card .btn--base {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 980px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 107, 95, 0.2) !important;
}

.dashboard .active-card .btn--base:hover {
  background-color: var(--apple-primary-hover) !important;
  transform: translateY(-1px);
}

/* Active Card Badge Polish */
.dashboard .active-card__badge {
  background-color: rgba(37, 211, 102, 0.1) !important;
  color: #075e54 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.dashboard .active-card__badge::after {
  background-color: #25d366 !important;
  border-color: #ffffff !important;
}

/* 2. Feature Remaining List Layout */
.dashboard .plan-details__item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08) !important;
  padding: 12px 0 !important;
  margin-bottom: 0 !important;
  font-size: 14px !important;
  color: var(--apple-text-primary) !important;
}

.dashboard .plan-details__item:last-child {
  border-bottom: none !important;
}

.dashboard .plan-details__item .item-title {
  color: var(--apple-text-secondary) !important;
  font-weight: 500 !important;
}

/* --- Pricing Card - Clean SaaS Style Overrides --- */

/* 1. Base Card Layout and Shell */
.pricing-card,
.pricing-card.card-two,
.pricing-card.popular {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  padding: 32px 24px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02) !important;
}

/* Optional: Slight highlight for popular plan */
.pricing-card.popular {
  border: 2px solid #25d366 !important;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.12) !important;
  position: relative !important;
}

/* 2. Top Header (Title, Desc, Price) */
.pricing-card__top {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
  text-align: left !important;
}

.pricing-card__title {
  color: #111b21 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.pricing-card__desc {
  color: #54656f !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  margin-bottom: 24px !important;
}

/* 3. Price Block */
.pricing-card__number {
  color: #111b21 !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding-bottom: 24px !important;
  margin-bottom: 24px !important;
  justify-content: flex-start !important;
}

.pricing-card__number .currency-type {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #111b21 !important;
  margin-right: 4px !important;
}

.pricing-card.card-two .yearly_price,
.pricing-card.card-two .monthly_price,
.pricing-card.popular .yearly_price,
.pricing-card.popular .monthly_price {
  color: #111b21 !important;
}

/* 4. Feature List */
.pricing-card .pricing-list {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.pricing-card .pricing-list__item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 0 !important;
  color: #111b21 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

.pricing-card .pricing-list__item:last-child {
  border-bottom: none !important;
}

.pricing-card .pricing-list__item span {
  color: #111b21 !important;
  font-weight: 600 !important;
}

.pricing-card .pricing-list__item-icon {
  color: #111b21 !important;
  width: 24px;
}

/* 5. Buy Now Button */
.pricing-card__btn {
  margin-top: 32px !important;
}

html body .chatbox-wrapper__tab .nav-link {
    font-size: 9px !important; /* More compact */
    padding: 3px 8px !important; /* Reduced height and width */
    line-height: normal !important;
    min-height: auto !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    background-color: #ffffff !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
}

.chatbox-wrapper__tab .nav-link.active {
    background-color: #e7f7ef !important;
    border: 1px solid rgba(37, 211, 102, 0.2) !important;
    color: #128c7e !important;
}
.pricing-card .btn--base {
  background: var(--primary) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  padding: 14px 24px !important;
  border: none !important;
  font-size: 16px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-sm) !important;
}

.pricing-card .btn--base:hover {
  background: var(--apple-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Badge for popular plan */
.pricing-card.popular .pricing-card__badge {
  background-color: #25d366 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* --- Modern WhatsApp Accounts Grid UI --- */
.wa-btn-primary {
  background: var(--apple-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 24px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-sm) !important;
}

.wa-btn-primary:hover {
  background: var(--apple-primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
  color: #fff !important;
}

/* Card Styling */
.wa-account-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 24px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  height: 100%;
}

.wa-account-card:hover,
.wa-account-card:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-4px) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  z-index: 10;
}

.wa-card-default {
  border: 2px solid #25d366 !important;
}



/* Icon & Header */
.wa-card-icon {
  width: 48px;
  height: 48px;
  background: #e8f9ee !important;
  color: #25d366 !important;
  border-radius: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.wa-sync-icon {
  color: #aebac1;
  font-size: 18px;
  transition: color 0.2s ease;
}

.wa-sync-icon:hover {
  color: #111b21;
}

/* Body */
.wa-business-name {
  color: #111b21 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}

.wa-phone-number {
  font-size: 14px !important;
  color: #54656f !important;
}

/* Badges */
.wa-account-card .badge--success,
.wa-account-card .badge--primary,
.wa-account-card .badge--danger {
  border-radius: 20px !important;
  padding: 6px 12px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  border: none !important;
}

.wa-account-card .badge--success {
  background-color: #dcf6e3 !important;
  color: #1a6f3a !important;
}

.wa-account-card .badge--primary {
  background-color: #c1e5f5 !important;
  color: #1a5c78 !important;
}

.wa-account-card .badge--danger {
  background-color: #ffe5e5 !important;
  color: #d32f2f !important;
}

.wa-badge {
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
}

.wa-badge-primary {
  background: rgba(37, 211, 102, 0.1) !important;
  color: #1a6f3a !important;
}

.wa-badge-light {
  background: #f0f2f5 !important;
  color: #54656f !important;
}

/* Actions */
.wa-action-btn {
  color: #54656f !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px !important;
  border-radius: 8px !important;
  font-size: 18px !important;
}

.wa-action-btn:hover {
  background: #f0f2f5 !important;
  color: #111b21 !important;
}

.wa-dropdown {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 8px 0 !important;
  min-width: 240px !important;
  width: max-content !important;
  max-width: 90vw !important;
  z-index: 1050 !important;
  margin-bottom: 8px !important;
}

.wa-dropdown .dropdown-item {
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #111b21 !important;
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.wa-dropdown .dropdown-item:hover {
  background: #f8f9fa !important;
  color: #005d63 !important;
}

.wa-dropdown .dropdown-item i {
  width: 20px;
  font-size: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .wa-dashboard-wrapper {
    padding: 16px;
  }
}

/* Strip white background from profile/settings topbar tabs */
.dashboard .profile-page-wrapper {
  background-color: transparent !important;
  border-bottom: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 24px !important;
}

/* Fix generic topbar hover bugs natively derived from main.css */
.profile-page-wrapper .profile-list__link {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease !important;
  transform-origin: center bottom;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  color: var(--on-surface-variant) !important;
}

.profile-page-wrapper .profile-list__link.active {
  color: var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
}

.profile-page-wrapper .profile-list__link:not(.active):hover {
  transform: translateY(-2px) scale(1.04) !important;
  color: #111b21 !important;
  background-color: transparent !important;
}

.profile-page-wrapper .profile-list__link.active .profile-list__icon,
.profile-page-wrapper .profile-list__link:hover .profile-list__icon {
  color: inherit !important;
}

/* Sidebar Hover Modernization */
.dashboard .sidebar-menu-list__link {
  transition: box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.dashboard .sidebar-menu-list__link:not(.active):hover {
  background-color: transparent !important;
  box-shadow: inset 0 0 0 1.5px #25d366 !important;
}

/* Dashboard Clean Naked Icons */
.dashboard .dashboard-widget__icon-box {
  background-color: transparent !important;
  box-shadow: none !important;
}

.dashboard .dashboard-widget__icon {
  background-color: transparent !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 1.75px solid currentColor !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.dashboard .dashboard-widget__icon i {
  font-size: 24px !important;
}

.dashboard .widget-blue .dashboard-widget__icon {
  color: #2563eb !important;
}

.dashboard .widget-purple .dashboard-widget__icon {
  color: #8b5cf6 !important;
}

.dashboard .widget-red .dashboard-widget__icon {
  color: #dc2626 !important;
}

.dashboard .widget-green .dashboard-widget__icon {
  color: #16a34a !important;
}

/* --- ULTIMATE SELECT2 MULTIPLE FIX --- */

/* 1. Eliminate any styles from the top-level container that incorrectly inherited .form--control */
.select2-container.form--control {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  height: auto !important;
}

/* 2. Style the ACTUAL select2 box (the .select2-selection) to be the one and only Apple-style container */
.select2-container--default .select2-selection--multiple {
  background: #f5f5f7 !important;
  border: 1px solid var(--apple-border) !important;
  border-radius: var(--apple-radius-sm) !important;
  min-height: 48px !important;
  padding: 4px 10px !important;
}

/* 3. Strip all nested borders/backgrounds from internal elements */
.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-search.select2-search--inline,
body input.select2-search__field:not([type="checkbox"]):not([type="radio"]) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 0 !important;
}

/* 4. selected tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e5e5ea !important;
  border: 1px solid #d1d1d6 !important;
  border-radius: 12px !important;
  color: #1d1d1f !important;
  padding: 4px 8px !important;
  margin-top: 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #1d1d1f !important;
  border: none !important;
  background: transparent !important;
  position: relative !important;
  margin-right: 0 !important;
  font-weight: 500 !important;
}

/* ==========================================
   WhatsApp Template Preview UI
   ========================================== */
.wa-preview-window {
  background-color: #e5ddd5;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  max-width: 320px;
  margin-left: auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-preview-header {
  background-color: #075e54;
  color: #ffffff !important;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wa-preview-header__left,
.wa-preview-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-preview-header__left i,
.wa-preview-header__right i {
  font-size: 20px;
}

.wa-preview-header__avatar {
  width: 36px;
  height: 36px;
  background: #dfe5e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #919191;
  overflow: hidden;
}

.wa-preview-header__name {
  font-weight: 600;
  font-size: 13px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.wa-preview-header i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.wa-preview-body {
  padding: 10px 5%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wa-message-bubble {
  background-color: #ffffff;
  border-radius: 0 8px 8px 8px;
  padding: 8px;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  max-width: 95%;
  margin-bottom: 6px;
  color: #111b21;
}

.wa-message-tail {
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #ffffff transparent transparent;
}

.wa-message-content .header_text {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  color: #111b21;
}

.wa-message-content .body_text {
  font-size: 12.5px;
  line-height: 1.4;
  white-space: pre-wrap;
  margin-bottom: 4px;
  color: #111b21;
}

.wa-message-content .footer_text {
  font-size: 12px;
  color: #667781;
}

.wa-message-meta {
  font-size: 11px;
  color: #667781;
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

/* --- The Digital Curator: Input & Form System --- */
.form--control, 
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  background-color: var(--surface-container-high) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  color: var(--on-surface) !important;
  padding: 12px 18px !important;
  font-family: var(--font-body) !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.form--control:focus, 
.form-control:focus,
input:focus,
textarea:focus {
  background-color: var(--surface-container-highest) !important;
  box-shadow: 0 0 0 2px rgba(0, 107, 95, 0.15) !important;
  outline: none !important;
}

.form--control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--on-surface-variant) !important;
  opacity: 0.5 !important;
}

/* Select2 Modernization */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background-color: var(--surface-container-high) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--on-surface) !important;
  padding-left: 18px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}

.select2-dropdown {
  background-color: var(--surface-container-lowest) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-ambient) !important;
  overflow: hidden !important;
  margin-top: 4px !important;
}

.select2-results__option {
    padding: 10px 18px !important;
    color: var(--on-surface-variant) !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--surface-container-low) !important;
    color: var(--primary) !important;
}

/* Checkbox & Radio Modernization */
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}


.header_media img,
.header_media video {
  border-radius: 6px;
  width: 100%;
}

/* --- The Digital Curator: Button System --- */
.btn {
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-family: var(--font-body) !important;
  padding: 12px 28px !important;
  transition: all 0.3s cubic-bezier(0.12, 0, 0.39, 0) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* Primary: Soulful Teal Gradient */
.btn--base, .btn-primary, .btn--info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%) !important;
  color: var(--on-primary) !important;
  border-radius: var(--radius-pill) !important; /* xl roundedness per DESIGN.md */
  box-shadow: 0 4px 12px rgba(0, 107, 95, 0.15) !important;
}

.btn--base:hover, .btn-primary:hover, .btn--info:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 107, 95, 0.25) !important;
  filter: brightness(1.1);
}

/* Secondary: Glassmorphic with Ghost Border */
.btn--base-two, .btn-secondary, .btn-secondary-outline {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: var(--secondary) !important;
  border: 1px solid var(--outline-variant) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: none !important;
}

.btn--base-two:hover, .btn-secondary:hover, .btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
}

.btn-icon {
    font-size: 1.1em !important;
}

/* --- Global Button Loading Fix --- */
.btn.disabled, .btn:disabled {
    opacity: 0.8 !important;
}

.spinner-border-sm {
    width: 1rem !important;
    height: 1rem !important;
    border-width: 0.15em !important;
    vertical-align: middle !important;
}

/* Ensure buttons don't jump/grow during loading */
button[type="submit"].btn-lg, 
button[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Chat Header Button Refinement --- */
.chatbox-area__body .chat-box__header .header-action-btn {
    background: transparent !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease !important;
}

.chatbox-area__body .chat-box__header .header-action-btn:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: #d1d5db !important;
}

/* Sent Template button */
.chatbox-area__body .chat-box__header .header-action-btn.template_button {
    color: #4b5563 !important;
}

/* Contact Info active/hover state */
.chatbox-area__body .chat-box__header .header-action-btn.contact-info-btn:hover,
.chatbox-area:not(.hide-contact-details) .chatbox-area__body .chat-box__header .header-action-btn.contact-info-btn {
    background: rgba(37, 211, 102, 0.05) !important;
    border-color: #25d366 !important;
    color: #25d366 !important;
}

/* Danger (Clear chat) button */
.chatbox-area__body .chat-box__header .header-action-btn.header-action-btn--danger {
    border-color: #fecaca !important; /* light red/destructive */
    color: #ef4444 !important;
}

.chatbox-area__body .chat-box__header .header-action-btn.header-action-btn--danger:hover {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* --- The Digital Curator: Auth & Entrance Screens --- */
.account .account-inner {
  background: var(--surface-container-lowest) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-ambient) !important;
  border: none !important;
  overflow: hidden !important;
}

.account-form {
  padding: 40px !important;
}

.account-form__title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  color: var(--on-surface) !important;
}

.account-form__desc {
  color: var(--on-surface-variant) !important;
  font-family: var(--font-body) !important;
}

.account .account-thumb {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--surface-container-low) !important;
}

.account .account-thumb img {
  mix-blend-mode: multiply !important;
  opacity: 0.8 !important;
}

/* Global Font Matching Fix */
body, p, li, span, label, input, textarea, select {
  font-family: var(--font-body) !important;
}

h1, h2, h3, h4, h5, h6, .title, .dashboard-widget__number {
  font-family: var(--font-display) !important;
}


/* --- The Digital Curator: Dashboard Layout Clusters --- */
.curator-section-title {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--secondary) !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.curator-section-title i {
  color: var(--primary) !important;
}

.wallet-account-card {
  background: var(--surface-container-low) !important;
  padding: 32px !important;
  border-radius: var(--radius-lg) !important;
  height: 100% !important;
}

.metrics-hero-card {
  background: var(--surface-container-lowest) !important;
  padding: 40px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-ambient) !important;
  height: 100% !important;
  position: relative !important;
}

/* Editorial Hero Banner */
.editorial-hero-banner {
  background: linear-gradient(135deg, #004d40 0%, #00251a 100%) !important;
  border-radius: var(--radius-lg) !important;
  padding: 60px !important;
  margin-top: 40px !important;
  position: relative !important;
  overflow: hidden !important;
  color: #ffffff !important;
}

.editorial-hero-banner::before {
  content: "" !important;
  position: absolute !important;
  right: -10% !important;
  top: -20% !important;
  width: 50% !important;
  height: 140% !important;
  background: radial-gradient(circle, rgba(99, 201, 185, 0.15) 0%, transparent 70%) !important;
  pointer-events: none !important;
}

.editorial-hero-banner .badge {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
  color: var(--primary-container) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  padding: 8px 16px !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  display: inline-block !important;
}

.editorial-hero-banner h2 {
  font-size: 3rem !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  max-width: 600px !important;
  margin-bottom: 32px !important;
}

.editorial-hero-banner .btn-group {
    gap: 16px !important;
}

.editorial-hero-banner .btn--white {
    background: #ffffff !important;
    color: #00251a !important;
}

.editorial-hero-banner .btn--outline-white {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}


/* --- The Digital Curator: Inbox & Messaging Redesign --- */
.chatbox-area {
  background: var(--surface) !important;
  border: none !important;
}

/* Inbox Sidebar (Left) */
.chatbox-area__left {
  background: var(--surface-container-low) !important;
  border-right: none !important;
  padding: 0 !important;
}

.chatbox-area__left .chatbox-wrapper__header {
  padding: 24px !important;
  background: transparent !important;
  border-bottom: none !important;
}

.chatbox-area__left .chatbody .chat-list {
  padding: 0 12px !important;
}

.chatbox-area__left .chatbody .chat-list__item {
  border-radius: var(--radius-md) !important;
  margin-bottom: 4px !important;
  border: none !important;
  padding: 12px 16px !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
}

.chatbox-area__left .chatbody .chat-list__item:hover {
  background: rgba(0, 107, 95, 0.05) !important;
}

.chatbox-area__left .chatbody .chat-list__item.active {
  background: var(--surface-container-lowest) !important;
  box-shadow: 0 4px 12px rgba(25, 28, 29, 0.04) !important;
}

.chatbox-area__left .chatbody .chat-list__item.active .name {
  color: var(--primary) !important;
}

.chatbox-area__left .chatbody .chat-list__content .name {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}

/* Message Box (Body) */
.chatbox-area__body {
  background: var(--surface) !important;
  border-left: none !important;
}

.chatbox-area__body .chat-box__header {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--outline-variant) !important;
  padding: 16px 24px !important;
}

.chatbox-area__body .chat-box__thread {
  background: var(--surface) !important;
  padding: 24px !important;
}

.chatbox-area__body .chat-box__footer {
  background: var(--surface) !important;
  padding: 16px 24px !important;
  border-top: 1px solid var(--outline-variant) !important;
}

.chatbox-area__body .chat-box__footer .chat-send-area {
  background: var(--surface-container-lowest) !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 16px !important;
  box-shadow: var(--shadow-ambient) !important;
}

.chatbox-area__body .chat-box__footer .form--control {
  background: transparent !important;
  padding: 8px 0 !important;
}


/* --- The Digital Curator: Table System --- */
.table, .custom--table {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
  background: transparent !important;
}

.table thead th, .custom--table thead th {
  background-color: var(--surface-container-low) !important;
  border: none !important;
  padding: 16px 24px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  color: var(--on-surface-variant) !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
}

.table thead th:first-child, .custom--table thead th:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

.table thead th:last-child, .custom--table thead th:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

.table tbody tr, .custom--table tbody tr {
  background-color: var(--surface-container-lowest) !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(25, 28, 29, 0.02) !important;
}

.table tbody tr:hover, .custom--table tbody tr:hover {
  background-color: var(--surface-container-low) !important;
  transform: scale(1.002) !important;
  box-shadow: 0 4px 12px rgba(25, 28, 29, 0.05) !important;
}

.table tbody td, .custom--table tbody td {
  padding: 20px 24px !important;
  border: none !important;
  vertical-align: middle !important;
  color: var(--on-surface) !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
}

.table tbody td:first-child, .custom--table tbody td:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

.table tbody td:last-child, .custom--table tbody td:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* Pagination Modernization */
.pagination {
  gap: 8px !important;
  margin-top: 32px !important;
}

.page-item .page-link {
  border: none !important;
  background-color: var(--surface-container-lowest) !important;
  color: var(--on-surface-variant) !important;
  border-radius: var(--radius-sm) !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow-ambient) !important;
}

.page-item.active .page-link {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
}

/* --- High-Specificity Unification for Pricing Buttons (Digital Curator) --- */
/* The "Nuclear Option" to override persistent black buttons from custom.css */
html body .dashboard-container .pricing-card .pricing-card__btn .btn,
html body .dashboard-container .pricing-card .pricing-card__btn .btn--base,
html body .dashboard-container .pricing-card .pricing-card__btn .purchaseBtn,
html body .dashboard-container .plan-wrapper .active-card .btn--base,
html body .dashboard-container .plan-wrapper .active-card .purchaseBtn {
    background-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border-radius: 980px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 107, 95, 0.2) !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .dashboard-container .pricing-card .pricing-card__btn .btn:hover,
html body .dashboard-container .pricing-card .pricing-card__btn .btn--base:hover,
html body .dashboard-container .pricing-card .pricing-card__btn .purchaseBtn:hover,
html body .dashboard-container .plan-wrapper .active-card .btn--base:hover,
html body .dashboard-container .plan-wrapper .active-card .purchaseBtn:hover {
    background-color: var(--apple-primary-hover) !important;
    background: var(--apple-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 107, 95, 0.3) !important;
}

/* --- Global Toggle & Switch Polish (Digital Curator) --- */
html body .form--switch .form-check-input:checked,
html body .form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    opacity: 0.85 !important;
}

html body .form--switch .form-check-input {
    background-color: #e5e5ea !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
/* --- WhatsApp-Style Image Message Padding (Digital Curator) --- */
.message-content.is-image-only {
    padding: 3px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13) !important;
    max-width: 320px !important;
    min-width: 120px !important;
}

.message--right .message-content.is-image-only {
    background-color: #dcf8c6 !important; /* WhatsApp sent bubble color */
    border-radius: 8px 8px 0 8px !important;
}

.message--left .message-content.is-image-only {
    background-color: #ffffff !important; /* WhatsApp received bubble color */
    border-radius: 8px 8px 8px 0 !important;
}

.is-image-only .media-container {
    margin-bottom: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.is-image-only .message-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 6px !important;
    object-fit: cover !important;
}

/* WhatsApp-style overlay for metadata on image-only messages */
.is-image-only .message-meta {
    position: absolute !important;
    bottom: 6px !important;
    right: 8px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: 10px !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.is-image-only .message-meta .message-time {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}

.is-image-only .message-meta .message-status i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 11px !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}

/* Authentic Blue Ticks on Image Overlay */
.is-image-only .message-meta .message-status i.text--info {
    color: #53bdeb !important; /* Authentic visibility blue for ticks on dark filter */
    -webkit-text-fill-color: #53bdeb !important;
}

/* Ensure actions menu stays on top and is accessible */
.is-image-only .message-actions {
    z-index: 10 !important;
}

.is-image-only .message-action-btn {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    margin-top: 4px !important;
    margin-right: 4px !important;
}

.is-image-only .message-action-btn svg {
    width: 14px !important;
    height: 14px !important;
    color: #fff !important;
}

/* --- WhatsApp-Style Media Message Constraints (Digital Curator) --- */
.message-content.has-media {
    width: fit-content !important;
    max-width: 320px !important; /* Constrain to standard WhatsApp image width */
    display: flex;
    flex-direction: column;
    padding: 10px !important; /* Symmetrical padding for text engagement */
}

.has-media .message-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    white-space: pre-wrap !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    padding-right: 5px !important; /* Avoid hugging the right edge */
}

.has-media.is-image-only .message-text {
    margin-bottom: 0 !important;
}

.has-media .media-container {
    max-width: 100% !important;
    width: 100% !important;
}

.has-media .message-image {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* Alignment for right-side bubbles */
.single-message.message--right .message-content.has-media {
    margin-left: auto;
}
