/**
 * AI Studio — Shared Private Asset Pipeline & Component Styles
 */
:root {
  --ais-primary: #1e3a8a;
  --ais-primary-hover: #1e40af;
  --ais-accent: #0ea5e9;
  --ais-success: #059669;
  --ais-warning: #d97706;
  --ais-danger: #dc2626;
  --ais-dark: #2d3036ff;
  --ais-light: #f8fafc;
  --ais-border: #e2e8f0;
  --ais-card-bg: #ffffff;
  --ais-text: #1e293b;
  --ais-text-muted: #64748b;
  --ais-header-bg: #ffffff;
  --ais-header-border: #e2e8f0;
  --ais-header-text: #1e293b;
  --ais-header-text-muted: #64748b;
  --ais-footer-bg: #ffffff;
  --ais-footer-border: #e2e8f0;
  --ais-footer-text: #1e293b;
  --ais-footer-text-muted: #64748b;
}

body {
  color: var(--ais-text);
  background-color: var(--ais-light);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Visible Focus for WCAG accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ais-accent) !important;
  outline-offset: 2px !important;
}

.btn-primary {
  background-color: var(--ais-primary);
  border-color: var(--ais-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ais-primary-hover);
  border-color: var(--ais-primary-hover);
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ais-primary);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* Dropzone & Drag States */
.upload-dropzone {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc;
  transition: all 0.25s ease-in-out;
}

.upload-dropzone.dragover {
  border-color: #4f46e5 !important;
  background-color: #eef2ff !important;
  transform: scale(1.005);
}

.upload-dropzone:hover {
  border-color: #94a3b8 !important;
  background-color: #f1f5f9;
}

/* Upload Thumbnails & Items */
.upload-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.asset-preview-card {
  transition: all 0.2s ease;
  border-left: 3px solid #4f46e5 !important;
}

