/* index.css - PurePep Art Director System */

/* Import premium fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Color Palette */
  --abismo-navy: #1A2535;
  --acero-vivo: #4A7FA5;
  --cielo-polar: #A8C4D8;
  --hielo-puro: #EDF2F7;
  --niebla-acero: #6B8FA8;
  --blanco-glaciar: #F8FAFB;
  
  /* Semi-transparent variations for glassmorphism */
  --navy-glass: rgba(26, 37, 53, 0.7);
  --border-glass: rgba(168, 196, 216, 0.15);
  --border-focus: rgba(74, 127, 165, 0.6);
  
  /* Font Families */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* White background theme when user is logged in (repository view) */
body.logged-in {
  background-color: var(--blanco-glaciar);
  color: var(--abismo-navy);
}

body.logged-in ::-webkit-scrollbar-track {
  background: var(--blanco-glaciar);
}

body.logged-in .dash-navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(26, 37, 53, 0.08);
}

body.logged-in .category-block-title {
  color: var(--abismo-navy);
  border-bottom-color: rgba(26, 37, 53, 0.15);
}

body.logged-in .category-block-icon {
  color: var(--niebla-acero);
  opacity: 0.8;
}

/* Product Cards in Light Theme */
body.logged-in .product-card {
  background: white;
  border: 1px solid rgba(26, 37, 53, 0.06);
  box-shadow: 0 4px 20px rgba(26, 37, 53, 0.03), inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.logged-in .product-card::before {
  opacity: 0.15;
}

body.logged-in .product-card:hover {
  border-color: var(--acero-vivo);
  box-shadow: 0 16px 40px rgba(26, 37, 53, 0.06);
}

body.logged-in .product-name {
  color: #111827;
  font-weight: 700;
}

body.logged-in .product-purity-tag {
  color: var(--acero-vivo);
  font-weight: 700;
}

body.logged-in .product-formula {
  color: #4a5568;
  font-weight: 500;
}

/* Background bubble to highlight description text */
body.logged-in .product-desc {
  color: #1a202c;
  background: #f1f5f9;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.65;
  border-left: 3px solid var(--acero-vivo);
  margin-top: 0.75rem;
}

/* Dynamic category colors for the background bubble */
body.logged-in .product-card[data-category="metabolic"] .product-desc {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.04);
}
body.logged-in .product-card[data-category="structural"] .product-desc {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.04);
}
body.logged-in .product-card[data-category="cellular"] .product-desc {
  border-left-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.04);
}
body.logged-in .product-card[data-category="cognitive"] .product-desc {
  border-left-color: #3B82F6;
  background: rgba(59, 130, 246, 0.04);
}

body.logged-in .product-specs-row {
  color: #4a5568;
  font-weight: 500;
}

body.logged-in .product-specs-val {
  color: #1a202c;
  font-weight: 700;
}

body.logged-in .product-image-container {
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #edf3f8 65%, #dae7f0 100%) !important;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  height: 200px;
  border-bottom: 1px solid rgba(26, 37, 53, 0.04);
}

/* Light spotlight overlay to illuminate the vial dynamically */
body.logged-in .product-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  transition: all 0.4s ease;
}

body.logged-in .product-card:hover .product-image-container::after {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
}

body.logged-in .product-image {
  mix-blend-mode: normal !important;
  width: auto !important;
  height: auto !important;
  max-width: 85% !important;
  max-height: 85% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 18px rgba(26, 37, 53, 0.15)) brightness(1.02);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
}

body.logged-in .product-card:hover .product-image {
  transform: scale(1.07);
  filter: drop-shadow(0 14px 24px rgba(26, 37, 53, 0.22)) brightness(1.04);
}

body.logged-in .product-footer {
  border-top: 1px solid rgba(26, 37, 53, 0.06);
}

/* Selector in Light Theme */
body.logged-in .product-protocol-select {
  background-color: white;
  border: 1.5px solid rgba(26, 37, 53, 0.15);
  color: var(--abismo-navy);
  box-shadow: inset 0 1px 2px rgba(26, 37, 53, 0.03);
}

body.logged-in .product-presentation-container label {
  color: var(--niebla-acero);
}

/* Acquire Button in Light Theme */
body.logged-in .btn-repository-add {
  background: var(--acero-vivo);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(74, 127, 165, 0.15);
  font-weight: 700;
  text-shadow: none;
}

body.logged-in .btn-repository-add:hover {
  background: #3c6d91;
  box-shadow: 0 6px 16px rgba(74, 127, 165, 0.25);
  color: white;
}

/* Hero Section in Light Theme */
body.logged-in .dash-hero-section {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #edf5fc 40%, #d8e7f3 75%, #cadbe8 100%);
  color: var(--abismo-navy);
  border-bottom: 1px solid rgba(26, 37, 53, 0.08);
  position: relative;
}

body.logged-in .dash-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  background: 
    radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 65%),
    radial-gradient(circle at 85% 40%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.logged-in .dash-hero-title {
  color: var(--abismo-navy);
}

body.logged-in .dash-hero-subtitle {
  color: rgba(26, 37, 53, 0.7);
}

body.logged-in .dash-hero-tag {
  color: var(--acero-vivo);
  border-color: rgba(74, 127, 165, 0.2);
  background: rgba(74, 127, 165, 0.05);
}

/* Forum and Community in Light Theme */
body.logged-in .forum-wrapper {
  background: var(--blanco-glaciar);
}

body.logged-in .forum-header {
  background: white;
  border-bottom: 1px solid rgba(26, 37, 53, 0.08);
}

body.logged-in .forum-title {
  color: var(--abismo-navy);
}

body.logged-in .forum-subtitle {
  color: var(--niebla-acero);
}

body.logged-in .forum-card {
  background: white;
  border: 1px solid rgba(26, 37, 53, 0.06);
  box-shadow: 0 4px 20px rgba(26, 37, 53, 0.03);
}

body.logged-in .forum-post-title {
  color: var(--abismo-navy);
}

body.logged-in .forum-post-preview {
  color: rgba(26, 37, 53, 0.7);
}

/* Reset and base rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

body {
  background-color: var(--abismo-navy);
  color: var(--blanco-glaciar);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--abismo-navy);
}
::-webkit-scrollbar-thumb {
  background: var(--niebla-acero);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--acero-vivo);
}

/* Global Container spacing guidelines (Art Director request) */
.section-container {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: -0.01em;
}

.text-secondary {
  color: var(--niebla-acero);
}

/* ==========================================================================
   STAGE 1: THE AIRLOCK LOBBY (Pre-Registration UI)
   ========================================================================== */

/* ── Luxury Wrapper ── */
.airlock-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Hero background image with dynamic radial light center and dark navy overlay */
  background:
    radial-gradient(circle at center, rgba(74, 127, 165, 0.42) 0%, rgba(10, 16, 26, 0.95) 65%),
    linear-gradient(to bottom, rgba(10, 16, 26, 0.5) 0%, rgba(10, 16, 26, 0.94) 100%),
    url('assets/lobby_hero_bg.jpg') center/cover no-repeat;
}

/* ── Language bar — top right ── */
.airlock-lang-bar {
  position: fixed;
  top: 2rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.airlock-lang-btn {
  background: none;
  border: none;
  color: rgba(248, 250, 251, 0.4);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}
.airlock-lang-btn:hover,
.airlock-lang-btn.active {
  color: rgba(248, 250, 251, 0.9);
}
.airlock-lang-sep {
  color: rgba(248, 250, 251, 0.2);
  font-size: 0.7rem;
  align-self: center;
}

/* ── Central Column ── */
.airlock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding: 4rem 2rem 5rem;
  text-align: center;
}

/* ── Logo wordmark ── */
.airlock-logo-wrap {
  margin-bottom: 3rem;
  opacity: 0;
  animation: airlockFadeIn 1s ease-out 0.1s forwards;
}
.airlock-logo-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: #F8FAFB;
  text-transform: uppercase;
}
.airlock-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(248, 250, 251, 0.45);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* ── Elegant thin divider ── */
.airlock-divider {
  width: 32px;
  height: 1px;
  background: rgba(248, 250, 251, 0.2);
  margin: 0 auto 2.75rem;
  opacity: 0;
  animation: airlockFadeIn 1s ease-out 0.35s forwards;
}

/* ── Hero headline ── */
.airlock-headline-wrap {
  margin-bottom: 3rem;
}
/* Fade-up keyframe */
@keyframes airlockFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes airlockFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.airlock-animate-up {
  opacity: 0;
  animation: airlockFadeUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.airlock-headline {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #F8FAFB;
  margin: 0 0 1.25rem;
  text-shadow: 0 0 15px rgba(248, 250, 251, 0.8), 0 0 30px rgba(74, 127, 165, 0.6), 0 0 50px rgba(74, 127, 165, 0.4);
}
.airlock-headline em {
  font-style: italic;
  font-weight: 300;
  color: rgba(248, 250, 251, 0.85);
}

.airlock-subheadline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  line-height: 1.8;
  color: rgba(248, 250, 251, 0.5);
  margin: 0;
}

/* ── Luxury access form ── */
.airlock-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: airlockFadeIn 1.2s ease-out 1.2s forwards;
}

