/* =====================================================
   NEXO CLOUD® — Corporate Design System
   NEXO CLOUD TECHNOLOGIES S.A.S.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Brand Colors */
  --nexo-pulse:   #B9DD01;
  --nexo-flow:    #01A08C;
  --nexo-growth:  #7DB91A;
  --nexo-core:    #018386;
  --nexo-deep:    #090F23;
  --nexo-white:   #EBEAE6;
  --nexo-silver:  #D8D7D7;

  /* Derived */
  --nexo-pulse-10:  rgba(185,221,1,0.10);
  --nexo-pulse-20:  rgba(185,221,1,0.20);
  --nexo-pulse-30:  rgba(185,221,1,0.30);
  --nexo-flow-10:   rgba(1,160,140,0.10);
  --nexo-flow-20:   rgba(1,160,140,0.20);

  /* Backgrounds */
  --bg-main:    #060913;
  --bg-card:    rgba(14, 20, 40, 0.70);
  --bg-card-2:  rgba(20, 30, 60, 0.50);
  --border:     rgba(255,255,255,0.07);
  --border-hover: rgba(185,221,1,0.35);

  /* Text */
  --text-primary:   #EBEAE6;
  --text-secondary: rgba(235,234,230,0.60);
  --text-muted:     rgba(235,234,230,0.35);

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 16px;
  --sp-4: 24px; --sp-5: 32px; --sp-6: 48px;
  --sp-7: 64px; --sp-8: 96px;

  /* Transitions */
  --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-pulse: 0 0 30px rgba(185,221,1,0.15), 0 0 60px rgba(185,221,1,0.05);
  --shadow-flow:  0 0 30px rgba(1,160,140,0.15), 0 0 60px rgba(1,160,140,0.05);
  --shadow-card:  0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 700; }

.display-xl {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.display-md {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nexo-pulse);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--nexo-pulse);
}

.gradient-text {
  background: linear-gradient(135deg, var(--nexo-white) 0%, var(--nexo-pulse) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-flow {
  background: linear-gradient(135deg, var(--nexo-pulse) 0%, var(--nexo-flow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section {
  padding: var(--sp-8) 0;
  position: relative;
}
.section-sm { padding: var(--sp-7) 0; }

/* ─── NAVIGATION ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--ease-slow);
  padding: 0 var(--sp-5);
}
.nav.scrolled {
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.nav-logo-mark div {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.nav-logo-mark .lm1 { background: var(--nexo-pulse); }
.nav-logo-mark .lm2 { background: var(--nexo-flow); }
.nav-logo-mark .lm3 { background: var(--nexo-core); }
.nav-logo-mark .lm4 { background: var(--nexo-growth); }

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nexo-white);
}
.nav-logo-text span {
  color: var(--nexo-pulse);
  font-size: 0.6rem;
  font-weight: 400;
  vertical-align: super;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: var(--ease);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  position: relative;
}
.nav-links a:hover { color: var(--nexo-white); }
.nav-links a.active { color: var(--nexo-pulse); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: var(--ease);
  pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: var(--ease);
}
.nav-dropdown-menu a:hover {
  background: var(--nexo-pulse-10);
  color: var(--nexo-pulse);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--ease);
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--ease);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
}

/* Glass Primary */
.btn-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--nexo-white);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--nexo-pulse);
  box-shadow: 0 0 20px rgba(185,221,1,0.15), 0 0 40px rgba(185,221,1,0.05);
  transform: translateY(-1px);
  color: var(--nexo-white);
}

/* Pulse Primary */
.btn-pulse {
  background: var(--nexo-pulse);
  color: #060913;
  font-weight: 600;
  border: 1px solid var(--nexo-pulse);
}
.btn-pulse:hover {
  background: #c8ea01;
  box-shadow: 0 0 25px rgba(185,221,1,0.35), 0 0 50px rgba(185,221,1,0.10);
  transform: translateY(-2px);
  color: #060913;
}

/* Flow */
.btn-flow {
  background: var(--nexo-flow);
  color: #fff;
  border: 1px solid var(--nexo-flow);
  font-weight: 600;
}
.btn-flow:hover {
  background: #01b89e;
  box-shadow: var(--shadow-flow);
  transform: translateY(-2px);
  color: #fff;
}

/* Outline */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--nexo-pulse);
}
.btn-outline:hover {
  background: var(--nexo-pulse-10);
  box-shadow: 0 0 20px rgba(185,221,1,0.10);
  color: var(--nexo-pulse);
}

/* Size modifiers */
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* ─── CARDS ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: var(--ease-slow);
}
.card:hover {
  border-color: rgba(185,221,1,0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(185,221,1,0.05);
}

.card-glow {
  position: relative;
  overflow: hidden;
}
.card-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nexo-pulse), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.card-glow:hover::before { opacity: 1; }