.asset-preview-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Camera Modal & Viewport */
.camera-viewport-container {
  position: relative;
  background-color: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-feed-video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.camera-freeze-canvas {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}

.camera-guide-overlay {
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  pointer-events: none;
}

/* Quick Action Badges */
.kbd-shortcut {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Admin Workspace Utilities */
.max-w-6xl {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.hover-shadow {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.hover-shadow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Custom Nav Pills */
.nav-pills .nav-link {
  color: var(--ais-text-muted, #64748b);
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.15s ease-in-out;
}

.nav-pills .nav-link.active {
  background-color: var(--ais-primary, #1e3a8a);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.25);
}

.nav-pills .nav-link:hover:not(.active) {
  background-color: #e2e8f0;
  color: var(--ais-text, #1e293b);
}

/* Admin Table Enhancements */
.table thead th {
  font-weight: 600;
  letter-spacing: 0.025em;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--ais-border, #e2e8f0);
  padding: 12px 16px;
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ais-border, #e2e8f0);
}

.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

/* Brand Logo Styling */
.brand-logo-img {
  height: 42px;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  vertical-align: middle;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.brand-logo-img:hover {
  opacity: 0.92;
}

.brand-logo-img-lg {
  height: 56px;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-img-sm {
  height: 32px;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-darkbg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

/* Dynamic Order Media Uploader Component */
.order-media-dropzone {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc;
  transition: all 0.2s ease-in-out;
}

.order-media-dropzone.dragover {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

.media-item-card {
  transition: all 0.2s ease;
  border-left: 3px solid #3b82f6 !important;
}

.media-item-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Hero Carousel Banner Module & Controls
   ========================================================================== */
.hero-carousel-section {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0b1120 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient dynamic background lighting effects */
.hero-ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: all 0.8s ease-in-out;
}

.hero-aura-cyan {
  top: -100px;
  right: 5%;
  background: radial-gradient(circle, #38bdf8 0%, #6366f1 70%);
}

.hero-aura-violet {
  top: -80px;
  right: 8%;
  background: radial-gradient(circle, #c084fc 0%, #ec4899 70%);
}

.hero-aura-emerald {
  top: -120px;
  right: 6%;
  background: radial-gradient(circle, #34d399 0%, #0ea5e9 70%);
}

.hero-aura-amber {
  top: -90px;
  right: 10%;
  background: radial-gradient(circle, #fbbf24 0%, #f97316 70%);
}

.hero-carousel-slide {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

/* Smooth Fade and Content Slide Animation */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.75s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeScale {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.carousel-item.active .hero-animate-badge {
  animation: heroSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.carousel-item.active .hero-animate-title {
  animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.carousel-item.active .hero-animate-desc {
  animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.carousel-item.active .hero-animate-actions {
  animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.carousel-item.active .hero-animate-footer {
  animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.carousel-item.active .hero-animate-card {
  animation: heroFadeScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Gradient Text Accents */
.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Indicators */
#heroCarousel .carousel-indicators {
  bottom: 16px;
  margin-bottom: 0;
  gap: 10px;
  z-index: 2;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  width: 24px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.28);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.65;
}

#heroCarousel .carousel-indicators [data-bs-target]:hover {
  background-color: rgba(255, 255, 255, 0.55);
  opacity: 0.9;
}

#heroCarousel .carousel-indicators .active {
  width: 54px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  opacity: 1;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

/* Controls */
.hero-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  transition: all 0.25s ease;
  z-index: 2;
}

.hero-control-btn:hover,
.hero-control-btn:focus {
  background: rgba(14, 165, 233, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* Glassmorphism Cards */
.hero-glass-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-glass-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(56, 189, 248, 0.15);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Service Asset Container & Media Placeholder Integration
   ========================================================================== */
.ais-service-card {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ais-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.service-asset-container {
  height: 160px;
  width: 100%;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f6 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.service-asset-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ais-service-card:hover .service-asset-img {
  transform: scale(1.04);
}

.service-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  background-image: radial-gradient(
    rgba(148, 163, 184, 0.18) 1px,
    transparent 0
  );
  background-size: 16px 16px;
  background-position: -8px -8px;
  user-select: none;
}

.media-placeholder-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ais-service-card:hover .media-placeholder-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 8px 16px -4px rgba(14, 165, 233, 0.25);
  border-color: #bae6fd;
}

.media-placeholder-badge {
  font-size: 0.725rem;
  letter-spacing: 0.03em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.placeholder-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
  display: inline-block;
}

/* ==========================================================================
   Sticky Top Navigation Enforcement
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  height: auto !important;
  min-height: 100vh;
}

.navbar.sticky-top,
nav.sticky-top {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1050 !important;
  background-color: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45) !important;
}

/* ==========================================================================
   Infinite Portfolio Marquee Carousel (350px Asset Height)
   ========================================================================== */
.portfolio-carousel-section {
  min-height: 440px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  contain: layout style;
}

.portfolio-carousel-header {
  margin-bottom: 16px;
}

.portfolio-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  contain: paint layout;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

.portfolio-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: portfolioMarquee 40s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

.portfolio-carousel-sequence {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}

.portfolio-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.portfolio-asset-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.portfolio-item:hover .portfolio-asset-card {
  border-color: #38bdf8;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.16);
}

.portfolio-asset-img {
  height: 350px !important;
  width: auto !important;
  max-height: 350px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  filter: saturate(95%);
  transition: filter 0.25s ease;
}

.portfolio-item:hover .portfolio-asset-img {
  filter: saturate(105%);
}

@keyframes portfolioMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Backward compatibility aliases */
.brand-carousel-section {
  min-height: 440px;
}
.brand-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.brand-carousel-track {
  display: flex;
  width: max-content;
  animation: portfolioMarquee 40s linear infinite;
}
.brand-item {
  flex-shrink: 0;
  display: inline-flex;
}
.brand-asset-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
}
.brand-asset-img {
  height: 350px !important;
  width: auto !important;
}
@keyframes brandMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Media Preview & Attachment Cards */
.ais-media-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ais-media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.08) !important;
}
.ais-media-card:hover .transition-transform {
  transform: scale(1.04);
}
.transition-transform {
  transition: transform 0.25s ease;
}
.object-fit-cover {
  object-fit: cover;
}

/* Policy & Legal Prose Document Styling */
.policy-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: #374151;
}

.policy-prose p {
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.policy-prose strong,
.policy-prose b,
.policy-prose .fw-bold {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.policy-prose a {
  color: #1e40af !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
  transition: color 0.15s ease-in-out;
}

.policy-prose a:hover {
  color: #0284c7 !important;
  text-decoration: underline !important;
}

.policy-prose ul {
  margin-bottom: 1.25rem;
}

.policy-prose li {
  color: #4b5563;
}

/* ==========================================================================
   Virtual Model Gallery Showcase & Target Selection Styles
   ========================================================================== */
.model-showcase-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid #e2e8f0;
}

.model-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

.model-showcase-card:hover .model-avatar-img {
  transform: scale(1.05);
}

.model-target-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid #e2e8f0;
}

.model-target-card:hover {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.model-target-card.active-target {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-purple {
  background-color: #7c3aed;
  color: #ffffff;
}

.btn-purple:hover {
  background-color: #6d28d9;
  color: #ffffff;
}

.bg-purple {
  background-color: #7c3aed !important;
  color: #ffffff !important;
}

.bg-purple-subtle {
  background-color: #ede9fe !important;
  color: #6d28d9 !important;
}

.border-purple-subtle {
  border-color: #ddd6fe !important;
}

.bg-gradient-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
}

.cursor-pointer {
  cursor: pointer;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Extended Bootstrap Opacity Utilities (15%, 20%, 30%, 40%, 60%, 70%, 80%, 90%)
   ========================================================================== */
.bg-opacity-15 { --bs-bg-opacity: 0.15 !important; }
.bg-opacity-20 { --bs-bg-opacity: 0.2 !important; }
.bg-opacity-30 { --bs-bg-opacity: 0.3 !important; }
.bg-opacity-40 { --bs-bg-opacity: 0.4 !important; }
.bg-opacity-60 { --bs-bg-opacity: 0.6 !important; }
.bg-opacity-70 { --bs-bg-opacity: 0.7 !important; }
.bg-opacity-80 { --bs-bg-opacity: 0.8 !important; }
.bg-opacity-90 { --bs-bg-opacity: 0.9 !important; }

.border-opacity-15 { --bs-border-opacity: 0.15 !important; }
.border-opacity-20 { --bs-border-opacity: 0.2 !important; }
.border-opacity-30 { --bs-border-opacity: 0.3 !important; }
.border-opacity-40 { --bs-border-opacity: 0.4 !important; }
.border-opacity-60 { --bs-border-opacity: 0.6 !important; }
.border-opacity-70 { --bs-border-opacity: 0.7 !important; }
.border-opacity-80 { --bs-border-opacity: 0.8 !important; }
.border-opacity-90 { --bs-border-opacity: 0.9 !important; }

.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.bg-opacity-20:hover,
.btn.bg-opacity-25:hover {
  --bs-bg-opacity: 0.35 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   Light Mode Theme: Header & Public Navigation
   ========================================================================== */
.app-navbar-light,
nav.navbar.bg-white,
header.navbar.bg-white {
  background-color: var(--ais-header-bg, #ffffff) !important;
  border-bottom: 1px solid var(--ais-header-border, #e2e8f0) !important;
  color: var(--ais-header-text, #1e293b) !important;
}

.app-navbar-light .navbar-nav .nav-link,
nav.navbar.bg-white .navbar-nav .nav-link {
  color: var(--ais-header-text, #1e293b) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  border-radius: 6px;
}

.app-navbar-light .navbar-nav .nav-link:hover,
.app-navbar-light .navbar-nav .nav-link:focus,
nav.navbar.bg-white .navbar-nav .nav-link:hover,
nav.navbar.bg-white .navbar-nav .nav-link:focus {
  color: var(--ais-primary, #1e3a8a) !important;
  background-color: rgba(30, 58, 138, 0.04);
}

.app-navbar-light .navbar-nav .nav-link.active,
nav.navbar.bg-white .navbar-nav .nav-link.active {
  color: var(--ais-primary, #1e3a8a) !important;
  font-weight: 600;
}

.app-navbar-light .navbar-toggler,
nav.navbar.bg-white .navbar-toggler,
header.navbar.bg-white .navbar-toggler {
  border-color: var(--ais-border, #e2e8f0);
}

/* ==========================================================================
   Light Mode Theme: Footer Components & Fixed Font Contrast
   ========================================================================== */
.app-footer-light,
footer.bg-white {
  background-color: var(--ais-footer-bg, #ffffff) !important;
  color: var(--ais-footer-text, #1e293b) !important;
  border-top: 1px solid var(--ais-footer-border, #e2e8f0) !important;
}

.app-footer-light h6,
footer.bg-white h6 {
  color: var(--ais-footer-text, #1e293b) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.app-footer-light p,
footer.bg-white p {
  color: var(--ais-footer-text-muted, #64748b) !important;
}

.app-footer-light span.text-muted,
footer.bg-white span.text-muted {
  color: var(--ais-footer-text-muted, #64748b) !important;
}

.app-footer-light a.footer-nav-link,
.app-footer-light a.text-muted,
footer.bg-white a.footer-nav-link,
footer.bg-white a.text-muted {
  color: var(--ais-footer-text-muted, #64748b) !important;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.app-footer-light a.footer-nav-link:hover,
.app-footer-light a.text-muted:hover,
footer.bg-white a.footer-nav-link:hover,
footer.bg-white a.text-muted:hover {
  color: var(--ais-primary, #1e3a8a) !important;
  text-decoration: none;
}