/* ── Ultra-minimal line input ── */
.airlock-input-group {
  width: 100%;
  text-align: left;
}
.airlock-field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 250, 251, 0.38);
  margin-bottom: 0.85rem;
}
.airlock-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(248, 250, 251, 0.45);
  border-radius: 0;
  padding: 0.65rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: #F8FAFB;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(74, 127, 165, 0.2);
}
.airlock-input::placeholder {
  color: rgba(248, 250, 251, 0.25);
  font-weight: 300;
  font-style: italic;
}
.airlock-input:focus {
  border-bottom-color: #F8FAFB;
  box-shadow: 0 4px 24px rgba(74, 127, 165, 0.8), 0 0 8px rgba(248, 250, 251, 0.6);
}

/* ── Primary pill button ── */
.airlock-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 2rem;
  background: rgba(74, 127, 165, 0.32);
  border: 2px solid rgba(248, 250, 251, 0.95);
  border-radius: 60px;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #F8FAFB;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(74, 127, 165, 0.8), inset 0 0 10px rgba(74, 127, 165, 0.4);
}
.airlock-btn-primary:hover {
  background: rgba(74, 127, 165, 0.45);
  border-color: #F8FAFB;
  color: #F8FAFB;
  box-shadow: 0 0 40px rgba(74, 127, 165, 0.98), inset 0 0 15px rgba(74, 127, 165, 0.5), 0 0 15px rgba(248, 250, 251, 0.6);
  letter-spacing: 0.28em;
}
.airlock-btn-arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.airlock-btn-primary:hover .airlock-btn-arrow {
  transform: translateX(4px);
}

/* ── Google button — small, discreet ── */
.airlock-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  color: rgba(248, 250, 251, 0.38);
  font-family: var(--font-body);
  font-size: 0.77rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.25s ease;
  border-radius: 60px;
}
.airlock-btn-google:hover {
  color: rgba(248, 250, 251, 0.75);
}

/* ── OTP card ── */
.airlock-otp-card {
  width: 100%;
  text-align: center;
  background: rgba(248, 250, 251, 0.04);
  border: 1px solid rgba(248, 250, 251, 0.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-top: 0.5rem;
}
.airlock-otp-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(248, 250, 251, 0.55);
  margin-bottom: 1.5rem;
}
.airlock-otp-row {
  display: flex;
  gap: 0.5rem;
  max-width: 280px;
  margin: 0 auto 0.75rem;
}
.airlock-otp-input {
  flex: 1;
  padding: 0.7rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(248, 250, 251, 0.2);
  background: rgba(248, 250, 251, 0.05);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
  color: #F8FAFB;
  outline: none;
}
.airlock-otp-verify {
  background: var(--acero-vivo);
  color: white;
  border: none;
  border-radius: 6px;
  width: 50px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.airlock-otp-verify:hover { background: #588fb7; }
.airlock-otp-error {
  color: #fc8181;
  font-size: 0.78rem;
  margin-top: 0.4rem;
}
.airlock-resend-btn {
  background: none;
  border: none;
  color: rgba(74, 127, 165, 0.8);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(74, 127, 165, 0.3);
  margin-top: 1rem;
  transition: color 0.2s;
}
.airlock-resend-btn:hover { color: var(--acero-vivo); }

/* ── Legal disclaimer ── */
.airlock-legal {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(248, 250, 251, 0.25);
  margin-top: 4rem;
  max-width: 360px;
  text-align: center;
  opacity: 0;
  animation: airlockFadeIn 1s ease-out 2s forwards;
}
.airlock-legal-link {
  color: rgba(248, 250, 251, 0.4);
  text-decoration: underline;
  text-decoration-color: rgba(248, 250, 251, 0.15);
  transition: color 0.2s;
}
.airlock-legal-link:hover { color: rgba(248, 250, 251, 0.65); }



.airlock-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease-out forwards;
}

.logo-large {
  display: block;
  margin: 0 auto 1.5rem auto;
}

.airlock-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cielo-polar);
  margin-top: 0.5rem;
}

/* Pure Air / Borderless access lobby card styling */
.access-gate-card {
  background: transparent;
  color: #F8FAFB;
  border-radius: 0;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: none;
  border: none;
  animation: fadeInUp 0.8s ease-out forwards;
}

.access-gate-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #FFFFFF;
}

/* Elegant fade-in load animation */
@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeInTitle 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Gate Language Selector (Minimal top-right) */
.gate-lang-selector {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.25rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
}

.gate-lang-btn {
  background: none;
  border: none;
  color: var(--niebla-acero);
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 2px solid transparent;
}

.gate-lang-btn:hover {
  color: var(--acero-vivo);
}

.gate-lang-btn.active {
  color: var(--blanco-glaciar);
  border-bottom-color: var(--acero-vivo);
}

/* Neumorphic Inputs (for light card background) */
.gate-form-group {
  margin-bottom: 2rem;
  text-align: center;
}

.gate-field-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--cielo-polar);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gate-input-container {
  position: relative;
}

.gate-input-field {
  width: 100%;
  padding: 0.75rem 0.5rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  color: #FFFFFF;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: none;
  text-align: center;
}

.gate-input-field:focus {
  border-bottom-color: var(--acero-vivo);
  box-shadow: none;
}

.gate-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--niebla-acero);
  pointer-events: none;
}

/* Gatekeeper Checkbox wrapper */
.gate-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 1.75rem;
  background: rgba(74, 127, 165, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--niebla-acero);
  transition: all 0.3s ease;
}

.gate-checkbox-wrapper.checked {
  border-left-color: var(--acero-vivo);
  background: rgba(74, 127, 165, 0.12);
}

.visually-hidden,
.gate-hidden-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gate-custom-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--niebla-acero);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  cursor: pointer;
  background: white;
  transition: all 0.2s ease;
}

.gate-custom-checkbox svg {
  fill: none;
  stroke: white;
  stroke-width: 3px;
  width: 0.7rem;
  height: 0.7rem;
  display: none;
}

.gate-hidden-checkbox:checked + .gate-custom-checkbox {
  background-color: var(--acero-vivo);
  border-color: var(--acero-vivo);
}

.gate-hidden-checkbox:checked + .gate-custom-checkbox svg {
  display: block;
}

.gate-checkbox-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--abismo-navy);
  cursor: pointer;
  user-select: none;
}

/* Lobby Neumorphic Buttons */
.gate-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.gate-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.gate-btn-google {
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.gate-btn-google:not(:disabled):hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: none;
}

.gate-btn-email {
  background-color: var(--acero-vivo);
  color: white;
  box-shadow: 0 0 15px rgba(74, 127, 165, 0.35);
}

.gate-btn-email:not(:disabled):hover {
  background-color: #588fb7;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(74, 127, 165, 0.65);
}

/* Disclaimer at the bottom */
.gate-disclaimer-wrapper {
  margin-top: 2rem;
  text-align: center;
  padding: 0 0.5rem;
}

.gate-legal-disclaimer {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--niebla-acero);
  opacity: 0.8;
  margin: 0;
  text-align: center;
}

.gate-login-link-container {
  margin-top: 1.25rem;
  text-align: center;
}

.gate-login-link {
  font-size: 0.85rem;
  color: var(--niebla-acero);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gate-login-link:hover {
  color: var(--abismo-navy);
}

/* ==========================================================================
   STAGE 2: THE REPOSITORY HOME (Institutional Dashboard)
   ========================================================================== */

/* Navbar (Sterile Blanco Glaciar background) */
/* ==========================================================================
   THE ELITE HEADER — Frosted Glass Navigation
   ========================================================================== */

.dash-navbar {
  background: rgba(248, 250, 251, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--abismo-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(168, 196, 216, 0.2);
  box-shadow: 0 2px 32px rgba(26, 37, 53, 0.04);
}

/* Serif logo */
.dash-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Collapsible search ── */
.dash-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

/* Hidden state — just the icon */
.dash-search-box .dash-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  pointer-events: none;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}

/* Expanded state when focused */
.dash-search-box:focus-within .dash-search-input,
.dash-search-box.search-open .dash-search-input {
  width: 260px;
  opacity: 1;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  pointer-events: auto;
}

.dash-search-input {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 300;
  border-radius: 0;
  border-bottom: 1px solid rgba(26, 37, 53, 0.2);
  background: transparent;
  color: var(--abismo-navy);
  outline: none;
  letter-spacing: 0.03em;
}

.dash-search-input::placeholder {
  color: rgba(107, 143, 168, 0.6);
  font-weight: 300;
}

.dash-search-input:focus {
  border-bottom-color: var(--acero-vivo);
}

/* Lupa icon — clickable to expand */
.dash-search-icon {
  position: absolute;
  left: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(26, 37, 53, 0.45);
  cursor: pointer;
  z-index: 2;
  transition: color 0.25s ease;
  pointer-events: auto;
}

.dash-search-box:focus-within .dash-search-icon {
  color: var(--acero-vivo);
}

/* ── User identity panel ── */
.dash-user-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.dash-user-tag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Gold-border avatar */
.dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acero-vivo) 0%, #2e5f80 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-title);
  font-size: 0.82rem;
  border: 1.5px solid rgba(168, 196, 216, 0.6);
  box-shadow: 0 0 0 2px rgba(168, 196, 216, 0.15);
  flex-shrink: 0;
}

/* Abbreviated display name only */
.dash-email-text {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--abismo-navy);
  letter-spacing: 0.03em;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Boutique cart button (pill ghost) ── */
