/* ==========================================================================
   ESTIL 03: FRONT-FACEED (VERTICAL 2:3 INSPIRATION)
   Extret de la guia de disseny: superfícies frontals planes sobre base porcellana,
   marcs de precisió (1.5px), ranures i pous rebaixats (inset wells),
   ombres direccionals multicapa (shadow levels) i anells de focus nítids.
   ========================================================================== */

/* Variables per a Front-Faceed */
[data-theme-style="front-faceed"] {
  --ff-bg: #eceef1;
  --ff-surface: #f3f5f8;
  --ff-surface-inset: #e2e5ea;
  --ff-border: rgba(255, 255, 255, 0.95);
  --ff-border-groove: #d6d9e0;
  --ff-text-main: #1e293b;
  --ff-text-muted: #64748b;
  --ff-accent-blue: #2563eb;
  --ff-accent-blue-hover: #1d4ed8;
  --ff-btn-pebble: #8e99a8;
  --ff-btn-pebble-hover: #64748b;

  --color-background: var(--ff-bg);
  --color-surface: var(--ff-surface);
  --color-text-main: var(--ff-text-main);
  --color-text-muted: var(--ff-text-muted);
}

/* Fons global del document en Front-Faceed */
html[data-theme-style="front-faceed"],
body[data-theme-style="front-faceed"] {
  background-color: #eceef1 !important;
  color: #1e293b !important;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ==========================================================================
   HEADER EN FRONT-FACEED
   ========================================================================== */
[data-theme-style="front-faceed"] .site-header {
  background-color: rgba(236, 238, 242, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-block-start: none !important;
  border-bottom-left-radius: 1.25rem !important;
  border-bottom-right-radius: 1.25rem !important;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.07) !important;
}

[data-theme-style="front-faceed"] .nav-pill-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  gap: 0.5rem;
}

[data-theme-style="front-faceed"] .nav-pill-item {
  color: #475569 !important;
  border-radius: 9999px !important;
  min-block-size: 36px !important;
  padding: 0.28rem 0.85rem !important;
  border: 1.5px solid transparent !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] #nav-link-inici {
  padding-inline: 1.45rem !important;
}

[data-theme-style="front-faceed"] .nav-pill-item:hover {
  background: #f3f5f8 !important;
  color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

/* Estat seleccionat: Pou rebaixat (inset well) com els controls de la guia */
[data-theme-style="front-faceed"] .nav-pill-item.is-current {
  background: #e2e5ea !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme-style="front-faceed"] .nav-pill-item-accent .nav-badge-pill {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

/* Botó cerca Front-Faceed: cercle elevat amb vora nítida de 1.5px */
[data-theme-style="front-faceed"] .icon-btn-search {
  min-inline-size: 36px !important;
  min-block-size: 36px !important;
  inline-size: 36px !important;
  block-size: 36px !important;
  background: #f3f5f8 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  color: #475569 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  border-radius: 50% !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] .icon-btn-search:hover {
  transform: translateY(-1px) !important;
  color: #2563eb !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1) !important;
}

[data-theme-style="front-faceed"] .icon-btn-search:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(0) !important;
}

/* Botó Accedeix: Botó "Default" gris pissarra de la guia Front-Faceed */
[data-theme-style="front-faceed"] .btn-account {
  min-block-size: 36px !important;
  padding: 0.28rem 1rem !important;
  background: #8e99a8 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] .btn-account:hover {
  background: #64748b !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16) !important;
  transform: translateY(-1px) !important;
}

[data-theme-style="front-faceed"] .btn-account:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(0) !important;
}

/* Botó Get the app: Botó blau vibrant d'acció */
[data-theme-style="front-faceed"] .btn-app-sm {
  min-block-size: 36px !important;
  padding: 0.28rem 0.85rem !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] .btn-app-sm:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   HERO SECTION EN FRONT-FACEED
   ========================================================================== */
[data-theme-style="front-faceed"] .hero-section {
  background-color: transparent !important;
  background-image: url('../assets/images/hero-background.jpg') !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Targetes flotants Hero Front-Faceed */
[data-theme-style="front-faceed"] .hero-floating-card {
  background: #f3f5f8 !important;
  border-radius: 1.75rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.09), 0 4px 8px -2px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff !important;
}

[data-theme-style="front-faceed"] .floating-card-badge {
  background: #f3f5f8 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  color: #2563eb !important;
}

