/**
 * Future AI — minimalist shell for dashboard (matches login-session aesthetic).
 * Scoped to body.future-ai-app
 * Light/dark: html[data-af-theme="light"|"dark"] (set by js + localStorage).
 */
html[data-af-theme='dark'] {
  color-scheme: dark;
}
html[data-af-theme='light'] {
  color-scheme: light;
}

body.future-ai-app {
  --af-violet: #7c3aed;
  --af-cyan: #22d3ee;
  --af-deep: #030712;
  /* Stronger panels & text for readability on dark backgrounds */
  --af-panel: rgba(20, 26, 46, 0.88);
  --af-border: rgba(124, 58, 237, 0.35);
  --af-text: #f1f5f9;
  --af-text-muted: #b4c0d4;
  --af-surface: rgba(22, 30, 50, 0.75);

  font-family: Outfit, ui-sans-serif, system-ui, sans-serif !important;
  background-color: var(--af-deep) !important;
  color: var(--af-text);
  min-height: 100vh;
  isolation: isolate;
}

body.future-ai-app h1,
body.future-ai-app h2,
body.future-ai-app h3,
body.future-ai-app h4,
body.future-ai-app h5,
body.future-ai-app h6,
body.future-ai-app .h1,
body.future-ai-app .h2,
body.future-ai-app .h3,
body.future-ai-app .h4,
body.future-ai-app .h5,
body.future-ai-app .h6 {
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
  color: #f8fafc;
}

body.future-ai-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(124, 58, 237, 0.22), transparent),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(34, 211, 238, 0.1), transparent),
    linear-gradient(165deg, rgba(3, 7, 18, 0.97) 0%, rgba(3, 7, 18, 0.92) 50%, rgba(15, 23, 42, 0.95) 100%);
}

body.future-ai-app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, black, transparent);
}

/* ——— Sidebar ——— */
body.future-ai-app .sidenav.navbar-vertical {
  background: rgba(10, 14, 28, 0.82) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

body.future-ai-app .sidenav .navbar-brand,
body.future-ai-app .sidenav .navbar-brand span,
body.future-ai-app .sidenav .nav-link-text {
  color: #f1f5f9 !important;
}

body.future-ai-app .sidenav .nav-link {
  color: rgba(226, 232, 240, 0.88) !important;
}

body.future-ai-app .sidenav .nav-link:hover {
  background: rgba(124, 58, 237, 0.12) !important;
  color: #fff !important;
}

body.future-ai-app .sidenav .nav-link.active {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.28) 0%,
    rgba(34, 211, 238, 0.06) 100%
  ) !important;
  box-shadow: inset 3px 0 0 var(--af-cyan);
  color: #fff !important;
}

body.future-ai-app .sidenav .icon-shape.shadow.border-radius-md.bg-white {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

body.future-ai-app .sidenav h6.text-uppercase {
  color: rgba(148, 163, 184, 0.85) !important;
}

body.future-ai-app .sidenav .horizontal.dark {
  background-image: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  ) !important;
  opacity: 1 !important;
}

body.future-ai-app .sidenav .text-secondary,
body.future-ai-app .sidenav .opacity-5 {
  color: rgba(148, 163, 184, 0.6) !important;
  opacity: 1 !important;
}

body.future-ai-app .sidenav .navbar-brand-img {
  filter: brightness(1.35) contrast(1.08) drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}

body.future-ai-app .sidenav .icon-shape .text-dark,
body.future-ai-app .sidenav .icon-shape i.text-dark {
  color: #f1f5f9 !important;
}

/*
 * Nucleo / Soft UI inline SVGs use .color-background / .color-foreground for dark fills on white tiles.
 * Our sidenav tiles are dark glass — without this, those paths stay nearly invisible.
 */
body.future-ai-app .sidenav .icon-shape svg .color-background {
  fill: rgba(248, 250, 252, 0.9) !important;
}

body.future-ai-app .sidenav .icon-shape svg .color-background.opacity-6 {
  fill: rgba(248, 250, 252, 0.4) !important;
}

body.future-ai-app .sidenav .icon-shape svg .color-foreground {
  fill: #f8fafc !important;
}

/* Active row: keep icons crisp on gradient */
body.future-ai-app .sidenav .nav-link.active .icon-shape svg .color-background {
  fill: rgba(255, 255, 255, 0.95) !important;
}