.dash-btn-support {
  background: transparent !important;
  color: var(--abismo-navy) !important;
  border: 1px solid rgba(26, 37, 53, 0.25) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 60px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-btn-support:hover {
  background: var(--abismo-navy) !important;
  color: white !important;
  border-color: var(--abismo-navy) !important;
}

.dash-btn-logout {
  background: transparent;
  border: none;
  color: rgba(107, 143, 168, 0.7);
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dash-btn-logout:hover {
  color: var(--abismo-navy);
}

/* ==========================================================================
   THE ELITE HERO — Editorial Masterpiece
   ========================================================================== */

/* Slide-up entrance animation */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoShimmer {
  0%, 90%, 100% { filter: brightness(1); }
  95%            { filter: brightness(1.3) drop-shadow(0 0 6px rgba(74,127,165,0.4)); }
}

.dash-navbar-logo svg {
  animation: logoShimmer 10s ease-in-out infinite;
}

.dash-hero-section {
  background: linear-gradient(160deg, #0d1520 0%, #1A2535 45%, #1e3048 100%);
  color: var(--blanco-glaciar);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

/* Radial glow center */
.dash-hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(74, 127, 165, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grain */
.dash-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.dash-hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding-block: 6rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.dash-hero-text-col {
  max-width: 720px;
  animation: heroSlideUp 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* Tag label */
.dash-hero-tag {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(74, 127, 165, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 1.5rem;
  display: block;
}

/* Serif italic hero title */
.dash-hero-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: #F8FAFB;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(74, 127, 165, 0.15);
}

/* Subtitle — poetic, thin */
.dash-hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(248, 250, 251, 0.5);
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.04em;
}

/* Remove old vial image column */
.dash-hero-img-col {
  display: none;
}






/* Category Grid architecture */
.category-block {
  margin-bottom: 5rem;
  position: relative;
}

/* ── Luxury Category Header ── */
.category-block-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
}

.category-block-icon {
  color: rgba(168, 196, 216, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.5;
}

.category-block-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #F8FAFB;
  position: relative;
  padding-bottom: 0.85rem;
}
/* Thin short underline — not full width */
.category-block-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background: rgba(168, 196, 216, 0.35);
}




/* ── Product cards sub-grid ── */
.products-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

/* ── Glassmorphism Product Card ── */
.product-card {
  background: rgba(255, 255, 255, 0.04);
  /* Gradient border via box-shadow trick */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Subtle grain overlay on each card */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 196, 216, 0.35);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(168, 196, 216, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── Product Image ── */
.product-image-container {
  height: 185px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  /* Studio light shadow for vials */
  background: radial-gradient(ellipse at 50% 35%, rgba(168, 196, 216, 0.06) 0%, transparent 70%);
  z-index: 1;
}

.product-image {
  max-height: 88%;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

.product-card:hover .product-image {
  transform: scale(1.07);
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.7));
}

/* ── Product Meta ── */
.product-meta {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Purity tag — ultra-minimal */
.product-purity-tag {
  background: transparent;
  border: none;
  color: rgba(168, 196, 216, 0.55);
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  width: fit-content;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Product name — Serif luxury */
.product-name {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #F8FAFB;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Formula — tiny, technical, discreet */
.product-formula {
  font-family: var(--font-title);
  font-size: 0.68rem;
  color: rgba(168, 196, 216, 0.45);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

/* Description — refined, airy */
.product-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(248, 250, 251, 0.45);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ── Product Footer ── */
.product-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* CAS / Specs row */
.product-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 0.65rem;
  color: rgba(248, 250, 251, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-specs-val {
  color: rgba(248, 250, 251, 0.5);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Luxury line-style dropdown ── */
.product-protocol-select {
  width: 100%;
  background: rgba(74, 127, 165, 0.24);
  border: 1.5px solid rgba(248, 250, 251, 0.9);
  border-radius: 6px;
  padding: 0.6rem 2.2rem 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #F8FAFB;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* Minimal arrow */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(248,250,251,0.95)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.03em;
  box-shadow: 0 0 16px rgba(74, 127, 165, 0.6), inset 0 0 6px rgba(74, 127, 165, 0.2);
}
.product-protocol-select:hover {
  border-color: #F8FAFB;
  background: rgba(74, 127, 165, 0.32);
  box-shadow: 0 0 24px rgba(74, 127, 165, 0.8), inset 0 0 8px rgba(74, 127, 165, 0.3);
}
.product-protocol-select:focus {
  border-color: var(--acero-vivo);
  background: rgba(74, 127, 165, 0.38);
  box-shadow: 0 0 32px rgba(74, 127, 165, 0.95), inset 0 0 10px rgba(74, 127, 165, 0.4);
  color: #F8FAFB;
}
.product-protocol-select option {
  background: #1A2535;
  color: #F8FAFB;
}

/* ── Pill CTA button ── */
.btn-repository-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(74, 127, 165, 0.55);
  border-radius: 60px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 250, 251, 0.85);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-repository-add:hover {
  background: rgba(74, 127, 165, 0.75);
  border-color: var(--acero-vivo);
  color: #F8FAFB;
  box-shadow: 0 4px 20px rgba(74, 127, 165, 0.3);
  letter-spacing: 0.23em;
}

/* Purity Badge and COA Link Styles (Evo Labs style) */
.product-badge-float {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(74, 127, 165, 0.12);
  border: 1px solid rgba(74, 127, 165, 0.25);
  color: var(--acero-vivo);
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

body.logged-in .product-badge-float {
  background: rgba(74, 127, 165, 0.08);
  border-color: rgba(74, 127, 165, 0.18);
  color: var(--acero-vivo);
}

/* Category-specific styling for floating badges and card interactive glows */
/* Metabolic (Emerald Green) */
.product-badge-float.badge-metabolic {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #10B981 !important;
}
.product-card[data-category="metabolic"]:hover .product-badge-float {
  transform: translateY(-2px);
  background: #10B981 !important;
  border-color: #10B981 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.product-card[data-category="metabolic"]:hover .product-image-container {
  background: radial-gradient(ellipse at 50% 35%, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
}
.product-card[data-category="metabolic"]:hover .btn-repository-add {
  background: #10B981 !important;
  border-color: #10B981 !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.product-card[data-category="metabolic"] .product-coa-link:hover {
  color: #10B981 !important;
}

/* Structural (Amber Orange) */
.product-badge-float.badge-structural {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #F59E0B !important;
}
.product-card[data-category="structural"]:hover .product-badge-float {
  transform: translateY(-2px);
  background: #F59E0B !important;
  border-color: #F59E0B !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.product-card[data-category="structural"]:hover .product-image-container {
  background: radial-gradient(ellipse at 50% 35%, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
}
.product-card[data-category="structural"]:hover .btn-repository-add {
  background: #F59E0B !important;
  border-color: #F59E0B !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}
.product-card[data-category="structural"] .product-coa-link:hover {
  color: #F59E0B !important;
}

/* Cellular / Longevity (Amethyst Purple) */
.product-badge-float.badge-cellular {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  color: #8B5CF6 !important;
}
.product-card[data-category="cellular"]:hover .product-badge-float {
  transform: translateY(-2px);
  background: #8B5CF6 !important;
  border-color: #8B5CF6 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.product-card[data-category="cellular"]:hover .product-image-container {
  background: radial-gradient(ellipse at 50% 35%, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
}
.product-card[data-category="cellular"]:hover .btn-repository-add {
  background: #8B5CF6 !important;
  border-color: #8B5CF6 !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.product-card[data-category="cellular"] .product-coa-link:hover {
  color: #8B5CF6 !important;
}

/* Cognitive (Electric Blue) */
.product-badge-float.badge-cognitive {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #3B82F6 !important;
}
.product-card[data-category="cognitive"]:hover .product-badge-float {
  transform: translateY(-2px);
  background: #3B82F6 !important;
  border-color: #3B82F6 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.product-card[data-category="cognitive"]:hover .product-image-container {
  background: radial-gradient(ellipse at 50% 35%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
}
.product-card[data-category="cognitive"]:hover .btn-repository-add {
  background: #3B82F6 !important;
  border-color: #3B82F6 !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.product-card[data-category="cognitive"] .product-coa-link:hover {
  color: #3B82F6 !important;
}

/* Solvent & Default (Steel Grey) */
.product-badge-float.badge-solvent,
.product-badge-float.badge-default {
  background: rgba(74, 127, 165, 0.08) !important;
  border-color: rgba(74, 127, 165, 0.25) !important;
  color: var(--acero-vivo) !important;
}
.product-card[data-category="solvent"]:hover .product-badge-float,
.product-card[data-category="default"]:hover .product-badge-float {
  transform: translateY(-2px);
  background: var(--acero-vivo) !important;
  border-color: var(--acero-vivo) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(74, 127, 165, 0.3);
}
.product-card[data-category="solvent"]:hover .product-image-container,
.product-card[data-category="default"]:hover .product-image-container {
  background: radial-gradient(ellipse at 50% 35%, rgba(74, 127, 165, 0.18) 0%, transparent 70%);
}
.product-card[data-category="solvent"]:hover .btn-repository-add,
.product-card[data-category="default"]:hover .btn-repository-add {
  background: var(--acero-vivo) !important;
  border-color: var(--acero-vivo) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(74, 127, 165, 0.35);
}
.product-card[data-category="solvent"] .product-coa-link:hover,
.product-card[data-category="default"] .product-coa-link:hover {
  color: var(--acero-vivo) !important;
}

.product-coa-link {
  transition: all 0.25s ease;
}

.product-coa-link:hover {
  color: var(--acero-vivo) !important;
}

.product-coa-link:hover svg {
  transform: scale(1.1);
  opacity: 1;
}

/* ── Hover overlay (Ver Ficha Técnica) ── */
.product-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 26, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
  border-radius: 16px;
}

.product-card:hover .product-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Ghost CTA inside overlay */
.btn-quick-spec {
  background: transparent;
  border: 1px solid rgba(248, 250, 251, 0.3);
  color: rgba(248, 250, 251, 0.8);
  padding: 0.75rem 1.75rem;
  border-radius: 60px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-quick-spec:hover {
  background: rgba(168, 196, 216, 0.12);
  border-color: rgba(168, 196, 216, 0.65);
  color: #F8FAFB;
  box-shadow: 0 0 20px rgba(168, 196, 216, 0.15);
}




/* ==========================================================================
   PILAR DE TRANSPARENCIA: SCIENTIFIC AUTHORITY
   ========================================================================== */

/* ==========================================================================
   THE RESEARCH COMPASS (Protocol Search Section)
   ========================================================================== */

/* ==========================================================================
   THE RESEARCH COMPASS — Elite Dark Redesign
   ========================================================================== */

.research-compass-section {
  background: radial-gradient(circle at 50% 30%, #162438 0%, #090f17 100%);
  color: var(--blanco-glaciar);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle DNA / neural watermark in the background */
.research-compass-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23A8C4D8' stroke-width='0.8' opacity='0.07'%3E%3Ccircle cx='400' cy='400' r='300'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='100'/%3E%3Cline x1='100' y1='400' x2='700' y2='400'/%3E%3Cline x1='400' y1='100' x2='400' y2='700'/%3E%3Cline x1='188' y1='188' x2='612' y2='612'/%3E%3Cline x1='612' y1='188' x2='188' y2='612'/%3E%3Ccircle cx='400' cy='100' r='4'/%3E%3Ccircle cx='400' cy='700' r='4'/%3E%3Ccircle cx='100' cy='400' r='4'/%3E%3Ccircle cx='700' cy='400' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.compass-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.compass-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: #F8FAFB;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.compass-subtitle {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(168, 196, 216, 0.5);
  max-width: 480px;
  margin: 0 auto;
  line-height: 2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ── Grid ── */
.compass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Glassmorphism Dark Cards ── */
.compass-card {
  border-radius: 16px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* ── Minimalist SVG Icon Wrapper ── */
.compass-card-icon {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.35s ease, filter 0.35s ease;
}

/* Override old special class */
.compass-card-icon.special {
  background: transparent;
  border: none;
}

/* ── LED Glow and Color Customizations for Research Compass ── */

/* 1. Metabolic Card (Emerald Green LED Glow) */
.compass-card-metabolic {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.02) 70%, rgba(10, 16, 26, 0.4) 100%);
  border: 0.5px solid rgba(16, 185, 129, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.compass-card-metabolic .compass-card-icon {
  color: rgba(16, 185, 129, 0.7);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}
.compass-card-metabolic .btn-compass-action {
  color: rgba(16, 185, 129, 0.85);
}
.compass-card-metabolic .btn-compass-action::after {
  background: #10B981;
}

.compass-card-metabolic:hover {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.18) 0%, rgba(255, 255, 255, 0.04) 70%, rgba(10, 16, 26, 0.5) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-6px);
  box-shadow: 
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.compass-card-metabolic:hover .compass-card-icon {
  color: #10B981;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.75));
}
.compass-card-metabolic:hover .btn-compass-action {
  color: #10B981;
}

/* 2. Structural Card (Amber Orange LED Glow) */
.compass-card-structural {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.02) 70%, rgba(10, 16, 26, 0.4) 100%);
  border: 0.5px solid rgba(245, 158, 11, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(245, 158, 11, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.compass-card-structural .compass-card-icon {
  color: rgba(245, 158, 11, 0.7);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}
.compass-card-structural .btn-compass-action {
  color: rgba(245, 158, 11, 0.85);
}
.compass-card-structural .btn-compass-action::after {
  background: #F59E0B;
}

.compass-card-structural:hover {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18) 0%, rgba(255, 255, 255, 0.04) 70%, rgba(10, 16, 26, 0.5) 100%);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-6px);
  box-shadow: 
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(245, 158, 11, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.compass-card-structural:hover .compass-card-icon {
  color: #F59E0B;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.75));
}
.compass-card-structural:hover .btn-compass-action {
  color: #F59E0B;
}

/* 3. Cellular Card (Amethyst Purple LED Glow) */
.compass-card-cellular {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0.02) 70%, rgba(10, 16, 26, 0.4) 100%);
  border: 0.5px solid rgba(139, 92, 246, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.compass-card-cellular .compass-card-icon {
  color: rgba(139, 92, 246, 0.7);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}
.compass-card-cellular .btn-compass-action {
  color: rgba(139, 92, 246, 0.85);
}
.compass-card-cellular .btn-compass-action::after {
  background: #8B5CF6;
}

.compass-card-cellular:hover {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.18) 0%, rgba(255, 255, 255, 0.04) 70%, rgba(10, 16, 26, 0.5) 100%);
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-6px);
  box-shadow: 
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.compass-card-cellular:hover .compass-card-icon {
  color: #8B5CF6;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.75));
}
.compass-card-cellular:hover .btn-compass-action {
  color: #8B5CF6;
}

/* ── Card Typography ── */
.compass-card-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #F8FAFB;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.compass-card-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(248, 250, 251, 0.45);
  margin-bottom: 2.5rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

/* ── Text-link CTA with underline expansion ── */
.btn-compass-action {
  background: transparent;
  border: none;
  color: rgba(168, 196, 216, 0.7);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  position: relative;
  transition: color 0.3s ease;
}

.btn-compass-action::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cielo-polar);
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-compass-action:hover {
  color: #F8FAFB;
}

.btn-compass-action:hover::after {
  width: 100%;
}




/* ==========================================================================
   THE PRECISION MODELER — Luxury Instrument Redesign
   ========================================================================== */

.protocol-modeler-section {
  background: radial-gradient(circle at 50% 40%, #152233 0%, #060a12 100%);
  color: var(--blanco-glaciar);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(168, 196, 216, 0.08);
}

.protocol-modeler-section::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Editorial Header ── */
.modeler-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.modeler-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 400;
  color: #F8FAFB;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 25px rgba(59, 130, 246, 0.3);
}

.modeler-title-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(168, 196, 216, 0.65);
  margin-bottom: 1.5rem;
  display: block;
  letter-spacing: 0.05em;
}

.modeler-subtitle {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(168, 196, 216, 0.45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 2;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ── Glassmorphism Container with corner light source ── */
.modeler-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(74, 127, 165, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3.5rem;
  align-items: center;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(74, 127, 165, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modeler-container:hover {
  border-color: rgba(74, 127, 165, 0.6);
  transform: translateY(-3px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(74, 127, 165, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modeler-container::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(74, 127, 165, 0.25) 0%, rgba(59, 130, 246, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

@media (max-width: 900px) {
  .modeler-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

.modeler-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: relative;
  z-index: 1;
}

.modeler-field {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ── Numbered labels (01. 02. 03.) ── */
.modeler-label {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(168, 196, 216, 0.45);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── Luxury line-style molecule selector ── */
.modeler-select {
  background: transparent;
  color: rgba(248, 250, 251, 0.85);
  border: none;
  border-bottom: 1px solid rgba(168, 196, 216, 0.2);
  border-radius: 0;
  padding: 0.6rem 1.5rem 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(168,196,216,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  letter-spacing: 0.03em;
}

.modeler-select:focus {
  border-bottom-color: rgba(74, 127, 165, 0.7);
}

.modeler-select option {
  background: #1A2535;
  color: #F8FAFB;
}

/* ── Pill-shape choice buttons ── */
.modeler-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modeler-choice-btn {
  flex: 1;
  min-width: 60px;
  background: transparent;
  color: rgba(248, 250, 251, 0.45);
  border: 1px solid rgba(168, 196, 216, 0.18);
  padding: 0.65rem 1rem;
  border-radius: 60px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
}

.modeler-choice-btn:hover {
  border-color: rgba(168, 196, 216, 0.4);
  color: rgba(248, 250, 251, 0.75);
}

/* Active / selected state — glowing encendido */
.modeler-choice-btn.active {
  border-color: var(--acero-vivo);
  color: #F8FAFB;
  background: rgba(74, 127, 165, 0.08);
  box-shadow:
    0 0 12px rgba(74, 127, 165, 0.4),
    0 0 30px rgba(74, 127, 165, 0.15);
  font-weight: 600;
}

/* ── Output Card — The Jewel ── */
.modeler-output-card {
  background: radial-gradient(circle at 100% 0%, rgba(74, 127, 165, 0.12) 0%, rgba(248, 250, 251, 0.03) 70%, rgba(10, 16, 26, 0.5) 100%);
  border: 0.5px solid rgba(74, 127, 165, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #F8FAFB;
  border-radius: 16px;
  padding: 2.75rem 2rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(74, 127, 165, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modeler-output-card:hover {
  border-color: rgba(74, 127, 165, 0.6);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(74, 127, 165, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modeler-output-title {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(168, 196, 216, 0.5);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modeler-output-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.modeler-output-compound {
  font-family: var(--font-title);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: rgba(168, 196, 216, 0.6);
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 0.75rem;
}

.modeler-output-value-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

/* The number — serif with gradient */
.modeler-output-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 20%, #7ec2f2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 25px rgba(126, 194, 242, 0.25);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modeler-output-unit {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(168, 196, 216, 0.6);
}

.modeler-output-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(248, 250, 251, 0.35);
  text-align: center;
  letter-spacing: 0.04em;
}

.modeler-output-note {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(248, 250, 251, 0.25);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Ghost pill CTA ── */
.modeler-cta-container {
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.btn-modeler-cta {
  background: transparent;
  color: rgba(248, 250, 251, 0.8);
  border: 1px solid rgba(74, 127, 165, 0.5);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.75rem;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modeler-cta:hover {
  background: rgba(74, 127, 165, 0.75);
  border-color: var(--acero-vivo);
  color: #F8FAFB;
  box-shadow: 0 8px 32px rgba(74, 127, 165, 0.3);
  letter-spacing: 0.25em;
}



/* ==========================================================================
   THE PUREPEP STANDARD (Confianza Humana)
   ========================================================================== */

/* ==========================================================================
   THE MOLECULAR CONCIERGE (Acceso y Logística de Élite)
   ========================================================================== */

.molecular-concierge-section {
  background-color: var(--blanco-glaciar);
  color: var(--abismo-navy);
  border-top: 1px solid var(--border-glass);
}

.concierge-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
  min-height: 520px;
}

@media (max-width: 1024px) {
  .concierge-grid {
    grid-template-columns: 1fr;
  }
  .concierge-img-col {
    height: 320px;
  }
}

.concierge-text-col {
  padding: 3.5rem 4rem 3.5rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1200px) {
  .concierge-text-col {
    padding: 3rem 2.5rem 3rem 3.5rem;
  }
}

@media (max-width: 768px) {
  .concierge-text-col {
    padding: 2.5rem 1.25rem;
  }
}

.concierge-title {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.concierge-copy {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 2rem;
  max-width: 680px;
}

.concierge-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.concierge-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 680px;
}

.concierge-pillar-icon {
  background: rgba(74, 127, 165, 0.1);
  color: var(--acero-vivo);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.concierge-pillar-content h4 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin-bottom: 0.25rem;
}

.concierge-pillar-content p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4a5568;
  font-weight: 400;
}

/* Wiggle/Shake animation for speed icon on hover */
.concierge-pillar.animate-on-hover:hover .speed-icon {
  animation: truckWiggle 0.4s ease-in-out infinite alternate;
  background: var(--acero-vivo);
  color: var(--blanco-glaciar);
}

@keyframes truckWiggle {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-2px) translateX(1px); }
  100% { transform: translateY(0) translateX(3px); }
}

.concierge-cta-container {
  display: flex;
}

.btn-concierge-action {
  background-color: var(--acero-vivo);
  color: var(--blanco-glaciar);
  border: none;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(74, 127, 165, 0.3);
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.btn-concierge-action:hover {
  background-color: var(--abismo-navy);
  color: var(--blanco-glaciar);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 37, 53, 0.25);
}

.concierge-img-col {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.concierge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   THE MOLECULAR NEWSFEED (Carrusel Educativo)
   ========================================================================== */

.molecular-newsfeed-section {
  background-color: var(--abismo-navy);
  color: var(--blanco-glaciar);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-glass);
}

.newsfeed-header {
  text-align: center;
  margin-bottom: 4rem;
}

.newsfeed-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blanco-glaciar);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.newsfeed-subtitle {
  color: var(--niebla-acero);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.newsfeed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.newsfeed-card {
  background: rgba(168, 196, 216, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 380px;
}

.newsfeed-card:hover {
  background: rgba(168, 196, 216, 0.04);
  border-color: var(--cielo-polar);
  transform: translateY(-5px);
}

.newsfeed-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.newsfeed-card-tag.tag-mecanismo {
  background-color: var(--acero-vivo);
  color: var(--blanco-glaciar);
}

.newsfeed-card-tag.tag-rigor {
  background-color: var(--niebla-acero);
  color: var(--blanco-glaciar);
}

.newsfeed-card-tag.tag-quimica {
  background-color: var(--cielo-polar);
  color: var(--abismo-navy);
  font-weight: 800;
}

.newsfeed-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blanco-glaciar);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.newsfeed-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cielo-polar);
  opacity: 0.80;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.newsfeed-read-link {
  background: transparent;
  border: none;
  color: var(--cielo-polar);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: all 0.25s ease;
  margin-top: auto;
}

.newsfeed-read-link .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.newsfeed-card:hover .newsfeed-read-link {
  color: var(--acero-vivo);
}

.newsfeed-card:hover .newsfeed-read-link .arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   FOOTER (Institutional Cierre)
   ========================================================================== */

.institutional-footer {
  background-color: var(--abismo-navy);
  border-top: 1.5px solid var(--border-glass);
  color: var(--blanco-glaciar);
  padding: 5rem 2rem 2.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 440px;
}

.footer-mission-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--cielo-polar);
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--blanco-glaciar);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 12px;
}

.footer-link-item a {
  color: var(--cielo-polar);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-item a:hover {
  color: var(--blanco-glaciar);
  text-decoration: underline;
}

/* Logistics list */
.footer-logistics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 12px;
  color: var(--cielo-polar);
}

.footer-logistics-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-logistics-item span {
  font-weight: 700;
  color: var(--blanco-glaciar);
}

/* Footer bottom disclaimer stripe */
.footer-bottom-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--acero-vivo);
  padding-top: 2.5rem;
  text-align: center;
}

.footer-disclaimer-box {
  border: 1px dashed var(--niebla-acero);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cielo-polar);
}

.footer-disclaimer-box strong {
  display: block;
  color: var(--blanco-glaciar);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--niebla-acero);
}

/* Keyframe Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive details */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .dash-navbar {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.65rem 0.85rem !important;
    gap: 0.25rem !important;
  }
  .dash-navbar-logo svg {
    width: 155px !important;
    height: 48px !important;
  }
  .dash-navbar-logo svg text:last-child {
    display: none !important;
  }
  .dash-navbar-logo svg text:first-child {
    font-size: 40px !important;
    font-weight: 700 !important;
    y: 62 !important;
    fill: #0B1320 !important;
  }
  .dash-email-text {
    display: none !important;
  }
  .dash-user-tag {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: rgba(26, 37, 53, 0.05) !important;
    border: 1px solid var(--hielo-puro) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .dash-user-tag span:last-child {
    display: none !important;
  }
  .dash-search-box .dash-search-input {
    width: 0;
  }
  .dash-search-box:focus-within .dash-search-input,
  .dash-search-box.search-open .dash-search-input {
    width: 110px !important;
    font-size: 0.75rem !important;
  }
  .dash-search-box {
    max-width: 130px;
  }
  .dash-hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-block: 3rem;
  }
  .dash-hero-img-col {
    width: 100%;
    max-width: 380px;
  }
  .hplc-slide {
    flex-direction: column;
    padding: 1.5rem;
  }
  .hplc-chart-col, .hplc-info-col {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .access-gate-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   MODAL WINDOW & SECURE EMAIL CLIENT OVERLAYS
   ========================================================================== */

.email-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 37, 53, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Ensure it floats on top of everything */
  padding: 1rem;
}

.email-window {
  width: 100%;
  max-width: 650px;
  background: var(--hielo-puro);
  color: var(--abismo-navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse-loading {
  0% { opacity: 0.6; background-color: #edf2f7; }
  50% { opacity: 1; background-color: #e2e8f0; }
  100% { opacity: 0.6; background-color: #edf2f7; }
}

.email-header {
  background: #e1e7ec;
  padding: 1rem;
  border-bottom: 1px solid #d2dce2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-window-controls {
  display: flex;
  gap: 0.35rem;
}

.email-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.email-dot.red { background: #ff5f56; }
.email-dot.yellow { background: #ffbd2e; }
.email-dot.green { background: #27c93f; }

.email-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  color: #4a5568;
}

.email-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #718096;
  font-size: 1.25rem;
}

.email-meta {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
}

.email-meta-row span {
  font-weight: 600;
  color: #4a5568;
}

.email-body {
  background: white;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.email-logo {
  height: 48px;
  margin-bottom: 2rem;
}

.email-text-content {
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.email-greeting {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.email-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
}

.btn-email-confirm {
  background: var(--abismo-navy);
  color: var(--blanco-glaciar);
  border: none;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 37, 53, 0.3);
}

.btn-email-confirm:hover {
  background-color: #27364d;
  transform: translateY(-2px);
}

.email-footer {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 2rem;
}

/* ==========================================================================
   THE SYNERGY STACK (Venta Cruzada)
   ========================================================================== */

.synergy-stack-section {
  background-color: var(--abismo-navy);
  color: var(--blanco-glaciar);
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-glass);
}

.synergy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 900px) {
  .synergy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .synergy-img-col {
    order: -1;
  }
}

.synergy-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.synergy-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blanco-glaciar);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.synergy-copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--niebla-acero);
  margin-bottom: 2.5rem;
}

.btn-synergy-action {
  background-color: var(--acero-vivo);
  color: var(--blanco-glaciar);
  border: none;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(74, 127, 165, 0.3);
  transition: all 0.25s ease;
}

.btn-synergy-action:hover {
  background-color: var(--cielo-polar);
  color: var(--abismo-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 196, 216, 0.4);
}

.synergy-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  display: block;
}

/* ==========================================================================
   SUPPORT CENTER: LABORATORY EXTRA PREMIUM (Apple / Stripe aesthetic)
   ========================================================================== */
.support-wrapper {
  background: var(--blanco-glaciar) !important;
  color: var(--abismo-navy) !important;
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 5rem;
}

.support-hero-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin-bottom: 0.75rem;
}

.support-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Soft shadows Apple-like */
.premium-card {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0, 0, 0, 0.02);
}

.support-grid-two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
}

/* Icon style */
.icon-circle-wrapper {
  width: 56px;
  height: 56px;
  background-color: #EBF3F9; /* Hielo Puro soft variant */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acero-vivo);
  margin-bottom: 1.5rem;
}

.premium-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin-bottom: 0.5rem;
}

.premium-card-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #6B7280; /* Gris Niebla Acero variant */
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Premium Buttons */
.btn-premium-solid {
  background-color: var(--acero-vivo);
  color: white;
  width: 100%;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.btn-premium-solid:hover {
  background-color: var(--abismo-navy);
  box-shadow: 0 4px 12px rgba(26, 37, 53, 0.15);
}

.btn-premium-outlined {
  background-color: transparent;
  color: var(--acero-vivo);
  border: 1.5px solid var(--acero-vivo);
  width: 100%;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.btn-premium-outlined:hover {
  background-color: var(--acero-vivo);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 127, 165, 0.15);
}

.premium-card-footer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #9CA3AF;
  font-weight: 500;
}

/* Central Tracking Hub */
.tracking-hub-band {
  background-color: var(--hielo-puro); /* #EDF2F7 */
  border-radius: 8px;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.tracking-hub-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--abismo-navy);
  text-align: center;
  margin-bottom: 1.5rem;
}

.tracking-search-bar {
  display: flex;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tracking-search-bar:focus-within {
  border-color: var(--acero-vivo);
  box-shadow: 0 0 0 3px rgba(74, 127, 165, 0.1);
}

.tracking-search-bar input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--abismo-navy);
  outline: none;
}

.tracking-search-bar input::placeholder {
  color: #A0AEC0;
}

.tracking-search-bar button {
  background-color: var(--abismo-navy);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0 2rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tracking-search-bar button:hover {
  background-color: var(--acero-vivo);
}

/* Modern Accordion */
.faq-accordion-section {
  margin-bottom: 5rem;
}

.faq-section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin-bottom: 2rem;
}

.modern-accordion {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.modern-faq-item {
  border-bottom: 1px solid #EDF2F7;
}

.modern-faq-item:last-child {
  border-bottom: none;
}

.modern-faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-title);
  text-align: left;
  color: var(--abismo-navy);
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}

.modern-faq-header:hover {
  background-color: #F8FAFB;
}

.modern-faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--niebla-acero);
}

.modern-faq-header.active .modern-faq-icon {
  transform: rotate(180deg);
  color: var(--acero-vivo);
}

.modern-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-faq-body p {
  margin: 0;
  padding: 0 2rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4A5568; /* Niebla Acero variant */
  font-family: var(--font-body);
}

/* Disclaimer Safety Seal */
.safety-seal-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #718096;
  max-width: 650px;
  margin: 5rem auto 1rem;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
}

/* Floating WhatsApp Action Button (FAB) */
.whatsapp-fab {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acero-vivo), var(--abismo-navy));
  box-shadow: 0 6px 20px rgba(26, 37, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(74, 127, 165, 0.5);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

@media (max-width: 600px) {
  .support-grid-two-cols {
    grid-template-columns: 1fr;
  }
  .tracking-search-bar {
    flex-direction: column;
    padding: 0;
  }
  .tracking-search-bar button {
    padding: 0.8rem;
    border-radius: 0 0 6px 6px;
  }
  .whatsapp-fab {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Dev/Demo Tool Badges */
.email-client-trigger-badge {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: #FFFFFF;
  color: var(--abismo-navy);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: pulseBadge 2s infinite;
}

.email-client-trigger-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  background: #F8FAFB;
}

/* Sourcing Validation Field Glow */
.validation-glow {
  border-color: var(--acero-vivo) !important;
  box-shadow: 0 0 0 3px rgba(74, 127, 165, 0.4) !important;
  background-color: #EDF2F7 !important;
  animation: shakeInput 0.4s ease-in-out;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Order Sourcing Timeline */
.timeline-sourcing {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  margin: 2rem 0;
  padding-left: 0.5rem;
}

.timeline-item-sourcing {
  position: relative;
  padding-left: 1.75rem;
}

.timeline-item-sourcing::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e0;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #e2e8f0;
  z-index: 2;
}

.timeline-item-sourcing.active::before {
  background: var(--acero-vivo);
  box-shadow: 0 0 0 2px rgba(74, 127, 165, 0.4);
}

.timeline-item-sourcing:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 2px;
  height: calc(100% + 0.75rem);
  background: #e2e8f0;
  z-index: 1;
}

.timeline-title-sourcing {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--abismo-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.timeline-desc-sourcing {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.4;
}

/* Confetti Particle */
.confetti-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  animation: fallDown 3s linear forwards;
}

@keyframes fallDown {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0;
  }
}

/* Mobile responsive adjustments for logistics view */
@media (max-width: 900px) {
  #logistics-content-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Stack City/Zip inputs vertically on narrow viewports */
  #logistics-form > div > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  #logistics-view {
    padding: 1rem 0.5rem !important;
  }
  
  #logistics-view > div {
    padding: 1.5rem 1rem !important;
  }
  
  /* Stack Logistics Header vertically */
  #logistics-view header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
}

/* General Mobile Styling Overrides (< 768px) */
@media (max-width: 768px) {
  /* 1. Access Gate / Airlock */
  .airlock-wrapper {
    padding: 1.5rem 0.75rem !important;
  }
  .access-gate-card {
    padding: 2rem 1.25rem !important;
    border-radius: 16px !important;
  }
  .access-gate-title {
    font-size: 1.35rem !important;
    margin-bottom: 1.25rem !important;
  }
  .gate-checkbox-text {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
  
  /* 2. Dashboard Header Navigation - Clean Mobile Row Layout */
  .dash-navbar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.65rem 0.85rem !important;
    gap: 0.25rem !important;
  }
  .dash-navbar-logo {
    display: flex !important;
    justify-content: flex-start !important;
    margin-bottom: 0px !important;
  }
  .dash-navbar-logo svg {
    width: 155px !important;
    height: 48px !important;
  }
  .dash-navbar-logo svg text:last-child {
    display: none !important;
  }
  .dash-navbar-logo svg text:first-child {
    font-size: 40px !important;
    font-weight: 700 !important;
    y: 62 !important;
    fill: #0B1320 !important;
  }
  .dash-email-text {
    display: none !important;
  }
  .dash-user-panel {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: auto !important;
    align-items: center !important;
  }
  .dash-user-tag {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: rgba(26, 37, 53, 0.05) !important;
    border: 1px solid var(--hielo-puro) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .dash-user-tag span:last-child {
    display: none !important;
  }
  .dash-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
  }
  .dash-search-box .dash-search-input {
    width: 0;
  }
  .dash-search-box:focus-within .dash-search-input,
  .dash-search-box.search-open .dash-search-input {
    width: 110px !important;
    font-size: 0.75rem !important;
  }
  .dash-search-box {
    max-width: 130px;
  }
  .dash-lang-selector {
    padding: 0.15rem 0.35rem !important;
    gap: 0.15rem !important;
    border-radius: 5px !important;
  }
  .dash-lang-selector button {
    font-size: 0.65rem !important;
    padding: 0 0.15rem !important;
  }
  
  /* 3. Hero Section */
  .dash-hero-container {
    flex-direction: column-reverse !important;
    text-align: center !important;
    padding-block: 2rem !important;
    gap: 1.5rem !important;
  }
  .dash-hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
  }
  .dash-hero-subtitle {
    font-size: 0.92rem !important;
  }
  .dash-hero-img-col {
    max-width: 250px !important;
    margin: 0 auto !important;
  }
  
  /* 4. Category Blocks & Products Grid */
  .category-block-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.75rem !important;
  }
  .products-subgrid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .product-card {
    min-height: auto !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }
  .product-image-container {
    height: 150px !important;
  }
  
  /* 5. Compass Research Navigator & Newsfeed */
  .compass-grid, .newsfeed-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .compass-card, .newsfeed-card {
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }
  
  /* 6. Protocol Modeler Mobile Optimization */
  .modeler-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .modeler-inputs {
    gap: 1.25rem !important;
    width: 100% !important;
  }
  .modeler-field {
    gap: 0.5rem !important;
  }
  .modeler-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
  }
  .modeler-select {
    font-size: 0.85rem !important;
    padding: 0.6rem 2rem 0.6rem 0.85rem !important;
  }
  .modeler-btn-group {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  .modeler-choice-btn {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    min-width: 60px !important;
    flex: 1 1 calc(33.33% - 0.4rem) !important;
  }
  .modeler-output-card {
    padding: 1.5rem 1rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-left: 4px solid var(--acero-vivo) !important;
  }
  .modeler-output-title {
    font-size: 0.85rem !important;
    padding-bottom: 0.5rem !important;
  }
  .modeler-output-compound {
    font-size: 1.15rem !important;
  }
  .modeler-output-value-container {
    margin: 0.5rem 0 !important;
  }
  .modeler-output-value {
    font-size: 2.25rem !important;
  }
  .modeler-output-unit {
    font-size: 1.15rem !important;
  }
  .modeler-output-desc {
    font-size: 0.75rem !important;
  }
  .modeler-output-note {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }
  .btn-modeler-cta {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.85rem !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   PUREPEP RESEARCH NETWORK (Molecular Insights Hub) Forum Styling
   ========================================================================== */

.forum-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.forum-main-content {
  flex: 1;
}

.forum-sidebar {
  width: 100%;
}

.forum-sidebar-card {
  background: white;
  padding: 1.75rem;
  border-radius: 12px;
  border: 1.5px solid var(--hielo-puro);
  box-shadow: 0 4px 12px rgba(26, 37, 53, 0.04);
}

.forum-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--abismo-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-family: var(--font-title);
  font-weight: 700;
  border: 2px solid var(--acero-vivo);
}

.forum-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--acero-vivo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-title);
}

.forum-categories-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--hielo-puro);
  padding-bottom: 1.25rem;
}

.forum-category-btn {
  background: transparent;
  border: 1.5px solid #CBD5E0;
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4A5568;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.forum-category-btn:hover {
  border-color: var(--acero-vivo);
  color: var(--acero-vivo);
  background: rgba(74, 127, 165, 0.04);
}

.forum-category-btn.active {
  background: var(--acero-vivo);
  border-color: var(--acero-vivo);
  color: white;
  box-shadow: 0 4px 10px rgba(74, 127, 165, 0.25);
}

.forum-thread-card {
  background: var(--hielo-puro);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(26, 37, 53, 0.01);
}

.forum-thread-card:hover {
  transform: translateY(-2px);
  border-color: var(--acero-vivo);
  box-shadow: 0 8px 20px rgba(74, 127, 165, 0.08);
}

.forum-thread-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.forum-thread-tag {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
}

.forum-thread-tag.tag-protocol {
  background: #EBF8FF;
  color: #2B6CB0;
}

.forum-thread-tag.tag-data {
  background: #E6FFFA;
  color: #319795;
}

.forum-thread-tag.tag-alert {
  background: #FEFCBF;
  color: #B7791F;
}

.forum-thread-tag.tag-question {
  background: #EDF2F7;
  color: #4A5568;
}

.forum-thread-category-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--acero-vivo);
  background: rgba(74, 127, 165, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

.forum-thread-date {
  font-size: 0.75rem;
  color: var(--niebla-acero);
  margin-left: auto;
}

.forum-thread-card-title {
  font-size: 1.15rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--abismo-navy);
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}

.forum-thread-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4A5568;
  margin: 0 0 1.25rem 0;
}