/* Targeta Demo Account Front-Faceed */
[data-theme-style="front-faceed"] .hero-demo-card {
  background: #f3f5f8 !important;
  border-radius: 1.75rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.09), 0 4px 8px -2px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff !important;
}

[data-theme-style="front-faceed"] .demo-avatar-img,
[data-theme-style="front-faceed"] .demo-avatar-add {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  border: 2px solid #f3f5f8 !important;
}

[data-theme-style="front-faceed"] .demo-card-divider {
  border-block-start: 1px solid #dcdfe5 !important;
  border-block-end: 1px solid #ffffff !important;
  background: transparent !important;
  height: 2px !important;
}

/* Caixa de credencials com a pou rebaixat (recessed slot) */
[data-theme-style="front-faceed"] .demo-card-credentials {
  background: #e2e5ea !important;
  border-radius: 1rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

[data-theme-style="front-faceed"] .hero-demo-link-btn {
  background: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3) !important;
}

[data-theme-style="front-faceed"] .hero-demo-link-btn:hover {
  background: #c2410c !important;
}

[data-theme-style="front-faceed"] .demo-cred-value {
  color: #2563eb !important;
  font-weight: 700 !important;
}

/* Botons CTA Hero */
[data-theme-style="front-faceed"] .btn-hero-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] .btn-hero-primary:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-2px) !important;
}

[data-theme-style="front-faceed"] .btn-hero-secondary {
  background: #8e99a8 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] .btn-hero-secondary:hover {
  background: #64748b !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
  transform: translateY(-2px) !important;
}

/* Màscara dinàmica Hero Front-Faceed */
[data-theme-style="front-faceed"] .hero-avatar-mask {
  border: 3px solid #f3f5f8 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

/* Slider parelles Front-Faceed: transparent sense recuadre */
[data-theme-style="front-faceed"] .hero-couples-slider-viewport {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

/* ==========================================================================
   SECTION 01: MODALITATS & SOLUCIONS EN FRONT-FACEED
   ========================================================================== */
[data-theme-style="front-faceed"] .section-01 {
  background-color: #eceef1 !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-top-left-radius: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) !important;
  border-top-right-radius: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) !important;
  box-shadow: 0 -20px 45px -8px rgba(0, 0, 0, 0.12) !important;
}

[data-theme-style="front-faceed"] .section01-showcase {
  background: #f3f5f8 !important;
  border-radius: 2.25rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.09), 0 4px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff !important;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.5rem) !important;
}

[data-theme-style="front-faceed"] .section01-heading-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .section01-heading-subtitle {
  color: #64748b !important;
}

/* Targetes de modalitats Front-Faceed */
[data-theme-style="front-faceed"] .section01-mode-card {
  background: #ffffff !important;
  border-radius: 1.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  padding: 1.5rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

[data-theme-style="front-faceed"] .section01-mode-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12) !important;
  border-color: #cbd5e1 !important;
}

[data-theme-style="front-faceed"] .section01-mode-title {
  color: #0f172a !important;
}

/* Marc d'imatge rebaixat (inset frame) */
[data-theme-style="front-faceed"] .section01-mode-fig {
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme-style="front-faceed"] .video-tv-watermark {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}