/* ─── GLASS PANEL ────────────────────────────────── */
.glass {
  background: rgba(14, 20, 40, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
}

/* ─── BADGE ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-pulse {
  background: var(--nexo-pulse-10);
  border: 1px solid rgba(185,221,1,0.25);
  color: var(--nexo-pulse);
}
.badge-flow {
  background: var(--nexo-flow-10);
  border: 1px solid rgba(1,160,140,0.25);
  color: var(--nexo-flow);
}

/* ─── BACKGROUND ELEMENTS ────────────────────────── */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(185,221,1,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,221,1,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.bg-radial {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

/* ─── DIVIDER ────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--sp-6) 0;
}

/* ─── TAGS / PILLS ───────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ─── FORM ELEMENTS ──────────────────────────────── */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: rgba(185,221,1,0.5);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(185,221,1,0.08);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control { appearance: none; cursor: pointer; }

/* ─── SCROLL ANIMATIONS ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-7) 0 var(--sp-5);
  background: rgba(6,9,19,0.95);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: var(--sp-3);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--ease);
}
.footer-col ul a:hover { color: var(--nexo-pulse); }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── PAGE HERO (interior pages) ─────────────────── */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(185,221,1,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── TABS ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--ease);
  border: none;
  background: transparent;
  font-family: inherit;
}
.tab-btn.active {
  background: var(--nexo-pulse);
  color: #060913;
  font-weight: 600;
}
.tab-btn:not(.active):hover { color: var(--nexo-white); background: rgba(255,255,255,0.05); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── PRICING ────────────────────────────────────── */
.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.toggle-switch-pricing {
  position: relative;
  width: 48px; height: 26px;
  cursor: pointer;
}
.toggle-switch-pricing input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  transition: var(--ease);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: var(--nexo-silver);
  border-radius: 50%;
  transition: var(--ease);
}
.toggle-switch-pricing input:checked + .toggle-slider { background: var(--nexo-pulse); }
.toggle-switch-pricing input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #060913;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  border-color: rgba(185,221,1,0.35);
  background: linear-gradient(160deg, rgba(14,20,40,0.9) 0%, rgba(20,35,20,0.7) 100%);
}
.plan-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nexo-flow), var(--nexo-pulse));
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.plan-card.featured:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(185,221,1,0.10);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price sup { font-size: 1.2rem; vertical-align: super; font-weight: 600; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
}
.plan-feature-check {
  color: var(--nexo-pulse);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 14px;
}
.plan-feature-check.flow { color: var(--nexo-flow); }

/* Expandable */
.plan-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  opacity: 0;
}
.plan-details.expanded { max-height: 2000px; opacity: 1; }
.plan-expand-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  margin-top: var(--sp-3);
}
.plan-expand-btn:hover { border-color: var(--nexo-pulse); color: var(--nexo-pulse); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 768px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(6,9,19,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4);
    gap: var(--sp-2);
  }
  .nav.mobile-open .nav-ctas {
    display: flex;
    position: absolute;
    top: calc(72px + var(--sp-4) + 1px);
    left: 0; right: 0;
    flex-direction: column;
    padding: var(--sp-3) var(--sp-4);
    background: rgba(6,9,19,0.98);
    border-bottom: 1px solid var(--border);
  }
  .nav.mobile-open .nav-ctas .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .display-xl { font-size: clamp(2.2rem, 9vw, 4rem); }
  .display-lg { font-size: clamp(1.8rem, 7vw, 3rem); }
  .container, .container-wide { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-7) 0; }
  .tabs { overflow-x: auto; width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ─── SCROLL BAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(185,221,1,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(185,221,1,0.5); }

/* ─── SELECTION ──────────────────────────────────── */
::selection { background: rgba(185,221,1,0.2); color: var(--nexo-white); }

/* ─── PLAN EXTRAS ────────────────────────────────── */
.billing-label { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
.plan-feature-no { color: rgba(255,255,255,0.18); }

/* ─── MOBILE NAV dropdown ─────────────────────────── */
@media (max-width: 768px) {
  .nav-dropdown-menu { display: none !important; }
}

/* ─── SLIDER touch/swipe support ─────────────────── */
.slider-wrapper { touch-action: pan-y; user-select: none; }

/* ─── HERO STAT spacing fix ──────────────────────── */
.hero-stat { display: flex; flex-direction: column; }

/* ─── ANNUAL DISCOUNT BADGE ──────────────────────── */
.annual-discount { transition: opacity 0.3s; }
#pricingToggle:checked ~ .annual-discount { opacity: 1; }

/* ─── COOKIE CONSENT BANNER ──────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 820px;
  background: rgba(10, 15, 35, 0.55);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(185,221,1,0.10);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 60px rgba(185,221,1,0.06);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner.hiding {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
}
.cookie-banner-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nexo-flow), var(--nexo-pulse), var(--nexo-flow));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.cookie-banner-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cookie-banner-mascot {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(185,221,1,0.06);
  border: 2px solid rgba(185,221,1,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-bounce 2s ease-in-out infinite;
}
.cookie-banner-mascot img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
@keyframes cookie-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-3deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

.cookie-banner-content { flex: 1; }
.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nexo-white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-banner-text a {
  color: var(--nexo-pulse);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn-accept {
  background: var(--nexo-pulse);
  color: #060913;
  font-weight: 700;
  border: none;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
}
.cookie-btn-accept:hover {
  background: #c8ea01;
  box-shadow: 0 0 20px rgba(185,221,1,0.3);
  transform: translateY(-1px);
}
.cookie-btn-reject {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
}
.cookie-btn-reject:hover {
  color: var(--nexo-white);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.cookie-btn-settings {
  background: none;
  border: none;
  color: var(--nexo-pulse);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  padding: 8px 4px;
  transition: var(--ease);
}
.cookie-btn-settings:hover { color: #c8ea01; }

/* ─── Cookie Preferences Panel ─────────────────── */
.cookie-prefs {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: fadeInPrefs 0.3s ease;
}
.cookie-prefs.open { display: block; }
@keyframes fadeInPrefs {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cookie-pref-item:last-child { border-bottom: none; }
.cookie-pref-info { flex: 1; }
.cookie-pref-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nexo-white);
  margin-bottom: 2px;
}
.cookie-pref-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.cookie-pref-required {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nexo-flow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 16px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--ease);
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--nexo-silver);
  border-radius: 50%;
  transition: var(--ease);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--nexo-pulse);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #060913;
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-prefs-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .cookie-banner { padding: 20px; bottom: 12px; width: calc(100% - 24px); }
  .cookie-banner-mascot { width: 52px; height: 52px; }
  .cookie-banner-mascot img { width: 40px; height: 40px; }
  .cookie-banner-actions { flex-direction: column; width: 100%; }
  .cookie-btn-accept, .cookie-btn-reject { width: 100%; text-align: center; }
}