.forum-thread-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forum-thread-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-author-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--abismo-navy);
}

.forum-thread-comments-count {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--niebla-acero);
}

.forum-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acero-vivo);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(74, 127, 165, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
}

.forum-fab:hover {
  background: #588fb7;
  transform: rotate(9deg) scale(1.06);
  box-shadow: 0 8px 24px rgba(74, 127, 165, 0.55);
}

/* Modals System styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 37, 53, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}

.modal-card {
  background: white;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 24px 48px rgba(26, 37, 53, 0.22);
  width: 100%;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Technical textareas & inputs inside modals */
.forum-textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  resize: vertical;
}

.forum-textarea:focus {
  border-color: var(--acero-vivo);
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Detail view specific styles */
.forum-btn-back {
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--acero-vivo);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.forum-btn-back:hover {
  color: var(--abismo-navy);
}

.forum-thread-detail-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--abismo-navy);
  margin: 1rem 0;
  line-height: 1.3;
}

.forum-thread-detail-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.forum-thread-detail-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #2D3748;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
}

.forum-comment-card {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--hielo-puro);
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 6px rgba(26, 37, 53, 0.02);
}

.forum-comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.forum-comment-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--abismo-navy);
}

.forum-comment-date {
  font-size: 0.72rem;
  color: var(--niebla-acero);
  margin-left: auto;
}