[data-theme-style="front-faceed"] .section01-mode-desc {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .section01-mode-divider {
  border-block-start: 1px solid #e2e8f0 !important;
  border-block-end: 1px solid #ffffff !important;
  background: transparent !important;
  height: 2px !important;
}

/* Blocs de solucions Front-Faceed */
[data-theme-style="front-faceed"] .section01-solutions-heading {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .section01-sol-item {
  background: #ffffff !important;
  border-radius: 1.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  padding: 1.25rem !important;
  transition: all 0.25s ease !important;
}

[data-theme-style="front-faceed"] .section01-sol-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

[data-theme-style="front-faceed"] .section01-sol-icon {
  background: #e2e5ea !important;
  color: #2563eb !important;
  border-radius: 50% !important;
  padding: 0.5rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 0 #ffffff !important;
}

[data-theme-style="front-faceed"] .section01-sol-text {
  color: #334155 !important;
}

/* Blocs de beneficis */
[data-theme-style="front-faceed"] .section01-ben-item {
  background: #ffffff !important;
  border-radius: 1.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme-style="front-faceed"] .section01-ben-icon {
  background: #e2e5ea !important;
  color: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 #ffffff !important;
}

[data-theme-style="front-faceed"] .section01-ben-text {
  color: #334155 !important;
}

/* Banner CTA inferior Front-Faceed */
[data-theme-style="front-faceed"] .section01-cta-banner {
  background: #f3f5f8 !important;
  border-radius: 2rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.09), inset 0 1px 0 #ffffff !important;
}

[data-theme-style="front-faceed"] .section01-cta-invite-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .section01-cta-invite-accent {
  background: #2563eb !important;
  color: #ffffff !important;
  padding: 0.35rem 0.95rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  text-decoration: none !important;
  display: inline-block !important;
}

[data-theme-style="front-faceed"] .section01-cta-card-qr {
  background: #ffffff !important;
  border-radius: 1.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

[data-theme-style="front-faceed"] .section01-cta-card-brand {
  background: #ffffff !important;
  border-radius: 1.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

[data-theme-style="front-faceed"] .section01-cta-brand-name {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .section01-cta-brand-accent {
  color: #2563eb !important;
}

[data-theme-style="front-faceed"] .section01-cta-message-text {
  color: #475569 !important;
}

/* Section 02 */
[data-theme-style="front-faceed"] .media-placeholder {
  background: #e2e5ea !important;
  border-radius: 2rem !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.12), 0 1px 0 #ffffff !important;
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .videowall-tile {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   SECCIÓ 03: TESTIMONIS EN FRONT-FACEED
   ========================================================================== */
[data-theme-style="front-faceed"] .section-testimonials {
  background-color: #f3f5f8 !important;
  border-block-end: 1px solid #dcdfe5 !important;
}

[data-theme-style="front-faceed"] .testimonials-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .testimonials-desc {
  color: #64748b !important;
}

[data-theme-style="front-faceed"] #testimonials-badge {
  background: #e2e5ea !important;
  color: #2563eb !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme-style="front-faceed"] .testimonial-card {
  background: #ffffff !important;
  border-radius: 1.75rem !important;
  border: 1.5px solid #dcdfe5 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

[data-theme-style="front-faceed"] .testimonial-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12) !important;
  border-color: #cbd5e1 !important;
}

[data-theme-style="front-faceed"] .testimonial-rating {
  color: #2563eb !important;
}

[data-theme-style="front-faceed"] .testimonial-quote-mark {
  color: #2563eb !important;
  opacity: 0.35 !important;
}

[data-theme-style="front-faceed"] .testimonial-quote-text {
  color: #334155 !important;
}

[data-theme-style="front-faceed"] .testimonial-card-divider {
  background-color: #e2e8f0 !important;
}

[data-theme-style="front-faceed"] .testimonial-author-avatar {
  border: 2px solid #ffffff !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-theme-style="front-faceed"] .testimonial-author-name {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .testimonial-author-role {
  color: #64748b !important;
}

[data-theme-style="front-faceed"] .testimonial-location-tag {
  background-color: #e2e5ea !important;
  color: #334155 !important;
}

[data-theme-style="front-faceed"] .testimonial-verified-badge {
  color: #2563eb !important;
}

[data-theme-style="front-faceed"] .testimonials-trust-bar {
  background-color: #ffffff !important;
  border: 1.5px solid #dcdfe5 !important;
  border-radius: 1.75rem !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

[data-theme-style="front-faceed"] .trust-stat-num {
  color: #2563eb !important;
}

[data-theme-style="front-faceed"] .trust-stat-label {
  color: #64748b !important;
}

/* ==========================================================================
   FOOTER EN FRONT-FACEED
   ========================================================================== */
[data-theme-style="front-faceed"] .site-footer {
  background-color: #eceef1 !important;
  color: #334155 !important;
  border-block-start: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 -8px 24px -4px rgba(0, 0, 0, 0.06) !important;
}

[data-theme-style="front-faceed"] .site-footer .footer-brand-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .site-footer .footer-brand-desc {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .site-footer .footer-badge-item {
  background: #f3f5f8 !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .footer-col-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .footer-nav-link {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .footer-nav-link:hover {
  color: #2563eb !important;
}

[data-theme-style="front-faceed"] .footer-contact-item {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .footer-qr-container {
  background: #ffffff !important;
  border-radius: 1.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
}

[data-theme-style="front-faceed"] .footer-qr-text {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .footer-bottom-separator {
  border-block-start: 1px solid #dcdfe5 !important;
  border-block-end: 1px solid #ffffff !important;
  background: transparent !important;
  height: 2px !important;
}

[data-theme-style="front-faceed"] .footer-legal-link {
  color: #64748b !important;
}

[data-theme-style="front-faceed"] .footer-legal-link:hover {
  color: #2563eb !important;
}

/* ==========================================================================
   PÀGINA LOGIN / AUTENTICACIÓ EN FRONT-FACEED (login.html)
   ========================================================================== */
[data-theme-style="front-faceed"] .auth-viewport {
  background-color: #eceef1 !important;
  background-image: none !important;
}

[data-theme-style="front-faceed"] .auth-modal-card {
  background: #ffffff !important;
  border-radius: 2.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04) !important;
}

[data-theme-style="front-faceed"] .auth-form-col {
  background: #ffffff !important;
}

[data-theme-style="front-faceed"] .auth-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .auth-subtitle {
  color: #64748b !important;
}

[data-theme-style="front-faceed"] .auth-field-label {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .auth-input-control {
  background: #e2e5ea !important;
  border: 1.5px solid transparent !important;
  border-radius: 0.85rem !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 0 #ffffff !important;
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .auth-input-control:focus {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

[data-theme-style="front-faceed"] .auth-submit-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid #1d4ed8 !important;
  font-weight: 700 !important;
}

[data-theme-style="front-faceed"] .auth-submit-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px) !important;
}

[data-theme-style="front-faceed"] .auth-demo-pill {
  background: #8e99a8 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
}

[data-theme-style="front-faceed"] .auth-demo-pill:hover {
  background: #64748b !important;
}

/* ==========================================================================
   PÀGINA PLATAFORMA EN FRONT-FACEED (plataforma.html)
   ========================================================================== */
[data-theme-style="front-faceed"] .platform-page,
[data-theme-style="front-faceed"] .platform-main-wrapper {
  background-color: #eceef1 !important;
  color: #0f172a !important;
}

/* Publicador de la comunitat en Front-Faceed */
[data-theme-style="front-faceed"] .platform-top-widgets-row .platform-publisher-widget {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

[data-theme-style="front-faceed"] .platform-publisher-widget {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08) !important;
}

/* Calendari Front Faceed */
[data-theme-style="front-faceed"] .platform-calendar-widget {
  background: #111827 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.3) !important;
  color: #f1f5f9 !important;
}

[data-theme-style="front-faceed"] .calendar-header {
  border-block-end: 1px solid #374151 !important;
}

[data-theme-style="front-faceed"] .calendar-month-year {
  color: #f1f5f9 !important;
}

[data-theme-style="front-faceed"] .calendar-nav-btn,
[data-theme-style="front-faceed"] .calendar-today-pill {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  color: #f1f5f9 !important;
}

[data-theme-style="front-faceed"] .calendar-nav-btn:hover,
[data-theme-style="front-faceed"] .calendar-today-pill:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

[data-theme-style="front-faceed"] .calendar-weekdays {
  color: #94a3b8 !important;
}

[data-theme-style="front-faceed"] .calendar-day-cell {
  color: #e2e8f0 !important;
}

[data-theme-style="front-faceed"] .calendar-day-cell:hover {
  background: #1f2937 !important;
  color: #60a5fa !important;
}

[data-theme-style="front-faceed"] .calendar-day-cell.is-other-month {
  color: #4b5563 !important;
}

[data-theme-style="front-faceed"] .calendar-day-cell.is-today,
[data-theme-style="front-faceed"] .calendar-day-cell.is-selected {
  background: #2563eb !important;
  color: #ffffff !important;
}

[data-theme-style="front-faceed"] .calendar-footer-event {
  border-block-start: 1px solid #374151 !important;
}

[data-theme-style="front-faceed"] .calendar-event-pill {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  color: #93c5fd !important;
}

[data-theme-style="front-faceed"] .publisher-topbar {
  background: #111827 !important;
  color: #ffffff !important;
}

[data-theme-style="front-faceed"] .publisher-topbar-home-btn {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 50% !important;
  inline-size: 34px !important;
  block-size: 34px !important;
  color: #ffffff !important;
}

[data-theme-style="front-faceed"] .publisher-topbar-link {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  color: #f1f5f9 !important;
  border-radius: 0.5rem !important;
  padding: 0.35rem 0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

[data-theme-style="front-faceed"] .publisher-topbar-link .publisher-link-icon {
  font-size: 1.05rem !important;
  color: #93c5fd !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

[data-theme-style="front-faceed"] .publisher-topbar-link:hover .publisher-link-icon {
  color: #ffffff !important;
  transform: scale(1.1) !important;
}

[data-theme-style="front-faceed"] .publisher-topbar-link:hover {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

[data-theme-style="front-faceed"] .publisher-topbar-icon-btn {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 50% !important;
  inline-size: 32px !important;
  block-size: 32px !important;
  color: #ffffff !important;
}

/* Banner superior obscur Front-Faceed (Vertical Reduït) */
[data-theme-style="front-faceed"] .platform-dark-banner,
[data-theme-style="front-faceed"] .platform-dark-header {
  background: #111827 !important;
  border-radius: 1.5rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.2) !important;
  padding: clamp(0.95rem, 0.8rem + 0.5vw, 1.35rem) clamp(1.25rem, 1rem + 0.8vw, 1.85rem) !important;
  margin-block-end: 1.25rem !important;
}

[data-theme-style="front-faceed"] .platform-stat-tile,
[data-theme-style="front-faceed"] .platform-kpi-card {
  background: #1f2937 !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme-style="front-faceed"] .platform-kpi-avatar-img {
  border: 2px solid #374151 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Panell de filtres lateral Front-Faceed */
[data-theme-style="front-faceed"] .platform-filters-aside,
[data-theme-style="front-faceed"] .platform-filter-sidebar {
  background: #ffffff !important;
  border-radius: 1.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08) !important;
}

[data-theme-style="front-faceed"] .platform-nav-title {
  color: #0f172a !important;
}

/* Pastilles del Menú Comunitari en Front-Faceed */
[data-theme-style="front-faceed"] .platform-community-pill {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

[data-theme-style="front-faceed"] .platform-community-pill .platform-pill-icon {
  color: #1e40af !important;
}

[data-theme-style="front-faceed"] .platform-community-pill:hover {
  background-color: #f8fafc !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15) !important;
  transform: translateY(-2px) !important;
}

[data-theme-style="front-faceed"] .platform-community-pill:active,
[data-theme-style="front-faceed"] .platform-community-pill.is-active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
  transform: translateY(0) !important;
}

[data-theme-style="front-faceed"] .platform-community-pill.is-active .platform-pill-icon {
  color: #60a5fa !important;
}

[data-theme-style="front-faceed"] .platform-sidebar-divider {
  border-block-start: 1.5px solid #e2e8f0 !important;
}

[data-theme-style="front-faceed"] .platform-filter-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .platform-filter-input[type="checkbox"],
[data-theme-style="front-faceed"] .platform-filter-input[type="radio"] {
  accent-color: #2563eb !important;
}

/* Toggle Switch Front-Faceed */
[data-theme-style="front-faceed"] .platform-toggle-slider {
  background-color: #e2e5ea !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

[data-theme-style="front-faceed"] .platform-toggle-switch input:checked + .platform-toggle-slider {
  background-color: #2563eb !important;
}

/* Targetes de comunitat Front-Faceed */
[data-theme-style="front-faceed"] .platform-item-card {
  background: #ffffff !important;
  border-radius: 1.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme-style="front-faceed"] .platform-item-card:hover {
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.12) !important;
  border-color: #cbd5e1 !important;
}

[data-theme-style="front-faceed"] .platform-card-user-name {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .platform-card-user-id {
  color: #64748b !important;
}

[data-theme-style="front-faceed"] .platform-card-avatar,
[data-theme-style="front-faceed"] .platform-collaborator-avatar {
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

[data-theme-style="front-faceed"] .platform-collaborator-avatar:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25) !important;
}

[data-theme-style="front-faceed"] .platform-card-meta-row {
  border-block-start: 1px solid #e2e8f0 !important;
  border-block-end: 1px solid #ffffff !important;
}

[data-theme-style="front-faceed"] .platform-card-cta-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid #1d4ed8 !important;
  font-weight: 700 !important;
}

[data-theme-style="front-faceed"] .platform-card-cta-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Vista Llistat en Front-Faceed */
[data-theme-style="front-faceed"] .platform-cards-grid.is-list-view .platform-item-card {
  background: #ffffff !important;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06) !important;
  border: 1.5px solid #e2e8f0 !important;
}

[data-theme-style="front-faceed"] .platform-cards-grid.is-list-view .platform-card-course-item {
  background: #f1f5f9 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e2e8f0 !important;
}

/* ==========================================================================
   SWITCHER DE DISSENY EN FRONT-FACEED (ENLLAÇOS EN VERTICAL)
   ========================================================================== */
[data-theme-style="front-faceed"] .style-switcher-card,
[data-theme-style="front-faceed"] .style-switcher-group {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme-style="front-faceed"] .style-switcher-badge {
  color: #64748b !important;
}

[data-theme-style="front-faceed"] .style-pill-btn {
  color: #2563eb !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: underline !important;
}

[data-theme-style="front-faceed"] .style-pill-btn:hover {
  color: #1d4ed8 !important;
  background: transparent !important;
}

[data-theme-style="front-faceed"] .style-pill-btn.is-active {
  color: #0f172a !important;
  font-weight: 700 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
}

/* ==========================================================================
   ESTILS FRONT-FACEED PER A LA PÀGINA DEMO
   ========================================================================== */
[data-theme-style="front-faceed"] .demo-hero-banner,
[data-theme-style="front-faceed"] .demo-feed-card,
[data-theme-style="front-faceed"] .demo-pillar-card {
  background: #ffffff !important;
  border-radius: 1.5rem !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
}

[data-theme-style="front-faceed"] .demo-hero-banner:hover,
[data-theme-style="front-faceed"] .demo-feed-card:hover,
[data-theme-style="front-faceed"] .demo-pillar-card:hover {
  box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.12) !important;
  border-color: #cbd5e1 !important;
}

[data-theme-style="front-faceed"] .demo-filter-chip.is-active {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

[data-theme-style="front-faceed"] .demo-card-action-link {
  color: #2563eb !important;
}

/* Badge de sessió d'usuari Front Faceed */
[data-theme-style="front-faceed"] .platform-session-tag {
  background: transparent !important;
  color: #0f172a !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

[data-theme-style="front-faceed"] .session-user-avatar {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

[data-theme-style="front-faceed"] #session-username-display {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme-style="front-faceed"] .session-user-role {
  color: #64748b !important;
  font-weight: 400 !important;
}

/* Botó Sortir Front Faceed */
[data-theme-style="front-faceed"] .platform-logout-btn {
  background: #ffffff !important;
  color: #dc2626 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 0.35rem 0.95rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

[data-theme-style="front-faceed"] .platform-logout-btn:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   VOTING / POLL WIDGET - FRONT FACEED (ESTIL 03)
   ========================================================================== */
[data-theme-style="front-faceed"] .platform-voting-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.07) !important;
}

[data-theme-style="front-faceed"] .voting-comment-bar {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
}

[data-theme-style="front-faceed"] .voting-comment-bar:focus-within {
  border-color: #2563eb !important;
}

[data-theme-style="front-faceed"] .voting-author-avatar {
  background: #eff6ff !important;
  border: 1.5px solid #dbeafe !important;
  color: #2563eb !important;
}

[data-theme-style="front-faceed"] .voting-author-name {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .voting-title {
  color: #0f172a !important;
}

[data-theme-style="front-faceed"] .voting-poll-list {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
}

[data-theme-style="front-faceed"] .voting-checkbox-custom {
  border: 1.5px solid #94a3b8 !important;
  border-radius: 4px !important;
}

[data-theme-style="front-faceed"] .voting-poll-checkbox:checked + .voting-checkbox-custom {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

[data-theme-style="front-faceed"] .voting-poll-text {
  color: #1e293b !important;
  font-weight: 500 !important;
}

[data-theme-style="front-faceed"] .voting-progress-track {
  background: #e2e8f0 !important;
  height: 8px !important;
}

[data-theme-style="front-faceed"] .voting-progress-fill-active {
  background: #991b1b !important;
}

[data-theme-style="front-faceed"] .voting-count-info {
  color: #475569 !important;
}

[data-theme-style="front-faceed"] .voting-like-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme-style="front-faceed"] .voting-like-btn:hover {
  background: #e2e8f0 !important;
  color: #2563eb !important;
}