/* ─── RECOVERY BANNERS ──────────────────────────── */
.nexo-recovery-banner {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 9950;
  max-width: 380px;
  width: calc(100% - 48px);
  transform: translateX(120%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nexo-recovery-banner.visible { transform: translateX(0); }
.nexo-recovery-inner {
  background: rgba(10, 15, 35, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(185,221,1,0.12);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.nexo-recovery-text { margin-bottom: 14px; }
.nexo-recovery-text strong { display: block; color: var(--nexo-white); font-size: 0.9rem; margin-bottom: 4px; }
.nexo-recovery-text span { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.nexo-recovery-btn {
  display: inline-flex; align-items: center; padding: 8px 18px;
  background: var(--nexo-pulse); color: #060913; font-weight: 700; font-size: 0.82rem;
  border-radius: var(--r-sm); text-decoration: none; transition: all 0.3s ease;
}
.nexo-recovery-btn:hover { background: #c8ea01; transform: translateY(-1px); }
.nexo-recovery-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none;
  color: var(--text-muted); font-size: 0.8rem; cursor: pointer; padding: 4px 8px; transition: color 0.2s;
}
.nexo-recovery-close:hover { color: var(--nexo-white); }

/* ─── SMART CHAT WIDGET ─────────────────────────── */
.nexo-chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 9940;
  transform: scale(0); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nexo-chat-widget.visible { transform: scale(1); }

.nexo-chat-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--nexo-pulse); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 24px rgba(185,221,1,0.3); transition: all 0.3s ease; position: relative;
}
.nexo-chat-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(185,221,1,0.4); }
.nexo-chat-bubble-icon { font-size: 1.4rem; }
.nexo-chat-bubble::after {
  content: ''; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px;
  background: #ff4444; border-radius: 50%; border: 2px solid #060913; animation: pulse-dot 2s infinite;
}

.nexo-chat-popup {
  position: absolute; bottom: 70px; right: 0; width: 340px;
  background: rgba(10, 15, 35, 0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(185,221,1,0.12); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.8) translateY(10px); opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: bottom right;
}
.nexo-chat-popup.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.nexo-chat-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(185,221,1,0.04);
}
.nexo-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(185,221,1,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nexo-chat-name { font-size: 0.82rem; font-weight: 700; color: var(--nexo-white); }
.nexo-chat-status { font-size: 0.65rem; color: var(--nexo-flow); font-weight: 500; }
.nexo-chat-close {
  background: none; border: none; color: var(--text-muted); font-size: 0.85rem;
  cursor: pointer; margin-left: auto; padding: 4px; transition: color 0.2s;
}
.nexo-chat-close:hover { color: var(--nexo-white); }

.nexo-chat-body { padding: 18px 16px; }
.nexo-chat-msg {
  background: rgba(185,221,1,0.06); border: 1px solid rgba(185,221,1,0.1);
  border-radius: 12px 12px 12px 4px; padding: 14px 16px;
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
}

.nexo-chat-actions { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.nexo-chat-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s ease;
}
.nexo-chat-action-btn.primary { background: var(--nexo-pulse); color: #060913; }
.nexo-chat-action-btn.primary:hover { background: #c8ea01; }
.nexo-chat-action-btn.secondary { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary); }
.nexo-chat-action-btn.secondary:hover { color: var(--nexo-white); border-color: rgba(255,255,255,0.15); }

@media (max-width: 640px) {
  .nexo-recovery-banner { top: auto; bottom: 90px; right: 12px; left: 12px; max-width: none; width: auto; }
  .nexo-chat-popup { width: calc(100vw - 48px); right: -12px; }
  .nexo-chat-widget { bottom: 16px; right: 16px; }
}