.forum-comment-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #2D3748;
}

.forum-comment-form-container {
  background: var(--hielo-puro);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 1.5px solid rgba(26,37,53,0.03);
}

/* Responsiveness overrides */
@media (max-width: 992px) {
  .forum-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .forum-categories-bar {
    gap: 0.3rem;
  }
  .forum-category-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   PUREPEP RESEARCHER PROFILE (Optimization Control Panel) Styling
   ========================================================================== */

.avatar-led-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #e53e3e;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid var(--abismo-navy);
  box-shadow: 0 0 6px #e53e3e;
  animation: ledPulse 2s infinite;
}

@keyframes ledPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(229, 62, 62, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
  }
}

.profile-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 35px);
  align-items: stretch;
}

.profile-sidebar {
  background: #1A2535;
  color: white;
  padding: 2.5rem 1.75rem;
  border-right: 1.5px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.profile-avatar-graphic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acero-vivo) 0%, #319795 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-family: var(--font-title);
  font-weight: 700;
  border: 3.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.profile-badge-bright {
  background: var(--acero-vivo);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-title);
  box-shadow: 0 2px 6px rgba(74, 127, 165, 0.2);
  display: inline-block;
}

.profile-action-btn:hover {
  background: rgba(74, 127, 165, 0.25) !important;
  border-color: white !important;
  color: white !important;
}