body.future-ai-app .sidenav .nav-link.active .icon-shape svg .color-background.opacity-6 {
  fill: rgba(255, 255, 255, 0.45) !important;
}

body.future-ai-app .sidenav .nav-link.active .icon-shape svg .color-foreground {
  fill: #ffffff !important;
}

body.future-ai-app .sidenav .nav-link.active .icon-shape i.text-dark {
  color: #ffffff !important;
}

/* ——— Main column ——— */
body.future-ai-app .main-content {
  background: transparent !important;
}

body.future-ai-app .bg-gray-100 {
  background-color: transparent !important;
}

body.future-ai-app .container-fluid.py-4 {
  position: relative;
}

body.future-ai-app .future-ai-meeting-shell {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.65rem 1.25rem;
  border-radius: 1rem;
}

@media (min-width: 768px) {
  body.future-ai-app .future-ai-meeting-shell {
    padding: 1rem 1.25rem 1.5rem;
  }
}

body.future-ai-app .future-ai-meeting-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Lighter scrim so text/cards stay readable over background image */
  background: rgba(3, 7, 18, 0.42);
  pointer-events: none;
  z-index: 0;
}

/* Content inside meeting shell sits above the ::before overlay */
body.future-ai-app .future-ai-meeting-shell > * {
  position: relative;
  z-index: 1;
}

/* ——— Top navbar ——— */
body.future-ai-app .navbar-main {
  background: rgba(12, 16, 32, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

body.future-ai-app .navbar-main .breadcrumb-item a,
body.future-ai-app .navbar-main .breadcrumb-item,
body.future-ai-app .navbar-main h6,
body.future-ai-app .navbar-main .text-dark {
  color: #cbd5e1 !important;
}

body.future-ai-app .navbar-main .breadcrumb-item.active {
  color: #f1f5f9 !important;
}

body.future-ai-app .navbar-main .nav-link.text-body,
body.future-ai-app .navbar-main .text-body {
  color: #e2e8f0 !important;
}

body.future-ai-app .navbar-main .sidenav-toggler-line {
  background-color: #cbd5e1 !important;
}

/* ——— Cards & panels ——— */
body.future-ai-app .card {
  background: var(--af-panel) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

body.future-ai-app .card .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.future-ai-app .card.card-plain {
  background: var(--af-surface) !important;
}

body.future-ai-app .card .text-dark,
body.future-ai-app .card h6 {
  color: #f1f5f9 !important;
}

body.future-ai-app .card .card-title,
body.future-ai-app .card-title {
  color: #f8fafc !important;
}

body.future-ai-app .card strong {
  color: #fff !important;
}

body.future-ai-app .card hr {
  border-color: rgba(255, 255, 255, 0.16) !important;
  opacity: 1;
}

body.future-ai-app .badge.bg-warning {
  color: #0f172a !important;
}

body.future-ai-app .meeting-page-root {
  max-width: 100%;
}

/* Stretched-link: content sits above the link in paint order — let clicks pass through to open meeting */
body.future-ai-app .meeting-card-stack {
  pointer-events: none;
}

body.future-ai-app .meeting-card-actions {
  pointer-events: auto;
}

body.future-ai-app .meeting-card-body p,
body.future-ai-app .meeting-card-body .small {
  color: rgba(226, 232, 240, 0.96) !important;
}

body.future-ai-app .meeting-card-body strong {
  color: #fff !important;
}

body.future-ai-app .meeting-card-body .card-title {
  color: #f8fafc !important;
}

/* Badges must not inherit .meeting-card-body paragraph colors (light mode was hiding Star text on bg-dark) */
body.future-ai-app .meeting-card-body .badge.bg-dark {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

body.future-ai-app .meeting-card-body .badge.bg-info {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-card-body .badge.bg-dark {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-card-body .badge.bg-info {
  color: #0f172a !important;
}

/* ═══ Meeting detail (show) — minimalist panels ═══ */
body.future-ai-app .meeting-detail-page {
  max-width: 1120px;
  margin-inline: auto;
}

body.future-ai-app .meeting-detail-toolbar {
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

body.future-ai-app .meeting-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--af-text-muted) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

body.future-ai-app .meeting-detail-back:hover {
  color: var(--af-cyan) !important;
}

body.future-ai-app .meeting-detail-hero {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.future-ai-app .meeting-detail-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af-text-muted) !important;
  margin-bottom: 0.35rem;
}

body.future-ai-app .meeting-detail-title {
  font-family: Sora, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc !important;
  line-height: 1.1;
}

body.future-ai-app .meeting-detail-when {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92) !important;
}

body.future-ai-app .meeting-detail-panel {
  height: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 1.35rem;
}

body.future-ai-app .meeting-detail-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--af-text-muted) !important;
  margin-bottom: 1rem;
}

body.future-ai-app .meeting-detail-dl {
  margin: 0;
}

body.future-ai-app .meeting-detail-dl > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
}

body.future-ai-app .meeting-detail-dl > div:last-child {
  border-bottom: none;
}

body.future-ai-app .meeting-detail-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--af-text-muted) !important;
  font-size: 0.75rem;
}