.profile-logout-btn:hover {
  background: #c53030 !important;
  transform: translateY(-1px);
}

.profile-content {
  padding: 2.5rem 3.5rem;
  background: #F8FAFB;
  box-sizing: border-box;
}

.profile-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.profile-block-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1.5px solid var(--hielo-puro);
  box-shadow: 0 4px 12px rgba(26, 37, 53, 0.03);
  box-sizing: border-box;
}

.profile-block-header {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--abismo-navy);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-left: 3.5px solid var(--acero-vivo);
  padding-left: 0.75rem;
  line-height: 1;
}

.profile-allocation-table th {
  padding: 0.75rem 1rem;
}

.profile-allocation-table td {
  padding: 1rem;
}

.profile-download-btn:hover {
  color: var(--abismo-navy) !important;
}

.profile-vault-card:hover {
  border-color: var(--acero-vivo) !important;
  box-shadow: 0 4px 10px rgba(74, 127, 165, 0.06);
}

.profile-new-log-btn:hover {
  background: #396788 !important;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .profile-layout-grid {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    border-right: none;
    border-bottom: 1.5px solid rgba(255,255,255,0.05);
    padding: 2rem;
  }
  .profile-content {
    padding: 2rem 1.5rem;
  }
}

/* User Navbar Dropdown Styling */
.dropdown-item-btn {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--abismo-navy) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.dropdown-item-btn:hover {
  background-color: #F7FAFC !important;
  color: var(--acero-vivo) !important;
}

.dropdown-item-btn svg {
  transition: transform 0.2s ease;
}

.dropdown-item-btn:hover svg {
  transform: translateX(3px);
}

/* Pinterest/Instagram Visual Community Grid Layout */
#forum-threads-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Float Product Link Styling */
.product-tag-float-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 37, 53, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.35rem 0.65rem;
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.product-tag-float-btn:hover {
  background: var(--acero-vivo);
  transform: scale(1.05);
}

/* Micro animations for stories highlights */
.community-story-item:hover img {
  transform: scale(1.08);
}

.community-story-item img {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth zoom on card hover */
.forum-thread-card:hover img {
  transform: scale(1.04);
}

.forum-thread-card img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mini avatars style */
.forum-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--abismo-navy);
  color: white;
  text-align: center;
  line-height: 24px;
  font-size: 0.7rem;
  font-family: var(--font-title);
  font-weight: 700;
  border: 1.5px solid var(--acero-vivo);
  display: inline-block;
  flex-shrink: 0;
}


/* ==========================================================================
   THE PUREPEP ELITE CIRCLE — Premium Club Invitation
   ========================================================================== */

@keyframes buttonPulse {
  0% {
    box-shadow: 0 4px 14px rgba(74, 127, 165, 0.4), 0 0 0 0px rgba(74, 127, 165, 0.2);
  }
  70% {
    box-shadow: 0 4px 20px rgba(74, 127, 165, 0.6), 0 0 0 8px rgba(74, 127, 165, 0);
  }
  100% {
    box-shadow: 0 4px 14px rgba(74, 127, 165, 0.4), 0 0 0 0px rgba(74, 127, 165, 0);
  }
}

.community-cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1100px;
  padding: 5.5rem 3rem;
  text-align: center;
  background: radial-gradient(circle at center, #23374e 0%, #0d1520 80%);
  border: 0.5px solid rgba(168, 196, 216, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Fine geometric watermark overlay */
.community-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23A8C4D8' stroke-width='0.4' opacity='0.05'%3E%3Cpath d='M0 0 L100 100 M100 0 L0 100 M50 0 L50 100 M0 50 L100 50'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.community-cta-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Premium Diamond icon */
.community-cta-icon {
  color: var(--cielo-polar);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.community-cta-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.community-cta-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cielo-polar);
  opacity: 0.75;
  margin-bottom: 2.75rem;
  letter-spacing: 0.03em;
}

/* Glowing pill button */
.btn-community-pill {
  background: var(--blanco-glaciar);
  color: var(--abismo-navy);
  border: none;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  animation: buttonPulse 3s infinite ease-in-out;
}

.btn-community-pill:hover {
  background: #FFFFFF;
  color: var(--acero-vivo);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 127, 165, 0.6);
}