body.future-ai-app .meeting-detail-dl dd {
  margin: 0;
  color: rgba(241, 245, 249, 0.96) !important;
  word-break: break-word;
}

@media (max-width: 480px) {
  body.future-ai-app .meeting-detail-dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  body.future-ai-app .meeting-detail-dl dt {
    padding-top: 0.35rem;
  }
}

body.future-ai-app .meeting-detail-brief {
  margin-top: 1rem;
  padding: 1rem 1rem;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.95) !important;
  white-space: pre-wrap;
}

body.future-ai-app .meeting-detail-store-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc !important;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

body.future-ai-app .meeting-detail-store-sub {
  font-size: 0.875rem;
  color: var(--af-text-muted) !important;
  margin-bottom: 1.25rem;
}

body.future-ai-app .meeting-detail-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.95) !important;
}

body.future-ai-app .meeting-detail-contact-row:last-of-type {
  border-bottom: none;
}

body.future-ai-app .meeting-detail-contact-row i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--af-cyan);
  opacity: 0.85;
}

body.future-ai-app .meeting-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.future-ai-app .meeting-detail-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.future-ai-app .meeting-detail-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.25);
  color: rgba(226, 232, 240, 0.92) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

body.future-ai-app .meeting-detail-platform:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
  color: #fff !important;
}

body.future-ai-app .meeting-detail-platform i {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

body.future-ai-app .meeting-detail-platform span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.2rem;
}

body.future-ai-app .meeting-detail-assignee {
  text-align: center;
}

body.future-ai-app .meeting-detail-assignee img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