/* ==========================================================================
   THE PUREPEP COLLECTIVE — Luxury Social Feed & Editorial Layout
   ========================================================================== */

/* Stories ring of light glow style */
.community-story-avatar-container {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(74, 127, 165, 0.25) 0%, rgba(168, 196, 216, 0.2) 100%);
  margin-bottom: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.community-story-item:hover .community-story-avatar-container,
.community-story-avatar-container.active-glow {
  background: linear-gradient(135deg, var(--acero-vivo) 0%, var(--cielo-polar) 100%);
  box-shadow: 0 0 14px rgba(74, 127, 165, 0.65);
  transform: scale(1.03);
}

.community-story-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid #F8FAFB;
}

/* Category minimal pills override */
.forum-categories-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(168, 196, 216, 0.15) !important;
  padding-bottom: 1.5rem !important;
}

.forum-category-btn {
  background: transparent !important;
  border: 1px solid rgba(26, 37, 53, 0.18) !important;
  border-radius: 60px !important;
  padding: 0.5rem 1.25rem !important;
  font-family: var(--font-title);
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 37, 53, 0.65) !important;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: none !important;
}

.forum-category-btn:hover {
  border-color: var(--acero-vivo) !important;
  color: var(--abismo-navy) !important;
  background: rgba(74, 127, 165, 0.05) !important;
}

.forum-category-btn.active {
  background: rgba(168, 196, 216, 0.25) !important;
  border-color: rgba(74, 127, 165, 0.35) !important;
  color: var(--abismo-navy) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Editorial Grid Layout for cards */
#forum-threads-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Make some elements highlight in a masonry-like editorial style */
@media (min-width: 992px) {
  #forum-threads-container .forum-thread-card:nth-child(4n+1) {
    grid-column: span 2;
    flex-direction: row !important;
  }
  #forum-threads-container .forum-thread-card:nth-child(4n+1) .forum-thread-card-img-container {
    width: 45% !important;
    height: 100% !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(168, 196, 216, 0.15);
  }
  #forum-threads-container .forum-thread-card:nth-child(4n+1) .forum-thread-card-body-container {
    width: 55% !important;
    padding: 1.75rem !important;
  }
}

/* Thread card with influencer-luxury feel */
.forum-thread-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 0.5px solid rgba(168, 196, 216, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(26, 37, 53, 0.02) !important;
  transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow: hidden;
}

.forum-thread-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(74, 127, 165, 0.4) !important;
  box-shadow: 0 15px 35px rgba(26, 37, 53, 0.08) !important;
}

.forum-thread-card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f0f3f6;
  border-bottom: 0.5px solid rgba(168, 196, 216, 0.15);
}

.forum-thread-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Soft filter for luxury cohesive look */
  filter: contrast(1.04) brightness(0.96) sepia(0.04);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.forum-thread-card:hover .forum-thread-card-img {
  transform: scale(1.05);
}

/* Validation tag floating on image hover */
.forum-thread-card-validation-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--abismo-navy);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.forum-thread-card:hover .forum-thread-card-validation-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Minimal category overlay labels on image corner */
.forum-thread-card-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 16, 24, 0.75);
  color: #F8FAFB;
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}

/* Glassmorphism Sidebar Registry Card */
.forum-sidebar-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 0.5px solid rgba(168, 196, 216, 0.3) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.25rem 1.75rem !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(26, 37, 53, 0.03) !important;
}

/* Emblems for elite badges */
.registry-emblem-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(168, 196, 216, 0.25);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--abismo-navy);
}

/* Fine camera float button for publishing */
.forum-fab {
  background: var(--acero-vivo) !important;
  box-shadow: 0 8px 24px rgba(74, 127, 165, 0.35) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.2) !important;
}

.forum-fab:hover {
  background: var(--abismo-navy) !important;
  transform: translateY(-3px) rotate(0deg) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(26, 37, 53, 0.45) !important;
}

/* ==========================================================================
   THE MOLECULAR INSIGHT CARD (Detailed View Overlay)
   ========================================================================== */

/* Fullscreen modal card style overlay */
.insight-card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2.5rem;
  animation: fadeIn 0.3s ease forwards;
}

.insight-card-window {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  max-width: 1050px;
  height: 85vh;
  min-height: 520px;
  background: rgba(248, 250, 251, 0.95);
  border: 0.5px solid rgba(168, 196, 216, 0.35);
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  animation: modalScaleZoom 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleZoom {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 900px) {
  .insight-card-window {
    grid-template-columns: 1fr;
    height: 90vh;
    overflow-y: auto;
  }
  .insight-card-left {
    height: 250px !important;
  }
}

/* Column Left: Visual Art */
.insight-card-left {
  position: relative;
  height: 100%;
  background: #e2e8f0;
}

.insight-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card-batch-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Column Right: Editorial */
.insight-card-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 3rem 2.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  border-left: 0.5px solid rgba(168, 196, 216, 0.2);
}

.insight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.insight-card-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.insight-card-author {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--abismo-navy);
}

.insight-card-rank-tag {
  align-self: flex-start;
  font-family: var(--font-title);
  font-size: 0.58rem;
  font-weight: 700;
  color: #B7791F; /* Gold color */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(246, 224, 94, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  border: 0.5px solid rgba(183, 121, 31, 0.2);
}

.insight-card-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: rgba(26, 37, 53, 0.4);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.insight-card-close:hover {
  color: var(--acero-vivo);
}

.insight-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: var(--abismo-navy);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.insight-card-content {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: #4a5568;
  letter-spacing: 0.02em;
  margin-bottom: 2.25rem;
}

/* Sourcing conversion card - Shop the Insight */
.insight-card-shop {
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(168, 196, 216, 0.35);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.insight-card-shop-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.insight-card-shop-label {
  font-family: var(--font-title);
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(107, 143, 168, 0.85);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.insight-card-shop-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--abismo-navy);
}

.insight-card-shop-price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--acero-vivo);
}

.insight-card-shop-btn {
  background: var(--abismo-navy);
  color: #FFFFFF;
  border: none;
  border-radius: 40px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card-shop-btn:hover {
  background: var(--acero-vivo);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 127, 165, 0.35);
}

/* Validations / Reaction bar */
.insight-card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(168, 196, 216, 0.2);
  border-bottom: 1px solid rgba(168, 196, 216, 0.2);
  margin-bottom: 2rem;
}

.insight-card-action-btn {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26, 37, 53, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  transition: color 0.2s ease;
}

.insight-card-action-btn.active {
  color: var(--acero-vivo);
}

.insight-card-action-btn:hover {
  color: var(--abismo-navy);
}

.insight-card-counter {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--niebla-acero);
}

/* Salon Comments styling */
.insight-comments-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.insight-comments-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--abismo-navy);
  margin-bottom: 0.5rem;
}

.salon-comment {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(168, 196, 216, 0.15);
}

.salon-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--niebla-acero);
  margin-bottom: 0.35rem;
}

.salon-comment-author {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--abismo-navy);
}

.salon-comment-body {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  color: #4a5568;
}

/* Info Icon and Tooltip */
.info-tooltip-btn {
  background: transparent;
  border: none;
  color: var(--niebla-acero);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease;
}

.info-tooltip-btn:hover {
  color: var(--acero-vivo);
}

/* Currency Switcher Styles */
.dash-currency-selector {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  background: rgba(26, 37, 53, 0.04);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1.5px solid var(--hielo-puro);
  height: 32px;
  box-sizing: border-box;
  align-self: center;
}

.gate-curr-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 0 0.35rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--niebla-acero);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.gate-curr-btn:hover {
  color: var(--acero-vivo);
}

.gate-curr-btn.active {
  color: var(--abismo-navy) !important;
  border-bottom-color: var(--acero-vivo) !important;
}

/* Dropdown specific overrides to make it look perfect inside the user dropdown */
.dash-curr-selector-dropdown .gate-curr-btn.active {
  color: var(--abismo-navy) !important;
  border-bottom-color: transparent !important;
}

@media (max-width: 768px) {
  .dash-currency-selector {
    padding: 0.15rem 0.35rem !important;
    height: 28px !important;
    gap: 0.15rem !important;
  }
  .dash-currency-selector button {
    font-size: 0.65rem !important;
    padding: 0 0.2rem !important;
  }
}

/* Force currency selector visibility in navbar for desktop/tablet screens */
.dash-currency-selector {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure currency selector is always visible and cleanly sized on mobile phones */
@media (max-width: 480px) {
  .dash-currency-selector {
    display: flex !important;
    padding: 0.15rem 0.35rem !important;
    height: 28px !important;
    gap: 0.15rem !important;
  }
  .dash-currency-selector button {
    font-size: 0.65rem !important;
    padding: 0 0.25rem !important;
  }
}

/* Catalog Bar Currency Buttons High Contrast Styling */
.cat-curr-btn {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  background: transparent !important;
  color: var(--niebla-acero) !important;
  transition: all 0.2s ease !important;
}

.cat-curr-btn:hover {
  color: var(--abismo-navy) !important;
}

.cat-curr-btn.active {
  background: var(--abismo-navy) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(11, 19, 32, 0.25) !important;
}