body.future-ai-app .meeting-detail-assignee .name {
  font-size: 0.6875rem;
  margin-top: 0.35rem;
  color: rgba(226, 232, 240, 0.88) !important;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.future-ai-app .meeting-detail-comment {
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(124, 58, 237, 0.65);
}

body.future-ai-app .meeting-detail-comment p {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: rgba(241, 245, 249, 0.96) !important;
}

body.future-ai-app .meeting-detail-comment .meta {
  font-size: 0.75rem;
  color: var(--af-text-muted) !important;
}

body.future-ai-app .meeting-detail-empty {
  font-size: 0.8125rem;
  color: var(--af-text-muted) !important;
  font-style: italic;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-hero {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-title {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-when {
  color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-dl > div {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-dl dd {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-brief {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-store-name {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-contact-row {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-platform {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-comment {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-comment p {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-detail-assignee .name {
  color: #475569 !important;
}

/* Stores / My Stores — Arabic + English lines on dark cards (inline page CSS loads later) */
body.future-ai-app .store-card .store-title,
body.future-ai-app .lead-card .lead-name {
  color: #fff !important;
}
body.future-ai-app .store-card .store-subtitle,
body.future-ai-app .lead-card .lead-meta.text-truncate {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.future-ai-app .border-radius-xl {
  border-radius: 1rem !important;
}

/* ——— Forms ——— */
body.future-ai-app .form-control,
body.future-ai-app .form-select,
body.future-ai-app textarea {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(2, 6, 23, 0.5) !important;
  color: #f1f5f9 !important;
}

body.future-ai-app .form-control::placeholder,
body.future-ai-app textarea::placeholder {
  color: rgba(100, 116, 139, 0.95);
}

body.future-ai-app .form-control:focus,
body.future-ai-app .form-select:focus,
body.future-ai-app textarea:focus {
  border-color: rgba(124, 58, 237, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
  background: rgba(2, 6, 23, 0.7) !important;
  color: #fff !important;
}

body.future-ai-app .input-group-text {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--af-text-muted) !important;
}

body.future-ai-app label,
body.future-ai-app .form-label {
  color: rgba(203, 213, 225, 0.95);
}

/* ——— Buttons ——— */
body.future-ai-app .btn-primary {
  border: none !important;
  background: linear-gradient(115deg, #5b21b6 0%, var(--af-violet) 35%, #06b6d4 100%) !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
  color: #fff !important;
}

body.future-ai-app .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body.future-ai-app .btn-outline-primary {
  border-color: rgba(124, 58, 237, 0.55) !important;
  color: var(--af-cyan) !important;
  background: transparent !important;
}

body.future-ai-app .btn-outline-primary:hover,
body.future-ai-app .btn-outline-primary.active {
  background: rgba(124, 58, 237, 0.28) !important;
  border-color: rgba(167, 139, 250, 0.85) !important;
  color: #fff !important;
}

/* Outline filters (Meetings, etc.) — visible on dark glass */
body.future-ai-app .btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #cbd5e1 !important;
  background: transparent !important;
}

body.future-ai-app .btn-outline-secondary:hover,
body.future-ai-app .btn-outline-secondary.active {
  background: rgba(148, 163, 184, 0.15) !important;
  border-color: rgba(203, 213, 225, 0.55) !important;
  color: #f8fafc !important;
}

body.future-ai-app .btn-outline-info {
  border-color: rgba(34, 211, 238, 0.45) !important;
  color: var(--af-cyan) !important;
  background: transparent !important;
}

body.future-ai-app .btn-outline-info:hover,
body.future-ai-app .btn-outline-info.active {
  background: rgba(34, 211, 238, 0.22) !important;
  border-color: rgba(103, 232, 249, 0.75) !important;
  color: #ecfeff !important;
}

body.future-ai-app .btn-outline-success {
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #6ee7b7 !important;
  background: transparent !important;
}

body.future-ai-app .btn-outline-success:hover,
body.future-ai-app .btn-outline-success.active {
  background: rgba(52, 211, 153, 0.12) !important;
  color: #ecfdf5 !important;
}

body.future-ai-app .btn-outline-danger {
  border-color: rgba(251, 113, 133, 0.5) !important;
  color: #fda4af !important;
  background: transparent !important;
}

body.future-ai-app .btn-outline-danger:hover,
body.future-ai-app .btn-outline-danger.active {
  background: rgba(251, 113, 133, 0.12) !important;
  color: #fff1f2 !important;
}

body.future-ai-app .btn-outline-dark {
  border-color: rgba(248, 250, 252, 0.35) !important;
  color: #e2e8f0 !important;
  background: transparent !important;
}

body.future-ai-app .btn-outline-dark:hover,
body.future-ai-app .btn-outline-dark.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* Meetings — summary tiles & card links (avoid text-dark / bg-light on dark UI) */
body.future-ai-app .meeting-filter-tile {
  background: var(--af-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--af-text) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.future-ai-app .meeting-filter-tile h5,
body.future-ai-app .meeting-filter-tile small {
  color: inherit !important;
}

body.future-ai-app a.meeting-filter-tile-link:not(.btn),
body.future-ai-app a.meeting-filter-tile-link:not(.btn):hover {
  color: inherit !important;
}

body.future-ai-app a.meeting-platform-link:not(.btn) {
  color: rgba(203, 213, 225, 0.9) !important;
}

body.future-ai-app a.meeting-platform-link:not(.btn):hover {
  color: var(--af-cyan) !important;
}

body.future-ai-app .meeting-comment-box {
  background: rgba(2, 6, 23, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.future-ai-app .form-check-label {
  color: rgba(203, 213, 225, 0.95) !important;
}

body.future-ai-app .card-footer {
  background: transparent !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--af-text-muted);
}

body.future-ai-app .alert-success,
body.future-ai-app .alert-info {
  color: #ecfdf5 !important;
  background: rgba(6, 78, 59, 0.45) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}

body.future-ai-app .alert-info {
  color: #ecfeff !important;
  background: rgba(14, 116, 144, 0.35) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}

body.future-ai-app .btn-secondary,
body.future-ai-app .btn-default {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

body.future-ai-app .btn-dark,
body.future-ai-app .btn.bg-gradient-dark {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ——— Tables ——— */
body.future-ai-app .table {
  color: var(--af-text);
  --bs-table-bg: transparent;
}

body.future-ai-app .table thead th {
  color: var(--af-text-muted) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

body.future-ai-app .table td {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.future-ai-app .table tbody tr:hover {
  background: rgba(124, 58, 237, 0.06) !important;
}

body.future-ai-app .table > :not(caption) > * > * {
  background-color: transparent !important;
}

/* ——— Lists, nav pills, badges ——— */
body.future-ai-app .list-group-item {
  background: rgba(15, 23, 42, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--af-text);
}

body.future-ai-app .nav-pills .nav-link {
  color: var(--af-text-muted);
}

body.future-ai-app .nav-pills .nav-link.active {
  background: linear-gradient(115deg, rgba(91, 33, 182, 0.9), rgba(124, 58, 237, 0.85)) !important;
  color: #fff !important;
}

body.future-ai-app .badge.bg-gradient-primary,
body.future-ai-app .badge.bg-primary {
  background: linear-gradient(115deg, #5b21b6, var(--af-violet)) !important;
}

/* ——— Dropdowns & modals ——— */
body.future-ai-app .dropdown-menu {
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

body.future-ai-app .dropdown-item {
  color: #e2e8f0 !important;
}

body.future-ai-app .dropdown-item:hover {
  background: rgba(124, 58, 237, 0.2) !important;
}

body.future-ai-app .modal-content {
  background: rgba(12, 16, 32, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px);
  color: var(--af-text);
}

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

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

/* ——— Footer ——— */
body.future-ai-app .footer {
  background: transparent !important;
}

body.future-ai-app .footer .text-muted,
body.future-ai-app .footer .nav-link.text-muted {
  color: #64748b !important;
}

body.future-ai-app .footer a.font-weight-bold {
  color: var(--af-cyan) !important;
}

/* ——— Typography utilities ——— */
body.future-ai-app .text-secondary,
body.future-ai-app .text-muted {
  color: var(--af-text-muted) !important;
}

body.future-ai-app p,
body.future-ai-app .text-sm {
  color: rgba(226, 232, 240, 0.95);
}

body.future-ai-app a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.navbar-brand) {
  color: var(--af-cyan);
}

body.future-ai-app a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.navbar-brand):hover {
  color: #a5f3fc;
}

/* ——— Pagination ——— */
body.future-ai-app .page-link {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.future-ai-app .page-item.active .page-link {
  background: linear-gradient(115deg, #5b21b6, var(--af-violet)) !important;
  border-color: transparent !important;
}

/* ——— Alerts ——— */
body.future-ai-app .alert {
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* ——— Guest marketing nav (non-login pages) ——— */
body.future-ai-app .navbar.blur,
body.future-ai-app .navbar.blur-rounded {
  background: rgba(12, 16, 32, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

body.future-ai-app .navbar .navbar-brand,
body.future-ai-app .navbar .nav-link {
  color: #e2e8f0 !important;
}

body.future-ai-app .navbar .nav-link .text-dark {
  color: #cbd5e1 !important;
}

/* ——— Misc Soft UI ——— */
body.future-ai-app .fixed-plugin .card {
  background: rgba(12, 16, 32, 0.95) !important;
}

body.future-ai-app .ps__rail-y {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

body.future-ai-app .ps__thumb-y {
  background-color: rgba(124, 58, 237, 0.45) !important;
}

/* ═══ Light theme (dashboard) — html[data-af-theme="light"] ═══ */
html[data-af-theme='light'] body.future-ai-app {
  --af-text: #0f172a;
  --af-text-muted: #64748b;
  --af-panel: rgba(255, 255, 255, 0.92);
  --af-surface: rgba(248, 250, 252, 0.95);
  --af-deep: #f1f5f9;
  background-color: #f1f5f9 !important;
  color: var(--af-text);
}

html[data-af-theme='light'] body.future-ai-app h1,
html[data-af-theme='light'] body.future-ai-app h2,
html[data-af-theme='light'] body.future-ai-app h3,
html[data-af-theme='light'] body.future-ai-app h4,
html[data-af-theme='light'] body.future-ai-app h5,
html[data-af-theme='light'] body.future-ai-app h6,
html[data-af-theme='light'] body.future-ai-app .h1,
html[data-af-theme='light'] body.future-ai-app .h2,
html[data-af-theme='light'] body.future-ai-app .h3,
html[data-af-theme='light'] body.future-ai-app .h4,
html[data-af-theme='light'] body.future-ai-app .h5,
html[data-af-theme='light'] body.future-ai-app .h6 {
  color: #0f172a;
}

html[data-af-theme='light'] body.future-ai-app::before {
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(124, 58, 237, 0.12), transparent),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(34, 211, 238, 0.08), transparent),
    linear-gradient(165deg, #f8fafc 0%, #f1f5f9 45%, #e2e8f0 100%);
}

html[data-af-theme='light'] body.future-ai-app::after {
  opacity: 0.4;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

html[data-af-theme='light'] body.future-ai-app .sidenav.navbar-vertical {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .navbar-brand,
html[data-af-theme='light'] body.future-ai-app .sidenav .navbar-brand span,
html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link-text {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  color: #5b21b6 !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link.active {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.14) 0%,
    rgba(34, 211, 238, 0.08) 100%
  ) !important;
  color: #4c1d95 !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .icon-shape.shadow.border-radius-md.bg-white {
  background: rgba(241, 245, 249, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav h6.text-uppercase {
  color: #64748b !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .horizontal.dark {
  background-image: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.1), transparent) !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .text-secondary,
html[data-af-theme='light'] body.future-ai-app .sidenav .opacity-5 {
  color: #64748b !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .navbar-brand-img {
  filter: none;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .icon-shape .text-dark,
html[data-af-theme='light'] body.future-ai-app .sidenav .icon-shape i.text-dark {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .icon-shape svg .color-background {
  fill: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .icon-shape svg .color-background.opacity-6 {
  fill: #94a3b8 !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .icon-shape svg .color-foreground {
  fill: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link.active .icon-shape svg .color-background {
  fill: #5b21b6 !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link.active .icon-shape svg .color-background.opacity-6 {
  fill: rgba(91, 33, 182, 0.45) !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link.active .icon-shape svg .color-foreground {
  fill: #fff !important;
}

html[data-af-theme='light'] body.future-ai-app .sidenav .nav-link.active .icon-shape i.text-dark {
  color: #fff !important;
}

html[data-af-theme='light'] body.future-ai-app .future-ai-meeting-shell::before {
  background: rgba(248, 250, 252, 0.55);
}

html[data-af-theme='light'] body.future-ai-app .navbar-main {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar-main .breadcrumb-item a,
html[data-af-theme='light'] body.future-ai-app .navbar-main .breadcrumb-item,
html[data-af-theme='light'] body.future-ai-app .navbar-main h6,
html[data-af-theme='light'] body.future-ai-app .navbar-main .text-dark {
  color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar-main .breadcrumb-item.active {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar-main .nav-link.text-body,
html[data-af-theme='light'] body.future-ai-app .navbar-main .text-body {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar-main .sidenav-toggler-line {
  background-color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
}

html[data-af-theme='light'] body.future-ai-app .card .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-af-theme='light'] body.future-ai-app .card .text-dark,
html[data-af-theme='light'] body.future-ai-app .card h6,
html[data-af-theme='light'] body.future-ai-app .card .card-title,
html[data-af-theme='light'] body.future-ai-app .card-title {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .card strong {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .card hr {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-af-theme='light'] body.future-ai-app .store-card .store-title,
html[data-af-theme='light'] body.future-ai-app .lead-card .lead-name {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .store-card .store-subtitle,
html[data-af-theme='light'] body.future-ai-app .lead-card .lead-meta.text-truncate {
  color: #64748b !important;
}

html[data-af-theme='light'] body.future-ai-app .form-control,
html[data-af-theme='light'] body.future-ai-app .form-select,
html[data-af-theme='light'] body.future-ai-app textarea {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #fff !important;
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .form-control:focus,
html[data-af-theme='light'] body.future-ai-app .form-select:focus,
html[data-af-theme='light'] body.future-ai-app textarea:focus {
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
  background: #fff !important;
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .form-control::placeholder,
html[data-af-theme='light'] body.future-ai-app textarea::placeholder {
  color: rgba(100, 116, 139, 0.9);
}

html[data-af-theme='light'] body.future-ai-app .input-group-text {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #64748b !important;
}

html[data-af-theme='light'] body.future-ai-app label,
html[data-af-theme='light'] body.future-ai-app .form-label {
  color: #334155;
}

html[data-af-theme='light'] body.future-ai-app .btn-secondary,
html[data-af-theme='light'] body.future-ai-app .btn-default {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .btn-dark,
html[data-af-theme='light'] body.future-ai-app .btn.bg-gradient-dark {
  background: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: #fff !important;
}

html[data-af-theme='light'] body.future-ai-app .btn-outline-primary {
  border-color: rgba(124, 58, 237, 0.45) !important;
  color: #6d28d9 !important;
}

html[data-af-theme='light'] body.future-ai-app .btn-outline-primary:hover,
html[data-af-theme='light'] body.future-ai-app .btn-outline-primary.active {
  background: rgba(124, 58, 237, 0.18) !important;
  color: #4c1d95 !important;
  border-color: rgba(91, 33, 182, 0.55) !important;
}

html[data-af-theme='light'] body.future-ai-app .table {
  color: #0f172a;
}

html[data-af-theme='light'] body.future-ai-app .table thead th {
  color: #64748b !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-af-theme='light'] body.future-ai-app .table td {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-af-theme='light'] body.future-ai-app .table tbody tr:hover {
  background: rgba(124, 58, 237, 0.05) !important;
}

html[data-af-theme='light'] body.future-ai-app .list-group-item {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a;
}

html[data-af-theme='light'] body.future-ai-app .nav-pills .nav-link {
  color: #64748b;
}

html[data-af-theme='light'] body.future-ai-app .dropdown-menu {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html[data-af-theme='light'] body.future-ai-app .dropdown-item {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .dropdown-item:hover {
  background: rgba(124, 58, 237, 0.08) !important;
}

html[data-af-theme='light'] body.future-ai-app .modal-content {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a;
}

html[data-af-theme='light'] body.future-ai-app .modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-af-theme='light'] body.future-ai-app .modal-footer {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-af-theme='light'] body.future-ai-app .footer .text-muted,
html[data-af-theme='light'] body.future-ai-app .footer .nav-link.text-muted {
  color: #64748b !important;
}

html[data-af-theme='light'] body.future-ai-app .text-secondary,
html[data-af-theme='light'] body.future-ai-app .text-muted {
  color: #64748b !important;
}

html[data-af-theme='light'] body.future-ai-app p,
html[data-af-theme='light'] body.future-ai-app .text-sm {
  color: #475569;
}

html[data-af-theme='light'] body.future-ai-app a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.navbar-brand) {
  color: #0891b2;
}

html[data-af-theme='light'] body.future-ai-app a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(.navbar-brand):hover {
  color: #0e7490;
}

html[data-af-theme='light'] body.future-ai-app .page-link {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar.blur,
html[data-af-theme='light'] body.future-ai-app .navbar.blur-rounded {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar .navbar-brand,
html[data-af-theme='light'] body.future-ai-app .navbar .nav-link {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .navbar .nav-link .text-dark {
  color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .fixed-plugin .card {
  background: #fff !important;
}

html[data-af-theme='light'] body.future-ai-app .alert {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-af-theme='light'] body.future-ai-app .alert-success {
  color: #0f5132 !important;
  background-color: #d1e7dd !important;
  border-color: #badbcc !important;
}

html[data-af-theme='light'] body.future-ai-app .alert-info {
  color: #055160 !important;
  background-color: #cff4fc !important;
  border-color: #9eeaf9 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-filter-tile {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-card-body p,
html[data-af-theme='light'] body.future-ai-app .meeting-card-body .small {
  color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-card-body strong {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-card-body .card-title {
  color: #0f172a !important;
}

html[data-af-theme='light'] body.future-ai-app a.meeting-platform-link:not(.btn) {
  color: #475569 !important;
}

html[data-af-theme='light'] body.future-ai-app a.meeting-platform-link:not(.btn):hover {
  color: #0891b2 !important;
}

html[data-af-theme='light'] body.future-ai-app .meeting-comment-box {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-af-theme='light'] body.future-ai-app .form-check-label {
  color: #334155 !important;
}

html[data-af-theme='light'] body.future-ai-app .card-footer {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  color: #64748b;
}

html[data-af-theme='light'] body.future-ai-app .ps__rail-y {
  background-color: rgba(15, 23, 42, 0.06) !important;
}

html[data-af-theme='light'] body.future-ai-app .ps__thumb-y {
  background-color: rgba(124, 58, 237, 0.35) !important;
}
