@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --blue: #2B3BF0;
  --blue-light: #eef0fe;
  --blue-mid: #c7ccfb;
  --dark: #0f0f13;
  --dark-2: #18181f;
  --dark-3: #222230;
  --gray: #8888a0;
  --gray-light: #f4f4f8;
  --border: #e8e8f0;
  --white: #ffffff;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(43,59,240,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--gray-light);
  color: var(--dark);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

.marketing-body,
.auth-body {
  background:
    radial-gradient(circle at top left, rgba(43,59,240,0.12), transparent 28%),
    linear-gradient(180deg, #f8f9ff 0%, #eef1fb 100%);
}

body.auth-body {
  height: 100dvh;
  overflow: hidden;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  column-gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  width: 460px;
  flex: 0 0 460px;
  overflow: visible;
  justify-self: start;
}

.nav-logo img {
  height: 92px;
  max-width: 360px;
  width: auto;
  object-fit: contain;
  display: block;
  transform: scale(3);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
  background: var(--gray-light);
}

.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-caret {
  font-size: 10px;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 19, 0.08);
  box-shadow: 0 18px 42px rgba(15, 15, 19, 0.14);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  border-radius: 10px;
  background: transparent;
}

.nav-dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* ─── Reçu / Receipt ─────────────────────────────────── */

.receipt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

@media (max-width: 980px) {
  .receipt-workspace {
    grid-template-columns: 1fr;
  }
}

.receipt-form-card {
  padding: 1.6rem 1.6rem 1.8rem;
}

.receipt-customize {
  background: linear-gradient(180deg, #fafbff, #ffffff);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(43, 59, 240, 0.1);
  margin-bottom: 0.8rem;
}

.receipt-customize-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .receipt-customize-row {
    grid-template-columns: 1fr;
  }
}

.receipt-customize-color label,
.receipt-customize-logo label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6684;
  margin-bottom: 0.5rem;
}

.receipt-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 19, 0.1);
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.receipt-color-picker input[type="color"] {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.receipt-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

.receipt-color-picker input[type="color"]::-webkit-color-swatch {
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 15, 19, 0.18);
}

.receipt-color-picker span {
  font-size: 12px;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  color: #5f6684;
}

.receipt-color-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.color-preset {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(15, 15, 19, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-preset:hover {
  transform: scale(1.12);
}

.receipt-logo-selector {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.receipt-logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 15, 19, 0.2);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.receipt-logo-preview img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.receipt-logo-empty {
  font-size: 10px;
  color: #8a90aa;
  font-weight: 700;
  text-align: center;
  padding: 0 0.3rem;
}

.receipt-logo-controls {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.receipt-logo-controls select {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(15, 15, 19, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
}

.form-section {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-header {
  margin-bottom: 0.85rem;
}

.form-section-title {
  margin: 0 0 0.3rem;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.form-section-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6f7594;
}

.form-section-help strong {
  color: #0f1117;
  font-weight: 700;
}

.receipt-payment-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin: 0.5rem auto 0;
  align-self: center;
  letter-spacing: 0.02em;
}

.receipt-payment-mode-chip strong {
  font-weight: 800;
}

/* ─── For AI — Landing ─────────────────────────────── */

.for-ai-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #fafbff;
  color: #0f1117;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.for-ai-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.for-ai-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: forAiBlob 18s ease-in-out infinite;
}

.for-ai-blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6172f3, transparent 70%);
}

.for-ai-blob-2 {
  top: 20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  animation-delay: -6s;
}

.for-ai-blob-3 {
  bottom: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  animation-delay: -12s;
}

@keyframes forAiBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.for-ai-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(250, 251, 255, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.for-ai-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(15, 15, 19, 0.08);
}

.for-ai-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.for-ai-logo-mark {
  width: 38px;
  height: 38px;
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}

.for-ai-logo-mark::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3 0%, #8b5cf6 100%);
  box-shadow: 0 4px 14px rgba(97, 114, 243, 0.45);
  z-index: 2;
}

.for-ai-logo-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 12px;
  width: 9px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(180deg, #6172f3 0%, #a855f7 45%, #ec4899 100%);
  transform: rotate(22deg);
  transform-origin: center;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
  z-index: 1;
}

.for-ai-logo-text {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f1117;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.for-ai-logo-suffix {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #c5c8d4;
  letter-spacing: 0.04em;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.for-ai-nav-links {
  display: flex;
  gap: 0.4rem;
}

.for-ai-nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #5f6684;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.for-ai-nav-links a:hover {
  background: rgba(97, 114, 243, 0.08);
  color: #0f1117;
}

.for-ai-nav-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: #0f1117;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.for-ai-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 15, 19, 0.18);
}

.for-ai-main {
  position: relative;
  z-index: 1;
}

.for-ai-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.for-ai-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.4rem;
}

.for-ai-hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 1.6rem;
  color: #0f1117;
}

.for-ai-rotating {
  display: inline-block;
  position: relative;
  min-width: 240px;
  height: 1.05em;
  vertical-align: bottom;
}

.for-ai-rotating-word {
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
}

.for-ai-rotating-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.for-ai-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #5f6684;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.for-ai-hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.for-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.for-ai-btn-primary {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(168, 85, 247, 0.35);
}

.for-ai-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(168, 85, 247, 0.45);
}

.for-ai-btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: #0f1117;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 15, 19, 0.08);
}

.for-ai-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.for-ai-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.for-ai-btn:hover .for-ai-arrow {
  transform: translateX(3px);
}

.for-ai-hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #6f7594;
  margin-top: 0.4rem;
}

.for-ai-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.18);
  animation: forAiPulse 2s ease infinite;
}

@keyframes forAiPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(52, 168, 83, 0.05); }
}

.for-ai-showcase {
  max-width: 1080px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.for-ai-macbook {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  filter: drop-shadow(0 40px 80px rgba(97, 114, 243, 0.25));
}

.for-ai-macbook-screen {
  background: #1a1d2e;
  border-radius: 16px 16px 4px 4px;
  padding: 12px;
  border: 8px solid #0f1117;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.for-ai-macbook-bar {
  display: flex;
  gap: 6px;
  padding: 4px 8px 12px;
}

.for-ai-macbook-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.for-ai-macbook-bar span:first-child { background: #ff5f57; }
.for-ai-macbook-bar span:nth-child(2) { background: #febc2e; }
.for-ai-macbook-bar span:nth-child(3) { background: #28c840; }

.for-ai-macbook-content {
  background: linear-gradient(180deg, #1a1d2e, #0f1117);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.for-ai-chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 80%;
  animation: forAiSlideIn 0.5s ease both;
}

.for-ai-chat-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.for-ai-chat-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation-delay: 0.3s;
}

.for-ai-chat-bot ul {
  margin: 8px 0;
  padding-left: 20px;
}

.for-ai-bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  flex-shrink: 0;
}

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

.for-ai-macbook-base {
  height: 14px;
  background: linear-gradient(180deg, #2a2e44, #0f1117);
  border-radius: 0 0 14px 14px;
  margin: 0 -16px;
  position: relative;
}

.for-ai-macbook-base::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(15, 15, 19, 0.4);
  border-radius: 0 0 4px 4px;
}

.for-ai-capabilities {
  max-width: 1080px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.for-ai-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.for-ai-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7594;
  margin-bottom: 0.6rem;
}

.for-ai-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
}

.for-ai-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.for-ai-cap {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 20px;
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.for-ai-cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.for-ai-cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.for-ai-cap-icon-blue { background: linear-gradient(135deg, #6172f3, #5b46f8); }
.for-ai-cap-icon-purple { background: linear-gradient(135deg, #a855f7, #9d4ddb); }
.for-ai-cap-icon-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }

.for-ai-cap h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1117;
}

.for-ai-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5f6684;
}

.for-ai-login {
  max-width: 480px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.for-ai-login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 28px;
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(168, 85, 247, 0.12);
}

.for-ai-login-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f7594;
  margin-bottom: 0.6rem;
}

.for-ai-login-card h2 {
  margin: 0 0 0.6rem;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
}

.for-ai-gradient-text {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.for-ai-login-sub {
  margin: 0 0 1.8rem;
  font-size: 14px;
  color: #6f7594;
  line-height: 1.6;
}

.for-ai-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.for-ai-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.for-ai-login-for {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.3);
}

.for-ai-login-for:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(168, 85, 247, 0.4);
}

.for-ai-login-btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

.for-ai-login-btn-for-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  border-radius: 3px;
}

.for-ai-login-google {
  background: #ffffff;
  color: #0f1117;
  border-color: rgba(15, 15, 19, 0.12);
}

.for-ai-login-google:hover {
  background: #f8f9fc;
  border-color: rgba(15, 15, 19, 0.2);
}

.for-ai-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.4rem 0;
  font-size: 12px;
  font-weight: 600;
  color: #8a90aa;
}

.for-ai-divider::before,
.for-ai-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 15, 19, 0.08);
}

.for-ai-login-create {
  background: transparent;
  color: #6172f3;
  border-color: rgba(97, 114, 243, 0.3);
}

.for-ai-login-create:hover {
  background: rgba(97, 114, 243, 0.06);
  border-color: rgba(97, 114, 243, 0.5);
}

.for-ai-login-footer {
  margin-top: 1.4rem;
  font-size: 11px;
  color: #8a90aa;
  line-height: 1.5;
}

.for-ai-login-footer a {
  color: #6172f3;
  text-decoration: none;
}

.for-ai-login-footer a:hover {
  text-decoration: underline;
}

.for-ai-footer {
  max-width: 1080px;
  margin: 4rem auto 2rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.for-ai-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.for-ai-footer-text {
  font-size: 13px;
  color: #8a90aa;
}

/* ─── For AI — Chat ─────────────────────────────── */

.forai-chat-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #fafbff;
  color: #0f1117;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 256px 1fr;
}

.forai-chat-sidebar {
  background: #f4f6ff;
  border-right: 1px solid rgba(15, 15, 19, 0.06);
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0.7rem;
  gap: 0.7rem;
}

.forai-chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forai-chat-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.forai-sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #5f6684;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.forai-new-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #ffffff;
  color: #4f5dd6;
  border: 1px solid rgba(97, 114, 243, 0.25);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.forai-new-chat-btn:hover {
  background: rgba(97, 114, 243, 0.06);
  border-color: rgba(97, 114, 243, 0.45);
}

.forai-new-chat-btn span {
  font-size: 14px;
  line-height: 1;
}

.forai-history-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9aa0bb;
  padding: 0 0.4rem;
  margin-top: 0.4rem;
}

.forai-history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding-right: 0.1rem;
}

.forai-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.forai-history-item:hover {
  background: rgba(97, 114, 243, 0.08);
}

.forai-history-item.is-active {
  background: rgba(97, 114, 243, 0.14);
}

.forai-history-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #2d3142;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forai-history-delete {
  background: transparent;
  border: none;
  color: #8a90aa;
  font-size: 18px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.forai-history-item:hover .forai-history-delete {
  opacity: 1;
}

.forai-history-delete:hover {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.forai-history-empty {
  font-size: 12px;
  color: #8a90aa;
  text-align: center;
  padding: 1rem 0.5rem;
  line-height: 1.5;
}

.forai-sidebar-foot {
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
}

.forai-user-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.35rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.forai-user-row:hover,
.forai-user-row.is-open {
  background: rgba(97, 114, 243, 0.08);
}

.forai-user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.forai-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.forai-user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.forai-user-info strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forai-user-menu-btn {
  background: transparent;
  border: none;
  color: #5f6684;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.forai-user-menu-btn:hover {
  background: rgba(15, 15, 19, 0.08);
  color: #0f1117;
}

.forai-user-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 15, 19, 0.12);
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 1px;
  z-index: 10;
}

.forai-user-row.is-open .forai-user-menu {
  display: flex;
}

.forai-user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: #2d3142;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.12s ease, color 0.12s ease;
}

.forai-user-menu-item:hover {
  background: rgba(97, 114, 243, 0.08);
  color: #0f1117;
}

.forai-user-menu-item.is-danger {
  color: #b42318;
}

.forai-user-menu-item.is-danger:hover {
  background: rgba(180, 35, 24, 0.08);
}

.forai-user-menu-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.forai-chat-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.forai-chat-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #ffffff;
}

.forai-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #5f6684;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.forai-chat-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #0f1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forai-clear-btn {
  background: transparent;
  border: none;
  color: #8a90aa;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.forai-clear-btn:hover {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.forai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.forai-empty-chat {
  margin: auto;
  text-align: center;
  max-width: 560px;
  padding: 2rem 1rem;
}

.forai-empty-canvas {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.4rem;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.forai-empty-canvas.is-pulsing {
  transform: scale(0.86);
}

#forai-empty-title,
#forai-empty-subtitle {
  transition: opacity 220ms ease;
}

#forai-empty-title.is-fading,
#forai-empty-subtitle.is-fading {
  opacity: 0;
}

.forai-empty-chat h2 {
  margin: 0 0 0.6rem;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f1117;
}

.forai-empty-chat p {
  margin: 0 0 1.6rem;
  font-size: 15px;
  color: #6f7594;
  line-height: 1.55;
}

.forai-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 540px;
  margin: 0 auto;
}

.forai-suggestion {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.forai-suggestion:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.1);
}

.forai-suggestion strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f1117;
}

.forai-suggestion span {
  font-size: 12px;
  color: #6f7594;
  line-height: 1.4;
}

.forai-message {
  display: flex;
  gap: 0.8rem;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  animation: forAiMessageIn 0.4s ease both;
}

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

.forai-message.is-user {
  flex-direction: row-reverse;
}

.forai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.forai-avatar-user {
  background: #0f1117;
}

.forai-avatar-bot {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
}

.forai-message-bubble {
  max-width: 80%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #0f1117;
}

.forai-message.is-user .forai-message-bubble {
  background: #0f1117;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.forai-message.is-bot .forai-message-bubble {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-bottom-left-radius: 6px;
}

.forai-message-bubble p {
  margin: 0 0 0.6rem;
}

.forai-message-bubble p:last-child {
  margin-bottom: 0;
}

.forai-message-bubble ul,
.forai-message-bubble ol {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.4rem;
}

.forai-message-bubble li {
  margin-bottom: 0.2rem;
}

.forai-message-bubble code {
  background: rgba(15, 15, 19, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
}

.forai-message-bubble pre {
  background: #0f1117;
  color: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0.6rem 0;
}

.forai-message-bubble pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 13px;
}

.forai-typing-dots {
  display: inline-flex;
  gap: 4px;
}

.forai-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6172f3;
  animation: forAiTyping 1.2s ease infinite;
}

.forai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.forai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes forAiTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.forai-chat-composer {
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  background: #ffffff;
}

.forai-composer-form {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 19, 0.1);
  border-radius: 18px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(15, 15, 19, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forai-composer-form:focus-within {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
}

.forai-composer-form textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 0.5rem 0;
  max-height: 200px;
  background: transparent;
  color: #0f1117;
}

.forai-composer-form textarea::placeholder {
  color: #8a90aa;
}

.forai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6172f3, #a855f7);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.forai-send-btn:hover:not(:disabled) {
  transform: scale(1.06);
}

.forai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.forai-composer-hint {
  max-width: 760px;
  margin: 0.6rem auto 0;
  text-align: center;
  font-size: 11px;
  color: #8a90aa;
}

.forai-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #6172f3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.forai-attach-btn:hover {
  background: rgba(97, 114, 243, 0.1);
}

.forai-attachments {
  max-width: 760px;
  margin: 0 auto 0.5rem;
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.forai-attachments.has-items {
  display: flex;
}

.forai-attachment-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 19, 0.1);
  background: #f4f4f8;
}

.forai-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forai-attachment-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 15, 19, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forai-message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.forai-message-images img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 15, 19, 0.08);
}

@media (max-width: 800px) {
  .forai-chat-body {
    grid-template-columns: 1fr;
  }
  .forai-chat-sidebar {
    position: fixed;
    inset: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .forai-chat-sidebar.is-open {
    transform: translateX(0);
  }
  .forai-mobile-toggle {
    display: inline-flex;
  }
  .forai-sidebar-toggle {
    display: inline-flex;
  }
  .forai-suggestions {
    grid-template-columns: 1fr;
  }
}

/* ─── Discover Light (refonte) ─────────────────── */

.discover-light-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #fafbff;
  color: #0f1117;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.discover-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.discover-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: forAiBlob 22s ease-in-out infinite;
}

.discover-blob-1 {
  top: -8%;
  left: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #6172f3, transparent 70%);
}

.discover-blob-2 {
  top: 30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  animation-delay: -8s;
}

.discover-blob-3 {
  bottom: 0;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  animation-delay: -14s;
}

.discover-light-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(250, 251, 255, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.discover-light-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(15, 15, 19, 0.08);
}

.discover-light-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #0f1117;
}

.discover-light-brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.discover-light-links {
  display: flex;
  gap: 0.4rem;
}

.discover-light-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #5f6684;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.discover-light-links a:hover {
  background: rgba(97, 114, 243, 0.08);
  color: #0f1117;
}

.discover-light-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.discover-light-btn-ghost,
.discover-light-btn-primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.discover-light-btn-ghost {
  color: #0f1117;
  background: transparent;
}

.discover-light-btn-ghost:hover {
  background: rgba(15, 15, 19, 0.06);
}

.discover-light-btn-primary {
  background: #0f1117;
  color: #ffffff;
}

.discover-light-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 15, 19, 0.18);
}

.discover-light-main {
  position: relative;
  z-index: 1;
}

.discover-light-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.discover-light-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.4rem;
}

.discover-light-title {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 1.6rem;
  color: #0f1117;
}

.discover-gradient-word {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.discover-light-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #5f6684;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.discover-light-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.discover-cta-primary,
.discover-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discover-cta-primary {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(168, 85, 247, 0.32);
}

.discover-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(168, 85, 247, 0.42);
}

.discover-cta-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #0f1117;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 15, 19, 0.08);
}

.discover-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.discover-for-ai-feature {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.discover-for-ai-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 32px;
  padding: 3rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 40px 100px rgba(168, 85, 247, 0.15);
  position: relative;
  overflow: hidden;
}

.discover-for-ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.08), transparent 60%);
  pointer-events: none;
}

@media (max-width: 880px) {
  .discover-for-ai-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.6rem;
  }
}

.discover-for-ai-content {
  position: relative;
}

.discover-for-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #a855f7;
  margin-bottom: 1.2rem;
}

.discover-for-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  animation: forAiPulse 2s ease infinite;
}

.discover-for-ai-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: #0f1117;
}

.discover-for-ai-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #5f6684;
  margin: 0 0 1.4rem;
}

.discover-for-ai-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.discover-for-ai-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 14px;
  color: #2c3245;
  line-height: 1.5;
}

.discover-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.discover-for-ai-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  color: #ffffff;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discover-for-ai-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(168, 85, 247, 0.45);
}

.discover-cta-arrow {
  font-size: 16px;
}

.discover-for-ai-hint {
  margin-top: 0.6rem;
  font-size: 12px;
  color: #8a90aa;
}

.discover-for-ai-visual {
  position: relative;
}

.discover-ai-mockup {
  background: linear-gradient(180deg, #1a1d2e, #0f1117);
  border-radius: 20px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 30px 70px rgba(15, 15, 19, 0.3);
  position: relative;
  overflow: hidden;
}

.discover-ai-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.15), transparent 60%);
  pointer-events: none;
}

.discover-ai-mockup-bubble {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 88%;
  position: relative;
  z-index: 1;
  animation: forAiSlideIn 0.6s ease both;
}

.discover-ai-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #ffffff;
}

.discover-ai-bubble-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  animation-delay: 0.4s;
}

.discover-ai-bubble-bot ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.discover-ai-bubble-bot li {
  margin-bottom: 0.2rem;
}

.is-typing-bubble {
  animation-delay: 1s;
  padding: 0.6rem 0.9rem;
}

.is-typing-bubble .forai-typing-dots span {
  background: rgba(255, 255, 255, 0.6);
}

/* ===========================================================
   DÉCOUVRIR — Pro redesign (light blue, Codex inspired)
   =========================================================== */
.discover-pro-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #f5f7ff;
  color: #1a2240;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.discover-pro-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, #dde6ff 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 20%, #e8e0ff 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 30%, #dceaff 0%, transparent 60%),
    #f5f7ff;
}

.discover-pro-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 75%);
  animation: discoverProMeshDrift 60s linear infinite;
}

@keyframes discoverProMeshDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

.discover-pro-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.discover-pro-glow-1 {
  top: -10%;
  left: 8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  opacity: 0.5;
  animation: discoverProGlow1 20s ease-in-out infinite;
}

.discover-pro-glow-2 {
  top: 5%;
  right: 0%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
  opacity: 0.55;
  animation: discoverProGlow2 24s ease-in-out infinite;
}

.discover-pro-glow-3 {
  top: 40%;
  left: 35%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ddd6fe, transparent 70%);
  opacity: 0.4;
  animation: discoverProGlow3 28s ease-in-out infinite;
}

@keyframes discoverProGlow1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes discoverProGlow2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 50px); }
}
@keyframes discoverProGlow3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -60px); }
}

/* Floating particles for Codex-style movement */
.discover-pro-bg::before,
.discover-pro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(59, 130, 246, 0.5) 0%, transparent 1px),
    radial-gradient(circle at 38% 64%, rgba(99, 102, 241, 0.45) 0%, transparent 1px),
    radial-gradient(circle at 62% 28%, rgba(59, 130, 246, 0.4) 0%, transparent 1px),
    radial-gradient(circle at 78% 78%, rgba(139, 92, 246, 0.35) 0%, transparent 1px),
    radial-gradient(circle at 22% 82%, rgba(59, 130, 246, 0.4) 0%, transparent 1px),
    radial-gradient(circle at 88% 44%, rgba(99, 102, 241, 0.45) 0%, transparent 1px);
  background-size: 1200px 1200px;
}

.discover-pro-bg::before {
  animation: discoverProDrift 80s linear infinite;
  opacity: 0.7;
}

.discover-pro-bg::after {
  background-position: 600px 300px;
  animation: discoverProDrift 110s linear infinite reverse;
  opacity: 0.55;
}

@keyframes discoverProDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1200px, 600px, 0); }
}

.discover-pro-topbar {
  position: relative;
  z-index: 10;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
}

.discover-pro-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.discover-pro-brand-img {
  width: 190px;
  height: auto;
  display: block;
}

.discover-pro-main {
  position: relative;
  z-index: 5;
}

/* ----- HERO ----- */
.discover-pro-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5rem;
  text-align: center;
}

.discover-pro-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 1.6rem;
  padding: 6px 14px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
}

.discover-pro-title {
  margin: 0 0 1.6rem;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #0d1539;
}

.discover-pro-title-grad {
  font-weight: 500;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.discover-pro-sub {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: #4a5275;
  font-weight: 400;
}

.discover-pro-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3.5rem;
}

.discover-pro-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  background: #0d1539;
  color: #f5f7ff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}

.discover-pro-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -8px rgba(13, 21, 57, 0.35);
}

.discover-pro-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  background: rgba(255, 255, 255, 0.7);
  color: #1a2240;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: -0.01em;
}

.discover-pro-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.42);
}

.discover-pro-trust {
  margin-bottom: 3.5rem;
}

.discover-pro-trust-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7299;
  margin-bottom: 1rem;
}

.discover-pro-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  font-size: 13px;
  color: #4a5275;
  font-weight: 400;
}

.discover-pro-trust-row .dot {
  color: #b8c0d8;
}

/* ----- PRODUCT MOCKUP ----- */
.discover-pro-window {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -25px rgba(59, 130, 246, 0.25),
    0 30px 60px -15px rgba(99, 102, 241, 0.15);
}

.discover-pro-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: #f5f7ff;
}

.discover-pro-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.discover-pro-dot.dot-r { background: #ff5f56; }
.discover-pro-dot.dot-y { background: #ffbd2e; }
.discover-pro-dot.dot-g { background: #27c93f; }

.discover-pro-window-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #6b7299;
  font-weight: 500;
}

.discover-pro-window-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
}

.discover-pro-side {
  background: #fafbff;
  border-right: 1px solid rgba(99, 102, 241, 0.1);
  padding: 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.discover-pro-side-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 13px;
  color: #4a5275;
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease;
  font-weight: 400;
}

.discover-pro-side-link:hover {
  background: rgba(99, 102, 241, 0.06);
  color: #1a2240;
}

.discover-pro-side-link.is-active {
  background: rgba(99, 102, 241, 0.12);
  color: #2563eb;
  font-weight: 500;
}

.discover-pro-side-link span {
  font-size: 13px;
}

.discover-pro-side-section {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c93b8;
  padding: 0.8rem 0.7rem 0.3rem;
  margin-top: 0.4rem;
}

.discover-pro-app-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.discover-pro-app-dot.grad-ai {
  background: linear-gradient(135deg, #3b82f6, #6366f1 60%, #a855f7);
}

.discover-pro-app-dot.grad-code {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.discover-pro-app-dot.grad-mail {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.discover-pro-stage {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.discover-pro-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.discover-pro-stage-head h3 {
  margin: 0 0 0.2rem;
  font-size: 17px;
  font-weight: 500;
  color: #0d1539;
  letter-spacing: -0.02em;
}

.discover-pro-stage-sub {
  font-size: 12px;
  color: #6b7299;
  font-weight: 400;
}

.discover-pro-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  white-space: nowrap;
}

.discover-pro-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.discover-pro-kpi {
  background: #fafbff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.discover-pro-kpi span {
  font-size: 10px;
  color: #6b7299;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.discover-pro-kpi strong {
  font-size: 20px;
  font-weight: 500;
  color: #0d1539;
  letter-spacing: -0.02em;
}

.discover-pro-kpi em {
  font-size: 11px;
  color: #2563eb;
  font-style: normal;
  font-weight: 500;
}

.discover-pro-chart {
  background: #fafbff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
  height: 110px;
}

.discover-pro-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.discover-pro-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.discover-pro-list-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px 90px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #fafbff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  font-size: 13px;
  color: #4a5275;
  font-weight: 400;
}

.discover-pro-list-id {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: #8c93b8;
}

.discover-pro-list-row strong {
  font-weight: 500;
  color: #0d1539;
}

.discover-pro-list-row em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.discover-pro-list-row em.ok {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.discover-pro-list-row em.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.discover-pro-list-amount {
  text-align: right;
  font-weight: 500;
  color: #0d1539;
}

/* ----- VALUES ----- */
.discover-pro-values {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.discover-pro-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.discover-pro-value {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.discover-pro-value:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.2);
}

.discover-pro-value-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.discover-pro-value h3 {
  margin: 0 0 0.6rem;
  font-size: 17px;
  font-weight: 500;
  color: #0d1539;
  letter-spacing: -0.01em;
}

.discover-pro-value p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4a5275;
  font-weight: 400;
}

/* ----- FINAL CTA ----- */
.discover-pro-final {
  max-width: 900px;
  margin: 6rem auto 4rem;
  padding: 0 1.5rem;
}

.discover-pro-final-card {
  position: relative;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.16), transparent 60%),
    #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
}

.discover-pro-final-card h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #0d1539;
}

.discover-pro-final-card p {
  margin: 0 0 2rem;
  font-size: 16px;
  color: #4a5275;
  font-weight: 400;
}

.discover-pro-final-card .discover-pro-cta {
  margin-bottom: 0;
}

/* ----- FOOTER ----- */
.discover-pro-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.discover-pro-footer-text {
  font-size: 13px;
  color: #6b7299;
  font-weight: 400;
}

.discover-pro-footer-links {
  display: flex;
  gap: 1.6rem;
}

.discover-pro-footer-links a {
  color: #4a5275;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.discover-pro-footer-links a:hover {
  color: #2563eb;
}

/* ----- APPS — dark blue overrides on pro body ----- */
.discover-pro-body .discover-apps {
  margin: 6rem auto;
}

.discover-pro-body .discover-apps-head {
  margin-bottom: 3rem;
}

.discover-pro-body .discover-apps-head h2 {
  color: #0d1539;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.discover-pro-body .discover-apps-sub {
  color: #4a5275;
  font-weight: 400;
}

.discover-pro-body .discover-section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4f46e5;
  margin-bottom: 1.2rem;
  padding: 5px 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.06);
}

/* Uniform cards — equal size, vertical layout */
.discover-pro-body .discover-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.discover-pro-body .discover-app {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.6rem;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.discover-pro-body .discover-app:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px -12px rgba(99, 102, 241, 0.22);
}

/* Override featured (no longer special) */
.discover-pro-body .discover-app-featured {
  grid-column: auto;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(99, 102, 241, 0.14);
}

@media (min-width: 700px) {
  .discover-pro-body .discover-app-featured {
    grid-column: auto;
  }
}

.discover-pro-body .discover-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.discover-pro-body .discover-app-featured .discover-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.discover-pro-body .discover-app-info {
  flex: 1;
  width: 100%;
}

.discover-pro-body .discover-app-name {
  font-size: 16px;
  font-weight: 500;
  color: #0d1539;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.discover-pro-body .discover-app-featured .discover-app-name {
  font-size: 16px;
}

.discover-pro-body .discover-app-desc {
  color: #4a5275;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
}

.discover-pro-body .discover-app-arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: #8c93b8;
  font-size: 15px;
}

.discover-pro-body .discover-app:hover .discover-app-arrow {
  color: #2563eb;
}

.discover-pro-body .discover-app-badge {
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
}

.discover-pro-body .discover-app-badge.live {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.discover-pro-body .discover-app-badge.live::before {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.discover-pro-body .discover-app-badge.soon {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.12);
}

@media (max-width: 760px) {
  .discover-pro-window-body {
    grid-template-columns: 1fr;
  }
  .discover-pro-side {
    display: none;
  }
  .discover-pro-list-row {
    grid-template-columns: 60px 1fr 80px;
    gap: 0.5rem;
  }
  .discover-pro-list-row strong {
    grid-column: 2;
  }
  .discover-pro-list-row em {
    grid-column: 3;
    font-size: 9px;
  }
  .discover-pro-list-amount {
    grid-column: 1 / -1;
    text-align: left;
  }
  .discover-pro-kpis {
    grid-template-columns: 1fr;
  }
}

/* ===== Découvrir — Apps grid ===== */
.discover-apps {
  max-width: 1180px;
  margin: 4rem auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.discover-apps-head {
  text-align: center;
  margin-bottom: 2.4rem;
}

.discover-apps-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
}

.discover-apps-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
  color: #6f7594;
}

.discover-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.discover-app {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 15, 19, 0.07);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.discover-app:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(97, 114, 243, 0.14);
  border-color: rgba(168, 85, 247, 0.25);
}

.discover-app-featured {
  grid-column: 1 / -1;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.95));
  border-color: rgba(168, 85, 247, 0.2);
}

@media (min-width: 700px) {
  .discover-app-featured {
    grid-column: span 2;
  }
}

.discover-app-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 15, 19, 0.06);
}

.discover-app-logo svg {
  width: 100%;
  height: 100%;
}

.discover-app-featured .discover-app-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.discover-app-info {
  flex: 1;
  min-width: 0;
}

.discover-app-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 700;
  color: #0f1117;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.discover-app-featured .discover-app-name {
  font-size: 19px;
}

.discover-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.discover-app-badge.live {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.discover-app-badge.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.discover-app-badge.soon {
  color: #6b21a8;
  background: rgba(168, 85, 247, 0.12);
}

.discover-app-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5f6684;
}

.discover-app-arrow {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 16px;
  color: #8a90aa;
  transition: transform 0.2s ease, color 0.2s ease;
}

.discover-app:hover .discover-app-arrow {
  transform: translate(2px, -2px);
  color: #6172f3;
}

.discover-app.is-coming {
  cursor: pointer;
}

.discover-app.is-coming::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.discover-app.is-coming:hover::after {
  opacity: 1;
}

.discover-light-features {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.discover-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.discover-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7594;
  margin-bottom: 0.6rem;
}

.discover-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
}

.discover-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.discover-feature {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 20px;
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.discover-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.discover-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}

.discover-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1117;
}

.discover-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5f6684;
}

.discover-light-cta-final {
  max-width: 720px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.discover-final-card {
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(168, 85, 247, 0.3);
}

.discover-final-card h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.discover-final-card p {
  margin: 0 0 1.6rem;
  font-size: 15px;
  opacity: 0.9;
}

.discover-final-card .discover-cta-primary {
  background: #ffffff;
  color: #0f1117;
  box-shadow: 0 12px 28px rgba(15, 15, 19, 0.2);
}

.discover-final-card .discover-cta-primary:hover {
  background: rgba(255, 255, 255, 0.95);
}

.discover-final-card .discover-cta-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.discover-final-card .discover-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.discover-light-footer {
  max-width: 1100px;
  margin: 4rem auto 2rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.discover-footer-text {
  font-size: 13px;
  color: #8a90aa;
}

.receipt-form-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.receipt-form-actions .btn {
  flex: 1;
  min-width: 180px;
}

.receipt-preview-aside {
  position: sticky;
  top: 88px;
}

.receipt-preview-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a90aa;
  margin-bottom: 0.7rem;
}

.receipt-sheet-wrap {
  background: linear-gradient(180deg, #f3f5fb, #e7ebf4);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 19, 0.04);
}

.receipt-sheet {
  --receipt-accent: #2b3bf0;
  --receipt-accent-light: #6d7cff;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 22px 50px rgba(15, 15, 19, 0.1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111318;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.receipt-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--receipt-accent), var(--receipt-accent-light));
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.4rem;
  padding-top: 0.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(15, 15, 19, 0.08);
}

.receipt-brand {
  flex-shrink: 0;
}

.receipt-logo {
  width: 96px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.receipt-title-block {
  text-align: right;
}

.receipt-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--receipt-accent);
  margin-bottom: 0.5rem;
}

.receipt-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
  line-height: 1;
}

.receipt-meta-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  background: linear-gradient(180deg, #f4f6ff, #ffffff);
  border: 1px solid rgba(43, 59, 240, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.receipt-meta-band > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.receipt-meta-band span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a90aa;
}

.receipt-meta-band strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f1117;
}

.receipt-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.receipt-party {
  background: rgba(244, 246, 255, 0.55);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.receipt-party-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--receipt-accent);
  margin-bottom: 0.3rem;
}

.receipt-party-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f1117;
}

.receipt-party-line {
  font-size: 13px;
  color: #5f6684;
  line-height: 1.45;
}

.receipt-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--receipt-accent);
  margin-bottom: 0.5rem;
}

.receipt-description {
  background: #f9faff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
}

.receipt-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #2c3245;
}

.receipt-amount-block {
  background: linear-gradient(135deg, var(--receipt-accent), var(--receipt-accent-light));
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 18px 40px rgba(15, 15, 19, 0.18);
}

.receipt-amount-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.receipt-amount-value {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.receipt-amount-footer {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.4rem;
}

.receipt-footer-note {
  font-size: 12px;
  color: #6f7594;
  line-height: 1.55;
  text-align: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
}

@media print {
  body > nav,
  body > .container > .page-header,
  .receipt-form-card,
  .receipt-preview-aside,
  .notif {
    display: none !important;
  }
  .container.page {
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .print-sheet-hidden {
    display: block !important;
  }
  .print-sheet-hidden .receipt-sheet {
    box-shadow: none;
    border-radius: 0;
    padding: 1.5rem 1.8rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  justify-content: flex-end;
}

.user-chip {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #1e2dd4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gray-light);
  border-color: #d0d0e0;
}

.btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--gray-light);
  color: var(--dark);
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fca5a5;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius);
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page {
  padding: 2rem 0 4rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  animation: pageHeaderReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
}

.page-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-top: 2px;
}

.marketing-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marketing-brand img,
.marketing-brand img {
  width: 190px;
  height: auto;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  width: 180px;
  height: 58px;
  overflow: visible;
}

.auth-brand img {
  display: block;
  width: auto;
  height: 56px;
  object-fit: contain;
  transform: scale(2.35);
  transform-origin: left center;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
  min-height: 58px;
}

.auth-home-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(43,59,240,0.12);
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(15,15,19,0.08);
}

.marketing-actions,
.marketing-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.marketing-nav-left {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}
.marketing-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.marketing-nav-links a {
  text-decoration: none;
  color: var(--dark, #0f1117);
  font-size: 14.5px;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.marketing-nav-links a:hover {
  background: rgba(15, 17, 23, 0.06);
}
@media (max-width: 720px) {
  .marketing-nav-links { display: none; }
}

.btn-try-forai {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(97, 114, 243, 0.08), rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.22);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #0f1117;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-try-forai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(97, 114, 243, 0.18), rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.18));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.btn-try-forai:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.18);
}

.btn-try-forai:hover::before {
  opacity: 1;
}

.btn-try-forai > * {
  position: relative;
  z-index: 1;
}

.btn-try-forai-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.btn-try-forai-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.btn-try-forai-name {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.btn-try-forai-ai {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #c5c8d4;
  margin-left: 2px;
  letter-spacing: 0.05em;
}

.marketing-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.marketing-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(43,59,240,0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.marketing-copy h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  margin-bottom: 1rem;
}

.marketing-copy p {
  max-width: 620px;
  color: #5c617d;
  font-size: 18px;
  margin-bottom: 1.5rem;
}

.marketing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.marketing-point,
.marketing-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(43,59,240,0.08);
  color: #515776;
  font-size: 13px;
  font-weight: 600;
}

.marketing-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(15,15,19,0.12);
}

.marketing-card-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.marketing-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8dcf5;
}

.marketing-mock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.marketing-mock-label {
  color: var(--gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.marketing-mock-title {
  font-size: 26px;
  font-weight: 700;
}

.marketing-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.marketing-metric,
.auth-feature-item {
  background: #f6f7fe;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.marketing-metric span,
.auth-feature-item span {
  display: block;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 0.35rem;
}

.marketing-metric strong,
.auth-feature-item strong {
  font-size: 18px;
}

.marketing-list {
  display: grid;
  gap: 0.8rem;
}

.marketing-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1rem;
}

.marketing-body-rich {
  overflow-x: hidden;
  background: linear-gradient(160deg, #bfdbfe 0%, #c7d2fe 40%, #ddd6fe 100%);
}

.marketing-nav-rich {
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
  background: transparent;
  backdrop-filter: none;
}

.marketing-page {
  padding-bottom: 5rem;
}

.landing-story {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 3rem 2rem 1rem;
  display: grid;
  align-items: center;
}

.landing-story-inner {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease;
}

.landing-story-note {
  color: #687291;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-story-title {
  display: grid;
  gap: 0.04em;
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  max-width: 1100px;
}

.landing-story-line {
  display: block;
  animation: none;
}

.landing-story-line-dark {
  color: #111218;
}

.landing-story-line-blue {
  color: #2b3bf0;
  animation-delay: -1.2s;
}

.landing-story-line-soft {
  color: #94a5ff;
  animation-delay: -2.4s;
}

.landing-story-rotator {
  position: relative;
  min-height: 72px;
  width: min(760px, 100%);
}

.landing-story-message {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #55607e;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-story-message.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ══════════════════════════════════════════════════════
   NOUVEAU HERO
══════════════════════════════════════════════════════ */
.new-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

.new-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* TEXTE */
.new-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.6);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: .04em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
}

.new-hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}

.hero-accent {
  display: block;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.new-hero-sub {
  font-size: 16px;
  color: #334155;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 420px;
}

.new-hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.new-hero-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
  transition: color .2s;
}
.new-hero-play-btn:hover { color: #1d4ed8; }

.new-hero-play-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  box-shadow: 0 4px 16px rgba(29,78,216,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  flex-shrink: 0;
}

.new-hero-trust { display: flex; gap: 16px; flex-wrap: wrap; }
.new-hero-trust span { font-size: 12px; color: #1e3a5f; font-weight: 600; }

.new-hero-logos { padding: 24px 0 40px; text-align: center; }

/* ══════════════════════════════════════════════════════
   FENÊTRE APP ANIMÉE
══════════════════════════════════════════════════════ */
.new-hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }

/* ── COMPOSITION MULTI-PANNEAUX (style Brevo) ─────── */
.hp-scene { position: relative; width: 580px; height: 460px; animation: appwin-float 5s ease-in-out infinite; }
.hp-main { position: absolute; top: 30px; left: 0; width: 380px; background: rgba(255,255,255,.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(29,78,216,.18), 0 0 0 1px rgba(255,255,255,.7); }
.hp-main-chrome { background: rgba(241,245,249,.9); padding: 8px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(226,232,240,.6); }
.hp-url { flex: 1; text-align: center; background: rgba(255,255,255,.8); border-radius: 5px; padding: 2px 10px; font-size: 9px; color: #64748b; margin-left: 6px; }
.hp-main-body { display: flex; height: 360px; }
.hp-sidebar { width: 110px; flex-shrink: 0; background: #0f172a; padding: 12px 0; }
.hp-brand { font-size: 12px; font-weight: 900; color: #6366f1; padding: 0 10px 10px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; }
.hp-nav-item { font-size: 9px; color: rgba(255,255,255,.4); padding: 7px 10px; display: flex; align-items: center; gap: 5px; transition: all .2s; }
.hp-nav-active, .hp-nav-hover { background: rgba(99,102,241,.18); color: #a5b4fc; }
.hp-content { flex: 1; background: rgba(248,250,252,.95); position: relative; overflow: hidden; }
.hp-page { position: absolute; inset: 0; padding: 12px; opacity: 0; transform: translateX(12px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.hp-page-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.hp-page-title { font-size: 12px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.hp-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 8px; }
.hp-kpi { background: #fff; border-radius: 7px; padding: 7px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hp-kpi-l { font-size: 7px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.hp-kpi-v { font-size: 14px; font-weight: 800; line-height: 1; }
.hp-kpi-sub { font-size: 7px; color: #10b981; margin-top: 2px; }
.hp-rows { display: flex; flex-direction: column; gap: 3px; }
.hp-row-head { display: flex; gap: 5px; padding: 3px 7px; font-size: 7px; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
.hp-row { display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 6px; padding: 6px 8px; font-size: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.hp-num { font-weight: 700; color: #6366f1; width: 30px; flex-shrink: 0; font-size: 8px; }
.hp-cl { flex: 1; color: #0f172a; font-weight: 500; }
.hp-badge.ok { background: #dcfce7; color: #16a34a; }
.hp-badge.wait { background: #fef9c3; color: #854d0e; }
.hp-badge.draft { background: #f1f5f9; color: #64748b; }
.hp-badge { font-size: 7px; font-weight: 700; padding: 2px 5px; border-radius: 20px; flex-shrink: 0; }
.hp-amt { font-size: 9px; font-weight: 700; color: #374151; margin-left: auto; flex-shrink: 0; }
.hp-clients { display: flex; flex-direction: column; gap: 5px; }
.hp-crow { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 7px; padding: 7px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.hp-av { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; color: #fff; flex-shrink: 0; }
.hp-cname { font-size: 10px; font-weight: 700; color: #0f172a; }
.hp-cemail { font-size: 8px; color: #94a3b8; }
.hp-cca { margin-left: auto; font-size: 10px; font-weight: 700; color: #10b981; }
.hp-alert { margin-top: 8px; background: #fef9c3; border-left: 3px solid #f59e0b; border-radius: 6px; padding: 6px 8px; font-size: 9px; font-weight: 600; color: #92400e; }
/* Flottants */
.hp-float { position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(29,78,216,.15), 0 0 0 1px rgba(255,255,255,.7); }
.hp-float-contact { top: 0; right: 0; width: 185px; animation: float-bob 4s 1s ease-in-out infinite; }
.hp-float-notif { top: 195px; right: 10px; width: 180px; display: flex; align-items: center; gap: 8px; animation: float-bob 4s 2s ease-in-out infinite; }
.hp-float-chart { bottom: 0; right: 10px; width: 180px; animation: float-bob 4s 0.5s ease-in-out infinite; }
@keyframes float-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hp-float-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hp-av-lg { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; }
.hp-float-name { font-size: 12px; font-weight: 700; color: #0f172a; }
.hp-float-sub { font-size: 9px; color: #64748b; }
.hp-float-stats { display: flex; gap: 12px; }
.hp-float-sl { font-size: 8px; color: #94a3b8; margin-bottom: 2px; }
.hp-float-sv { font-size: 13px; font-weight: 800; color: #0f172a; }
.hp-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.hp-notif-title { font-size: 11px; font-weight: 700; color: #0f172a; }
.hp-notif-sub { font-size: 9px; color: #64748b; }
.hp-chart-title { font-size: 9px; font-weight: 700; color: #94a3b8; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.hp-bars { display: flex; align-items: flex-end; gap: 4px; height: 50px; margin-bottom: 6px; }
.hp-bar { flex: 1; background: rgba(99,102,241,.2); border-radius: 3px 3px 0 0; }
.hp-bar-active { background: #6366f1; }
.hp-chart-total { font-size: 13px; font-weight: 800; color: #0f172a; }

/* HERO TITLE fix (no gap) */
.hero-accent { display: inline; }

.appwin {
  width: 100%;
  max-width: 580px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(29,78,216,.25), 0 0 0 1px rgba(255,255,255,.7), inset 0 1px 0 rgba(255,255,255,.9);
  animation: appwin-float 5s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.5);
}
@keyframes appwin-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(-1deg); }
}

.appwin-chrome {
  background: #f1f5f9;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.appwin-dots { display: flex; gap: 5px; }
.appwin-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.appwin-url { flex: 1; text-align: center; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 10px; color: #64748b; }

.appwin-layout { display: flex; height: 320px; }

/* SIDEBAR */
.appwin-sidebar {
  width: 120px;
  flex-shrink: 0;
  background: #0f172a;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.appwin-logo { font-size: 12px; font-weight: 900; color: #6366f1; padding: 0 12px 12px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; }
.appwin-nav-item {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  padding: 7px 12px;
  cursor: default;
  transition: all .2s;
  border-radius: 0;
}
.appwin-nav-item.appwin-nav-active,
.appwin-nav-item.appwin-nav-hover {
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
}

/* CONTENU */
.appwin-content {
  flex: 1;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.appwin-page {
  position: absolute;
  inset: 0;
  padding: 14px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.appwin-page.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.aw-title { font-size: 13px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }

.aw-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 10px; }
.aw-stat { background: #fff; border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.aw-stat-l { font-size: 8px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.aw-stat-v { font-size: 15px; font-weight: 800; }

.aw-rows { display: flex; flex-direction: column; gap: 4px; }
.aw-row-head { display: flex; gap: 6px; padding: 4px 8px; font-size: 8px; color: #94a3b8; font-weight: 700; text-transform: uppercase; }
.aw-row { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 7px; padding: 7px 10px; font-size: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.aw-num { font-weight: 700; color: #6366f1; width: 34px; flex-shrink: 0; font-size: 9px; }
.aw-client { flex: 1; color: #0f172a; font-weight: 500; }
.aw-badge { font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 20px; flex-shrink: 0; }
.aw-badge.ok   { background: #dcfce7; color: #16a34a; }
.aw-badge.wait { background: #fef9c3; color: #854d0e; }
.aw-badge.draft{ background: #f1f5f9; color: #64748b; }
.aw-amt { font-size: 10px; font-weight: 700; color: #374151; margin-left: auto; flex-shrink: 0; }

.aw-clients { display: flex; flex-direction: column; gap: 6px; }
.aw-client-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.aw-avatar { width: 28px; height: 28px; border-radius: 50%; background: #6366f1; color: #fff; font-size: 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aw-cname { font-size: 10px; font-weight: 700; color: #0f172a; }
.aw-cemail { font-size: 8px; color: #94a3b8; }
.aw-ca { margin-left: auto; font-size: 11px; font-weight: 700; color: #10b981; }

.aw-notif {
  margin-top: 10px;
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #166534;
}

/* CURSEUR JS */
.appwin-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 20;
  transition: top .6s cubic-bezier(.4,0,.2,1), left .6s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.appwin-ripple {
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(99,102,241,.35);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.appwin-ripple.pop {
  animation: ripple-pop .4s ease forwards;
}
@keyframes ripple-pop {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ─── SECTION AVIS ──────────────────────────────────── */
.reviews-section {
  background: #0f172a;
  padding: 80px 0 100px;
}

.reviews-header {
  text-align: center;
  padding: 0 24px 48px;
}

.reviews-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 12px;
}

.reviews-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -.4px;
}

.reviews-sub {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.reviews-marquee-outer {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.reviews-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}

.reviews-marquee-outer:hover .reviews-marquee-track {
  animation-play-state: paused;
}

.rv-card {
  width: 280px;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 20px;
  transition: background .2s;
}

.rv-card:hover {
  background: rgba(255,255,255,.1);
}

.rv-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rv-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.rv-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.rv-stars {
  font-size: 11px;
  color: #fbbf24;
}

.rv-text {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin: 0;
}

/* ─── COMPARAISON ────────────────────────────────── */
.compare-section {
  background: transparent;
  padding: 60px 24px 80px;
}
.compare-inner { max-width: 860px; margin: 0 auto; }
.compare-header { text-align: center; margin-bottom: 36px; }
.compare-kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #1d4ed8; margin-bottom: 10px; }
.compare-title { font-size: clamp(22px, 3.5vw, 36px); font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.compare-sub { font-size: 15px; color: #475569; }
.compare-table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 8px 32px rgba(29,78,216,.12); }
.compare-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border-radius: 16px; overflow: hidden; }
.compare-table th { padding: 14px 18px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.9); color: #374151; text-align: center; border-bottom: 2px solid #e2e8f0; }
.compare-table th:first-child { text-align: left; }
.compare-table .col-for { background: rgba(99,102,241,.08); color: #4338ca; }
.compare-table td { padding: 12px 18px; font-size: 13px; color: #374151; text-align: center; border-bottom: 1px solid rgba(226,232,240,.5); }
.compare-table td:first-child { text-align: left; font-weight: 500; color: #0f172a; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(99,102,241,.04); }
.check { color: #16a34a; font-size: 16px; font-weight: 900; }
.cross { color: #dc2626; font-size: 16px; font-weight: 900; }
.half  { color: #d97706; font-size: 14px; }

/* ─── AVIS UTILISATEURS (clair) ─────────────────── */
.user-reviews-section {
  background: transparent;
  padding: 60px 0 40px;
}
.user-reviews-header { text-align: center; padding: 0 24px 32px; }
.user-reviews-rating { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.ur-stars { color: #f59e0b; font-size: 20px; }
.ur-score { font-size: 28px; font-weight: 900; color: #0f172a; }
.ur-score span { font-size: 16px; color: #64748b; font-weight: 500; }
.ur-count { font-size: 13px; color: #64748b; }
.user-reviews-title { font-size: clamp(20px, 3vw, 32px); font-weight: 800; color: #0f172a; margin: 0; }
.rv-card-light { background: rgba(255,255,255,.65); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.8); }
.rv-card-light:hover { background: rgba(255,255,255,.85); }
.rv-name-dark { color: #0f172a; }
.rv-text-dark { color: #374151; }

/* ─── TRANSITION SECTIONS ───────────────────────────── */
.landing-video-section {
  background: transparent;
  padding: 80px 24px;
  text-align: center;
}
.landing-video-section::before { display: none; }
.landing-video-section::after  { display: none; }

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #bfdbfe 0%, #93c5fd 100%);
  color: #1e3a5f;
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 100px;
  height: auto;
  opacity: .85;
  margin-bottom: 14px;
  display: block;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: #1e3a5f;
  margin: 0 0 20px;
  max-width: 220px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(29,78,216,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-social-link:hover {
  background: rgba(29,78,216,.2);
  color: #1d4ed8;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #1d4ed8;
  margin-bottom: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 13px;
  color: #1e40af;
  text-decoration: none;
  transition: color .2s;
}
.footer-links-col a:hover {
  color: #1d4ed8;
}

.footer-bottom {
  border-top: 1px solid rgba(29,78,216,.15);
  background: rgba(191,219,254,.5);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #3b5fa0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: #3b5fa0;
  text-decoration: none;
  font-size: 12px;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: #1d4ed8; }

/* ─── MARQUEE LOGOS ─────────────────────────────────── */
.landing-boost {
  margin-top: 3rem;
  width: 100%;
}

.landing-boost-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #687291;
  text-align: center;
  margin-bottom: 1.25rem;
}

.marquee-outer {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 36px;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item svg {
  width: auto;
  display: block;
  flex-shrink: 0;
}

.marquee-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  letter-spacing: .01em;
}

/* ─── SECTION VIDÉO ─────────────────────────────────── */
/* (styles déplacés dans la règle TRANSITION SECTIONS ci-dessus) */

.landing-video-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 12px;
}

.landing-video-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -.5px;
  line-height: 1.2;
}

.landing-video-wrap {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(99,102,241,.18);
  line-height: 0;
}

.landing-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.prelude-idle .marketing-nav,
.prelude-idle .hero-stage,
.prelude-idle .story-section,
.prelude-idle .zoom-band,
.prelude-idle .journey-stage,
.prelude-idle .feature-corridor,
.prelude-idle .showcase-stage,
.prelude-idle .final-cta {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  pointer-events: none;
}

.marketing-nav,
.hero-stage,
.story-section,
.zoom-band,
.journey-stage,
.feature-corridor,
.showcase-stage,
.final-cta {
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.prelude-idle .landing-story-inner {
  transform: scale(1.02);
}

.prelude-idle .landing-story-message {
  opacity: 0;
}

.site-awake .landing-story-inner {
  transform: translate3d(0, -16px, 0);
}

.site-awake .landing-story-line {
  animation: introLineFloat 5.8s ease-in-out infinite;
}

.site-awake .marketing-nav,
.site-awake .hero-stage,
.site-awake .story-section,
.site-awake .zoom-band,
.site-awake .journey-stage,
.site-awake .feature-corridor,
.site-awake .showcase-stage,
.site-awake .final-cta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  filter: none;
}

.hero-stage,
.story-section,
.feature-corridor,
.final-cta,
.zoom-band {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero-stage {
  position: relative;
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -90px 2rem auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.94), rgba(238,242,255,0.64) 45%, rgba(238,242,255,0) 74%);
  filter: blur(24px);
  opacity: 0.94;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-orb-left {
  width: 320px;
  height: 320px;
  top: 10%;
  left: -80px;
  background: rgba(43,59,240,0.18);
}

.hero-orb-right {
  width: 260px;
  height: 260px;
  right: 4%;
  top: 18%;
  background: rgba(147, 173, 255, 0.24);
  animation-delay: -4s;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy,
.hero-visual,
.story-card,
.zoom-band-inner,
.feature-row,
.final-cta-panel {
  transform-origin: center center;
  backface-visibility: hidden;
}

.hero-visual {
  position: relative;
  perspective: 1400px;
}

.hero-copy h1 {
  font-size: clamp(56px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
}

.hero-copy p {
  max-width: 680px;
  color: #56607f;
  font-size: 22px;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(43,59,240,0.08);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 18px 40px rgba(15,15,19,0.08);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.hero-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(43,59,240,0), rgba(43,59,240,0.9), rgba(122,139,255,0));
  transform: translateY(100%);
  transition: transform 0.45s ease;
}

.hero-stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(15,15,19,0.12);
  border-color: rgba(43,59,240,0.2);
}

.hero-stat-card:hover::after {
  transform: translateY(0);
}

.hero-stat-card span {
  color: var(--gray);
  font-size: 13px;
  display: block;
  margin-bottom: 0.45rem;
}

.hero-stat-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 0.35rem;
}

.hero-stat-card p {
  font-size: 13px;
  margin: 0;
  color: #69708b;
}

.hero-device {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226,231,255,0.95);
  border-radius: 36px;
  padding: 1.25rem;
  box-shadow: 0 32px 80px rgba(15,15,19,0.14);
}

.hero-device-3d {
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-10deg);
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: -35% 24% 65% -15%;
  background: radial-gradient(circle, rgba(43,59,240,0.18), transparent 60%);
}

.hero-3d-scene {
  position: absolute;
  inset: -30px -20px;
  pointer-events: none;
  transform-style: preserve-3d;
  z-index: 0;
}

.hero-3d-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -12px;
  top: 28px;
  border-radius: 50%;
  border: 20px solid rgba(43,59,240,0.22);
  border-top-color: rgba(43,59,240,0.95);
  border-right-color: rgba(122,139,255,0.7);
  box-shadow:
    0 28px 60px rgba(43,59,240,0.22),
    inset 0 0 30px rgba(255,255,255,0.65);
  transform-style: preserve-3d;
  animation: heroRing3DSpin 14s linear infinite;
}

.hero-3d-cube {
  position: absolute;
  width: 88px;
  height: 88px;
  left: -12px;
  top: 110px;
  transform-style: preserve-3d;
  animation: heroCube3DSpin 14s linear infinite;
}

.hero-3d-cube span {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(135deg, rgba(43,59,240,0.98), rgba(114,128,255,0.72));
  box-shadow: 0 28px 50px rgba(43,59,240,0.24);
}

.hero-3d-cube span:nth-child(1) { transform: translateZ(44px); }
.hero-3d-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(44px); }
.hero-3d-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(44px); }
.hero-3d-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(44px); }
.hero-3d-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(44px); }
.hero-3d-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(44px); }

.hero-3d-card-stack {
  position: absolute;
  left: 42px;
  bottom: 24px;
  width: 168px;
  height: 112px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 80px) rotateX(18deg) rotateY(18deg);
}

.hero-3d-card-stack span {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(233,236,255,0.82));
  box-shadow: 0 24px 44px rgba(15,15,19,0.12);
}

.hero-3d-card-stack span:nth-child(1) {
  transform: translate3d(0, 0, 58px) rotateX(18deg) rotateZ(-8deg);
}

.hero-3d-card-stack span:nth-child(2) {
  transform: translate3d(16px, 12px, 16px) rotateX(18deg) rotateZ(-8deg);
  background: linear-gradient(135deg, rgba(43,59,240,0.16), rgba(255,255,255,0.95));
}

.hero-3d-card-stack span:nth-child(3) {
  transform: translate3d(32px, 24px, -24px) rotateX(18deg) rotateZ(-8deg);
  background: linear-gradient(135deg, rgba(43,59,240,0.95), rgba(122,139,255,0.8));
}

.hero-device-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hero-device-body {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  border-radius: 28px;
  padding: 1.5rem;
}

.hero-device-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-device-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-device-metric {
  position: relative;
  background: #f1f4ff;
  border: 1px solid rgba(43,59,240,0.08);
  border-radius: 20px;
  padding: 1rem;
  transition: transform 0.35s ease, background 0.35s ease;
}

.hero-device-metric:hover {
  transform: translateY(-6px);
  background: #ffffff;
}

.hero-device-metric span {
  display: block;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 0.4rem;
}

.hero-device-metric strong {
  font-size: 30px;
}

.hero-device-flow {
  display: grid;
  gap: 0.85rem;
}

.hero-flow-card {
  background: #ffffff;
  border: 1px solid rgba(43,59,240,0.08);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-flow-card:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15,15,19,0.08);
}

.hero-flow-card span,
.feature-label,
.story-step {
  display: inline-block;
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.hero-flow-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 0.25rem;
}

.hero-flow-card em {
  color: #69708b;
  font-style: normal;
}

.hero-flow-card.active {
  background: linear-gradient(135deg, #2b3bf0 0%, #5f6dff 100%);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 24px 50px rgba(43,59,240,0.22);
}

.hero-flow-card.active span,
.hero-flow-card.active em {
  color: rgba(255,255,255,0.78);
}

.story-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.story-heading {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.story-heading h2,
.zoom-band-inner h2,
.final-cta-panel h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.story-heading p,
.zoom-band-inner p,
.feature-copy p,
.final-cta-panel p {
  color: #5c617d;
  font-size: 18px;
  max-width: 760px;
}

.story-stack {
  display: grid;
  gap: 1.5rem;
}

.story-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 1.5rem;
  padding: 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(226,231,255,0.92);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(15,15,19,0.08);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.story-card::after,
.feature-row::after,
.final-cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(43,59,240,0.08) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(15,15,19,0.12);
}

.story-card-copy h3,
.feature-copy h3 {
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.story-card-copy p {
  color: #5c617d;
  font-size: 17px;
}

.story-card-visual {
  min-height: 230px;
  background: linear-gradient(180deg, #f8f9ff 0%, #eef2ff 100%);
  border: 1px solid rgba(43,59,240,0.08);
  border-radius: 24px;
  padding: 1rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.visual-tile {
  min-height: 92px;
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid rgba(43,59,240,0.08);
}

.visual-tile.large {
  min-height: 130px;
}

.visual-tile.blue {
  background: linear-gradient(135deg, #2b3bf0 0%, #5f6dff 100%);
  color: white;
}

.visual-lines {
  display: grid;
  gap: 0.8rem;
}

.line-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 0.95rem 1rem;
}

.line-item span {
  color: var(--gray);
}

.visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
}

.chart-bar {
  flex: 1;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #8591ff 0%, #2b3bf0 100%);
  transform-origin: bottom;
}

.zoom-band {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.zoom-band-inner {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: 34px;
  background: linear-gradient(135deg, #11131c 0%, #1b2040 60%, #2b3bf0 100%);
  color: white;
  box-shadow: 0 32px 80px rgba(15,15,19,0.22);
}

.zoom-band-inner::before {
  content: "";
  position: absolute;
  inset: -30% 55% 30% -20%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
}

.zoom-band-inner .marketing-kicker,
.final-cta-panel .marketing-kicker {
  background: rgba(255,255,255,0.12);
  color: white;
}

.zoom-band-inner p {
  color: rgba(255,255,255,0.78);
}

.feature-corridor {
  padding-top: 4rem;
  padding-bottom: 5rem;
  display: grid;
  gap: 1.5rem;
}

.journey-stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.journey-copy {
  max-width: 760px;
  margin-bottom: 2rem;
}

.journey-copy h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  margin-bottom: 1rem;
}

.journey-copy p {
  color: #5c617d;
  font-size: 18px;
  max-width: 760px;
}

.journey-shell {
  position: relative;
  height: 210vh;
}

.journey-sticky {
  position: sticky;
  top: 7vh;
  height: 86vh;
  border-radius: 40px;
  background:
    radial-gradient(circle at 18% 18%, rgba(43,59,240,0.12), transparent 22%),
    radial-gradient(circle at 88% 74%, rgba(43,59,240,0.09), transparent 18%),
    linear-gradient(180deg, #fbfcff 0%, #eef2ff 100%);
  border: 1px solid rgba(226,231,255,0.95);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 36px 90px rgba(15,15,19,0.08);
  padding: 2.2rem;
  display: grid;
  align-content: center;
  gap: 2rem;
  perspective: 1800px;
  perspective-origin: 50% 42%;
}

.journey-meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.journey-meter-line,
.journey-meter-fill {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 22px;
  height: 2px;
  border-radius: 999px;
}

.journey-meter-line {
  background: rgba(43,59,240,0.1);
}

.journey-meter-fill {
  width: 0;
  right: auto;
  background: linear-gradient(90deg, #2b3bf0 0%, #788cff 100%);
  box-shadow: 0 0 24px rgba(43,59,240,0.24);
}

.journey-meter-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
  color: #7d84a2;
  transition: color 0.35s ease;
}

.journey-meter-step::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(43,59,240,0.18);
  box-shadow: 0 10px 24px rgba(15,15,19,0.08);
  transition: all 0.35s ease;
}

.journey-meter-step span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-meter-step.is-active {
  color: var(--blue);
}

.journey-meter-step.is-active::before {
  transform: scale(1.08);
  background: linear-gradient(135deg, #2b3bf0 0%, #7a8bff 100%);
  border-color: rgba(43,59,240,0.4);
  box-shadow: 0 0 0 8px rgba(43,59,240,0.08), 0 16px 32px rgba(43,59,240,0.18);
}

.journey-lane {
  position: relative;
  height: min(48vh, 560px);
  min-height: 430px;
  transform-style: preserve-3d;
  will-change: transform;
}

.journey-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  min-height: 380px;
  padding: 2.25rem;
  border-radius: 34px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226,231,255,0.92);
  box-shadow: 0 30px 70px rgba(15,15,19,0.08);
  opacity: 0;
  transform: translate3d(-50%, -50%, -620px) scale(0.72) rotateY(0deg);
  transform-style: preserve-3d;
  transition:
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.journey-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(43,59,240,0.06);
  pointer-events: none;
  transform: translateZ(24px);
}

.journey-card::before {
  content: "";
  position: absolute;
  inset: auto 18% 16px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(43,59,240,0.28), transparent 70%);
  filter: blur(14px);
  opacity: 0.6;
  transform: translateZ(-70px);
  pointer-events: none;
}

.journey-card strong {
  display: block;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  margin-bottom: 0.85rem;
  max-width: 440px;
  transform: translateZ(52px);
}

.journey-card p {
  max-width: 540px;
  color: #5c617d;
  font-size: 18px;
  line-height: 1.55;
  transform: translateZ(38px);
}

.journey-label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #eff2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  transform: translateZ(66px);
}

.journey-card.is-active {
  opacity: 1;
  border-color: rgba(43,59,240,0.22);
  box-shadow: 0 40px 110px rgba(22,29,80,0.18);
}

.journey-card-accent {
  background: linear-gradient(135deg, #121520 0%, #1f2550 58%, #2b3bf0 100%);
  color: white;
}

.journey-card-accent .journey-label {
  background: rgba(255,255,255,0.14);
  color: white;
}

.journey-card-accent p {
  color: rgba(255,255,255,0.82);
}

.showcase-stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 8rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.08fr);
  gap: 2.8rem;
  align-items: stretch;
}

.showcase-copy {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  align-content: stretch;
  min-height: 100%;
}

.showcase-visual {
  position: relative;
  max-width: 500px;
}

.showcase-image {
  width: 100%;
  display: block;
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(7, 17, 33, 0.2);
  border: 1px solid rgba(178, 213, 255, 0.34);
}

.showcase-copy h2 {
  font-size: clamp(50px, 6.4vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
}

.showcase-copy .marketing-kicker {
  align-self: start;
}

.feature-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(226,231,255,0.92);
  box-shadow: 0 20px 50px rgba(15,15,19,0.08);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.feature-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(15,15,19,0.12);
}

.feature-row.reverse {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-frame {
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(43,59,240,0.08);
  background: linear-gradient(180deg, #f9faff 0%, #eef1ff 100%);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.8rem;
}

.feature-pill {
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid rgba(43,59,240,0.08);
}

.feature-frame.stacked {
  display: grid;
  align-content: stretch;
}

.stack-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.94);
  border-radius: 18px;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid rgba(43,59,240,0.08);
}

.final-cta {
  padding-top: 3rem;
  padding-bottom: 7rem;
}

.final-cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(226,231,255,0.92);
  box-shadow: 0 28px 70px rgba(15,15,19,0.1);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.96);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(24px, -18px, 0) scale(1.12); opacity: 0.8; }
}

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

@keyframes heroDevice3DFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateX(4deg) rotateY(-8deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotateX(8deg) rotateY(-14deg);
  }
}

@keyframes heroRing3DSpin {
  0%, 100% {
    transform: translate3d(0, 0, 90px) rotateX(68deg) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: translate3d(-16px, 18px, 140px) rotateX(74deg) rotateY(24deg) rotateZ(180deg);
  }
}

@keyframes heroCube3DSpin {
  0%, 100% {
    transform: translate3d(0, 0, 120px) rotateX(-18deg) rotateY(28deg) rotateZ(-12deg);
  }
  50% {
    transform: translate3d(12px, -18px, 170px) rotateX(34deg) rotateY(210deg) rotateZ(18deg);
  }
}

@keyframes heroStack3DFloat {
  0%, 100% {
    transform: translate3d(0, 0, 80px) rotateX(18deg) rotateY(18deg);
  }
  50% {
    transform: translate3d(14px, -10px, 130px) rotateX(24deg) rotateY(34deg);
  }
}

@keyframes heroDeviceGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate3d(20px, 18px, 0) scale(1.18); opacity: 1; }
}

@keyframes flowCardDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -4px, 0); }
}

@keyframes cardLightSweep {
  0%, 55% { transform: translateX(-120%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes tileBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(43,59,240,0); }
  50% { transform: scale(1.03); box-shadow: 0 18px 40px rgba(43,59,240,0.08); }
}

@keyframes lineSlideGlow {
  0%, 100% { transform: translateX(0); box-shadow: 0 0 0 rgba(43,59,240,0); }
  50% { transform: translateX(8px); box-shadow: 0 16px 32px rgba(43,59,240,0.08); }
}

@keyframes chartBarWave {
  0%, 100% { transform: scaleY(0.92); opacity: 0.84; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

@keyframes zoomBandGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate3d(55px, 26px, 0) scale(1.2); opacity: 1; }
}

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

@keyframes showcaseImageFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.2deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(0.5deg); }
}

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

@keyframes stackCardFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -6px, 0) scale(1.02); }
}

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

@keyframes introAuroraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22px, -18px, 0) scale(1.08); }
}

@keyframes introPanelGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(22px, 14px, 0) scale(1.12); opacity: 1; }
}

@keyframes introWordFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.24; }
  50% { transform: translate3d(0, -12px, 0); opacity: 0.5; }
}

.auth-shell {
  width: min(100%, 1760px);
  height: 100dvh;
  margin: 0 auto;
  padding: 0.65rem 2rem 1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(480px, 0.92fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  padding-top: 0.35rem;
}

.auth-panel,
.auth-aside {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15,15,19,0.1);
  padding: 1.75rem;
}

.auth-panel-premium {
  padding: 1.25rem 1.75rem;
  border-radius: 34px;
  animation: cardRise 0.8s ease both;
  overflow: hidden;
}

.auth-panel-premium .auth-form {
  min-height: 0;
}

.auth-panel-premium .form-group {
  margin-bottom: 0.8rem;
}

.auth-panel-premium input {
  min-height: 52px;
  border-radius: 18px;
  font-size: 16px;
  padding: 0 1.2rem;
}

.auth-panel-premium .btn-lg {
  min-height: 52px;
  border-radius: 18px;
  font-size: 16px;
  justify-content: center;
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: #edf0ff;
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 0.8rem;
}

.auth-tab {
  border: none;
  background: transparent;
  color: #5e6486;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 8px 16px rgba(43,59,240,0.08);
}

.auth-form h1,
.auth-aside h2 {
  font-size: clamp(34px, 3.1vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 0.7rem;
}

.auth-form p,
.auth-aside p {
  color: #5c617d;
  margin-bottom: 0.75rem;
  font-size: 15px;
  line-height: 1.6;
}

.auth-feature-list {
  display: grid;
  gap: 0.9rem;
}

.auth-layout-premium {
  align-items: stretch;
}

.auth-aside-premium {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 38px;
  background:
    radial-gradient(circle at 70% 18%, rgba(43,59,240,0.18), transparent 26%),
    radial-gradient(circle at 28% 72%, rgba(122,139,255,0.18), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 48%, #edf0ff 100%);
}

.auth-aside-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-thinking-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
}

.auth-bg-glow-a {
  width: 300px;
  height: 300px;
  left: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(43,59,240,0.22), rgba(43,59,240,0));
  animation: authGlowFloatA 6s ease-in-out infinite;
}

.auth-bg-glow-b {
  width: 360px;
  height: 360px;
  right: 6%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(167,176,255,0.28), rgba(167,176,255,0));
  animation: authGlowFloatB 7s ease-in-out infinite;
}

.auth-floating-tag {
  position: absolute;
  z-index: 1;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(43,59,240,0.08);
  color: #111318;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(15,15,19,0.08);
}

.auth-floating-tag-a {
  left: 8%;
  top: 28%;
  animation: authTagFloatA 4.8s ease-in-out infinite;
}

.auth-floating-tag-b {
  right: 6%;
  bottom: 14%;
  animation: authTagFloatB 5.4s ease-in-out infinite;
}

.auth-thought-bubble {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 460px;
  width: calc(100% - 4rem);
  padding: 1rem 1.25rem;
  border-radius: 26px 26px 8px 26px;
  background: #ffffff;
  border: 1px solid rgba(43,59,240,0.08);
  box-shadow: 0 24px 54px rgba(15,15,19,0.1);
  color: #111318;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  animation: authBubbleFloat 3.4s ease-in-out infinite;
  z-index: 2;
  text-align: center;
}

.auth-thought-bubble.is-swapping {
  animation: authBubbleFloat 3.4s ease-in-out infinite, authBubbleSwap 0.45s ease;
}

.auth-mini-bubble {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(43,59,240,0.08);
  box-shadow: 0 12px 24px rgba(15,15,19,0.08);
}

.auth-mini-bubble.bubble-a {
  width: 18px;
  height: 18px;
  left: 50%;
  top: 140px;
  margin-left: -12px;
  animation: authBubbleBlink 2.4s ease-in-out infinite;
}

.auth-mini-bubble.bubble-b {
  width: 12px;
  height: 12px;
  left: 50%;
  top: 166px;
  margin-left: 14px;
  animation: authBubbleBlink 2.4s ease-in-out 0.5s infinite;
}

.auth-character-figure {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  width: min(310px, calc(100% - 2rem));
  height: auto;
  max-height: 310px;
  object-fit: contain;
  opacity: 0;
  transform: translateX(-50%) translateY(18px) scale(0.94);
  transition: opacity 0.45s ease, transform 0.45s ease;
  animation: authCharacterFloat 3.8s ease-in-out infinite;
}

.auth-character-figure.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(245, 245, 250, 0.2);
  backdrop-filter: blur(18px);
}

.auth-loading-overlay.is-visible {
  display: flex;
}

.auth-loading-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.auth-loading-logo {
  width: min(180px, 52vw);
  height: auto;
  display: block;
  transform-style: preserve-3d;
  animation: authLogoSpin3d 1.6s ease-in-out infinite;
  filter: drop-shadow(0 22px 35px rgba(43,59,240,0.18));
}

.auth-loading-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.auth-loading-tip {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: #5f6482;
}

@keyframes authLogoSpin3d {
  0% {
    transform: perspective(900px) rotateY(-24deg) rotateX(10deg) translateY(0) scale(0.96);
  }

  50% {
    transform: perspective(900px) rotateY(24deg) rotateX(-10deg) translateY(-8px) scale(1.04);
  }

  100% {
    transform: perspective(900px) rotateY(-24deg) rotateX(10deg) translateY(0) scale(0.96);
  }
}

.auth-google-divider {
  position: relative;
  margin: 0.75rem 0 0.7rem;
  text-align: center;
}

.auth-google-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e8ebf8;
}

.auth-google-divider span {
  position: relative;
  z-index: 1;
  padding: 0 0.8rem;
  background: rgba(255,255,255,0.96);
  color: #8c91b5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-google-btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dfe3f7;
  border-radius: 18px;
  background: #ffffff;
  color: #111318;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 12px 28px rgba(15,15,19,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-google-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(43,59,240,0.24);
  box-shadow: 0 18px 34px rgba(15,15,19,0.09);
}

.auth-google-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-google-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4285f4, #34a853 34%, #fbbc05 68%, #ea4335);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.register-onboarding-form {
  min-height: 520px;
}

.register-onboarding-form.is-switching-step {
  animation: registerStepSoftSwap 0.42s ease;
}

.register-step {
  display: none;
  animation: cardRise 0.45s ease both;
}

.register-step.is-active {
  display: block;
}

.register-choice-grid,
.register-plan-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.register-choice-card,
.register-plan-card {
  width: 100%;
  border: 1px solid #e4e7f5;
  border-radius: 24px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.register-choice-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
}

.register-choice-card strong,
.register-plan-card strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.register-choice-card small {
  font-size: 13px;
  line-height: 1.5;
  color: #656c8e;
}

.register-choice-card:hover,
.register-plan-card:hover,
.register-choice-card.is-selected,
.register-plan-card.is-selected {
  transform: translateY(-4px);
  border-color: rgba(43,59,240,0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
  box-shadow: 0 20px 44px rgba(43,59,240,0.1);
}

.register-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.register-plan-card {
  display: grid;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: 26px;
  animation: registerPlanFloat 4.5s ease-in-out infinite;
}

.register-plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #4285f4, #34a853 35%, #fbbc05 65%, #ea4335);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.register-plan-card:hover::before,
.register-plan-card.is-selected::before {
  opacity: 1;
}

.register-plan-card:nth-child(2) {
  animation-delay: 0.25s;
}

.register-plan-card:nth-child(3) {
  animation-delay: 0.5s;
}

.register-plan-card.is-highlight {
  border-color: rgba(43,59,240,0.35);
}

.register-plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.register-plan-topline span,
.register-plan-topline em {
  display: inline-flex;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.register-plan-topline span {
  background: rgba(43,59,240,0.1);
  color: var(--blue);
}

.register-plan-topline em {
  background: #f0f1f7;
  color: #61688b;
}

.register-plan-card.is-selected .register-plan-topline em {
  background: rgba(39,174,96,0.12);
  color: #1e9b57;
}

.register-plan-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #0f7a33;
}

.register-plan-price small,
.register-plan-renewal,
.register-plan-offer {
  font-size: 13px;
  line-height: 1.55;
  color: #656c8e;
  font-weight: 600;
}

.register-plan-price small {
  letter-spacing: 0;
  color: #0f7a33;
}

.register-plan-price-wrap {
  display: grid;
  gap: 0.2rem;
}

.register-plan-old-price {
  font-size: 18px;
  font-weight: 700;
  color: #8c8f98;
  text-decoration: line-through;
}

.register-plan-features {
  display: grid;
  gap: 0.45rem;
}

.register-plan-features div {
  position: relative;
  padding-left: 0.95rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark);
  font-weight: 600;
}

.register-plan-features div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.register-terms-box {
  height: 220px;
  overflow-y: auto;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid #e4e7f5;
  background: #f8f9ff;
  color: #32364d;
  margin-bottom: 1rem;
}

.register-terms-box h2 {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 1rem;
}

.register-terms-box p {
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.75;
  color: #4f5574;
}

.register-terms-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.register-terms-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--blue);
}

.questionnaire-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(43,59,240,0.08), transparent 30%),
    #ffffff;
}

.questionnaire-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 0.65rem 2rem 2rem;
}

.questionnaire-layout {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}

.questionnaire-card-shell {
  width: min(980px, 100%);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.questionnaire-card-shell.is-switching-step {
  animation: registerStepSoftSwap 0.42s ease;
}

.questionnaire-step {
  display: none;
  text-align: center;
}

.questionnaire-step.is-active {
  display: block;
}

.questionnaire-step h2 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 2rem;
}

.questionnaire-step .btn-lg {
  min-height: 60px;
  border-radius: 18px;
  padding: 0 2rem;
  margin: 0 auto;
}

.questionnaire-step .form-group {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

#questionnaire-source-list {
  max-width: 620px;
  margin: 0 auto 1.6rem;
}

#questionnaire-plan-grid {
  margin-bottom: 1.6rem;
}

@keyframes registerPlanFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes registerStepSoftSwap {
  0% {
    transform: translateX(10px);
    opacity: 0.75;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes authBubbleFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes authBubbleBlink {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes authBubbleSwap {
  from {
    opacity: 0;
    scale: 0.96;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes authHeadThink {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(6px); }
}

@keyframes authBodyBreath {
  0%, 100% { transform: translateX(-50%) translateY(0) scaleY(1); }
  50% { transform: translateX(-50%) translateY(6px) scaleY(0.98); }
}

@keyframes authCharacterFloat {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 14px; }
}

@keyframes authGlowFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, 24px, 0) scale(1.08); }
}

@keyframes authGlowFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, -18px, 0) scale(1.1); }
}

@keyframes authTagFloatA {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes authTagFloatB {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

.auth-feature-item-premium {
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.auth-feature-item-premium:hover {
  transform: translateY(-6px);
  border-color: rgba(43,59,240,0.16);
  box-shadow: 0 22px 44px rgba(15,15,19,0.08);
}

.auth-3d-scene {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.auth-3d-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -30px;
  top: 70px;
  border-radius: 50%;
  border: 24px solid rgba(43,59,240,0.12);
  border-top-color: rgba(43,59,240,0.88);
  border-right-color: rgba(125,139,255,0.6);
  box-shadow: 0 24px 50px rgba(43,59,240,0.16), inset 0 0 24px rgba(255,255,255,0.65);
  animation: authRingSpin 16s linear infinite;
}

.auth-3d-cube {
  position: absolute;
  width: 120px;
  height: 120px;
  right: 120px;
  bottom: 180px;
  transform-style: preserve-3d;
  animation: authCubeSpin 14s linear infinite;
}

.auth-3d-cube span {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, rgba(43,59,240,0.95), rgba(123,136,255,0.72));
  box-shadow: 0 20px 40px rgba(43,59,240,0.2);
}

.auth-3d-cube span:nth-child(1) { transform: translateZ(60px); }
.auth-3d-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(60px); }
.auth-3d-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(60px); }
.auth-3d-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(60px); }
.auth-3d-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(60px); }
.auth-3d-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(60px); }

.auth-3d-sheet {
  position: absolute;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 24px 48px rgba(15,15,19,0.12);
}

.auth-3d-sheet-a {
  width: 260px;
  height: 330px;
  right: 48px;
  top: 250px;
  background: linear-gradient(160deg, #ffffff 0%, #f1f3ff 55%, #dfe4ff 100%);
  transform: translate3d(0, 0, 100px) rotateX(18deg) rotateY(-18deg) rotateZ(10deg);
}

.auth-3d-sheet-b {
  width: 220px;
  height: 280px;
  right: 250px;
  bottom: 40px;
  background: linear-gradient(160deg, #2b3bf0 0%, #5d6aff 65%, #a7b0ff 100%);
  transform: translate3d(0, 0, 70px) rotateX(20deg) rotateY(24deg) rotateZ(-12deg);
}

@keyframes authRingSpin {
  from {
    transform: translate3d(0, 0, 90px) rotateX(72deg) rotateZ(0deg);
  }
  to {
    transform: translate3d(0, 0, 90px) rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes authCubeSpin {
  from {
    transform: translate3d(0, 0, 130px) rotateX(-18deg) rotateY(0deg) rotateZ(-10deg);
  }
  to {
    transform: translate3d(0, 0, 130px) rotateX(-18deg) rotateY(360deg) rotateZ(-10deg);
  }
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
}

.account-page {
  max-width: 1240px;
  display: grid;
  gap: 1.75rem;
}

.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.account-shortcuts.is-hidden {
  display: none;
}

.account-shortcut-btn {
  width: 100%;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.account-shortcut-btn:hover,
.account-shortcut-btn.is-active {
  transform: none;
  border-color: #2b3bf0;
  background: #fafbff;
  box-shadow: none;
}

.account-shortcut-btn:hover .account-shortcut-arrow,
.account-shortcut-btn.is-active .account-shortcut-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.account-shortcut-btn.is-active {
  background: #f4f6ff;
}

.account-shortcut-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f3fb;
  color: #2b3bf0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.account-shortcut-danger .account-shortcut-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.account-shortcut-danger:hover {
  border-color: rgba(239,68,68,0.32);
  box-shadow: 0 28px 70px rgba(239,68,68,0.14);
}

.delete-account-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 1.4rem;
  color: #7f1d1d;
}
.delete-account-warning strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: #991b1b;
}
.delete-account-warning p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b91c1c;
}
.delete-account-warning p:last-child { margin-bottom: 0; }

.subscription-engagement-notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #78350f;
  font-size: 13.5px;
  line-height: 1.55;
}
.subscription-engagement-notice strong {
  color: #92400e;
}

/* ─── ANIMATION DE SUPPRESSION DE COMPTE ─────────────── */
.delete-anim {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 4px;
  text-align: center;
  position: relative;
  min-height: 340px;
}
.delete-anim-progress {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
}
.delete-anim-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.delete-anim-ring-bg {
  fill: none;
  stroke: #fee2e2;
  stroke-width: 6;
}
.delete-anim-ring-fill {
  fill: none;
  stroke: url(#delete-anim-grad);
  stroke: #dc2626;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 213.628;
  stroke-dashoffset: 213.628;
  transition: stroke-dashoffset .65s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 6px rgba(239,68,68,.35));
}
.delete-anim-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: opacity .25s ease;
  animation: deleteAnimPulse 1.4s ease-in-out infinite;
}
@keyframes deleteAnimPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.delete-anim-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
  transition: opacity .25s ease;
}
.delete-anim-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity .25s ease;
}
.delete-anim-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13.5px;
  color: #94a3b8;
  text-align: left;
  border: 1px solid transparent;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.delete-anim-steps li.is-active {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  transform: translateX(4px);
}
.delete-anim-steps li.is-done {
  background: #f0fdf4;
  color: #15803d;
}
.delete-anim-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  position: relative;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.delete-anim-steps li.is-active .delete-anim-check {
  background: #fff;
  border: 2px solid #dc2626;
  animation: deleteAnimSpin .9s linear infinite;
}
.delete-anim-steps li.is-active .delete-anim-check::before {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #dc2626;
}
@keyframes deleteAnimSpin {
  to { transform: rotate(360deg); }
}
.delete-anim-steps li.is-done .delete-anim-check {
  background: #16a34a;
  animation: deleteAnimPop .35s ease;
}
.delete-anim-steps li.is-done .delete-anim-check::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
@keyframes deleteAnimPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.delete-anim-final {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.delete-anim-final.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delete-anim-final-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 38px -12px rgba(16,185,129,.55);
  margin-bottom: 18px;
  animation: deleteAnimFinalPop .55s cubic-bezier(.34,1.56,.64,1);
}
.delete-anim-final-circle svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: deleteAnimDraw .6s .25s ease forwards;
}
@keyframes deleteAnimFinalPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes deleteAnimDraw {
  to { stroke-dashoffset: 0; }
}
.delete-anim-final-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.delete-anim-final-sub {
  font-size: 14px;
  color: #64748b;
  max-width: 280px;
  line-height: 1.5;
}

.account-shortcut-copy {
  display: grid;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.account-shortcut-copy strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.account-shortcut-copy small {
  font-size: 12px;
  line-height: 1.4;
  color: #6b7088;
  font-weight: 400;
}

.account-shortcut-arrow {
  font-size: 14px;
  font-weight: 500;
  color: #9aa0b8;
  opacity: 0.7;
  transition: transform 0.18s ease, opacity 0.18s ease;
  flex-shrink: 0;
}

.account-shortcut-btn.account-shortcut-highlight {
  border-color: #ffe1c4;
  background: linear-gradient(135deg, #fffaf3 0%, #ffffff 60%);
}

.account-shortcut-btn.account-shortcut-highlight:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fff7ec 0%, #fffefb 100%);
}

.account-shortcut-btn.account-shortcut-highlight .account-shortcut-icon {
  background: #fef3e2;
  color: #d97706;
}

.account-shortcut-btn.account-shortcut-business .account-shortcut-icon {
  background: #eef0fb;
  color: #4338ca;
}

.account-shortcut-btn.account-shortcut-admin {
  border-color: #fde2e2;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 60%);
}

.account-shortcut-btn.account-shortcut-admin:hover {
  border-color: #dc2626;
  background: linear-gradient(135deg, #ffefef 0%, #fffefe 100%);
}

.account-shortcut-btn.account-shortcut-admin .account-shortcut-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.account-shortcut-btn.account-shortcut-danger {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 60%);
}

.account-shortcut-btn.account-shortcut-danger:hover {
  border-color: #dc2626;
  background: linear-gradient(135deg, #ffefef 0%, #fffefe 100%);
}

.account-shortcut-btn.account-shortcut-danger .account-shortcut-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.account-shortcut-btn.account-shortcut-danger strong {
  color: #b91c1c;
}

.account-shortcut-btn.account-shortcut-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.account-shortcut-btn.account-shortcut-disabled .shortcut-badge {
  background: #94a3b8;
}

.shortcut-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: #2b3bf0;
  color: #ffffff;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.account-section-panel {
  display: none;
}

.account-section-panel.is-active {
  display: block;
}

.account-back-btn {
  border: none;
  background: #eff2ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.account-back-btn:hover {
  background: #e3e8ff;
  transform: translateX(-4px);
}

.account-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: #edf0ff;
  width: fit-content;
}

.account-tab {
  border: none;
  background: transparent;
  color: #5e6486;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.account-tab.is-active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 10px 20px rgba(43,59,240,0.08);
}

.account-panel {
  display: none;
  gap: 1.5rem;
}

.account-panel.is-active {
  display: grid;
}

.account-card {
  padding: 2rem;
}

.api-key-help {
  color: #5f6482;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.api-key-field {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 24px;
  background: #f6f7ff;
  border: 1px solid #e0e5ff;
}

.api-key-list {
  display: grid;
  gap: 0;
  border: 1px solid rgba(43,59,240,0.12);
  border-radius: 18px;
  overflow: hidden;
}

.api-key-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
  margin-bottom: 0.6rem;
}

.api-key-delete-selected-btn {
  display: none;
  border: none;
  background: transparent;
  color: #d93025;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.api-key-delete-selected-btn.is-visible {
  display: inline-flex;
}

.api-key-item {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(280px, 1.7fr) minmax(120px, 0.9fr) minmax(90px, 0.7fr) 34px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #ffffff;
  border-top: 1px solid #eceef8;
}

.api-key-table-head {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(280px, 1.7fr) minmax(120px, 0.9fr) minmax(90px, 0.7fr) 34px;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  background: #f7f8ff;
  color: #6f7594;
  font-size: 13px;
  font-weight: 800;
}

.api-key-empty {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f6f7ff;
  border: 1px dashed #ccd3ff;
  color: #6f7594;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.api-key-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
}

.api-key-select-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.api-key-select {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

.api-key-check-head {
  width: 18px;
}

.api-key-masked-value {
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.api-key-status {
  justify-self: start;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #eef0f7;
  color: #66708f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.api-key-status.is-active {
  background: rgba(39,174,96,0.12);
  color: #1e9b57;
}

.api-key-field input {
  border: none;
  background: transparent;
  padding: 0.7rem 0.9rem;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--dark);
}

.api-key-field input:focus {
  border: none;
  box-shadow: none;
}

.api-key-meta {
  margin-top: 0.9rem;
  font-size: 13px;
  line-height: 1.6;
  color: #757a96;
  word-break: break-word;
}

.api-key-date {
  font-size: 12px;
  color: #757a96;
  white-space: nowrap;
}

.api-key-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15,15,19,0.55);
  backdrop-filter: blur(10px);
}

.api-key-modal-overlay.is-visible {
  display: flex;
}

.api-key-modal-card {
  width: min(680px, 100%);
  border-radius: 32px;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(15,15,19,0.22);
}

.api-key-step {
  display: none;
}

.api-key-step.is-visible {
  display: block;
}

.api-key-modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.api-key-loader {
  width: 58px;
  height: 58px;
  margin: 1rem auto 0;
  border-radius: 50%;
  border: 6px solid #eef0ff;
  border-top-color: var(--blue);
  animation: apiKeyLoaderSpin 0.9s linear infinite;
}

@keyframes apiKeyLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.api-key-modal-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem;
  border-radius: 24px;
  background: #f6f7ff;
  border: 1px solid #e0e5ff;
}

.api-key-modal-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.7rem 0.9rem;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow-x: auto;
}

.api-key-modal-row input:focus {
  border: none;
  box-shadow: none;
}

.account-language-wrap {
  margin-top: 0.5rem;
}

.account-language-wrap.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.account-language-title {
  margin: 0 0 1.5rem;
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
}

.account-language-options {
  display: grid;
  gap: 1rem;
}

.account-language-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #111318;
}

.account-language-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.account-language-loading {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.account-language-loading p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #6f7594;
}

.subscription-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 138px;
  padding: 1.2rem 1.4rem;
  border-radius: 28px;
  overflow: hidden;
  perspective: 1200px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 24%),
    radial-gradient(circle at bottom right, rgba(88,80,236,0.32), transparent 30%),
    linear-gradient(120deg, #eef2ff 0%, #ffffff 22%, #ede8ff 48%, #e8f8ff 72%, #f6ecff 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(43,59,240,0.12);
  box-shadow: 0 18px 50px rgba(43,59,240,0.08);
  animation: subscriptionGradientFlow 8s ease-in-out infinite;
}

.subscription-hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.42) 50%, transparent 70%);
  transform: translateX(-60%) rotate(10deg);
  animation: subscriptionHeroGlow 7s linear infinite;
  pointer-events: none;
}

.subscription-offer-chip,
.subscription-offer-copy,
.subscription-orbit-scene {
  position: relative;
  z-index: 1;
}

.subscription-offer-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(43,59,240,0.12);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscription-offer-copy {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.subscription-offer-copy strong {
  font-size: 50px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: #0f1117;
}

.subscription-offer-copy span {
  font-size: 15px;
  font-weight: 700;
  color: #585f7a;
}

.subscription-orbit-scene {
  margin-left: auto;
  width: 180px;
  height: 90px;
  transform-style: preserve-3d;
}

.subscription-orbit-ball,
.subscription-orbit-ring,
.subscription-orbit-cube {
  position: absolute;
  display: block;
}

.subscription-orbit-ball {
  border-radius: 50%;
  box-shadow: 0 18px 35px rgba(43,59,240,0.22);
}

.subscription-orbit-ball.ball-a {
  width: 40px;
  height: 40px;
  top: 24px;
  left: 16px;
  background: linear-gradient(135deg, #2b3bf0, #8c7dff);
  animation: subscriptionBallFloatA 4s ease-in-out infinite;
}

.subscription-orbit-ball.ball-b {
  width: 22px;
  height: 22px;
  top: 10px;
  right: 26px;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  animation: subscriptionBallFloatB 3.4s ease-in-out infinite;
}

.subscription-orbit-ring {
  width: 84px;
  height: 84px;
  top: 3px;
  left: 44px;
  border: 8px solid rgba(43,59,240,0.16);
  border-top-color: rgba(43,59,240,0.7);
  border-right-color: rgba(124,58,237,0.45);
  border-radius: 50%;
  transform: rotateX(58deg) rotateZ(20deg);
  animation: subscriptionRingSpin 4.5s linear infinite;
}

.subscription-orbit-cube {
  width: 38px;
  height: 38px;
  right: 12px;
  bottom: 6px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #ced6ff 40%, #5f5bf3 100%);
  box-shadow: 0 20px 45px rgba(43,59,240,0.24);
  transform: rotateX(28deg) rotateY(36deg) rotateZ(12deg);
  animation: subscriptionCubeFloat 3.8s ease-in-out infinite;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), #6d7cff);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.account-identity h2 {
  font-size: 28px;
}

.account-identity p {
  color: var(--gray);
}

.account-detail-list,
.account-actions {
  display: grid;
  gap: 0.9rem;
}

.account-detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.account-detail-list span {
  color: var(--gray);
}

.account-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.account-profile-head h2 {
  font-size: 26px;
  margin-bottom: 0.15rem;
}

.account-profile-head p {
  color: var(--gray);
}

.account-save-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

.account-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
  border: 1px solid rgba(43,59,240,0.1);
  margin-bottom: 1.4rem;
}

.account-plan-label {
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.account-plan-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.account-plan-desc {
  color: var(--gray);
  font-size: 14px;
}

.account-credit-inline {
  margin-top: 0.6rem;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.account-plan-chip,
.plan-badge,
.plan-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.account-plan-chip,
.plan-badge {
  background: rgba(43,59,240,0.1);
  color: var(--blue);
}

.plan-comparison {
  display: grid;
  gap: 1.25rem;
}

.plan-table {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
}

.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.plan-table-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.5rem;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 46px rgba(15,15,19,0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: subscriptionLift 0.65s ease both;
}

.plan-table-card.is-inferior {
  opacity: 0.65;
}

.billing-period-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  background: #eef1ff;
  border-radius: 999px;
  margin: 0 auto 1.4rem;
  width: fit-content;
}

.billing-period-btn {
  border: none;
  background: transparent;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #5f6684;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.billing-period-btn.is-active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(43,59,240,0.18);
}

.billing-period-save {
  font-size: 11px;
  font-weight: 800;
  color: #0f7a33;
  background: rgba(15,122,51,0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.billing-months-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.billing-months-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7594;
}

.billing-months-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.billing-month-chip {
  border: 1px solid rgba(43,59,240,0.18);
  background: #ffffff;
  color: #5f6684;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.billing-month-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.billing-month-chip.is-active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(43,59,240,0.28);
}

.plan-confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,19,0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.plan-confirm-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.plan-confirm-modal-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2.2rem 2.2rem 2rem;
  width: min(460px, 100%);
  box-shadow: 0 30px 80px rgba(15,15,19,0.28);
  position: relative;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.plan-confirm-modal-overlay.is-visible .plan-confirm-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.plan-confirm-back {
  border: none;
  background: #eef1ff;
  color: var(--blue);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.plan-confirm-back:hover {
  background: #e0e6ff;
  transform: translateX(-2px);
}

.plan-confirm-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.plan-confirm-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
  margin-bottom: 1.4rem;
  line-height: 1.15;
}

.plan-confirm-details {
  background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
  border: 1px solid rgba(43,59,240,0.1);
  border-radius: 20px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}

.plan-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #5f6684;
  padding: 0.45rem 0;
}

.plan-confirm-row strong {
  color: #0f1117;
  font-weight: 700;
  font-size: 14px;
}

.plan-confirm-divider {
  height: 1px;
  background: rgba(15,15,19,0.08);
  margin: 0.4rem 0;
}

.plan-confirm-total {
  padding-top: 0.6rem;
}

.plan-confirm-total span {
  font-size: 15px;
  font-weight: 700;
  color: #0f1117;
}

.plan-confirm-total strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.plan-confirm-cta {
  width: 100%;
  border-radius: 16px;
}

.subscription-current-card {
  background: linear-gradient(180deg, #ffffff, #f4f6ff);
  border: 1px solid rgba(43,59,240,0.12);
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.subscription-current-card.is-paid {
  background: linear-gradient(180deg, #ffffff, #eef1ff);
  border-color: rgba(43,59,240,0.2);
}

.subscription-current-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.subscription-current-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.subscription-current-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
  line-height: 1;
}

.subscription-current-desc {
  font-size: 14px;
  color: #6f7594;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.subscription-current-price {
  text-align: right;
  white-space: nowrap;
}

.subscription-current-price strong {
  font-size: 30px;
  font-weight: 800;
  color: #0f7a33;
  letter-spacing: -0.04em;
}

.subscription-current-price span {
  font-size: 14px;
  color: #0f7a33;
  font-weight: 700;
  margin-left: 0.2rem;
}

.subscription-current-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15,15,19,0.08);
}

.subscription-current-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.subscription-current-meta span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a90aa;
}

.subscription-current-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f1117;
}

.subscription-current-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: #fee4e2;
  color: #b42318;
  border: 1px solid rgba(180,35,24,0.2);
}

.btn-danger:hover {
  background: #fecdca;
}

.subscription-plans-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f7594;
  margin-bottom: 0.9rem;
}

.subscription-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.subscription-plan-mini {
  border: 1px solid #e4e7f5;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: #ffffff;
  display: grid;
  gap: 0.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.subscription-plan-mini.is-active {
  border-color: rgba(43,59,240,0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
}

.subscription-plan-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.subscription-plan-mini-head strong {
  font-size: 17px;
  font-weight: 800;
  color: #0f1117;
}

.subscription-plan-mini-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(43,59,240,0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.subscription-plan-mini-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.subscription-plan-mini-price strong {
  font-size: 24px;
  font-weight: 800;
  color: #0f7a33;
  letter-spacing: -0.04em;
}

.subscription-plan-mini-price span {
  font-size: 12px;
  color: #6f7594;
  font-weight: 600;
}

.subscription-plan-mini-features {
  display: grid;
  gap: 0.35rem;
}

.subscription-plan-mini-features div {
  font-size: 12px;
  color: #5f6684;
  font-weight: 600;
  position: relative;
  padding-left: 0.9rem;
}

.subscription-plan-mini-features div::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.plan-table-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285f4, #34a853 35%, #fbbc05 70%, #ea4335);
}

.plan-table-card:nth-child(2) {
  animation-delay: 0.05s;
}

.plan-table-card:nth-child(3) {
  animation-delay: 0.12s;
}

.plan-table-card:nth-child(4) {
  animation-delay: 0.19s;
}

.plan-table-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 74px rgba(15,15,19,0.12);
}

.plan-table-card.is-highlight {
  position: relative;
  z-index: 1;
  border-color: rgba(26,115,232,0.28);
  box-shadow: 0 24px 50px rgba(15,15,19,0.08);
}

.plan-table-card.is-current {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
}

.plan-table-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-current {
  background: rgba(15,15,19,0.08);
  color: var(--dark);
}

.plan-table-card h3 {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.plan-price-block {
  display: grid;
  gap: 0.35rem;
  line-height: 1;
}

.plan-price-old {
  font-size: 18px;
  font-weight: 700;
  color: #8c8f98;
  text-decoration: line-through;
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price-main strong {
  font-size: 56px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: #0f7a33;
}

.plan-price-main span {
  color: #0f7a33;
  font-size: 18px;
  font-weight: 700;
}

.plan-price-offer,
.plan-price-renewal {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.plan-price-offer {
  color: #5f6368;
}

.plan-price-renewal {
  color: var(--blue);
}

.plan-credit-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #eff2ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.plan-feature-mini {
  display: grid;
  gap: 0.85rem;
}

.plan-feature-mini div {
  position: relative;
  padding-left: 1.1rem;
  color: var(--dark);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.plan-card-action {
  width: 100%;
  margin-top: auto;
  min-height: 56px;
  border-radius: 18px;
  font-size: 16px;
}

.plan-feature-mini div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.plan-table-body {
  align-items: stretch;
}

.plan-table-section,
.plan-table-section-spacer,
.plan-table-row-label,
.plan-table-cell {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--border);
}

.plan-table-section {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  background: #fafbff;
}

.plan-table-section-spacer {
  background: #fafbff;
}

.plan-table-row-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: #ffffff;
}

.plan-table-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #4f5574;
  background: #ffffff;
}

.plan-table-cell.is-current {
  background: #f7f9ff;
  color: var(--dark);
  font-weight: 700;
}

@keyframes subscriptionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes subscriptionHeroGlow {
  from {
    transform: translateX(-60%) rotate(10deg);
  }
  to {
    transform: translateX(60%) rotate(10deg);
  }
}

@keyframes subscriptionGradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes subscriptionBallFloatA {
  0%, 100% {
    transform: translate3d(0, 0, 30px) scale(1);
  }
  50% {
    transform: translate3d(14px, -10px, 70px) scale(1.08);
  }
}

@keyframes subscriptionBallFloatB {
  0%, 100% {
    transform: translate3d(0, 0, 60px) scale(1);
  }
  50% {
    transform: translate3d(-12px, 14px, 110px) scale(1.14);
  }
}

@keyframes subscriptionRingSpin {
  from {
    transform: rotateX(58deg) rotateZ(20deg);
  }
  to {
    transform: rotateX(58deg) rotateZ(380deg);
  }
}

@keyframes subscriptionCubeFloat {
  0%, 100% {
    transform: rotateX(28deg) rotateY(36deg) rotateZ(12deg) translateY(0);
  }
  50% {
    transform: rotateX(42deg) rotateY(52deg) rotateZ(18deg) translateY(-12px);
  }
}

.quote-workspace {
  display: block;
}

.quote-editor {
  min-width: 0;
}

.quote-editor-full {
  max-width: 100%;
}

.quote-helper {
  margin-bottom: 2rem;
}

.quote-helper p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
}

.quote-compact-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.quote-style-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.85rem 1.1rem;
  border: 1px solid #e4e7f5;
  border-radius: 16px;
  background: #ffffff;
  color: #12141d;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-style-trigger span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(43,59,240,0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.quote-style-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(43,59,240,0.28);
  box-shadow: 0 14px 34px rgba(43,59,240,0.08);
}

.quote-style-modal {
  max-width: 980px;
}

.quote-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-style-card {
  width: 100%;
  border: 1px solid #e4e7f5;
  border-radius: 24px;
  background: #ffffff;
  padding: 0.9rem;
  display: grid;
  gap: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quote-style-card strong {
  font-size: 15px;
  font-weight: 800;
  color: #111318;
}

.quote-style-card:hover,
.quote-style-card.is-selected {
  transform: translateY(-4px);
  border-color: rgba(43,59,240,0.35);
  box-shadow: 0 20px 40px rgba(43,59,240,0.1);
}

.quote-style-preview {
  border-radius: 20px;
  padding: 1rem;
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.quote-style-preview-bar {
  width: 56px;
  height: 12px;
  border-radius: 999px;
}

.quote-style-preview-line {
  width: 80%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
}

.quote-style-preview-line.short {
  width: 58%;
}

.quote-style-preview-pill {
  width: 72px;
  height: 24px;
  border-radius: 999px;
  margin-top: 0.8rem;
}

.quote-style-page-body {
  background:
    radial-gradient(circle at top, rgba(43,59,240,0.08), transparent 32%),
    #f7f7fb;
}

.quote-style-page {
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.quote-style-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quote-style-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.quote-style-section-card {
  padding: 1.5rem;
  border-radius: 34px;
  border: 1px solid #e4e7f5;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 24px 54px rgba(15,15,19,0.07);
  margin-bottom: 1.5rem;
}

.quote-style-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.quote-style-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #0f1117;
}

.quote-style-section-head p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #8a90aa;
}

.quote-style-page-card {
  border: 1px solid #dde2f4;
  border-radius: 34px;
  background: #ffffff;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 22px 44px rgba(15,15,19,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.quote-style-page-card:hover,
.quote-style-page-card.is-selected {
  transform: translateY(-8px) rotateX(4deg);
  border-color: rgba(43,59,240,0.3);
  box-shadow: 0 30px 70px rgba(43,59,240,0.12);
}

.quote-template-thumb {
  position: relative;
  aspect-ratio: 0.72;
  border-radius: 28px;
  padding: 1.4rem;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  overflow: hidden;
}

.quote-style-real-preview-wrap {
  position: relative;
  aspect-ratio: 794 / 1122;
  min-height: 0;
  padding: 0;
  background: linear-gradient(180deg, #f3f5fb, #e7ebf4);
  border-radius: 24px;
  overflow: hidden;
}

.quote-style-real-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 794px;
  height: 1122px;
  min-height: 0;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(0.34);
  box-shadow: 0 14px 34px rgba(15,23,42,0.16);
  border-radius: 6px;
  pointer-events: none;
}

.quote-style-real-preview .quote-sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: start;
}

.quote-style-real-preview .quote-brand {
  min-width: 0;
}

.quote-style-real-preview .quote-brand > div:last-child {
  min-width: 0;
  flex: 1;
}

.quote-style-real-preview .quote-brand h2 {
  font-size: 22px;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.quote-style-real-preview .quote-meta {
  min-width: 0;
}

.quote-style-real-preview .quote-meta div,
.quote-style-real-preview .quote-summary div {
  grid-template-columns: 80px 1fr;
  gap: 0.6rem;
}

.quote-template-thumb-top,
.quote-template-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.quote-template-logo-slot {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #8a90aa;
}

.quote-template-doc-meta {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.quote-template-doc-meta span:first-child {
  width: 56px;
  height: 14px;
  border-radius: 999px;
}

.quote-template-doc-meta span:last-child,
.quote-template-party-lines div,
.quote-template-row {
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
}

.quote-template-doc-meta span:last-child {
  width: 84px;
  height: 10px;
}

.quote-template-title {
  margin-top: 1.2rem;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.quote-template-party-lines {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.quote-template-party-lines div {
  width: 70%;
  height: 10px;
}

.quote-template-party-lines div.short {
  width: 48%;
}

.quote-template-table {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quote-template-row {
  width: 100%;
  height: 14px;
}

.quote-template-row.head {
  height: 22px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.72);
}

.quote-template-total-pill {
  width: 96px;
  height: 32px;
  border-radius: 999px;
}

.quote-template-signature {
  width: 110px;
  height: 40px;
  border-bottom: 2px solid rgba(15,15,19,0.2);
  opacity: 0.8;
}

.quote-style-page-floating-dot {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15,15,19,0.18);
  animation: subscriptionCubeFloat 4s ease-in-out infinite;
}

.quote-template-accent-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  opacity: 0.92;
}

.quote-template-thumb-band .quote-template-accent-band {
  height: 22%;
}

.quote-template-thumb-band .quote-template-footer {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  align-items: end;
}

.quote-template-thumb-band .quote-template-total-pill,
.quote-template-thumb-band .quote-template-signature {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(255,255,255,0.92);
}

.quote-template-thumb-bold {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.quote-template-thumb-bold .quote-template-doc-meta span:last-child,
.quote-template-thumb-bold .quote-template-party-lines div,
.quote-template-thumb-bold .quote-template-row {
  background: rgba(255,255,255,0.2);
}

.quote-template-thumb-bold .quote-template-logo-slot,
.quote-template-thumb-bold .quote-template-total-pill {
  background: rgba(255,255,255,0.94);
}

.quote-template-thumb-bold .quote-template-title {
  color: #ffffff !important;
}

.quote-template-thumb-split::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 26%;
  width: 1px;
  background: rgba(15,15,19,0.1);
}

.quote-template-thumb-split .quote-template-doc-meta {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
}

.quote-template-thumb-editorial .quote-template-title {
  font-size: 44px;
  margin-top: 0.3rem;
}

.quote-template-thumb-editorial .quote-style-page-floating-dot {
  top: auto;
  bottom: 24px;
  width: 74px;
  height: 18px;
  border-radius: 999px;
}

.quote-template-thumb-editorial .quote-template-footer {
  margin-top: auto;
}

.quote-style-page-name {
  margin-top: 1rem;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #0f1117;
}

.quote-style-page-action {
  margin-top: 0.45rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.quote-style-more-btn {
  width: 100%;
  margin-top: 1.4rem;
  border: 1px solid #dde2f4;
  background: #f6f7ff;
  color: #2b3bf0;
  border-radius: 24px;
  padding: 1rem 1.5rem;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quote-style-more-btn:hover {
  background: #eef1ff;
  transform: translateY(-2px);
}

.quote-save-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quote-save-card {
  border: 1px solid #dde2f4;
  border-radius: 28px;
  background: #ffffff;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15,15,19,0.05);
}

.quote-save-thumb {
  border-radius: 24px;
  padding: 1rem;
  aspect-ratio: 1.1;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.quote-save-logo-chip {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(15,15,19,0.15);
}

.quote-save-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255,255,255,0.85);
}

.quote-save-logo-chip span {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.quote-save-lines {
  display: grid;
  gap: 0.5rem;
}

.quote-save-lines span {
  display: block;
  width: 78%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
}

.quote-save-lines span:last-child {
  width: 56%;
}

.quote-save-sign {
  width: 92px;
  height: 36px;
  border-bottom: 2px solid #2b3bf0;
}

.quote-save-sign img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote-save-card-name {
  margin-top: 0.9rem;
  font-size: 18px;
  font-weight: 800;
  color: #0f1117;
  letter-spacing: -0.06em;
}

.quote-save-card-meta,
.quote-save-empty {
  margin-top: 0.35rem;
  font-size: 13px;
  font-weight: 700;
  color: #8a90aa;
}

.quote-save-empty {
  margin-top: 0;
  padding: 1.8rem;
  border-radius: 24px;
  background: #f6f7ff;
  border: 1px dashed #cdd5ff;
}

.quote-studio-body {
  background: #f4f5f9;
}

.quote-studio-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(90deg, #0ea5e9, #3b5bdb, #7c3aed);
  box-shadow: 0 16px 34px rgba(43,59,240,0.22);
}

.quote-studio-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.quote-studio-brand img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.quote-studio-topmeta {
  display: grid;
  gap: 0.2rem;
  margin-right: auto;
  color: #ffffff;
}

.quote-studio-toplabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.quote-studio-topmeta strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.quote-studio-topactions {
  display: flex;
  gap: 0.8rem;
}

.quote-studio-top-btn {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-radius: 18px;
  padding: 0.85rem 1.3rem;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.quote-studio-save-top-btn {
  background: #ffffff;
  color: #111318;
}

.quote-studio-use-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(5,150,105,0.35);
  animation: quote-studio-use-pulse 2.4s ease-in-out infinite;
}

.quote-studio-use-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(5,150,105,0.45);
}

@keyframes quote-studio-use-pulse {
  0%, 100% { box-shadow: 0 14px 28px rgba(5,150,105,0.35); }
  50% { box-shadow: 0 14px 28px rgba(5,150,105,0.55), 0 0 0 6px rgba(16,185,129,0.18); }
}

.quote-studio-quit-btn {
  background: rgba(15,23,42,0.35);
}

.quote-studio-history-btn {
  min-width: 52px;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  font-size: 20px;
  line-height: 1;
}

.quote-studio-top-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.quote-studio-page {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 1.5rem;
}

.quote-studio-sidebar {
  min-width: 0;
}

.quote-studio-panel {
  position: sticky;
  top: 140px;
  padding: 1.5rem;
  border-radius: 30px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e4e7f5;
  box-shadow: 0 24px 54px rgba(15,15,19,0.08);
}

.quote-studio-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.quote-studio-panel h1 {
  margin-top: 0.85rem;
  font-size: 42px;
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.quote-studio-panel p {
  margin: 1rem 0 1.6rem;
  font-size: 15px;
  line-height: 1.75;
  color: #5f6684;
}

.quote-studio-tool-btn {
  width: 100%;
  margin-bottom: 0.8rem;
}

.quote-studio-toolbox {
  margin-top: 0.8rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg,#f8f9ff,#eef2ff);
  border: 1px solid #dde2f4;
}

.quote-studio-toolbox-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7391;
  margin-bottom: 0.8rem;
}

.quote-studio-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.quote-studio-mini-tool {
  border: 1px solid #dde2f4;
  border-radius: 18px;
  background: #ffffff;
  padding: 0.9rem 1rem;
  font-size: 14px;
  font-weight: 800;
  color: #111318;
  cursor: pointer;
}

.quote-studio-saves-panel {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 30px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e4e7f5;
  box-shadow: 0 24px 54px rgba(15,15,19,0.08);
}

.quote-studio-save-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: #111318;
}

.quote-studio-save-head small {
  font-size: 13px;
  color: #8a90aa;
}

.quote-studio-save-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.quote-studio-save-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #dde2f4;
  border-radius: 20px;
  background: #ffffff;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
}

.quote-studio-save-dot {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  flex-shrink: 0;
}

.quote-studio-save-card span:nth-child(2) {
  font-size: 14px;
  font-weight: 800;
  color: #111318;
  flex: 1;
}

.quote-studio-save-card small,
.quote-studio-save-empty {
  font-size: 12px;
  font-weight: 700;
  color: #8a90aa;
}

.quote-studio-save-empty {
  padding: 1rem;
  border-radius: 18px;
  background: #f6f7ff;
}

.quote-studio-see-more-save {
  width: 100%;
  margin-top: 0.8rem;
  border: none;
  background: transparent;
  color: #2b3bf0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.quote-studio-stage-wrap {
  min-width: 0;
}

.quote-studio-stage {
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 1rem 0 4rem;
  perspective: 1800px;
}

.quote-studio-paper {
  position: relative;
  width: min(100%, 960px);
  min-height: 1360px;
  padding: 3rem;
  border-radius: 34px;
  border: 1px solid rgba(15,15,19,0.08);
  box-shadow: 0 44px 94px rgba(15,15,19,0.15);
  transform: rotateX(3deg) rotateY(-3deg);
  transition: transform 0.28s ease;
}

.quote-studio-shape {
  position: absolute;
  top: 26px;
  right: 32px;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--studio-accent, #2b3bf0), rgba(255,255,255,0.85));
  box-shadow: 0 20px 40px rgba(15,15,19,0.18);
  display: none;
}

.quote-studio-shape.is-visible {
  display: block;
}

.quote-studio-paper:hover {
  transform: rotateX(0deg) rotateY(0deg);
}

.quote-studio-paper-header,
.quote-studio-parties,
.quote-studio-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.quote-studio-logo-slot,
.quote-studio-signature-slot {
  border: 2px dashed rgba(15,15,19,0.18);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  overflow: hidden;
}

.quote-studio-logo-slot {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #767c96;
}

.quote-studio-logo-slot img,
.quote-studio-signature-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quote-studio-doc-head {
  text-align: right;
}

.quote-studio-doc-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--studio-accent, #2b3bf0);
  outline: none;
}

.quote-studio-doc-meta,
.quote-studio-editable,
.quote-studio-party-label {
  outline: none;
}

.quote-studio-doc-meta {
  margin-top: 0.9rem;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #3d4256;
}

.quote-studio-parties {
  margin-top: 3rem;
}

.quote-studio-party-card {
  width: min(100%, 360px);
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.6);
}

.quote-studio-party-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--studio-accent, #2b3bf0);
}

.quote-studio-editable {
  margin-top: 1rem;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 600;
  color: #0f1117;
}

.quote-studio-items-box {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.45);
}

.quote-studio-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 80px 120px 120px;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15,15,19,0.12);
  font-size: 15px;
  font-weight: 600;
  color: #111318;
  outline: none;
}

.quote-studio-row-head {
  border-bottom: 2px solid var(--studio-accent, #2b3bf0);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--studio-accent, #2b3bf0);
}

.quote-studio-bottom {
  margin-top: 3rem;
  align-items: flex-end;
}

.quote-studio-note-block {
  max-width: 420px;
}

.quote-studio-total {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  color: #111318;
}

.quote-studio-total strong {
  margin-left: 0.65rem;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: var(--studio-accent, #2b3bf0);
}

.quote-studio-signature-slot {
  width: 220px;
  height: 110px;
  margin-top: 1.4rem;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #767c96;
}

.quote-studio-draggable {
  touch-action: none;
  cursor: grab;
  transition: transform 0.08s linear, box-shadow 0.2s ease;
}

.quote-studio-draggable.is-dragging {
  cursor: grabbing;
  box-shadow: 0 24px 50px rgba(43,59,240,0.18);
}

.signature-draw-modal-box {
  max-width: 980px;
}

.signature-draw-canvas {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px dashed rgba(43,59,240,0.28);
  background: #ffffff;
  touch-action: none;
}

.quote-studio-body-canvas {
  background:
    radial-gradient(circle at top left, rgba(14,165,233,0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(124,58,237,0.12), transparent 26%),
    linear-gradient(180deg, #eef2ff 0%, #f7f8fc 100%);
}

.quote-studio-page-canvas {
  align-items: start;
  padding-bottom: 8rem;
}

.quote-studio-panel-canvas {
  display: grid;
  gap: 1rem;
}

.quote-studio-tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.quote-studio-tab {
  border: 1px solid #d7def6;
  background: #f8faff;
  color: #445075;
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quote-studio-tab.is-active {
  background: linear-gradient(135deg, #2b3bf0, #6d28d9);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(43,59,240,0.18);
}

.quote-studio-tabpanel {
  display: none;
}

.quote-studio-tabpanel.is-active {
  display: block;
}

.quote-studio-inline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.quote-studio-inline-head span {
  font-size: 14px;
  font-weight: 800;
  color: #111318;
  flex-shrink: 0;
}

.quote-studio-inline-head small {
  font-size: 12px;
  color: #7b849f;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.quote-studio-elements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.quote-studio-element-card {
  border: 1px solid #dde2f4;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f7f9ff);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.55rem;
}

.quote-studio-element-card strong {
  font-size: 14px;
  color: #131721;
}

.quote-studio-element-card span {
  font-size: 12px;
  font-weight: 700;
  color: #697392;
}

.quote-studio-element-preview {
  height: 76px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(241,244,255,0.95)),
    linear-gradient(135deg, rgba(43,59,240,0.1), rgba(124,58,237,0.1));
  border: 1px solid #e4e9fb;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.quote-studio-element-preview-shape {
  position: relative;
  width: 56px;
  height: 56px;
}

.quote-studio-element-preview-shape.shape-circle {
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #2b3bf0);
}

.quote-studio-element-preview-shape.shape-square {
  border-radius: 18px;
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
}

.quote-studio-element-preview-shape.shape-line {
  width: 62px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b3bf0, #7c3aed);
}

.quote-studio-element-preview-shape.shape-arrow::before,
.quote-studio-element-preview-shape.shape-arrow::after {
  content: "";
  position: absolute;
  background: #2b3bf0;
  border-radius: 999px;
}

.quote-studio-element-preview-shape.shape-arrow::before {
  left: 0;
  right: 10px;
  top: 24px;
  height: 8px;
}

.quote-studio-element-preview-shape.shape-arrow::after {
  width: 24px;
  height: 8px;
  right: 0;
  top: 16px;
  transform: rotate(45deg);
  transform-origin: right center;
}

.quote-studio-element-preview-shape.shape-pill {
  width: 64px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b3bf0, #7c3aed);
}

.quote-studio-element-preview-shape.shape-star::before {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #2b3bf0;
}

.quote-studio-element-preview-shape.shape-grid {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background:
    linear-gradient(rgba(43,59,240,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,59,240,0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  background-color: rgba(255,255,255,0.85);
}

.quote-studio-element-preview-shape.shape-note {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7bf, #ffd95c);
  box-shadow: 0 10px 20px rgba(250,204,21,0.26);
}

.quote-studio-element-preview-shape.text {
  width: 64px;
  height: 46px;
  border-radius: 14px;
  border: 2px dashed rgba(43,59,240,0.35);
  background: rgba(255,255,255,0.85);
}

.quote-studio-element-preview-shape.text::before {
  content: "T";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #2b3bf0;
}

.quote-studio-import-grid {
  display: grid;
  gap: 0.75rem;
}

.quote-studio-import-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid #dde2f4;
  border-radius: 22px;
  background: #ffffff;
  padding: 0.75rem;
}

.quote-studio-import-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  background: #eef2ff;
}

.quote-studio-import-card-meta {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.quote-studio-import-card-meta strong {
  font-size: 13px;
  color: #111318;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-studio-import-card-actions,
.quote-studio-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quote-studio-chip-btn {
  border: 1px solid #d7def6;
  background: #f6f8ff;
  color: #2b3bf0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.quote-studio-import-empty,
.quote-studio-selection-card {
  border: 1px dashed #cfd7f7;
  border-radius: 22px;
  background: #f7f9ff;
  padding: 1rem;
}

.quote-studio-selection-card {
  margin-top: 0.4rem;
}

.quote-studio-tool-grid-canvas {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-studio-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-studio-stage-head strong {
  display: block;
  font-size: 18px;
  color: #111318;
}

.quote-studio-stage-head span {
  display: block;
  margin-top: 0.25rem;
  font-size: 13px;
  color: #66708c;
}

.quote-studio-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quote-studio-stage-chip {
  border: 1px solid #d7def6;
  background: rgba(255,255,255,0.76);
  color: #29314c;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quote-studio-stage-canvas {
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 0 0 4rem;
}

.quote-studio-paper-canvas {
  width: min(100%, 1080px);
  min-height: 1480px;
  overflow: hidden;
}

.quote-studio-draw-layer,
.quote-studio-free-layer {
  position: absolute;
  inset: 0;
}

.quote-studio-draw-layer {
  z-index: 2;
  pointer-events: none;
}

.quote-studio-paper.is-drawing-mode .quote-studio-draw-layer {
  pointer-events: auto;
  cursor: crosshair;
}

.quote-studio-free-layer {
  z-index: 4;
  pointer-events: none;
}

.quote-studio-free-item {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  min-width: 60px;
  min-height: 60px;
}

.quote-studio-free-item.is-selected {
  outline: 2px solid rgba(43,59,240,0.85);
  outline-offset: 4px;
  border-radius: 18px;
}

.quote-studio-free-item.is-dragging {
  cursor: grabbing;
}

.quote-studio-free-item img,
.quote-studio-free-shape,
.quote-studio-free-text > div {
  width: 100%;
  height: 100%;
}

.quote-studio-free-item img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(15,23,42,0.18));
}

.quote-studio-free-text > div {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 14px 30px rgba(15,23,42,0.1);
  font-size: 22px;
  font-weight: 800;
  color: #111318;
  outline: none;
}

.quote-studio-resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
  box-shadow: 0 8px 18px rgba(43,59,240,0.24);
  cursor: nwse-resize;
  z-index: 3;
}

.quote-studio-resize-handle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-right: 2px solid rgba(255,255,255,0.95);
  border-bottom: 2px solid rgba(255,255,255,0.95);
  border-radius: 1px;
}

.quote-studio-free-shape {
  position: relative;
}

.quote-studio-free-shape.shape-circle {
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), var(--studio-accent, #2b3bf0));
}

.quote-studio-free-shape.shape-square {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--studio-accent, #2b3bf0), rgba(255,255,255,0.2));
}

.quote-studio-free-shape.shape-line {
  height: 12px;
  margin-top: calc(50% - 6px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), var(--studio-accent, #2b3bf0));
}

.quote-studio-free-shape.shape-arrow::before,
.quote-studio-free-shape.shape-arrow::after {
  content: "";
  position: absolute;
  background: var(--studio-accent, #2b3bf0);
  border-radius: 999px;
}

.quote-studio-free-shape.shape-arrow::before {
  left: 10%;
  right: 14%;
  top: calc(50% - 6px);
  height: 12px;
}

.quote-studio-free-shape.shape-arrow::after {
  width: 36%;
  height: 12px;
  right: 8%;
  top: 33%;
  transform: rotate(40deg);
  transform-origin: right center;
}

.quote-studio-free-shape.shape-pill {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), var(--studio-accent, #2b3bf0));
}

.quote-studio-free-shape.shape-star::before {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 80px;
  line-height: 1;
  color: var(--studio-accent, #2b3bf0);
  text-shadow: 0 12px 24px rgba(15,23,42,0.18);
}

.quote-studio-free-shape.shape-grid {
  border-radius: 24px;
  background:
    linear-gradient(rgba(43,59,240,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,59,240,0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: rgba(255,255,255,0.48);
}

.quote-studio-free-shape.shape-note {
  border-radius: 24px;
  background: linear-gradient(180deg, #fff7bf, #ffe375);
  box-shadow: 0 20px 40px rgba(204,161,8,0.18);
}

.quote-studio-bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem 0.55rem 0.5rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 60px rgba(15,23,42,0.4);
  backdrop-filter: blur(24px);
  transition: max-width 0.3s ease, padding 0.3s ease, gap 0.3s ease;
  max-width: 1180px;
}

.quote-studio-bottom-dock.is-dragging {
  transition: none;
  cursor: grabbing;
  box-shadow: 0 34px 80px rgba(15,23,42,0.5);
}

.quote-studio-bottom-dock.is-collapsed {
  max-width: 90px;
  padding: 0.55rem 0.6rem;
  gap: 0;
  overflow: hidden;
}

.quote-studio-bottom-dock.is-collapsed > :not(.quote-studio-dock-handle):not(.quote-studio-dock-collapse) {
  opacity: 0;
  width: 0;
  margin: 0;
  pointer-events: none;
}

.quote-studio-dock-handle {
  display: grid;
  gap: 3px;
  padding: 0.55rem 0.45rem;
  border-radius: 999px;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}

.quote-studio-dock-handle:active {
  cursor: grabbing;
}

.quote-studio-dock-handle span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}

.quote-studio-dock-handle:hover span {
  background: #ffffff;
}

.quote-studio-dock-group {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
}

.quote-studio-dock-zoom {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0.1rem 0.3rem;
}

.quote-studio-dock-zoom-value {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 0.55rem;
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quote-studio-dock-sep {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.14);
  margin: 0 0.1rem;
  flex-shrink: 0;
}

.quote-studio-dock-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.quote-studio-dock-icon:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.quote-studio-dock-icon.is-active {
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(43,59,240,0.4);
}

.quote-studio-dock-icon-primary {
  background: #ffffff;
  color: #111318;
}

.quote-studio-dock-icon-primary:hover {
  background: #ffffff;
  color: #2b3bf0;
  transform: scale(1.05);
}

.quote-studio-dock-brush span {
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
}

.quote-studio-dock-brush:hover span,
.quote-studio-dock-brush.is-active span {
  background: #ffffff;
}

.quote-studio-dock-collapse {
  width: 28px;
  height: 28px;
  margin-left: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quote-studio-dock-collapse svg {
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.quote-studio-dock-collapse.is-collapsed svg {
  transform: rotate(180deg);
}

.quote-studio-dock-collapse:hover {
  background: rgba(255,255,255,0.14);
}

.quote-studio-items-content {
  outline: none;
}

@media (max-width: 980px) {
  .quote-studio-tabbar,
  .quote-studio-elements-grid {
    grid-template-columns: 1fr;
  }

  .quote-studio-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-studio-import-card {
    grid-template-columns: 1fr;
  }

  .quote-studio-import-card img {
    width: 100%;
    height: 140px;
  }

  .quote-studio-bottom-dock {
    width: calc(100vw - 1rem);
    left: 0.5rem;
    right: 0.5rem;
    transform: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.signature-draw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1rem;
}

.quote-compact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-compact-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.quote-compact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.quote-advanced-details {
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.quote-advanced-details summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.quote-advanced-details summary::-webkit-details-marker {
  display: none;
}

.quote-advanced-content {
  margin-top: 1rem;
}

.email-send-card {
  display: grid;
  gap: 0.95rem;
}

.email-send-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.email-usage-hint {
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
}

.email-send-status {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.email-send-status.is-ready {
  background: #eefaf1;
  color: #1f7a42;
  border: 1px solid rgba(31,122,66,0.14);
}

.email-send-status.is-error {
  background: #fff5f5;
  color: #b42318;
  border: 1px solid rgba(180,35,24,0.14);
}

.email-send-note {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}

.ai-generator-card {
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.ai-generator-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ai-generator-hint {
  color: var(--gray);
  font-size: 13px;
}

.ai-generator-card.is-generating {
  border-color: rgba(43,59,240,0.22);
  box-shadow: 0 20px 54px rgba(43,59,240,0.12);
  transform: scale(1.015);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ai-generator-card.is-generating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(43,59,240,0.04) 38%, rgba(43,59,240,0.12) 50%, rgba(43,59,240,0.04) 62%, transparent 100%);
  transform: translateX(-100%);
  animation: aiCardSweep 2.2s linear infinite;
  pointer-events: none;
}

.quote-editor.is-ai-generating > :not(.ai-generator-card) {
  filter: blur(5px);
  opacity: 0.38;
  transform: scale(0.985);
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.ai-generator-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
  border: 1px solid rgba(43,59,240,0.12);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-generator-status[hidden] {
  display: none !important;
}

.ai-generator-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-generator-loader span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b3bf0 0%, #7a8bff 100%);
  animation: aiDotPulse 1.1s ease-in-out infinite;
}

.ai-generator-loader span:nth-child(2) { animation-delay: 0.15s; }
.ai-generator-loader span:nth-child(3) { animation-delay: 0.3s; }

.ai-generator-status-text {
  color: #4d5576;
  font-size: 14px;
  font-weight: 600;
}

.ai-fill-flash {
  animation: aiFieldFlash 0.9s ease;
}

@keyframes aiDotPulse {
  0%, 80%, 100% { transform: translateY(0) scale(0.85); opacity: 0.45; }
  40% { transform: translateY(-3px) scale(1); opacity: 1; }
}

@keyframes aiCardSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes aiFieldFlash {
  0% { box-shadow: 0 0 0 0 rgba(43,59,240,0.18); background: rgba(43,59,240,0.06); }
  100% { box-shadow: 0 0 0 18px rgba(43,59,240,0); background: transparent; }
}

.quote-parties-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.quote-sheet {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15,15,19,0.08);
  max-width: 100%;
}

.quote-sheet-themed {
  position: relative;
  border-color: color-mix(in srgb, var(--quote-accent, #2b3bf0) 22%, #ffffff);
}

.quote-sheet-shape {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--quote-accent, #2b3bf0), rgba(255,255,255,0.88));
  box-shadow: 0 14px 24px rgba(15,15,19,0.16);
}

.print-sheet-hidden {
  display: none;
}

.quote-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.quote-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-sheet-logo {
  width: 124px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.quote-sheet-logo-slot {
  width: 124px;
  height: 80px;
  border-radius: 18px;
  border: 1px dashed rgba(15,15,19,0.18);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #8a90aa;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.quote-sheet-kicker,
.quote-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.45rem;
}

.quote-sheet-themed .quote-sheet-kicker,
.quote-sheet-themed .quote-label {
  color: var(--quote-accent, var(--gray));
}

.quote-brand h2 {
  font-size: 26px;
  line-height: 1.1;
}

.quote-meta {
  min-width: 240px;
  display: grid;
  gap: 0.6rem;
}

.quote-meta div,
.quote-summary div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.quote-meta span,
.quote-summary span {
  color: var(--gray);
  font-size: 13px;
}

.quote-meta strong,
.quote-summary strong {
  font-size: 14px;
  text-align: right;
  justify-self: end;
}

.quote-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.quote-party-card {
  min-height: 120px;
  background: rgba(255,255,255,0.62);
  border: 1px solid color-mix(in srgb, var(--quote-accent, #2b3bf0) 18%, #ffffff);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: var(--dark);
}

.quote-party-card div {
  margin-bottom: 0.3rem;
}

.quote-sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  table-layout: fixed;
}

.quote-sheet-table th {
  text-align: left;
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--quote-accent, #2b3bf0) 26%, #ffffff);
}

.quote-sheet-table td {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
  word-break: break-word;
}

.quote-sheet-table th:nth-child(n+2),
.quote-sheet-table td:nth-child(n+2) {
  text-align: right;
}

.quote-empty-row {
  text-align: center;
  color: var(--gray);
  padding: 1.25rem 0;
}

.quote-sheet-bottom {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
  break-inside: avoid;
  page-break-inside: avoid;
}

.quote-notes {
  display: grid;
  gap: 1rem;
}

.quote-note-block {
  background: rgba(255,255,255,0.62);
  border: 1px solid color-mix(in srgb, var(--quote-accent, #2b3bf0) 18%, #ffffff);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.quote-note-block p {
  white-space: normal;
  color: var(--dark);
  font-size: 14px;
}

.quote-summary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--quote-accent, #2b3bf0) 84%, #111827), #111827);
  color: var(--white);
  border-radius: 20px;
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.quote-summary strong,
.quote-summary span {
  color: var(--white);
}

.quote-summary-grand {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 0.8rem;
}

.quote-summary-grand strong {
  font-size: 22px;
  color: #9fb1ff;
}

.quote-sheet-signature-wrap {
  margin-top: 0.8rem;
}

.quote-sheet-signature-img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.quote-sheet-variant-clean .quote-summary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--quote-accent, #2b3bf0) 84%, #111827), #111827);
}

.quote-sheet-variant-bold {
  overflow: hidden;
}

.quote-sheet-variant-bold::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: linear-gradient(180deg, var(--quote-accent, #2b3bf0), color-mix(in srgb, var(--quote-accent, #2b3bf0) 42%, #111827));
}

.quote-sheet-variant-bold .quote-sheet-header {
  border-bottom-color: color-mix(in srgb, var(--quote-accent, #2b3bf0) 26%, #0f172a);
}

.quote-sheet-variant-bold .quote-summary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--quote-accent, #2b3bf0) 54%, #0f172a), #0f172a);
}

.quote-sheet-variant-bold .quote-party-card,
.quote-sheet-variant-bold .quote-note-block {
  background: rgba(255,255,255,0.9);
}

.quote-sheet-variant-band .quote-sheet-bottom {
  grid-template-columns: 1fr;
}

.quote-sheet-variant-band .quote-summary {
  order: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  border-radius: 26px;
}

.quote-sheet-variant-band .quote-summary div {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.quote-sheet-variant-band .quote-summary strong,
.quote-sheet-variant-band .quote-summary span {
  justify-self: start;
  text-align: left;
}

.quote-sheet-variant-band .quote-notes {
  order: 1;
}

.quote-sheet-variant-editorial .quote-sheet-header {
  align-items: end;
}

.quote-sheet-variant-editorial .quote-brand {
  align-items: flex-start;
}

.quote-sheet-variant-editorial .quote-brand h2 {
  font-size: 34px;
  letter-spacing: -0.08em;
}

.quote-sheet-variant-editorial .quote-meta {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.76);
  border: 1px solid color-mix(in srgb, var(--quote-accent, #2b3bf0) 18%, #ffffff);
}

.quote-sheet-variant-editorial .quote-note-block {
  border-top: 4px solid var(--quote-accent, #2b3bf0);
}

.quote-sheet-variant-split .quote-sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 260px;
  align-items: start;
}

.quote-sheet-variant-split .quote-meta {
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--quote-accent, #2b3bf0) 14%, #ffffff), rgba(255,255,255,0.88));
  border: 1px solid color-mix(in srgb, var(--quote-accent, #2b3bf0) 18%, #ffffff);
}

.quote-sheet-variant-split .quote-parties {
  grid-template-columns: 1.15fr 0.85fr;
}

.quote-sheet-variant-split .quote-summary {
  border-radius: 28px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: cardRise 0.7s ease both;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}

label span.required {
  color: var(--blue);
  margin-left: 2px;
}

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,59,240,0.08);
}

input::placeholder, textarea::placeholder {
  color: #b0b0c8;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── TABLE LIGNES DEVIS ── */
.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.items-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--border);
}

.items-table th:last-child { text-align: right; }

.items-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.items-table td input {
  padding: 7px 10px;
}

.items-table td:last-child {
  text-align: right;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
}

.items-table .col-desc { width: 40%; }
.items-table .col-qty  { width: 10%; }
.items-table .col-unit { width: 15%; }
.items-table .col-tva  { width: 12%; }
.items-table .col-total{ width: 16%; }
.items-table .col-del  { width: 7%; }

.delete-row-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-row-btn:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* ── TOTAUX ── */
.totals-block {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.totals-inner {
  min-width: 280px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray);
}

.total-row span:last-child {
  font-family: var(--mono);
  color: var(--dark);
}

.total-row.grand {
  border-top: 2px solid var(--dark);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}

.total-row.grand span:last-child {
  color: var(--blue);
}

/* ── BADGE STATUS ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-draft    { background: #f1f5f9; color: #64748b; }
.badge-sent     { background: var(--blue-light); color: var(--blue); }
.badge-accepted { background: var(--success-light); color: var(--success); }
.badge-refused  { background: var(--danger-light); color: var(--danger); }

/* ── LISTE DEVIS ── */
.devis-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.devis-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px 120px minmax(220px, 280px);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  animation: rowSlideIn 0.55s ease both;
}

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

.devis-item:hover {
  background: linear-gradient(90deg, #f7f9ff 0%, #ffffff 100%);
  transform: translateX(6px);
}

.devis-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

.devis-client {
  font-weight: 500;
  font-size: 14px;
}

.devis-desc {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.devis-date {
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
}

.devis-amount-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.devis-amount {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  display: block;
  min-width: 160px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.devis-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.15s;
}

.devis-item:hover .devis-actions { opacity: 1; }

.list-header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px 120px minmax(220px, 280px);
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── STATS CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #2b3bf0 0%, #8d97ff 100%);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(43,59,240,0.11);
  border-color: rgba(43,59,240,0.18);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--dark);
}

.stat-value.blue { color: var(--blue); }
.stat-value.green { color: #0f7a33; }

.stat-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

.stat-card-revenue {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  color: inherit;
}

.stat-card-revenue .stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.stat-card-trend {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: none;
}

.stat-card-trend.trend-up {
  color: #0f7a33;
  background: rgba(15, 122, 51, 0.1);
}

.stat-card-trend.trend-down {
  color: #b42318;
  background: rgba(180, 35, 24, 0.1);
}

.stat-revenue-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
}

.stat-revenue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.stat-revenue-row span {
  color: var(--gray);
}

.stat-revenue-row strong {
  font-weight: 700;
  color: var(--dark);
  font-family: var(--mono);
}

.dashboard-revenue-summary {
  margin-bottom: 2rem;
  padding: 1.6rem 1.8rem;
}

.dashboard-revenue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.dashboard-revenue-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.dashboard-revenue-head h3 {
  margin: 0 0 0.4rem;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.dashboard-revenue-head p {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  max-width: 460px;
}

.dashboard-revenue-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
  align-items: end;
  height: 200px;
}

.revenue-bar-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  height: 100%;
}

.revenue-bar-track {
  flex: 1;
  width: 100%;
  background: linear-gradient(180deg, #f4f6ff, rgba(244, 246, 255, 0.4));
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 60px;
}

.revenue-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #6d7cff, #2b3bf0);
  border-radius: 8px;
  min-height: 2px;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.revenue-bar-fill.is-current {
  background: linear-gradient(180deg, #34a853, #0f7a33);
  box-shadow: 0 0 0 2px rgba(15, 122, 51, 0.15);
}

.revenue-bar-amount {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--mono);
  text-align: center;
}

.revenue-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.revenue-bar-label.is-current {
  color: #0f7a33;
  font-weight: 800;
}

/* ── FILTERS ── */
.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  animation: cardRise 0.7s ease 0.08s both;
}

.filters input[type="text"] {
  max-width: 260px;
}

.filter-sep {
  flex: 1;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,19,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  transform: translateY(16px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-size: 15px;
  margin-bottom: 1.25rem;
}

/* ── NOTIFICATION ── */
.notif {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 10050;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif.show {
  transform: translateY(0);
  opacity: 1;
}

.notif.success { background: var(--success); }
.notif.error   { background: var(--danger); }

.dashboard-hero {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.dashboard-hero .page-title {
  font-size: clamp(54px, 5vw, 74px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: #0f1117;
  margin-top: 0.55rem;
}

.dashboard-hero-copy {
  max-width: 580px;
}

.dashboard-card-lift {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15,15,19,0.08);
}

.dashboard-animated-card:nth-child(1) { animation-delay: 0.05s; }
.dashboard-animated-card:nth-child(2) { animation-delay: 0.12s; }
.dashboard-animated-card:nth-child(3) { animation-delay: 0.19s; }
.dashboard-animated-card:nth-child(4) { animation-delay: 0.26s; }

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

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

@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── SECTION PLACEHOLDER IA ── */
.ai-placeholder {
  background: linear-gradient(135deg, var(--blue-light) 0%, #f0f1ff 100%);
  border: 1px dashed var(--blue-mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.ai-placeholder:hover {
  background: var(--blue-light);
  border-style: solid;
}

.discover-luxe-body {
  background:
    radial-gradient(circle at 50% 0%, rgba(210, 175, 95, 0.16), transparent 28%),
    radial-gradient(circle at 15% 15%, rgba(255, 214, 125, 0.08), transparent 18%),
    linear-gradient(180deg, #050505 0%, #0e0e12 40%, #111015 100%);
  color: #f8f3e7;
  overflow-x: hidden;
}

.discover-nav {
  max-width: 1280px;
}

.discover-nav-luxe {
  background: transparent;
}

.discover-nav-luxe .btn,
.discover-luxe-body .marketing-brand {
  color: #f8f3e7;
}

.discover-gold-link {
  color: rgba(248,243,231,0.72);
}

.discover-gold-link:hover {
  color: #f8f3e7;
  background: rgba(210,175,95,0.1);
}

.discover-gold-secondary {
  background: rgba(255,255,255,0.04);
  color: #f8f3e7;
  border: 1px solid rgba(210,175,95,0.22);
}

.discover-gold-secondary:hover {
  background: rgba(210,175,95,0.08);
  border-color: rgba(210,175,95,0.4);
}

.discover-gold-primary {
  background: linear-gradient(135deg, #8b6a2f 0%, #f0cf7a 45%, #b18432 100%);
  color: #15130f;
  box-shadow: 0 22px 48px rgba(201, 162, 75, 0.2);
}

.discover-gold-primary:hover {
  background: linear-gradient(135deg, #947138 0%, #ffe19a 45%, #bc8f39 100%);
  box-shadow: 0 30px 60px rgba(201, 162, 75, 0.28);
}

.discover-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  animation: discoverPageEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.discover-hero {
  position: relative;
  padding: 5rem 0 4rem;
}

.discover-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.discover-copy-centered,
.discover-head-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.discover-copy-centered p,
.discover-head-centered p,
.discover-copy-centered .marketing-cta {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.discover-luxe-body .marketing-kicker {
  background: rgba(210,175,95,0.1);
  color: #f0cf7a;
}

.discover-hero-copy h1,
.discover-section-head h2,
.discover-final-cta h2 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.discover-luxe-body .discover-hero-copy h1,
.discover-luxe-body .discover-section-head h2 {
  color: #f8f3e7;
}

.discover-hero-copy p,
.discover-section-head p {
  max-width: 620px;
  color: #58607f;
  font-size: 20px;
  line-height: 1.6;
  margin: 1.35rem 0 0;
}

.discover-luxe-body .discover-hero-copy p,
.discover-luxe-body .discover-section-head p {
  color: rgba(248,243,231,0.72);
}

.discover-3d-hero {
  position: relative;
  min-height: 620px;
  perspective: 1600px;
}

.discover-3d-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.discover-gold-ring {
  position: absolute;
  width: 390px;
  height: 390px;
  top: 20px;
  right: 10px;
  border-radius: 50%;
  border: 22px solid rgba(210,175,95,0.12);
  border-top-color: rgba(240,207,122,0.96);
  border-right-color: rgba(255,231,179,0.5);
  box-shadow: 0 24px 48px rgba(210,175,95,0.14), inset 0 0 24px rgba(255,238,188,0.1);
  transform-style: preserve-3d;
  animation: discoverGoldRingSpin 18s linear infinite;
}

.discover-gold-diamond {
  position: absolute;
  width: 160px;
  height: 160px;
  left: 24px;
  top: 96px;
  transform-style: preserve-3d;
  animation: discoverGoldDiamondSpin 16s linear infinite;
}

.discover-gold-diamond span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 1px solid rgba(255,234,182,0.38);
  background: linear-gradient(135deg, rgba(255,233,177,0.96), rgba(153,113,41,0.88));
  box-shadow: 0 20px 40px rgba(201,162,75,0.16);
  transform-origin: center;
}

.discover-gold-diamond span:nth-child(1) { transform: translate(-50%, -50%) rotateY(0deg) translateZ(52px) rotate(45deg); }
.discover-gold-diamond span:nth-child(2) { transform: translate(-50%, -50%) rotateY(90deg) translateZ(52px) rotate(45deg); }
.discover-gold-diamond span:nth-child(3) { transform: translate(-50%, -50%) rotateY(180deg) translateZ(52px) rotate(45deg); }
.discover-gold-diamond span:nth-child(4) { transform: translate(-50%, -50%) rotateY(270deg) translateZ(52px) rotate(45deg); }

.discover-gold-panel {
  position: absolute;
  border-radius: 34px;
  border: 1px solid rgba(255,234,182,0.2);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  transform-style: preserve-3d;
}

.discover-gold-panel-a {
  width: 240px;
  height: 320px;
  right: 26px;
  top: 130px;
  background: linear-gradient(160deg, #1b1916 0%, #0c0c0f 45%, #322817 100%);
  transform: translate3d(0, 0, 90px) rotateX(18deg) rotateY(-18deg) rotateZ(8deg);
}

.discover-gold-panel-b {
  width: 200px;
  height: 280px;
  left: 70px;
  bottom: 10px;
  background: linear-gradient(160deg, #f6df9a 0%, #b78632 50%, #5c451d 100%);
  transform: translate3d(0, 0, 70px) rotateX(20deg) rotateY(22deg) rotateZ(-10deg);
}

.discover-insight-panel {
  position: relative;
  z-index: 1;
  margin-top: 120px;
  padding: 2rem;
  border-radius: 34px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(226,231,255,0.92);
  box-shadow: 0 34px 90px rgba(15,15,19,0.1);
  transform: rotateY(-14deg) rotateX(8deg) translateZ(40px);
  transform-style: preserve-3d;
}

.discover-insight-luxe {
  background: rgba(12,12,15,0.8);
  border: 1px solid rgba(240,207,122,0.16);
  box-shadow: 0 34px 90px rgba(0,0,0,0.34);
}

.discover-insight-luxe .marketing-mock-label {
  color: rgba(240,207,122,0.72);
}

.discover-insight-luxe .marketing-mock-title,
.discover-insight-luxe .discover-insight-item strong {
  color: #f8f3e7;
}

.discover-insight-luxe .discover-insight-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(240,207,122,0.14);
}

.discover-insight-luxe .discover-insight-item p {
  color: rgba(248,243,231,0.7);
}

.discover-insight-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.discover-insight-item {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: #f8f9ff;
  border: 1px solid rgba(43,59,240,0.08);
}

.discover-insight-item strong {
  display: block;
  font-size: 20px;
  margin-bottom: 0.3rem;
}

.discover-insight-item p {
  color: #5c617d;
  font-size: 15px;
}

.discover-audience-tag {
  display: inline-block;
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.discover-section {
  padding: 4rem 0 0;
}

.discover-section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.discover-steps,
.discover-features,
.discover-audience,
.discover-brief-grid {
  display: grid;
  gap: 1.2rem;
}

.discover-steps,
.discover-audience,
.discover-brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-step-card,
.discover-feature-card,
.discover-brief-card,
.discover-audience-card,
.discover-compare,
.discover-final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(226,231,255,0.92);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 28px 70px rgba(15,15,19,0.08);
}

.discover-luxe-body .discover-step-card,
.discover-luxe-body .discover-feature-card,
.discover-luxe-body .discover-brief-card,
.discover-luxe-body .discover-audience-card,
.discover-luxe-body .discover-compare {
  background: rgba(14,14,18,0.72);
  border-color: rgba(240,207,122,0.14);
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}

.discover-step-card,
.discover-feature-card,
.discover-brief-card,
.discover-audience-card {
  padding: 1.6rem;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.discover-step-card:hover,
.discover-feature-card:hover,
.discover-brief-card:hover,
.discover-audience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(15,15,19,0.12);
}

.discover-brief-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0cf7a;
}

.discover-brief-card h3 {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0.85rem;
}

.discover-luxe-body .discover-brief-card h3,
.discover-luxe-body .discover-step-card h3,
.discover-luxe-body .discover-feature-card h3,
.discover-luxe-body .discover-audience-card h3,
.discover-luxe-body .discover-compare-row strong {
  color: #f8f3e7;
}

.discover-brief-card p {
  color: rgba(248,243,231,0.7);
  font-size: 16px;
}

.discover-step-icon,
.discover-feature-card span {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b6a2f 0%, #f0cf7a 45%, #b18432 100%);
  color: #15130f;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 36px rgba(201,162,75,0.22);
}

.discover-step-card h3,
.discover-feature-card h3,
.discover-audience-card h3 {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0.8rem;
}

.discover-step-card p,
.discover-feature-card p {
  color: rgba(248,243,231,0.7);
  font-size: 16px;
}

.discover-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-feature-card span {
  font-size: 24px;
}

.discover-compare {
  padding: 1.5rem;
}

.discover-compare-head,
.discover-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.discover-compare-head {
  padding: 0.4rem 0.5rem 1rem;
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discover-compare-row {
  padding: 1.1rem 1.2rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 0.8rem;
}
.discover-compare-row:last-child { margin-bottom: 0; }

.discover-compare-row span {
  color: rgba(248,243,231,0.62);
  font-size: 15px;
}

.discover-compare-row strong {
  color: #f0cf7a;
  font-size: 16px;
  text-align: right;
}

.discover-audience-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at top right, rgba(240,207,122,0.14), transparent 32%),
    rgba(14,14,18,0.72);
}

.discover-audience-tag {
  color: #f0cf7a;
}

.discover-final-cta {
  margin-top: 4rem;
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, #050505 0%, #18140d 50%, #8b6a2f 100%);
  color: #fff;
}

.discover-final-cta .marketing-kicker {
  background: rgba(240,207,122,0.12);
  color: #f0cf7a;
}

.discover-final-cta h2 {
  max-width: 880px;
  margin: 0 auto 2rem;
}

.discover-final-cta .btn-primary {
  background: linear-gradient(135deg, #8b6a2f 0%, #f0cf7a 45%, #b18432 100%);
  color: #15130f;
}

.discover-final-actions {
  justify-content: center;
}

.discover-step-card::after,
.discover-feature-card::after,
.discover-brief-card::after,
.discover-audience-card::after,
.discover-compare::after,
.discover-final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(240,207,122,0.08) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.page-transition-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  overflow: hidden;
  background: rgba(8, 8, 12, 0.28);
  transition: opacity 0.25s ease;
}

.transition-streak {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 120px;
  border-radius: 999px;
  filter: blur(34px);
  transform: translate3d(-120%, 0, 0) rotate(-18deg);
  opacity: 0;
}

.transition-streak-1 {
  top: 12%;
  background: linear-gradient(90deg, transparent 0%, rgba(43,59,240,0.95) 45%, rgba(168,176,255,0.8) 60%, transparent 100%);
}

.transition-streak-2 {
  top: 34%;
  height: 150px;
  background: linear-gradient(90deg, transparent 0%, rgba(240,207,122,0.95) 40%, rgba(255,243,208,0.8) 58%, transparent 100%);
}

.transition-streak-3 {
  top: 58%;
  background: linear-gradient(90deg, transparent 0%, rgba(43,59,240,0.85) 42%, rgba(219,223,255,0.72) 60%, transparent 100%);
}

.transition-streak-4 {
  top: 78%;
  height: 140px;
  background: linear-gradient(90deg, transparent 0%, rgba(240,207,122,0.9) 44%, rgba(255,247,225,0.78) 60%, transparent 100%);
}

.home-transition-shell,
.discover-transition-shell {
  animation: pageSceneEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-page-leaving .page-transition-layer {
  opacity: 1;
}

.is-page-leaving .transition-streak-1 {
  animation: transitionStreakSweep 0.72s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.is-page-leaving .transition-streak-2 {
  animation: transitionStreakSweep 0.72s cubic-bezier(0.7, 0, 0.2, 1) 0.06s forwards;
}

.is-page-leaving .transition-streak-3 {
  animation: transitionStreakSweep 0.72s cubic-bezier(0.7, 0, 0.2, 1) 0.12s forwards;
}

.is-page-leaving .transition-streak-4 {
  animation: transitionStreakSweep 0.72s cubic-bezier(0.7, 0, 0.2, 1) 0.18s forwards;
}

.is-page-leaving .marketing-page,
.is-page-leaving .discover-page,
.is-page-leaving .marketing-nav {
  animation: pageSceneExit 0.45s ease forwards;
}

@keyframes pageSceneEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageSceneExit {
  to {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
  }
}

@keyframes transitionStreakSweep {
  0% {
    opacity: 0;
    transform: translate3d(-120%, 0, 0) rotate(-18deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(120%, 0, 0) rotate(-18deg);
  }
}

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

@keyframes discoverGoldRingSpin {
  0%, 100% {
    transform: translate3d(0, 0, 80px) rotateX(72deg) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: translate3d(-24px, 16px, 140px) rotateX(76deg) rotateY(24deg) rotateZ(180deg);
  }
}

@keyframes discoverGoldDiamondSpin {
  0%, 100% {
    transform: translate3d(0, 0, 120px) rotateX(-18deg) rotateY(32deg) rotateZ(-12deg);
  }
  50% {
    transform: translate3d(18px, -16px, 180px) rotateX(34deg) rotateY(214deg) rotateZ(18deg);
  }
}

@keyframes discoverGoldPanelA {
  0%, 100% {
    transform: translate3d(0, 0, 90px) rotateX(18deg) rotateY(-18deg) rotateZ(8deg);
  }
  50% {
    transform: translate3d(-18px, -20px, 160px) rotateX(24deg) rotateY(-28deg) rotateZ(12deg);
  }
}

@keyframes discoverGoldPanelB {
  0%, 100% {
    transform: translate3d(0, 0, 70px) rotateX(20deg) rotateY(22deg) rotateZ(-10deg);
  }
  50% {
    transform: translate3d(18px, -16px, 140px) rotateX(28deg) rotateY(36deg) rotateZ(-16deg);
  }
}

@keyframes discoverPanel3DFloat {
  0%, 100% {
    transform: rotateY(-14deg) rotateX(8deg) translate3d(0, 0, 40px);
  }
  50% {
    transform: rotateY(-20deg) rotateX(12deg) translate3d(0, -12px, 70px);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .landing-story { padding: 2rem 1rem 0.5rem; }
  .landing-story-title { font-size: clamp(50px, 16vw, 84px); }
  .landing-story-note { font-size: 12px; letter-spacing: 0.12em; }
  .landing-story-rotator { min-height: 88px; }
  .landing-story-message { font-size: 17px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .devis-item { grid-template-columns: 1fr auto; }
  .list-header { display: none; }
  .devis-actions { opacity: 1; }
  .nav-links { display: none; }
  .marketing-nav,
  .marketing-hero,
  .auth-shell { padding-left: 1rem; padding-right: 1rem; }
  .hero-stage,
  .story-section,
  .feature-corridor,
  .final-cta,
  .zoom-band,
  .journey-stage { padding-left: 1rem; padding-right: 1rem; }
  .marketing-hero,
  .auth-layout,
  .account-grid,
  .marketing-metrics { grid-template-columns: 1fr; }
  .hero-grid,
  .story-card,
  .showcase-grid,
  .feature-row,
  .feature-row.reverse,
  .final-cta-panel,
  .hero-device-metrics,
  .hero-stats { grid-template-columns: 1fr; }
  .story-card,
  .feature-row,
  .final-cta-panel { display: grid; }
  .feature-row.reverse .feature-copy { order: initial; }
  .hero-copy h1,
  .story-heading h2,
  .zoom-band-inner h2,
  .final-cta-panel h2 { font-size: 42px; }
  .hero-copy p { font-size: 18px; }
  .hero-3d-scene { display: none; }
  .hero-device-3d { animation: heroDeviceFloat 6s ease-in-out infinite; }
  .marketing-actions,
  .marketing-cta { flex-direction: column; align-items: stretch; }
  .hero-device,
  .zoom-band-inner,
  .story-card,
  .feature-row,
  .final-cta-panel,
  .journey-sticky { padding: 1.25rem; }
  .account-shortcuts { grid-template-columns: 1fr; }
  .account-shortcut-btn { padding: 0.85rem 0.95rem; border-radius: 12px; }
  .account-shortcut-icon { width: 32px; height: 32px; border-radius: 8px; }
  .api-key-field { flex-direction: column; align-items: stretch; }
  .api-key-table-head,
  .api-key-item { grid-template-columns: 1fr; }
  .api-key-select-wrap { justify-content: flex-start; }
  .api-key-modal-row,
  .api-key-modal-actions { flex-direction: column; align-items: stretch; }
  .api-key-status { justify-self: start; }
  .account-plan-summary { align-items: flex-start; flex-direction: column; }
  .account-credit-inline { text-align: left; }
  .subscription-hero { flex-wrap: wrap; padding: 1.1rem; min-height: 0; }
  .subscription-offer-copy strong { font-size: 42px; }
  .subscription-orbit-scene { width: 140px; height: 74px; margin-left: 0; }
  .plan-card-grid,
  .plan-table,
  .plan-table-body { grid-template-columns: 1fr; }
  .quote-style-page-head,
  .quote-style-section-head,
  .quote-studio-bottom,
  .quote-studio-paper-header,
  .quote-studio-parties {
    flex-direction: column;
    align-items: flex-start;
  }
  .quote-style-page-grid,
  .quote-save-grid,
  .quote-style-grid,
  .quote-studio-page {
    grid-template-columns: 1fr;
  }
  .quote-studio-topbar {
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
  }
  .quote-studio-topactions {
    width: 100%;
    flex-wrap: wrap;
  }
  .quote-studio-top-btn {
    flex: 1;
    text-align: center;
  }
  .quote-studio-panel { position: relative; top: auto; }
  .quote-studio-paper { min-height: 0; padding: 1.4rem; border-radius: 26px; transform: none; }
  .quote-studio-doc-head { text-align: left; }
  .quote-studio-doc-title { font-size: 46px; }
  .quote-studio-row { grid-template-columns: minmax(0, 1.4fr) 52px 74px 74px; font-size: 13px; gap: 0.5rem; }
  .quote-sheet-variant-split .quote-sheet-header,
  .quote-sheet-variant-band .quote-summary {
    grid-template-columns: 1fr;
  }
  .quote-template-thumb,
  .quote-style-page-preview { min-height: 0; }
  .plan-table-empty,
  .plan-table-section-spacer { display: none; }
  .plan-table-card,
  .plan-table-row-label,
  .plan-table-cell,
  .plan-table-section { border-left: none; border-right: none; }
  .plan-table-cell { justify-content: flex-start; text-align: left; }
  .showcase-visual { max-width: none; }
  .showcase-copy h2 { font-size: 44px; }
  .journey-shell { height: auto; }
  .journey-sticky { position: relative; top: auto; height: auto; display: grid; gap: 1rem; border-radius: 28px; }
  .journey-meter { grid-template-columns: 1fr; justify-items: start; }
  .journey-meter-line,
  .journey-meter-fill { display: none; }
  .journey-meter-step { justify-items: start; text-align: left; }
  .journey-lane { display: grid; grid-auto-flow: row; grid-auto-columns: unset; gap: 1rem; height: auto; min-height: 0; }
  .journey-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    padding: 1.5rem;
    transform: none !important;
    opacity: 1 !important;
  }
  .journey-card strong,
  .journey-card p,
  .journey-label,
  .journey-card::after,
  .journey-card::before { transform: none; }
  .quote-compact-section,
  .quote-compact-actions,
  .quote-parties-form { grid-template-columns: 1fr; }
  .ai-generator-actions { flex-direction: column; align-items: flex-start; }
  .quote-parties,
  .quote-sheet-bottom { grid-template-columns: 1fr; }
  .discover-page { padding-left: 1rem; padding-right: 1rem; }
  .discover-hero-grid,
  .discover-steps,
  .discover-features,
  .discover-brief-grid,
  .discover-audience,
  .discover-compare-head,
  .discover-compare-row { grid-template-columns: 1fr; }
  .discover-hero { padding-top: 3rem; }
  .discover-3d-hero { min-height: auto; }
  .discover-3d-stage { display: none; }
  .discover-insight-panel {
    margin-top: 0;
    transform: none;
    animation: none;
    padding: 1.3rem;
  }
  .discover-hero-copy h1,
  .discover-section-head h2,
  .discover-final-cta h2 { font-size: 42px; }
  .discover-hero-copy p { font-size: 18px; }
  .discover-compare-row strong { text-align: left; }
  .discover-final-cta { padding: 2rem 1.25rem; }
  .auth-panel-premium { padding: 1.4rem; }
  .auth-panel-premium .auth-form { min-height: 0; }
  .auth-panel-premium input,
  .auth-panel-premium .btn-lg { min-height: 58px; }
  .register-plan-grid { grid-template-columns: 1fr; }
  body.auth-body {
    height: auto;
    overflow: auto;
    display: block;
  }
  .auth-layout {
    height: auto;
  }
  .auth-aside-premium {
    min-height: auto;
    padding: 1.4rem;
  }
  .auth-3d-scene,
  .auth-thinking-scene {
    display: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  html,
  body,
  .quote-sheet,
  .quote-sheet *,
  .quote-sheet::before,
  .quote-sheet::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  nav,
  .page-header,
  .quote-editor,
  .modal-overlay,
  .notif {
    display: none !important;
  }

  body {
    background: white;
  }

  .page,
  .container {
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .quote-workspace {
    display: block;
  }

  .print-sheet-hidden {
    display: block;
  }

  .quote-sheet {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 12px;
  }

  .quote-sheet-header {
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .quote-sheet-logo {
    width: 104px;
  }

  .quote-brand h2 {
    font-size: 22px;
  }

  .quote-meta {
    min-width: 210px;
    gap: 0.45rem;
  }

  .quote-meta span,
  .quote-summary span,
  .quote-sheet-table th,
  .quote-label {
    font-size: 10px;
  }

  .quote-meta strong,
  .quote-summary strong,
  .quote-sheet-table td,
  .quote-note-block p,
  .quote-party-card {
    font-size: 12px;
  }

  .quote-party-card {
    min-height: 0;
    padding: 0.75rem 0.85rem;
  }

  .quote-sheet-table th {
    padding-bottom: 0.55rem;
  }

  .quote-sheet-table td {
    padding: 0.55rem 0;
  }

  .quote-note-block {
    padding: 0.75rem 0.85rem;
  }

  .quote-summary {
    padding: 0.9rem;
  }

  .quote-summary-grand strong {
    font-size: 22px;
  }

  .quote-sheet-table tr,
  .quote-note-block,
  .quote-sheet-bottom,
  .quote-parties,
  .quote-sheet-header {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quote-sheet-variant-band .quote-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Studio Canva-like ===== */
.quote-studio-sidebar-canva {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 30px;
  border: 1px solid #e4e7f5;
  box-shadow: 0 28px 60px rgba(15,15,19,0.08);
  overflow: visible;
  height: calc(100vh - 140px);
  transition: grid-template-columns 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.quote-studio-sidebar-canva.is-collapsed {
  grid-template-columns: 92px 0px;
  width: 92px;
}

.quote-studio-sidebar-canva.is-collapsed .quote-studio-panel-canva {
  opacity: 0;
  pointer-events: none;
  padding-left: 0;
  padding-right: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  transform: translateX(-12px);
}

body.studio-sidebar-collapsed .quote-studio-page-canvas {
  grid-template-columns: 92px minmax(0, 1fr);
  transition: grid-template-columns 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.quote-studio-page-canvas {
  transition: grid-template-columns 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.quote-studio-collapse-btn {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 44px;
  border-radius: 0 12px 12px 0;
  border: 1px solid #e4e7f5;
  border-left: none;
  background: #ffffff;
  color: #2b3bf0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 4px 0 10px rgba(15,15,19,0.06);
  z-index: 10;
  transition: transform 0.25s ease;
}

.quote-studio-collapse-btn svg {
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.quote-studio-collapse-btn.is-collapsed svg {
  transform: rotate(180deg);
}

.quote-studio-collapse-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
}

.quote-studio-page-canvas {
  grid-template-columns: 520px minmax(0, 1fr);
}

.quote-studio-rail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem 0.4rem;
  background: linear-gradient(180deg, #0f172a, #1e1f3a);
  overflow-y: auto;
}

.quote-studio-rail-btn {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.85rem 0.4rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.68);
  border-radius: 14px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.quote-studio-rail-btn:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.quote-studio-rail-btn.is-active {
  background: linear-gradient(135deg, #7c3aed, #2b3bf0);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(43,59,240,0.35);
}

.quote-studio-rail-btn svg {
  width: 22px;
  height: 22px;
}

.quote-studio-panel-canva {
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 1.4rem 1.25rem 1.6rem;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 140px);
  min-width: 0;
  transition: opacity 0.25s ease, padding 0.35s cubic-bezier(0.65, 0, 0.35, 1), transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.quote-studio-panel-head {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef0fa;
}

.quote-studio-panel-head h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111318;
}

.quote-studio-panel-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #66708c;
}

.quote-studio-search-wrap {
  position: relative;
  margin-bottom: 0.85rem;
}

.quote-studio-search-wrap svg {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: #a0a7c4;
}

.quote-studio-search {
  width: 100%;
  height: 44px;
  padding: 0 0.95rem 0 2.6rem;
  border-radius: 14px;
  border: 1px solid #e3e6f3;
  background: #f7f8fd;
  font-size: 14px;
  font-weight: 600;
  color: #111318;
  outline: none;
}

.quote-studio-search:focus {
  border-color: #2b3bf0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(43,59,240,0.12);
}

.quote-studio-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.quote-studio-category-btn {
  border: 1px solid #e3e6f3;
  background: #ffffff;
  color: #4b537a;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quote-studio-category-btn:hover {
  border-color: #c7d0f0;
  color: #2b3bf0;
}

.quote-studio-category-btn.is-active {
  background: #111318;
  color: #ffffff;
  border-color: #111318;
}

.quote-studio-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.quote-studio-category-grid .quote-studio-element-card {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  gap: 0;
  background: #ffffff;
  border: 1px solid #ecefff;
  min-height: 112px;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.quote-studio-category-grid .quote-studio-element-card:hover {
  transform: translateY(-2px);
  border-color: #c7d0f0;
  box-shadow: 0 18px 28px rgba(15,23,42,0.08);
}

.quote-studio-category-grid .quote-studio-element-preview {
  height: 112px;
  border-radius: 0;
  border: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(124,58,237,0.08), transparent 60%),
    linear-gradient(180deg, #f9fafe, #ffffff);
  padding: 0.5rem;
}

.quote-studio-category-grid .quote-studio-element-card strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.6rem;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17,19,24,0), rgba(17,19,24,0.85));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.quote-studio-category-grid .quote-studio-element-card:hover strong {
  opacity: 1;
}

.quote-studio-element-emoji {
  font-size: 44px;
  line-height: 1;
}

/* Additional shape previews */
.quote-studio-element-preview-shape.shape-rounded {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #06b6d4, #2b3bf0);
}

.quote-studio-element-preview-shape.shape-oval {
  width: 70px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.quote-studio-element-preview-shape.shape-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid #2b3bf0;
  background: transparent;
}

.quote-studio-element-preview-shape.shape-diamond {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ec4899, #7c3aed);
  transform: rotate(45deg);
}

.quote-studio-element-preview-shape.shape-pentagon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.quote-studio-element-preview-shape.shape-hexagon {
  width: 58px;
  height: 52px;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.quote-studio-element-preview-shape.shape-heart {
  width: 52px;
  height: 48px;
  background: #ef4444;
  clip-path: path('M26 45 C26 45 4 32 4 17 C4 8 10 4 16 4 C20 4 24 8 26 12 C28 8 32 4 36 4 C42 4 48 8 48 17 C48 32 26 45 26 45 Z');
}

.quote-studio-element-preview-shape.shape-blob {
  width: 60px;
  height: 54px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 64% 36% 46% 54% / 44% 66% 34% 56%;
}

.quote-studio-element-preview-shape.shape-cloud {
  width: 64px;
  height: 40px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px #2b3bf0,
    -10px -14px 0 -4px #ffffff,
    -10px -14px 0 -2px #2b3bf0,
    14px -12px 0 -4px #ffffff,
    14px -12px 0 -2px #2b3bf0;
}

.quote-studio-element-preview-shape.shape-line-thick {
  width: 62px;
  height: 14px;
  border-radius: 999px;
  background: #111318;
}

.quote-studio-element-preview-shape.shape-line-dashed {
  width: 62px;
  height: 8px;
  background: repeating-linear-gradient(90deg, #2b3bf0 0, #2b3bf0 10px, transparent 10px, transparent 18px);
  border-radius: 4px;
}

.quote-studio-element-preview-shape.shape-arrow-double::before,
.quote-studio-element-preview-shape.shape-arrow-double::after {
  content: "";
  position: absolute;
  background: #2b3bf0;
  border-radius: 999px;
}

.quote-studio-element-preview-shape.shape-arrow-double::before {
  left: 8px;
  right: 8px;
  top: 24px;
  height: 8px;
}

.quote-studio-element-preview-shape.shape-arrow-double::after {
  width: 20px;
  height: 8px;
  left: 0;
  top: 16px;
  transform: rotate(-45deg);
  transform-origin: left center;
  box-shadow: 36px 16px 0 0 #2b3bf0;
}

.quote-studio-element-preview-shape.shape-curve {
  width: 60px;
  height: 40px;
  background: transparent;
  border-top: 4px solid #2b3bf0;
  border-right: 4px solid #2b3bf0;
  border-radius: 0 60px 0 0;
  transform: rotate(-5deg);
}

.quote-studio-element-preview-shape.shape-tag {
  width: 58px;
  height: 36px;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  clip-path: polygon(0 50%, 15% 0, 100% 0, 100% 100%, 15% 100%);
  position: relative;
}

.quote-studio-element-preview-shape.shape-bubble {
  width: 62px;
  height: 46px;
  border-radius: 18px 18px 18px 4px;
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
  position: relative;
}

.quote-studio-element-preview-shape.shape-bubble::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #7c3aed;
  border-bottom-left-radius: 14px;
  transform: skewX(-18deg);
}

.quote-studio-element-preview-shape.shape-ribbon {
  width: 64px;
  height: 30px;
  background: linear-gradient(90deg, #111318, #2b3bf0);
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%, 12% 50%);
}

.quote-studio-element-preview-shape.shape-badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef3c7, #eab308);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #eab308;
}

.quote-studio-element-preview-shape.shape-bookmark {
  width: 36px;
  height: 54px;
  background: linear-gradient(135deg, #e11d48, #f97316);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.quote-studio-element-preview-shape.shape-quote::before {
  content: "“";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 60px;
  line-height: 1;
  color: #2b3bf0;
  font-family: Georgia, serif;
}

.quote-studio-element-preview-shape.frame-square,
.quote-studio-element-preview-shape.frame-portrait,
.quote-studio-element-preview-shape.frame-landscape,
.quote-studio-element-preview-shape.frame-circle,
.quote-studio-element-preview-shape.frame-blob,
.quote-studio-element-preview-shape.frame-polaroid {
  width: 56px;
  height: 56px;
  background:
    linear-gradient(135deg, rgba(14,165,233,0.35), rgba(124,58,237,0.35)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.5) 0 6px, transparent 6px 12px);
  border: 2px solid #2b3bf0;
  border-radius: 12px;
}

.quote-studio-element-preview-shape.frame-circle {
  border-radius: 999px;
}

.quote-studio-element-preview-shape.frame-portrait {
  width: 48px;
  height: 62px;
}

.quote-studio-element-preview-shape.frame-landscape {
  width: 64px;
  height: 44px;
}

.quote-studio-element-preview-shape.frame-blob {
  border-radius: 64% 36% 46% 54% / 44% 66% 34% 56%;
}

.quote-studio-element-preview-shape.frame-polaroid {
  border: 6px solid #ffffff;
  box-shadow: 0 0 0 1px #c7d0f0, 0 6px 14px rgba(15,15,19,0.14);
}

/* ===== Text presets ===== */
.quote-studio-text-add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
  border: 1px dashed #c7d0f0;
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
  border-radius: 16px;
  cursor: pointer;
  color: #111318;
  font-size: 14px;
  font-weight: 800;
}

.quote-studio-text-add-plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.quote-studio-text-presets {
  display: grid;
  gap: 0.6rem;
}

.quote-studio-text-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ecefff;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  min-height: 70px;
}

.quote-studio-text-card:hover {
  border-color: #c7d0f0;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15,15,19,0.06);
}

.quote-studio-text-card-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111318;
  word-break: break-word;
}

.quote-studio-text-card-plus {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f0f2ff;
  color: #2b3bf0;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* ===== Upload area ===== */
.quote-studio-upload-drop {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  border: 2px dashed #c7d0f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f8ff, #ffffff);
  cursor: pointer;
  text-align: center;
  color: #111318;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quote-studio-upload-drop:hover {
  border-color: #2b3bf0;
  background: linear-gradient(180deg, #eef1ff, #ffffff);
}

.quote-studio-upload-drop svg {
  color: #2b3bf0;
}

.quote-studio-upload-drop strong {
  font-size: 15px;
  font-weight: 800;
}

.quote-studio-upload-drop span {
  font-size: 12px;
  color: #66708c;
}

.quote-studio-upload-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1rem;
}

.quote-studio-upload-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #e3e6f3;
  background: #ffffff;
  color: #111318;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.quote-studio-upload-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.quote-studio-upload-chip .dot.dot-logo { background: #2b3bf0; }
.quote-studio-upload-chip .dot.dot-sign { background: #f59e0b; }
.quote-studio-upload-chip .dot.dot-draw { background: #10b981; }

.quote-studio-import-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #eef0fa;
}

.quote-studio-import-tabs button {
  border: none;
  background: transparent;
  padding: 0.65rem 0.3rem;
  font-size: 13px;
  font-weight: 800;
  color: #7b849f;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.quote-studio-import-tabs button.is-active {
  color: #2b3bf0;
  border-bottom-color: #2b3bf0;
}

.quote-studio-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.quote-studio-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1ff;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.quote-studio-gallery-item:hover {
  transform: translateY(-2px);
  border-color: #2b3bf0;
  box-shadow: 0 14px 28px rgba(15,15,19,0.1);
}

.quote-studio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-studio-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(180deg, transparent 40%, rgba(15,15,19,0.75));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.quote-studio-gallery-item:hover .quote-studio-gallery-overlay {
  opacity: 1;
}

.quote-studio-gallery-overlay span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.quote-studio-gallery-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(239,68,68,0.85);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.quote-studio-gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2rem 1rem;
  border: 2px dashed #e3e6f3;
  border-radius: 18px;
  background: #f7f8fd;
  color: #66708c;
  text-align: center;
}

.quote-studio-gallery-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #eef1ff;
  color: #2b3bf0;
  display: grid;
  place-items: center;
}

.quote-studio-gallery-empty strong {
  font-size: 14px;
  color: #111318;
}

.quote-studio-gallery-empty span {
  font-size: 12px;
}

/* ===== Tools panel ===== */
.quote-studio-tools-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2rem 1rem;
  border: 1px dashed #e3e6f3;
  border-radius: 18px;
  background: #f7f8fd;
  text-align: center;
  color: #66708c;
}

.quote-studio-tools-emptyicon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eef1ff;
  color: #2b3bf0;
  display: grid;
  place-items: center;
}

.quote-studio-tools-empty strong {
  font-size: 15px;
  color: #111318;
}

.quote-studio-tools-empty span {
  font-size: 13px;
  line-height: 1.55;
}

.quote-studio-tools-controls {
  display: grid;
  gap: 1.1rem;
}

.quote-studio-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef1ff, #fdf4ff);
}

.quote-studio-tools-head strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #111318;
}

.quote-studio-tools-quick {
  display: flex;
  gap: 0.3rem;
}

.quote-studio-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #dfe3f5;
  background: #ffffff;
  color: #111318;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.12s ease;
}

.quote-studio-icon-btn:hover {
  border-color: #2b3bf0;
  color: #2b3bf0;
  background: #f4f6ff;
}

.quote-studio-tool-row {
  display: grid;
  gap: 0.45rem;
}

.quote-studio-tool-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7391;
}

.quote-studio-tool-row output {
  font-size: 12px;
  font-weight: 800;
  color: #111318;
  background: #f0f2ff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.quote-studio-tool-row input[type="range"] {
  width: 100%;
  accent-color: #2b3bf0;
}

.quote-studio-tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quote-studio-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quote-studio-swatch {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #dfe3f5;
  cursor: pointer;
  padding: 0;
}

.quote-studio-swatch.is-active {
  box-shadow: 0 0 0 2px #2b3bf0;
  transform: scale(1.1);
}

.quote-studio-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.quote-studio-filter-chip {
  display: grid;
  gap: 0.3rem;
  padding: 0.45rem;
  border: 1px solid #e3e6f3;
  background: #ffffff;
  border-radius: 14px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: #4b537a;
  transition: all 0.12s ease;
}

.quote-studio-filter-chip:hover {
  border-color: #c7d0f0;
}

.quote-studio-filter-chip.is-active {
  border-color: #2b3bf0;
  color: #2b3bf0;
  box-shadow: 0 0 0 2px rgba(43,59,240,0.15);
}

.quote-studio-filter-chip-thumb {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #eef1ff;
}

/* ===== Layers ===== */
.quote-studio-layers-list {
  display: grid;
  gap: 0.45rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.quote-studio-layer-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ecefff;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.12s ease;
}

.quote-studio-layer-item:hover {
  border-color: #c7d0f0;
  background: #f7f8fd;
}

.quote-studio-layer-item.is-selected {
  border-color: #2b3bf0;
  background: #eef1ff;
}

.quote-studio-layer-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef1ff;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #2b3bf0;
}

.quote-studio-layer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-studio-layer-emoji {
  font-size: 22px;
}

.quote-studio-layer-text {
  font-size: 15px;
  font-weight: 800;
  color: #2b3bf0;
}

.quote-studio-layer-label {
  font-size: 13px;
  font-weight: 700;
  color: #111318;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-studio-layer-actions {
  display: flex;
  gap: 0.2rem;
}

.quote-studio-layer-actions .quote-studio-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

/* ===== Brand ===== */
.quote-studio-brand-card {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid #ecefff;
  background: linear-gradient(135deg, #ffffff, #f6f8ff);
  margin-bottom: 0.85rem;
}

.quote-studio-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.quote-studio-brand-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7391;
}

.quote-studio-brand-color {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem 0.45rem 0.5rem;
  border: 1px solid #e3e6f3;
  background: #ffffff;
  border-radius: 999px;
  cursor: pointer;
}

.quote-studio-brand-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #2b3bf0;
}

.quote-studio-brand-color strong {
  font-size: 13px;
  font-weight: 800;
  color: #111318;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quote-studio-brand-palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.quote-studio-brand-palette .quote-studio-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
}

.quote-studio-brand-btn {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  border: 1px solid #ecefff;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.quote-studio-brand-btn span {
  font-size: 14px;
  font-weight: 800;
  color: #111318;
}

.quote-studio-brand-btn small {
  font-size: 12px;
  color: #66708c;
}

.quote-studio-brand-btn:hover {
  border-color: #c7d0f0;
  background: #f7f8fd;
}

.quote-studio-brand-btn-danger span {
  color: #b91c1c;
}

/* ===== Free elements new types ===== */
.quote-studio-free-shape.shape-rounded {
  border-radius: 32px;
  background: linear-gradient(135deg, var(--element-accent, var(--studio-accent, #2b3bf0)), rgba(255,255,255,0.25));
}

.quote-studio-free-shape.shape-oval {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--element-accent, var(--studio-accent, #2b3bf0)), rgba(255,255,255,0.35));
}

.quote-studio-free-shape.shape-triangle {
  background: var(--element-accent, var(--studio-accent, #2b3bf0));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.quote-studio-free-shape.shape-diamond {
  background: var(--element-accent, var(--studio-accent, #2b3bf0));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.quote-studio-free-shape.shape-pentagon {
  background: var(--element-accent, var(--studio-accent, #2b3bf0));
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.quote-studio-free-shape.shape-hexagon {
  background: var(--element-accent, var(--studio-accent, #2b3bf0));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.quote-studio-free-shape.shape-heart {
  background: var(--element-accent, #ef4444);
  clip-path: path('M50 90 C50 90 5 60 5 30 C5 14 16 6 28 6 C38 6 45 14 50 22 C55 14 62 6 72 6 C84 6 95 14 95 30 C95 60 50 90 50 90 Z');
}

.quote-studio-free-shape.shape-blob {
  background: linear-gradient(135deg, var(--element-accent, var(--studio-accent, #2b3bf0)), rgba(236,72,153,0.8));
  border-radius: 64% 36% 46% 54% / 44% 66% 34% 56%;
}

.quote-studio-free-shape.shape-cloud {
  background: var(--element-accent, #ffffff);
  border-radius: 999px;
  border: 3px solid var(--studio-accent, #2b3bf0);
  position: relative;
}

.quote-studio-free-shape.shape-cloud::before,
.quote-studio-free-shape.shape-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border: inherit;
  border-radius: inherit;
}

.quote-studio-free-shape.shape-cloud::before {
  width: 55%;
  height: 100%;
  top: -30%;
  left: 8%;
}

.quote-studio-free-shape.shape-cloud::after {
  width: 45%;
  height: 90%;
  top: -20%;
  right: 10%;
}

.quote-studio-free-shape.shape-line-thick {
  height: 18px;
  margin-top: calc(50% - 9px);
  border-radius: 999px;
  background: var(--element-accent, #111318);
}

.quote-studio-free-shape.shape-line-dashed {
  height: 10px;
  margin-top: calc(50% - 5px);
  background: repeating-linear-gradient(90deg, var(--element-accent, var(--studio-accent, #2b3bf0)) 0, var(--element-accent, var(--studio-accent, #2b3bf0)) 14px, transparent 14px, transparent 24px);
}

.quote-studio-free-shape.shape-arrow-double::before,
.quote-studio-free-shape.shape-arrow-double::after {
  content: "";
  position: absolute;
  background: var(--element-accent, var(--studio-accent, #2b3bf0));
  border-radius: 999px;
}

.quote-studio-free-shape.shape-arrow-double::before {
  left: 10%;
  right: 10%;
  top: calc(50% - 6px);
  height: 12px;
}

.quote-studio-free-shape.shape-arrow-double::after {
  width: 25%;
  height: 12px;
  left: 6%;
  top: 30%;
  transform: rotate(-45deg);
  transform-origin: left center;
  box-shadow: 44% 32% 0 0 var(--element-accent, var(--studio-accent, #2b3bf0));
}

.quote-studio-free-shape.shape-curve {
  background: transparent;
  border-top: 6px solid var(--element-accent, var(--studio-accent, #2b3bf0));
  border-right: 6px solid var(--element-accent, var(--studio-accent, #2b3bf0));
  border-radius: 0 100% 0 0;
}

.quote-studio-free-shape.shape-tag {
  background: linear-gradient(135deg, var(--element-accent, #f97316), rgba(244,63,94,0.85));
  clip-path: polygon(0 50%, 12% 0, 100% 0, 100% 100%, 12% 100%);
}

.quote-studio-free-shape.shape-bubble {
  border-radius: 24px 24px 24px 6px;
  background: linear-gradient(135deg, var(--element-accent, var(--studio-accent, #2b3bf0)), rgba(124,58,237,0.85));
}

.quote-studio-free-shape.shape-ribbon {
  background: linear-gradient(90deg, var(--element-accent, var(--studio-accent, #2b3bf0)), rgba(124,58,237,0.9));
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%, 12% 50%);
}

.quote-studio-free-shape.shape-badge {
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff7bf, var(--element-accent, #eab308));
  box-shadow: 0 0 0 6px #ffffff, 0 0 0 10px var(--element-accent, #eab308);
}

.quote-studio-free-shape.shape-bookmark {
  background: linear-gradient(135deg, var(--element-accent, #e11d48), #f97316);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.quote-studio-free-shape.shape-quote {
  background: transparent;
}

.quote-studio-free-shape.shape-quote::before {
  content: "“";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 220px;
  line-height: 0.7;
  color: var(--element-accent, var(--studio-accent, #2b3bf0));
  font-family: Georgia, serif;
}

.quote-studio-free-sticker {
  display: grid;
  place-items: center;
}

.quote-studio-sticker-emoji {
  font-size: min(80cqmin, 120px);
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,0.2));
}

.quote-studio-free-frame {
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14,165,233,0.25), rgba(124,58,237,0.25)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.6) 0 6px, transparent 6px 12px);
  border: 2px solid var(--element-accent, var(--studio-accent, #2b3bf0));
  display: grid;
  place-items: center;
}

.quote-studio-free-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-studio-free-frame.frame-circle {
  border-radius: 999px;
}

.quote-studio-free-frame.frame-blob {
  border-radius: 64% 36% 46% 54% / 44% 66% 34% 56%;
}

.quote-studio-free-frame.frame-polaroid {
  border: 12px solid #ffffff;
  box-shadow: 0 14px 30px rgba(15,15,19,0.18);
}

.quote-studio-frame-placeholder {
  font-size: 12px;
  font-weight: 800;
  color: #2b3bf0;
  text-align: center;
  padding: 0.5rem;
}

.quote-studio-empty-state {
  grid-column: 1 / -1;
  padding: 1.1rem 1rem;
  border: 1px dashed #dfe3f5;
  border-radius: 16px;
  text-align: center;
  color: #66708c;
  font-size: 13px;
  background: #f7f8fd;
}

.quote-studio-paper.is-drop-target {
  outline: 3px dashed #2b3bf0;
  outline-offset: -14px;
  background-color: rgba(43,59,240,0.05);
}

.quote-studio-has-handle {
  position: relative;
}

.quote-studio-has-handle > .quote-studio-block-handle {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2b3bf0, #7c3aed);
  color: #ffffff;
  cursor: grab;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  box-shadow: 0 10px 20px rgba(43,59,240,0.3);
  touch-action: none;
}

.quote-studio-has-handle:hover > .quote-studio-block-handle,
.quote-studio-has-handle.is-dragging > .quote-studio-block-handle,
.quote-studio-has-handle:focus-within > .quote-studio-block-handle {
  opacity: 1;
  transform: scale(1);
}

.quote-studio-has-handle > .quote-studio-block-handle:active {
  cursor: grabbing;
}

.quote-studio-has-handle:hover {
  outline: 2px dashed rgba(43,59,240,0.4);
  outline-offset: 4px;
  border-radius: 8px;
}

.quote-studio-has-handle.is-dragging {
  outline: 2px solid #2b3bf0;
  outline-offset: 4px;
}

.quote-studio-doc-title,
.quote-studio-editable,
#studio-items-content,
#studio-note-text,
#studio-total-text,
#studio-total-ht,
#studio-total-tva,
#studio-emitter-text,
#studio-client-text,
#studio-quote-number,
#studio-quote-date,
#studio-doc-meta {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.quote-studio-doc-title {
  max-width: 520px;
}

.quote-brand {
  min-width: 0;
  flex: 1;
}

.quote-sheet-header {
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .quote-studio-page-canvas {
    grid-template-columns: 460px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .quote-studio-page-canvas {
    grid-template-columns: 1fr;
  }

  .quote-studio-sidebar-canva {
    position: relative;
    top: 0;
    height: auto;
  }

  .quote-studio-panel-canva {
    height: auto;
  }

  .quote-studio-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Studio (styles-devis) — Refonte ─────────────────────────────── */

.studio-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.studio-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.studio-hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #0f1117;
  line-height: 1.05;
}

.studio-hero p {
  margin: 0;
  font-size: 15px;
  color: #5f6684;
  max-width: 560px;
  line-height: 1.55;
}

.studio-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(43, 59, 240, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.studio-section {
  background: #ffffff;
  border: 1px solid #e4e7f5;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 15, 19, 0.05);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.studio-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.studio-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f1117;
}

.studio-section-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a90aa;
}

.studio-section-foot {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.studio-grid-saves {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.studio-card {
  background: #ffffff;
  border: 1px solid #e4e7f5;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.studio-card:hover,
.studio-card.is-selected {
  transform: translateY(-6px);
  border-color: rgba(43, 59, 240, 0.32);
  box-shadow: 0 26px 60px rgba(43, 59, 240, 0.14);
}

.studio-card.is-selected {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.studio-preview {
  position: relative;
  aspect-ratio: 794 / 1122;
  padding: 1.4rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}

.studio-preview-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent);
}

.studio-preview-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.6rem;
  align-items: start;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(15, 15, 19, 0.08);
}

.studio-preview-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed rgba(15, 15, 19, 0.22);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #8a90aa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}

.studio-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-preview-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.studio-preview-eyebrow {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.studio-preview-title-bar {
  height: 7px;
  border-radius: 2px;
  background: rgba(15, 15, 19, 0.55);
  width: 90%;
}

.studio-preview-title-bar.short {
  width: 55%;
}

.studio-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}

.studio-preview-meta span {
  display: block;
  width: 38px;
  height: 5px;
  border-radius: 2px;
  background: rgba(15, 15, 19, 0.18);
}

.studio-preview-meta span:first-child {
  width: 26px;
  background: var(--accent);
  opacity: 0.7;
}

.studio-preview-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.studio-preview-party {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.studio-preview-party-label {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.studio-preview-party-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(15, 15, 19, 0.22);
  width: 90%;
}

.studio-preview-party-line.short {
  width: 60%;
}

.studio-preview-table {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.4rem;
  border-top: 2px solid var(--accent);
}

.studio-preview-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
}

.studio-preview-row span {
  height: 4px;
  border-radius: 2px;
  background: rgba(15, 15, 19, 0.2);
}

.studio-preview-row.studio-preview-row-head span {
  background: var(--accent);
  opacity: 0.55;
  height: 5px;
}

.studio-preview-bottom {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 0.55rem;
  margin-top: auto;
  align-items: stretch;
}

.studio-preview-note {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.studio-preview-total {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #111827));
  color: #ffffff;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 56px;
}

.studio-preview-total-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.studio-preview-total-amount {
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  width: 80%;
  align-self: flex-end;
}

/* Variantes par template */

.studio-preview-bold {
  background-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

.studio-preview-bold .studio-preview-title-bar,
.studio-preview-bold .studio-preview-party-line,
.studio-preview-bold .studio-preview-row span {
  background: rgba(255, 255, 255, 0.7);
}

.studio-preview-bold .studio-preview-eyebrow,
.studio-preview-bold .studio-preview-party-label {
  color: rgba(255, 255, 255, 0.8);
}

.studio-preview-bold .studio-preview-party,
.studio-preview-bold .studio-preview-note {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.studio-preview-band .studio-preview-stripe {
  height: 12px;
}

.studio-preview-editorial .studio-preview-title-bar {
  height: 9px;
}

.studio-preview-split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  background: var(--accent);
  opacity: 0.12;
  z-index: 0;
}

.studio-preview-split > * {
  position: relative;
  z-index: 1;
}

/* Studio card body */

.studio-card-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  background: #ffffff;
}

.studio-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.studio-card-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a90aa;
}

.studio-card-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 4px 10px rgba(15, 15, 19, 0.18);
}

.studio-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1117;
}

.studio-card-action {
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  transition: gap 0.25s ease;
}

.studio-card:hover .studio-card-action {
  gap: 0.8rem;
}

.studio-card-date {
  margin: 0;
  font-size: 12px;
  color: #8a90aa;
  font-weight: 600;
}

.studio-empty {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #fafbff, #f4f6ff);
  border: 1px dashed rgba(43, 59, 240, 0.2);
  border-radius: 18px;
  padding: 2.4rem 1.5rem;
  text-align: center;
  font-size: 14px;
  color: #6f7594;
  line-height: 1.6;
}

.logo-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid #e4e7f5;
  border-radius: 22px;
  background: linear-gradient(180deg, #fafbff, #ffffff);
}

.logo-card-preview {
  width: 220px;
  height: 160px;
  border: 1px dashed rgba(43, 59, 240, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}

.logo-card-preview img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.logo-card-placeholder {
  font-size: 13px;
  font-weight: 700;
  color: #8a90aa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.logo-card-body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1117;
}

.logo-card-body p {
  margin: 0;
  font-size: 14px;
  color: #5f6684;
  line-height: 1.55;
}

.logo-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.logo-card-locked {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: rgba(43, 59, 240, 0.06);
  border: 1px solid rgba(43, 59, 240, 0.18);
  border-radius: 14px;
  color: var(--blue);
  font-size: 13px;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

@media (max-width: 700px) {
  .logo-card {
    grid-template-columns: 1fr;
  }
  .logo-card-preview {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .studio-grid,
  .studio-grid-saves {
    grid-template-columns: 1fr;
  }
  .studio-hero h1 {
    font-size: 28px;
  }
}

/* ===================================================================
   FOR AI — LANDING (colorful, glassmorphism, Codex-style mockup)
   =================================================================== */

.forai-landing-body {
  background: #f5f3ff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  color: #0f1117;
}

.forai-landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, #eef0ff 0%, #f8f0ff 40%, #fff0f8 100%);
}

.forai-landing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.forai-landing-blob-1 {
  top: -10%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #6172f3, transparent 70%);
}

.forai-landing-blob-2 {
  top: 12%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
}

.forai-landing-blob-3 {
  bottom: -12%;
  left: 30%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

.forai-landing-blob-4 {
  display: none;
}

@keyframes forAiBlobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.15); }
  66% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes forAiBlobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 80px) scale(1.18); }
}

@keyframes forAiBlobC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -100px) scale(1.1); }
}

@keyframes forAiBlobD {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.2); }
}

.forai-landing-grain {
  display: none;
}

/* ----------- Nav (compact, bigger logo, fewer links) ----------- */
.forai-landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
  height: 84px;
}

.forai-landing-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(15, 15, 19, 0.06);
}

.forai-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #0f1117;
}

.forai-landing-brand-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.forai-landing-brand-ai {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #b8bdcc;
  letter-spacing: 0.06em;
  margin-left: 4px;
  align-self: flex-end;
  margin-bottom: 12px;
}

.forai-landing-nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.forai-landing-navlink {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #5f6684;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.forai-landing-navlink:hover {
  background: rgba(15, 15, 19, 0.04);
  color: #0f1117;
}

.forai-landing-navcta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: #0f1117;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forai-landing-navcta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 15, 19, 0.18);
}

/* ----------- Main / Hero ----------- */
.forai-landing-main {
  position: relative;
  z-index: 2;
}

.forai-landing-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.forai-landing-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: #0f1117;
  text-align: center;
}

.forai-landing-q {
  display: inline-block;
  margin-left: 0.05em;
}

.forai-landing-rotating {
  display: inline-block;
  position: relative;
  width: 0;
  height: 1.15em;
  vertical-align: text-bottom;
  text-align: left;
  overflow: hidden;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.forai-landing-rotating-word {
  position: absolute;
  left: 0;
  top: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  background: linear-gradient(135deg, #6172f3, #a855f7 50%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  white-space: nowrap;
  transform: translateY(-100%);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.forai-landing-rotating-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.forai-landing-rotating-word.is-active ~ .forai-landing-rotating-word {
  transform: translateY(100%);
}

.forai-landing-sub {
  font-size: 16px;
  line-height: 1.55;
  color: #5f6684;
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

/* ----------- Big TRANSPARENT input bar with blur on focus ----------- */
.forai-landing-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.1rem 1.3rem 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 40px rgba(168, 85, 247, 0.08);
  transition: backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease,
              background 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s ease;
  text-align: left;
}

.forai-landing-search.is-focused {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 28px 70px rgba(168, 85, 247, 0.22),
    0 6px 20px rgba(236, 72, 153, 0.12);
  transform: translateY(-2px);
}

.forai-landing-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 17px;
  line-height: 1.55;
  color: #0f1117;
  padding: 0.2rem 0;
  min-height: 92px;
  font-family: inherit;
}

.forai-landing-input::placeholder {
  color: rgba(95, 102, 132, 0.85);
}

.forai-landing-search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.forai-landing-search-hint {
  font-size: 12px;
  color: #6f7594;
}

.forai-landing-search-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 15, 19, 0.08);
  font-family: -apple-system, "Segoe UI", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #5f6684;
  margin: 0 1px;
}

.forai-landing-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forai-landing-send:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 10px 22px rgba(168, 85, 247, 0.5);
}

/* ===================================================================
   CODEX-STYLE GLASSMORPHISM MOCKUP
   =================================================================== */

.forai-codex-stage {
  position: relative;
  max-width: 1280px;
  margin: 5rem auto 6rem;
  padding: 0 1.5rem;
  background: transparent;
}

.forai-codex-stage-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.6rem;
}

.forai-codex-stage-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  color: #0f1117;
}

.forai-codex-stage-head p {
  font-size: 15px;
  color: #5f6684;
  margin: 0;
  line-height: 1.55;
}

.forai-codex-window {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(15, 15, 19, 0.12),
    0 8px 24px rgba(168, 85, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.forai-codex-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
}

.forai-codex-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.forai-codex-dot.dot-red { background: #ff5f57; }
.forai-codex-dot.dot-yellow { background: #febc2e; }
.forai-codex-dot.dot-green { background: #28c840; }

.forai-codex-body {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  height: 540px;
}

/* sidebar */
.forai-codex-side {
  padding: 0.85rem 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(15, 15, 19, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  color: #0f1117;
}

.forai-codex-side-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2e3247;
  cursor: pointer;
  transition: background 0.2s ease;
}

.forai-codex-side-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.forai-codex-side-ic {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: #5f6684;
}

.forai-codex-side-section {
  padding: 0.85rem 0.6rem 0.3rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a90aa;
}

.forai-codex-side-folder {
  padding: 0.3rem 0.6rem;
  font-size: 12px;
  font-weight: 700;
  color: #4a5070;
}

.forai-codex-side-thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem 0.42rem 1.4rem;
  border-radius: 7px;
  font-size: 12.5px;
  color: #4a5070;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.forai-codex-side-thread span {
  font-size: 11px;
  color: #9aa0b6;
}

.forai-codex-side-thread:hover {
  background: rgba(255, 255, 255, 0.55);
}

.forai-codex-side-thread.is-active {
  background: linear-gradient(90deg, rgba(97, 114, 243, 0.18), rgba(236, 72, 153, 0.12));
  color: #0f1117;
  font-weight: 600;
}

/* main thread */
.forai-codex-main {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(15, 15, 19, 0.06);
}

.forai-codex-main-head {
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f1117;
}

.forai-codex-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: #5f6684;
  letter-spacing: 0.02em;
  border: 1px solid rgba(15, 15, 19, 0.06);
}

.forai-codex-thread {
  flex: 1;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  color: #0f1117;
  font-size: 13px;
  line-height: 1.55;
}

.forai-codex-msg-user {
  align-self: flex-end;
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: #0f1117;
  color: #ffffff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.forai-codex-thought {
  font-size: 12px;
  color: #8a90aa;
  font-style: italic;
}

.forai-codex-explored {
  font-size: 12.5px;
  color: #4a5070;
}

.forai-codex-explored strong {
  color: #0f1117;
  font-weight: 700;
  margin-right: 4px;
}

.forai-codex-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 15, 19, 0.06);
  font-family: -apple-system, "Segoe UI", monospace;
  font-size: 12px;
  color: #2e3247;
}

.forai-codex-edit-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
}

.forai-codex-check {
  margin-left: auto;
  color: #16a34a;
  font-weight: 800;
}

.forai-codex-msg-bot {
  font-size: 13px;
  line-height: 1.55;
  color: #2e3247;
}

.forai-codex-composer {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.3);
}

.forai-codex-composer > span {
  flex: 1;
  font-size: 12.5px;
  color: #8a90aa;
}

.forai-codex-composer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forai-codex-model {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: #5f6684;
  border: 1px solid rgba(15, 15, 19, 0.06);
}

.forai-codex-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forai-codex-send:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 14px rgba(168, 85, 247, 0.35);
}

/* diff panel */
.forai-codex-diff {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  font-family: -apple-system, "Segoe UI", monospace;
}

.forai-codex-diff-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #0f1117;
  font-weight: 700;
}

.forai-codex-diff-stats em,
.forai-codex-diff-filename em {
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  margin-left: 4px;
}

.forai-codex-diff-stats em.add,
.forai-codex-diff-filename em.add { color: #16a34a; }
.forai-codex-diff-stats em.rem,
.forai-codex-diff-filename em.rem { color: #e11d48; }

.forai-codex-diff-file {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.forai-codex-diff-filename {
  padding: 0.45rem 0.7rem;
  font-size: 11.5px;
  color: #4a5070;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
  background: rgba(255, 255, 255, 0.45);
}

.forai-codex-diff-filename strong {
  color: #0f1117;
  font-weight: 600;
}

.forai-codex-diff-block {
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 11.5px;
  line-height: 1.45;
  color: #2e3247;
  white-space: pre;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.4);
}

.forai-codex-diff-block .kw { color: #7c3aed; font-weight: 600; }
.forai-codex-diff-block .str { color: #be185d; }
.forai-codex-diff-block .add-line { display: block; background: rgba(22, 163, 74, 0.14); color: #14532d; }
.forai-codex-diff-block .rem-line { display: block; background: rgba(225, 29, 72, 0.12); color: #7f1d1d; }

/* ----------- Capabilities ----------- */
.forai-landing-capabilities {
  max-width: 1080px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.forai-landing-cap-head {
  text-align: center;
  margin-bottom: 2.6rem;
}

.forai-landing-cap-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0f1117;
}

.forai-landing-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.forai-landing-cap {
  padding: 1.4rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.forai-landing-cap:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.1);
}

.forai-landing-cap h3 {
  margin: 0 0 0.4rem;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f1117;
}

.forai-landing-cap p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a5070;
}

/* ----------- Footer ----------- */
.forai-landing-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  flex-wrap: wrap;
}

.forai-landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.forai-landing-footer-logo {
  height: 24px;
  width: auto;
}

.forai-landing-footer-text {
  font-size: 12px;
  color: #5f6684;
}

@media (max-width: 980px) {
  .forai-codex-body {
    grid-template-columns: 200px 1fr;
    height: auto;
  }
  .forai-codex-diff {
    display: none;
  }
}

@media (max-width: 720px) {
  .forai-codex-body {
    grid-template-columns: 1fr;
  }
  .forai-codex-side {
    display: none;
  }
  .forai-landing-rotating {
    min-width: 4em;
  }
}

/* ===================================================================
   FOR AI — empty brand placeholder (no logo) + new sections
   =================================================================== */

.forai-landing-nav-empty {
  height: 64px;
  padding: 0.5rem 1.8rem;
}

.forai-landing-brand-empty {
  display: inline-block;
  width: 1px;
  height: 1px;
}

/* Codex bot message: real devis content */
.forai-codex-list {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.forai-codex-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 15, 19, 0.05);
  font-size: 12.5px;
}

.forai-codex-list li strong {
  font-weight: 600;
  color: #0f1117;
}

.forai-codex-list li span {
  font-weight: 700;
  font-family: -apple-system, "Segoe UI", monospace;
  color: #4a5070;
  white-space: nowrap;
}

.forai-codex-total {
  margin-top: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(97, 114, 243, 0.18), rgba(236, 72, 153, 0.14));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  font-size: 12.5px;
  color: #0f1117;
}

.forai-codex-total span {
  font-weight: 600;
  color: #5f6684;
}

.forai-codex-total strong {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.forai-codex-total em {
  font-style: normal;
  margin-left: auto;
  color: #6f7594;
  font-size: 11.5px;
}

/* ----------- Examples section ----------- */
.forai-landing-examples {
  max-width: 1180px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.forai-landing-examples-head {
  text-align: center;
  margin-bottom: 2.6rem;
}

.forai-landing-examples-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  color: #0f1117;
}

.forai-landing-examples-head p {
  font-size: 15px;
  color: #5f6684;
  margin: 0;
  line-height: 1.55;
}

.forai-landing-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.forai-landing-example {
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.forai-landing-example:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 22px 50px rgba(168, 85, 247, 0.14);
}

.forai-landing-example-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
  margin-bottom: 0.9rem;
}

.forai-landing-example-q {
  margin: 0 0 0.6rem;
  font-size: 15px;
  font-weight: 600;
  color: #0f1117;
  font-style: italic;
}

.forai-landing-example-a {
  margin: 0;
  font-size: 13.5px;
  color: #5f6684;
  line-height: 1.55;
}

/* ----------- Testimonials ----------- */
.forai-landing-testimonials {
  max-width: 1180px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.forai-landing-test-head {
  text-align: center;
  margin-bottom: 2.6rem;
}

.forai-landing-test-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0f1117;
}

.forai-landing-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.forai-landing-test {
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forai-landing-test p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #2e3247;
}

.forai-landing-test-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.forai-landing-test-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.forai-landing-test-author strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f1117;
}

.forai-landing-test-author span {
  display: block;
  font-size: 12px;
  color: #6f7594;
}

/* ----------- FAQ ----------- */
.forai-landing-faq {
  max-width: 760px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.forai-landing-faq-head {
  text-align: center;
  margin-bottom: 2rem;
}

.forai-landing-faq-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0f1117;
}

.forai-landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.forai-landing-faq-item {
  padding: 1rem 1.3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forai-landing-faq-item[open] {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 14px 28px rgba(168, 85, 247, 0.1);
}

.forai-landing-faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #0f1117;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.forai-landing-faq-item summary::-webkit-details-marker {
  display: none;
}

.forai-landing-faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: #a855f7;
  transition: transform 0.2s ease;
}

.forai-landing-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.forai-landing-faq-item p {
  margin: 0.7rem 0 0;
  font-size: 14px;
  color: #4a5070;
  line-height: 1.6;
}

/* ----------- Final CTA ----------- */
.forai-landing-final {
  max-width: 1180px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.forai-landing-final-card {
  padding: 3.5rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(97, 114, 243, 0.16), rgba(168, 85, 247, 0.14), rgba(236, 72, 153, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.forai-landing-final-card h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  color: #0f1117;
}

.forai-landing-final-card p {
  font-size: 15px;
  color: #4a5070;
  margin: 0 0 1.6rem;
}

.forai-landing-final-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forai-landing-final-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.45);
}

/* For AI inline SVG logo — unified, big, exactly the brand */
.forai-landing-brand-svg {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.forai-brand-svg {
  height: 70px;
  width: auto;
  display: block;
}

/* ===================================================================
   FOR AI — AUTH PAGE (totally separate from For auth)
   =================================================================== */

.forai-auth-body {
  margin: 0;
  min-height: 100vh;
  background: #f5f3ff;
  color: #0f1117;
  position: relative;
  overflow-x: hidden;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}

.forai-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(135deg, #eef0ff 0%, #f8f0ff 50%, #fff0f8 100%);
}

.forai-auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}

.forai-auth-blob-1 {
  top: -10%;
  left: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #6172f3, transparent 70%);
}

.forai-auth-blob-2 {
  top: 20%;
  right: -12%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
}

.forai-auth-blob-3 {
  bottom: -10%;
  left: 30%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

.forai-auth-blob-4 {
  display: none;
}

@keyframes forAiAuthBlobA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes forAiAuthBlobB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, 70px) scale(1.18); }
}
@keyframes forAiAuthBlobC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -90px) scale(1.1); }
}
@keyframes forAiAuthBlobD {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -50px) scale(1.2); }
}

.forai-auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

/* Nav */
.forai-auth-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  height: 84px;
}

.forai-auth-back {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #5f6684;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.forai-auth-back:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #0f1117;
}

/* Main shell */
.forai-auth-main {
  position: relative;
  z-index: 2;
  padding: 1rem 1.5rem 4rem;
}

.forai-auth-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

/* Left side */
.forai-auth-aside {
  position: relative;
  padding: 1rem 0;
}

.forai-auth-aside-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f3dc4;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.forai-auth-aside-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  animation: forAiAuthPulse 1.6s ease-in-out infinite;
}

@keyframes forAiAuthPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
}

.forai-auth-aside-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #0f1117;
}

.forai-auth-aside-sub {
  font-size: 16px;
  color: #5f6684;
  line-height: 1.55;
  margin: 0 0 2.4rem;
  max-width: 480px;
}

.forai-auth-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forai-auth-aside-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.forai-auth-aside-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  box-shadow: 0 8px 18px rgba(168, 85, 247, 0.28);
}

.forai-auth-aside-list strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f1117;
  margin-bottom: 2px;
}

.forai-auth-aside-list em {
  font-style: normal;
  font-size: 13.5px;
  color: #6f7594;
  line-height: 1.5;
}

/* Right side: card */
.forai-auth-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  box-shadow:
    0 30px 80px rgba(168, 85, 247, 0.16),
    0 8px 24px rgba(15, 15, 19, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.forai-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 15, 19, 0.05);
  margin-bottom: 1.6rem;
}

.forai-auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #5f6684;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.forai-auth-tab.is-active {
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.forai-auth-form h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: #0f1117;
}

.forai-auth-form-sub {
  font-size: 14px;
  color: #6f7594;
  margin: 0 0 1.4rem;
}

.forai-auth-field {
  margin-bottom: 1rem;
}

.forai-auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5f6684;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.forai-auth-field input {
  width: 100%;
  border: 1px solid rgba(15, 15, 19, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: #0f1117;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.forai-auth-field input:focus {
  border-color: rgba(168, 85, 247, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.forai-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6172f3, #a855f7 60%, #ec4899);
  color: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  margin-top: 0.4rem;
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forai-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(168, 85, 247, 0.45);
}

.forai-auth-divider {
  position: relative;
  text-align: center;
  margin: 1.2rem 0;
  font-size: 12px;
  color: #9aa0b6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.forai-auth-divider::before,
.forai-auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(15, 15, 19, 0.08);
}

.forai-auth-divider::before { left: 0; }
.forai-auth-divider::after { right: 0; }

.forai-auth-divider span {
  background: transparent;
  padding: 0 0.6rem;
}

.forai-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid rgba(15, 15, 19, 0.1);
  background: #ffffff;
  color: #0f1117;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.forai-auth-google:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.forai-auth-legal {
  margin: 1.4rem 0 0;
  font-size: 11.5px;
  text-align: center;
  color: #8a90aa;
  line-height: 1.5;
}

.forai-auth-legal a {
  color: #5f3dc4;
  text-decoration: none;
  font-weight: 600;
}

.forai-auth-legal a:hover {
  text-decoration: underline;
}

/* Loading overlay */
.forai-auth-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 243, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.forai-auth-loading.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.forai-auth-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.4rem 2.8rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(168, 85, 247, 0.2);
  text-align: center;
  max-width: 360px;
}

.forai-auth-loading-logo {
  height: 50px !important;
}

.forai-auth-loading-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(168, 85, 247, 0.18);
  border-top-color: #a855f7;
  animation: forAiAuthSpin 0.8s linear infinite;
}

@keyframes forAiAuthSpin {
  to { transform: rotate(360deg); }
}

.forai-auth-loading-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f1117;
  margin-top: 0.2rem;
}

.forai-auth-loading-tip {
  font-size: 13px;
  color: #6f7594;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .forai-auth-shell {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .forai-auth-aside {
    text-align: center;
  }
  .forai-auth-aside-list {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
  }
  .forai-auth-aside-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===========================================================
   FOR TRANSLATE — Translation page
   =========================================================== */
.fortr-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #f6f8ff;
  color: #1a2240;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.fortr-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #dde6ff 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, #e6deff 0%, transparent 60%),
    #f6f8ff;
}

.fortr-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.fortr-glow-1 {
  top: -8%;
  left: 6%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  opacity: 0.45;
}

.fortr-glow-2 {
  top: 5%;
  right: 4%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
  opacity: 0.5;
}

.fortr-glow-3 {
  top: 50%;
  left: 40%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ddd6fe, transparent 70%);
  opacity: 0.35;
}

.fortr-topbar {
  position: relative;
  z-index: 5;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
}

.fortr-brand-slot {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.fortr-brand-slot img {
  width: 190px;
  height: auto;
  display: block;
}

.fortr-main {
  position: relative;
  z-index: 4;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.fortr-head {
  text-align: center;
  margin: 1.5rem 0 2.5rem;
}

.fortr-title {
  margin: 0 0 0.6rem;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #0d1539;
}

.fortr-sub {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  color: #4a5275;
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

.fortr-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(99, 102, 241, 0.18);
}

.fortr-langs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: #fafbff;
}

.fortr-lang {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.fortr-lang-target {
  justify-content: flex-end;
}

.fortr-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  color: #1a2240;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  padding: 0.55rem 2rem 0.55rem 0.9rem;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7299' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  max-width: 280px;
  text-overflow: ellipsis;
}

.fortr-lang-select:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.fortr-lang-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.fortr-lang-detected {
  font-size: 12px;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.fortr-swap {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #4f46e5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.fortr-swap:hover {
  background: #eef0ff;
  border-color: rgba(99, 102, 241, 0.35);
  transform: rotate(180deg);
}

.fortr-panes {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  min-height: 280px;
}

.fortr-divider {
  background: rgba(99, 102, 241, 0.1);
}

.fortr-pane {
  position: relative;
  display: flex;
  flex-direction: column;
}

.fortr-textarea {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  padding: 1.4rem 1.6rem 0.8rem;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.55;
  color: #0d1539;
  letter-spacing: -0.01em;
}

.fortr-textarea::placeholder {
  color: #8c93b8;
  font-weight: 400;
}

.fortr-output {
  flex: 1;
  padding: 1.4rem 1.6rem 0.8rem;
  font-size: 17px;
  line-height: 1.55;
  color: #0d1539;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 100px;
  position: relative;
}

.fortr-output.is-loading {
  color: #8c93b8;
}

.fortr-placeholder {
  color: #8c93b8;
  font-weight: 400;
}

.fortr-loader {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  display: inline-flex;
  gap: 5px;
}

.fortr-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  animation: fortrDot 1.2s ease infinite;
}

.fortr-loader span:nth-child(2) { animation-delay: 0.18s; }
.fortr-loader span:nth-child(3) { animation-delay: 0.36s; }

@keyframes fortrDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.fortr-pane-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem 0.9rem 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  background: #fafbff;
}

.fortr-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #6b7299;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fortr-icon-btn:hover {
  background: #eef0ff;
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.2);
}

.fortr-count {
  margin-left: auto;
  font-size: 12px;
  color: #8c93b8;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fortr-error {
  margin-left: auto;
  font-size: 12px;
  color: #b42318;
  font-weight: 500;
}

.fortr-foot {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 12px;
  color: #6b7299;
  font-weight: 400;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .fortr-panes {
    grid-template-columns: 1fr;
  }
  .fortr-divider {
    height: 1px;
    width: 100%;
  }
  .fortr-langs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .fortr-lang-target {
    justify-content: flex-start;
  }
  .fortr-swap {
    transform: rotate(90deg);
    margin: 0 auto;
  }
  .fortr-swap:hover {
    transform: rotate(270deg);
  }
  .fortr-lang-select {
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================================================
   FOR MEET — Visioconférence WebRTC
   =========================================================== */
.fmeet-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #06141d;
  color: #e8f0f4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.fmeet-topbar {
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Critical fix: class display rules were overriding [hidden] attribute */
.fmeet-preview-overlay[hidden],
.fmeet-tile-overlay[hidden],
.fmeet-lobby[hidden],
.fmeet-room[hidden],
.fmeet-toast[hidden],
.fmsg-step[hidden],
.fmsg-app[hidden],
.fmsg-modal[hidden],
.fmsg-empty[hidden],
.fmsg-thread-head[hidden],
.fmsg-messages[hidden],
.fmsg-composer[hidden],
.fmsg-section[hidden],
.fmsg-toast[hidden] {
  display: none !important;
}

/* Camera-off avatar overlay (covers tile when video disabled) */
.fmeet-tile.is-camoff video {
  visibility: hidden;
}

.fmeet-tile-camoff {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1418, #122a35);
  z-index: 1;
}

.fmeet-tile-camoff-circle {
  width: clamp(80px, 18%, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.fmeet-brand img {
  width: 190px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Lobby */
.fmeet-lobby {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.fmeet-lobby-card {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 22px;
  padding: 2.4rem;
  text-align: center;
  box-shadow: 0 40px 100px -30px rgba(20, 184, 166, 0.4);
}

.fmeet-lobby-card h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}

.fmeet-lobby-card p {
  margin: 0 0 2rem;
  color: #9bb0bb;
  line-height: 1.55;
  font-size: 15px;
}

.fmeet-lobby-name {
  text-align: left;
  margin-bottom: 1.4rem;
}

.fmeet-lobby-name label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #9bb0bb;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fmeet-lobby-name input,
.fmeet-lobby-join input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fmeet-lobby-name input:focus,
.fmeet-lobby-join input:focus {
  border-color: #14b8a6;
  background: rgba(255, 255, 255, 0.08);
}

.fmeet-lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fmeet-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px -8px rgba(20, 184, 166, 0.5);
}

.fmeet-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -8px rgba(20, 184, 166, 0.65);
}

.fmeet-lobby-join {
  display: flex;
  gap: 0.5rem;
}

.fmeet-lobby-join input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.fmeet-btn-ghost {
  padding: 0.85rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fmeet-btn-ghost:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: #14b8a6;
}

.fmeet-lobby-error {
  margin-top: 1.4rem;
  padding: 0.7rem 1rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
}

/* Room */
.fmeet-room {
  min-height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  padding: 0 1.2rem 1.2rem;
}

.fmeet-room-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1rem;
  gap: 1rem;
}

.fmeet-room-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fmeet-room-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b8a99;
  font-weight: 500;
}

.fmeet-room-code {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #5eead4;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fmeet-room-code:hover {
  background: rgba(20, 184, 166, 0.2);
}

.fmeet-room-counter {
  font-size: 13px;
  color: #9bb0bb;
  font-weight: 500;
}

.fmeet-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  align-content: start;
}

.fmeet-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.fmeet-grid[data-count="2"] {
  grid-template-columns: 1fr 1fr;
}

.fmeet-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.fmeet-tile.is-local {
  border-color: rgba(20, 184, 166, 0.5);
}

.fmeet-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a1418;
}

.fmeet-tile-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.fmeet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 0 0.4rem;
}

.fmeet-ctrl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fmeet-ctrl:hover {
  background: rgba(255, 255, 255, 0.14);
}

.fmeet-ctrl.is-off {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.fmeet-ctrl-leave {
  background: #ef4444;
  border-color: #dc2626;
  color: #fff;
}

.fmeet-ctrl-leave:hover {
  background: #dc2626;
}

@media (max-width: 600px) {
  .fmeet-grid[data-count="2"] {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   FOR MESSAGERIE
   =========================================================== */
.fmsg-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #fff8ec;
  color: #1a1408;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.fmsg-topbar {
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  background: #fff;
}

.fmsg-brand img {
  width: 200px;
  height: auto;
  display: block;
}

/* ID screen */
.fmsg-id {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.fmsg-id-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 22px;
  padding: 2.4rem;
  text-align: center;
  box-shadow: 0 30px 80px -25px rgba(245, 158, 11, 0.3);
}

.fmsg-id-card h1 {
  margin: 0 0 0.6rem;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1a1408;
}

.fmsg-id-card p {
  margin: 0 0 2rem;
  color: #7a6e5b;
  line-height: 1.55;
  font-size: 14px;
}

.fmsg-id-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.fmsg-id-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 500;
  color: #7a6e5b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fmsg-id-form input {
  padding: 0.85rem 1rem;
  background: #fdf6e3;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  color: #1a1408;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fmsg-id-form input:focus {
  border-color: #f59e0b;
  background: #fff;
}

.fmsg-btn-primary {
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.5);
}

.fmsg-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -8px rgba(245, 158, 11, 0.65);
}

.fmsg-btn-ghost {
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: #7a6e5b;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.fmsg-btn-ghost:hover {
  background: #fdf6e3;
}

/* App layout */
.fmsg-app {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 90px);
  background: #fff;
}

.fmsg-sidebar {
  border-right: 1px solid rgba(245, 158, 11, 0.14);
  background: #fffdf7;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.7rem;
  gap: 0.5rem;
}

.fmsg-me {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  margin-bottom: 0.4rem;
}

.fmsg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  background: #f59e0b;
}

.fmsg-me-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.fmsg-me-info strong {
  font-size: 13px;
  color: #1a1408;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmsg-me-info span {
  font-size: 11px;
  color: #7a6e5b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmsg-icon-btn {
  background: transparent;
  border: none;
  color: #7a6e5b;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fmsg-icon-btn:hover {
  background: #fdf6e3;
  color: #1a1408;
}

.fmsg-new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.fmsg-list-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a89580;
  padding: 0.6rem 0.5rem 0.3rem;
}

.fmsg-contacts {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fmsg-contacts-empty {
  padding: 1.2rem 0.5rem;
  text-align: center;
  font-size: 12px;
  color: #a89580;
  line-height: 1.5;
}

.fmsg-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fmsg-contact:hover {
  background: #fdf6e3;
}

.fmsg-contact.is-active {
  background: rgba(245, 158, 11, 0.16);
}

.fmsg-contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.fmsg-contact-info strong {
  font-size: 13px;
  color: #1a1408;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmsg-contact-info span {
  font-size: 12px;
  color: #7a6e5b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmsg-unread {
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

/* Thread */
.fmsg-thread {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.fmsg-thread-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  background: #fffdf7;
}

.fmsg-thread-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.fmsg-thread-info strong {
  font-size: 14px;
  color: #1a1408;
  font-weight: 600;
}

.fmsg-thread-info span {
  font-size: 12px;
  color: #7a6e5b;
}

.fmsg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #7a6e5b;
}

.fmsg-empty-icon {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.fmsg-empty h2 {
  margin: 0 0 0.4rem;
  font-size: 18px;
  font-weight: 500;
  color: #1a1408;
}

.fmsg-empty p {
  margin: 0;
  font-size: 13px;
  max-width: 320px;
  line-height: 1.55;
}

.fmsg-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fmsg-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.fmsg-msg.is-mine {
  align-self: flex-end;
  align-items: flex-end;
}

.fmsg-msg.is-theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.fmsg-msg-bubble {
  padding: 0.65rem 1rem;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.fmsg-msg.is-mine .fmsg-msg-bubble {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.fmsg-msg.is-theirs .fmsg-msg-bubble {
  background: #fdf6e3;
  color: #1a1408;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-bottom-left-radius: 6px;
}

.fmsg-msg-time {
  font-size: 10px;
  color: #a89580;
  margin-top: 4px;
  padding: 0 4px;
}

.fmsg-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem 1rem;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  background: #fffdf7;
}

.fmsg-composer textarea {
  flex: 1;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 14px;
  color: #1a1408;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  resize: none;
  max-height: 140px;
  transition: border-color 0.2s ease;
}

.fmsg-composer textarea:focus {
  border-color: #f59e0b;
}

.fmsg-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.fmsg-send:hover {
  transform: translateY(-1px);
}

/* Modal */
.fmsg-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 8, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.fmsg-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.3);
}

.fmsg-modal-card h3 {
  margin: 0 0 0.4rem;
  font-size: 18px;
  font-weight: 600;
  color: #1a1408;
}

.fmsg-modal-card p {
  margin: 0 0 1.4rem;
  color: #7a6e5b;
  font-size: 13px;
  line-height: 1.5;
}

.fmsg-modal-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fmsg-modal-card input {
  padding: 0.85rem 1rem;
  background: #fdf6e3;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  color: #1a1408;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.fmsg-modal-card input:focus {
  border-color: #f59e0b;
  background: #fff;
}

.fmsg-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 700px) {
  .fmsg-app {
    grid-template-columns: 1fr;
  }
  .fmsg-sidebar {
    height: auto;
    max-height: 40vh;
  }
}

/* ===== For Messagerie — onboarding + charter + requests ===== */
.fmsg-step {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.fmsg-step-card {
  width: 100%;
  max-width: 580px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 22px;
  padding: 2.4rem;
  box-shadow: 0 30px 80px -25px rgba(245, 158, 11, 0.3);
}

.fmsg-step-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.6rem;
}

.fmsg-step-card h1 {
  margin: 0 0 0.5rem;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1a1408;
}

.fmsg-step-card > p {
  margin: 0 0 1.8rem;
  color: #7a6e5b;
  font-size: 14px;
  line-height: 1.55;
}

.fmsg-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fmsg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fmsg-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fmsg-form label > span {
  font-size: 12px;
  font-weight: 500;
  color: #7a6e5b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fmsg-form label > span em {
  color: #f59e0b;
  font-style: normal;
}

.fmsg-form input,
.fmsg-form textarea {
  padding: 0.85rem 1rem;
  background: #fdf6e3;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  color: #1a1408;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.fmsg-form input:focus,
.fmsg-form textarea:focus {
  border-color: #f59e0b;
  background: #fff;
}

.fmsg-form-hint {
  font-size: 12px;
  color: #a89580;
  line-height: 1.5;
  margin-top: 0.4rem;
}

.fmsg-charter {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #fffbef;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  max-height: 320px;
  overflow-y: auto;
}

.fmsg-charter article h3 {
  margin: 0 0 0.3rem;
  font-size: 14px;
  font-weight: 600;
  color: #1a1408;
}

.fmsg-charter article p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6e6450;
}

.fmsg-charter-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: #fdf6e3;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1408;
  margin-bottom: 1.4rem;
}

.fmsg-charter-check input {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

.fmsg-charter-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.fmsg-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Sidebar sections */
.fmsg-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.6rem;
}

.fmsg-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a89580;
  padding: 0.6rem 0.5rem 0.3rem;
}

.fmsg-section-count {
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: none;
}

.fmsg-pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fmsg-pending-card {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
}

.fmsg-pending-card.is-out {
  background: #fffbef;
  border-style: dashed;
}

.fmsg-pending-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fmsg-pending-info strong {
  font-size: 13px;
  color: #1a1408;
  font-weight: 600;
}

.fmsg-pending-email {
  font-size: 11px;
  color: #a89580;
}

.fmsg-pending-msg {
  margin: 0.4rem 0 0;
  font-size: 12px;
  color: #6e6450;
  line-height: 1.45;
  font-style: italic;
  background: #fdf6e3;
  padding: 6px 9px;
  border-radius: 8px;
}

.fmsg-pending-status {
  font-size: 11px;
  color: #a89580;
  font-style: italic;
  margin-top: 0.2rem;
}

.fmsg-pending-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.fmsg-pending-accept,
.fmsg-pending-decline {
  flex: 1;
  padding: 5px 10px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fmsg-pending-accept {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.fmsg-pending-accept:hover {
  filter: brightness(1.05);
}

.fmsg-pending-decline {
  background: #fdf6e3;
  color: #7a6e5b;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.fmsg-pending-decline:hover {
  background: #fff;
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.3);
}

/* Modal extensions */
.fmsg-modal-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fmsg-modal-card label > span {
  font-size: 12px;
  font-weight: 500;
  color: #7a6e5b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fmsg-modal-card textarea {
  padding: 0.85rem 1rem;
  background: #fdf6e3;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  color: #1a1408;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}

.fmsg-modal-card textarea:focus {
  border-color: #f59e0b;
  background: #fff;
}

.fmsg-modal-error {
  padding: 0.6rem 0.9rem;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 10px;
  color: #b42318;
  font-size: 13px;
}

/* Toast */
.fmsg-toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1408;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  max-width: 90%;
  text-align: center;
}

.fmsg-toast[data-type="success"] { background: #047857; }
.fmsg-toast[data-type="error"] { background: #b42318; }
.fmsg-toast[data-type="info"] { background: #1a1408; }

@media (max-width: 600px) {
  .fmsg-form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== For Meet — top bar redesign + camera overlay ===== */
.fmeet-room-code-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fmeet-room-code-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.fmeet-room-code-big {
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #5eead4;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 8px 18px;
  border-radius: 12px;
  user-select: all;
}

.fmeet-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px -6px rgba(20, 184, 166, 0.5);
}

.fmeet-invite-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -6px rgba(20, 184, 166, 0.65);
}

/* Camera overlay (waiting / error) */
.fmeet-tile.is-pending {
  background: linear-gradient(135deg, #0a1418, #0d2025);
}

.fmeet-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 24, 0.7);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.fmeet-tile-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem;
  text-align: center;
  color: #cbe5e0;
}

.fmeet-tile-overlay-content strong {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.fmeet-tile-overlay-content span {
  font-size: 12px;
  color: #94b0b9;
  max-width: 220px;
  line-height: 1.5;
}

.fmeet-tile-overlay-content svg {
  color: #fbbf24;
}

.fmeet-retry {
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.fmeet-retry:hover {
  filter: brightness(1.1);
}

.fmeet-tile-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(94, 234, 212, 0.2);
  border-top-color: #14b8a6;
  border-radius: 50%;
  animation: fmeetSpin 0.9s linear infinite;
}

@keyframes fmeetSpin {
  to { transform: rotate(360deg); }
}

/* Toast */
.fmeet-toast {
  position: fixed;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 184, 166, 0.95);
  color: #06141d;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(20, 184, 166, 0.4);
  max-width: 90%;
  text-align: center;
}

/* ===== For Meet — Zoom-style pre-meeting lobby ===== */
.fmeet-lobby-shell {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}

.fmeet-preview {
  position: relative;
  background: #0a1418;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 90px -25px rgba(20, 184, 166, 0.35);
}

.fmeet-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror like Zoom */
  background: #0a1418;
}

.fmeet-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 24, 0.85);
  backdrop-filter: blur(2px);
}

.fmeet-preview-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.6rem;
  color: #cbe5e0;
}

.fmeet-preview-state strong {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.fmeet-preview-state span {
  font-size: 13px;
  color: #94b0b9;
  max-width: 260px;
  line-height: 1.5;
}

.fmeet-preview-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(10, 20, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.fmeet-ctrl-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.fmeet-ctrl-sm:hover {
  background: rgba(255, 255, 255, 0.18);
}

.fmeet-ctrl-sm.is-off {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.fmeet-lobby {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.fmeet-lobby-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fmeet-lobby-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.fmeet-lobby-card > p {
  margin: 0 0 1.6rem;
  color: #9bb0bb;
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 880px) {
  .fmeet-lobby-shell {
    grid-template-columns: 1fr;
  }
  .fmeet-preview {
    aspect-ratio: 4 / 3;
  }
}

/* Wide leave button with label */
.fmeet-ctrl-leave-wide {
  width: auto;
  padding: 0 1.4rem;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.fmeet-ctrl-leave-wide span {
  display: inline-block;
  white-space: nowrap;
}

/* Make the local tile fill the screen when alone */
.fmeet-grid {
  flex: 1;
  min-height: 0;
}

.fmeet-grid[data-count="1"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fmeet-grid[data-count="1"] .fmeet-tile {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}

.fmeet-grid[data-count="2"] .fmeet-tile,
.fmeet-grid[data-count="3"] .fmeet-tile,
.fmeet-grid[data-count="4"] .fmeet-tile {
  aspect-ratio: 16 / 10;
}

/* Mirror local video like Zoom */
.fmeet-tile.is-local video {
  transform: scaleX(-1);
}

/* Code visible at top-left in big bold */
.fmeet-room-code-block {
  flex-shrink: 0;
}

/* ===== For Meet — Speaking detection + status badges ===== */
.fmeet-tile {
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.fmeet-tile.is-speaking {
  border-color: #22c55e !important;
  outline: 6px solid #22c55e;
  outline-offset: -2px;
  box-shadow:
    0 0 0 10px rgba(34, 197, 94, 0.4),
    0 0 50px rgba(34, 197, 94, 0.6),
    0 12px 30px -10px rgba(0, 0, 0, 0.5);
  animation: fmeetSpeakingPulse 1.1s ease-in-out infinite;
}

@keyframes fmeetSpeakingPulse {
  0%, 100% {
    outline-width: 6px;
    box-shadow:
      0 0 0 8px rgba(34, 197, 94, 0.35),
      0 0 32px rgba(34, 197, 94, 0.45),
      0 12px 30px -10px rgba(0, 0, 0, 0.5);
  }
  50% {
    outline-width: 9px;
    box-shadow:
      0 0 0 16px rgba(34, 197, 94, 0.55),
      0 0 60px rgba(34, 197, 94, 0.75),
      0 12px 30px -10px rgba(0, 0, 0, 0.5);
  }
}

/* Status badges (mic/cam off) on every tile, visible to everyone */
.fmeet-tile-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  gap: 6px;
  z-index: 3;
}

.fmeet-tile-status-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.fmeet-tile-status-badge[hidden] {
  display: none !important;
}

.fmeet-tile-status-badge svg {
  width: 14px;
  height: 14px;
}

/* ===========================================================
   FOR MESSAGERIE — WhatsApp-style redesign
   =========================================================== */
:root {
  --wmsg-green: #00a884;
  --wmsg-green-dark: #075e54;
  --wmsg-green-deep: #008069;
  --wmsg-bg: #efeae2;
  --wmsg-side-bg: #ffffff;
  --wmsg-side-border: #d1d7db;
  --wmsg-bubble-mine: #d9fdd3;
  --wmsg-bubble-theirs: #ffffff;
  --wmsg-text: #111b21;
  --wmsg-text-muted: #667781;
  --wmsg-hover: #f0f2f5;
}

.wmsg-body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--wmsg-bg);
  color: var(--wmsg-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ----- AUTH ----- */
.wmsg-auth[hidden],
.wmsg-app[hidden],
.wmsg-modal[hidden],
.wmsg-toast[hidden],
.wmsg-empty[hidden],
.wmsg-thread[hidden],
.wmsg-pending-section[hidden] {
  display: none !important;
}

.wmsg-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    linear-gradient(180deg, var(--wmsg-green-dark) 0%, var(--wmsg-green-dark) 25%, var(--wmsg-bg) 25%, var(--wmsg-bg) 100%);
}

.wmsg-auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(11, 20, 26, 0.18);
}

.wmsg-auth-brand {
  text-align: center;
  margin-bottom: 1.4rem;
}

.wmsg-auth-brand img {
  height: 48px;
  width: auto;
}

.wmsg-auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 -2rem 1.6rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--wmsg-side-border);
}

.wmsg-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.9rem 0.4rem;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--wmsg-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.wmsg-auth-tab.is-active {
  color: var(--wmsg-green-deep);
  border-bottom-color: var(--wmsg-green);
}

.wmsg-auth-form[hidden] { display: none !important; }

.wmsg-auth-form h1 {
  margin: 0 0 0.4rem;
  font-size: 22px;
  font-weight: 500;
  color: var(--wmsg-text);
}

.wmsg-auth-form > p {
  margin: 0 0 1.4rem;
  color: var(--wmsg-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.wmsg-auth-form label {
  display: block;
  margin-bottom: 1rem;
}

.wmsg-auth-form label > span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--wmsg-text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.wmsg-auth-form label > span em {
  color: var(--wmsg-green);
  font-style: normal;
}

.wmsg-auth-form input,
.wmsg-auth-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #f5f6f6;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--wmsg-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wmsg-auth-form input:focus,
.wmsg-auth-form textarea:focus {
  border-color: var(--wmsg-green);
  background: #fff;
}

.wmsg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.wmsg-form-row label {
  margin-bottom: 0;
}

.wmsg-charter-details {
  margin: 0.4rem 0 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #f5f6f6;
  border-radius: 6px;
  font-size: 13px;
}

.wmsg-charter-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--wmsg-green-deep);
}

.wmsg-charter-details ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--wmsg-text-muted);
  line-height: 1.55;
}

.wmsg-charter-details li {
  margin-bottom: 0.3rem;
}

.wmsg-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--wmsg-text);
  margin: 0.4rem 0 1rem;
  cursor: pointer;
}

.wmsg-check input {
  width: auto;
  accent-color: var(--wmsg-green);
}

.wmsg-auth-error {
  padding: 0.6rem 0.9rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b42318;
  font-size: 13px;
  margin-bottom: 1rem;
}

.wmsg-btn-primary {
  width: 100%;
  padding: 0.85rem 1.4rem;
  background: var(--wmsg-green);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.wmsg-btn-primary:hover {
  background: var(--wmsg-green-deep);
  box-shadow: 0 4px 14px rgba(0, 168, 132, 0.3);
}

.wmsg-btn-ghost {
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--wmsg-text-muted);
  border: 1px solid var(--wmsg-side-border);
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.wmsg-btn-ghost:hover {
  background: #f5f6f6;
}

.wmsg-auth-switch {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 13px;
  color: var(--wmsg-text-muted);
}

.wmsg-auth-switch a {
  color: var(--wmsg-green-deep);
  text-decoration: none;
  font-weight: 500;
}

.wmsg-auth-switch a:hover { text-decoration: underline; }

/* ----- APP LAYOUT ----- */
.wmsg-app {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100vh;
  background: var(--wmsg-bg);
}

/* Sidebar */
.wmsg-side {
  background: var(--wmsg-side-bg);
  border-right: 1px solid var(--wmsg-side-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wmsg-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: #f0f2f5;
  border-bottom: 1px solid var(--wmsg-side-border);
}

.wmsg-me {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.wmsg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  flex-shrink: 0;
}

.wmsg-me-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--wmsg-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wmsg-side-actions {
  display: flex;
  gap: 0.2rem;
}

.wmsg-icon-btn {
  background: transparent;
  border: none;
  color: #54656f;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.wmsg-icon-btn:hover {
  background: rgba(11, 20, 26, 0.06);
}

.wmsg-search {
  padding: 0.5rem 0.7rem;
  background: var(--wmsg-side-bg);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wmsg-search svg {
  position: absolute;
  left: 1.4rem;
  color: #54656f;
  pointer-events: none;
}

.wmsg-search input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.6rem;
  background: #f0f2f5;
  border: none;
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  color: var(--wmsg-text);
  outline: none;
  box-sizing: border-box;
}

.wmsg-search input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--wmsg-green);
}

.wmsg-pending-section {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--wmsg-side-border);
  background: #fffbef;
}

.wmsg-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wmsg-text-muted);
}

.wmsg-badge {
  background: var(--wmsg-green);
  color: #fff;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.wmsg-pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.6rem 0.5rem;
}

.wmsg-pending-card {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--wmsg-side-border);
  border-radius: 10px;
}

.wmsg-pending-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wmsg-pending-info strong {
  font-size: 13px;
  color: var(--wmsg-text);
  font-weight: 500;
}

.wmsg-pending-info > span {
  font-size: 11px;
  color: var(--wmsg-text-muted);
}

.wmsg-pending-info p {
  margin: 0.4rem 0 0;
  font-size: 12px;
  font-style: italic;
  color: #4a5568;
  background: #f5f6f6;
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.4;
}

.wmsg-pending-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.wmsg-pending-accept,
.wmsg-pending-decline {
  flex: 1;
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.wmsg-pending-accept {
  background: var(--wmsg-green);
  color: #fff;
}

.wmsg-pending-accept:hover { background: var(--wmsg-green-deep); }

.wmsg-pending-decline {
  background: #f5f6f6;
  color: var(--wmsg-text-muted);
}

.wmsg-pending-decline:hover {
  background: #e9ecef;
  color: #b42318;
}

.wmsg-chats {
  flex: 1;
  overflow-y: auto;
}

.wmsg-empty-list {
  padding: 2rem 1.4rem;
  text-align: center;
  font-size: 13px;
  color: var(--wmsg-text-muted);
  line-height: 1.5;
}

.wmsg-chat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f5f6f6;
  transition: background 0.15s ease;
}

.wmsg-chat:hover { background: var(--wmsg-hover); }

.wmsg-chat.is-active { background: #f0f2f5; }

.wmsg-chat-info {
  flex: 1;
  min-width: 0;
}

.wmsg-chat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.wmsg-chat-row strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--wmsg-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wmsg-chat-time {
  font-size: 11px;
  color: var(--wmsg-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.wmsg-chat-preview {
  flex: 1;
  font-size: 13px;
  color: var(--wmsg-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wmsg-chat-unread {
  background: var(--wmsg-green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Main / thread */
.wmsg-main {
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(11, 20, 26, 0.015) 30px 31px),
    var(--wmsg-bg);
  min-width: 0;
  overflow: hidden;
}

.wmsg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  border-bottom: 6px solid var(--wmsg-green);
}

.wmsg-empty-art {
  margin-bottom: 1.4rem;
}

.wmsg-empty h2 {
  margin: 0 0 0.6rem;
  font-size: 28px;
  font-weight: 300;
  color: #41525d;
}

.wmsg-empty p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wmsg-text-muted);
}

.wmsg-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wmsg-thread-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: #f0f2f5;
  border-bottom: 1px solid var(--wmsg-side-border);
  flex-shrink: 0;
}

.wmsg-thread-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.wmsg-thread-info strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--wmsg-text);
}

.wmsg-thread-info span {
  font-size: 12px;
  color: var(--wmsg-text-muted);
}

.wmsg-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 5%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wmsg-date-sep {
  text-align: center;
  margin: 0.8rem 0;
}

.wmsg-date-sep span {
  display: inline-block;
  background: rgba(225, 245, 254, 0.92);
  color: var(--wmsg-text-muted);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  text-transform: capitalize;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.06);
}

.wmsg-msg {
  display: flex;
  max-width: 70%;
}

.wmsg-msg.is-mine { align-self: flex-end; }
.wmsg-msg.is-theirs { align-self: flex-start; }

.wmsg-bubble {
  position: relative;
  padding: 6px 10px 8px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--wmsg-text);
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  padding-right: 60px;
}

.wmsg-msg.is-mine .wmsg-bubble {
  background: var(--wmsg-bubble-mine);
  border-top-right-radius: 0;
}

.wmsg-msg.is-theirs .wmsg-bubble {
  background: var(--wmsg-bubble-theirs);
  border-top-left-radius: 0;
}

.wmsg-msg.is-mine .wmsg-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--wmsg-bubble-mine);
  border-right-color: var(--wmsg-bubble-mine);
}

.wmsg-msg.is-theirs .wmsg-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--wmsg-bubble-theirs);
  border-left-color: var(--wmsg-bubble-theirs);
}

.wmsg-bubble-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 11px;
  color: var(--wmsg-text-muted);
  white-space: nowrap;
}

.wmsg-tick {
  color: #53bdeb;
  margin-left: 2px;
  font-size: 10px;
}

/* Composer */
.wmsg-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #f0f2f5;
  border-top: 1px solid var(--wmsg-side-border);
  flex-shrink: 0;
}

.wmsg-composer-icon {
  background: transparent;
  border: none;
  color: #54656f;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wmsg-composer textarea {
  flex: 1;
  padding: 0.55rem 1rem;
  background: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--wmsg-text);
  outline: none;
  resize: none;
  max-height: 120px;
  box-sizing: border-box;
}

.wmsg-send {
  background: var(--wmsg-green);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.wmsg-send:hover { background: var(--wmsg-green-deep); }

/* Modal */
.wmsg-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.wmsg-modal-card {
  background: #fff;
  border-radius: 6px;
  padding: 1.6rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(11, 20, 26, 0.3);
}

.wmsg-modal-card h3 {
  margin: 0 0 0.5rem;
  font-size: 19px;
  font-weight: 500;
  color: var(--wmsg-text);
}

.wmsg-modal-card p {
  margin: 0 0 1.2rem;
  color: var(--wmsg-text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.wmsg-modal-card label {
  display: block;
  margin-bottom: 0.9rem;
}

.wmsg-modal-card label > span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--wmsg-text-muted);
  margin-bottom: 0.3rem;
}

.wmsg-modal-card input,
.wmsg-modal-card textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #f5f6f6;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--wmsg-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

.wmsg-modal-card input:focus,
.wmsg-modal-card textarea:focus {
  border-color: var(--wmsg-green);
  background: #fff;
}

.wmsg-modal-error {
  padding: 0.6rem 0.9rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b42318;
  font-size: 13px;
  margin-bottom: 0.8rem;
}

.wmsg-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.wmsg-modal-actions .wmsg-btn-primary {
  width: auto;
}

/* Toast */
.wmsg-toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wmsg-text);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 12px 30px rgba(11, 20, 26, 0.25);
  max-width: 90%;
  text-align: center;
}

.wmsg-toast[data-type="success"] { background: var(--wmsg-green-deep); }
.wmsg-toast[data-type="error"] { background: #b42318; }

@media (max-width: 760px) {
  .wmsg-app { grid-template-columns: 1fr; }
  .wmsg-side { display: flex; }
  .wmsg-form-row { grid-template-columns: 1fr; }
}

/* ===========================================================
   FOR DOCS — Suite bureautique (Document / Slides / Sheet)
   =========================================================== */
.fdocs-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f7;
  color: #1f2937;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.fdocs-home[hidden],
.fdocs-editor[hidden],
.fdocs-slides[hidden],
.fdocs-sheet[hidden],
.fdocs-present[hidden] {
  display: none !important;
}

/* ----- HOME / Start Center ----- */
.fdocs-home-head {
  padding: 1.4rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.fdocs-brand img { width: 200px; height: auto; display: block; }

.fdocs-home-hero {
  max-width: 1080px;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
  text-align: center;
}

.fdocs-home-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 32px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.02em;
}

.fdocs-home-hero p {
  margin: 0 0 2.4rem;
  color: #5f6684;
  font-size: 15px;
}

.fdocs-create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.fdocs-create-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.6rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.fdocs-create-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.18);
}

.fdocs-create-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.fdocs-create-card strong {
  font-size: 16px;
  font-weight: 600;
  color: #0f1117;
}

.fdocs-create-card span:not(.fdocs-create-icon) {
  font-size: 13px;
  color: #5f6684;
  line-height: 1.45;
}

.fdocs-recent {
  max-width: 1080px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

.fdocs-recent h2 {
  margin: 0 0 1rem;
  font-size: 18px;
  font-weight: 600;
  color: #0f1117;
}

.fdocs-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.fdocs-recent-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: #8a90aa;
  font-size: 14px;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}

.fdocs-recent-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fdocs-recent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(15, 17, 23, 0.12);
}

.fdocs-recent-thumb {
  height: 110px;
  background: linear-gradient(180deg, #fafbff 0%, #f0f2f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fdocs-recent-info {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fdocs-recent-info strong {
  font-size: 14px;
  color: #0f1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fdocs-recent-info span {
  font-size: 12px;
  color: #8a90aa;
}

.fdocs-recent-del {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fdocs-recent-card:hover .fdocs-recent-del { opacity: 1; }

.fdocs-recent-del:hover { background: #fef2f2; color: #b42318; border-color: #fecaca; }

/* ----- EDITOR ----- */
.fdocs-editor,
.fdocs-slides,
.fdocs-sheet {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #eef0f5;
  overflow: hidden;
}

/* App bar (compact, single line) */
.fdocs-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.4rem 0.9rem;
  height: 46px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(15, 17, 23, 0.02);
}

.fdocs-appbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.fdocs-appbar-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.fdocs-appbar-sep {
  width: 1px;
  height: 22px;
  background: #e5e7eb;
  margin: 0 0.25rem;
}

.fdocs-appbar-brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.fdocs-title-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin-left: 0.2rem;
}

.fdocs-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fdocs-bar-bottom {
  border-bottom: none;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
  padding: 0.35rem 1rem;
  height: 28px;
  background: #fff;
}

.fdocs-back {
  background: transparent;
  border: 1px solid #e5e7eb;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fdocs-back:hover { background: #f3f4f6; border-color: #d1d5db; }

.fdocs-title {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.3rem 0.5rem;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0f1117;
  outline: none;
  border-radius: 6px;
}
.fdocs-title:hover, .fdocs-title:focus {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.fdocs-editor .fdocs-title {
  flex: none;
  width: 240px;
  min-width: 140px;
  max-width: 320px;
  height: 26px;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}

.fdocs-saved {
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 500;
  white-space: nowrap;
}

.fdocs-editor .fdocs-saved {
  margin-left: 0.4rem;
  font-size: 11px;
}

.fdocs-bar-actions {
  display: flex;
  gap: 0.4rem;
}

.fdocs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #fff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.fdocs-btn-ghost:hover { background: #f3f4f6; border-color: #d1d5db; }

.fdocs-btn-primary {
  padding: 0.4rem 0.9rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.fdocs-btn-primary:hover { background: #1d4ed8; }

.fdocs-spacer { flex: 1; }

/* Compact icon button (appbar) */
.fdocs-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fdocs-icon-btn:hover { background: #f3f4f6; color: #1f2937; }
.fdocs-icon-btn.is-collapsed svg { transform: rotate(180deg); transition: transform 0.2s ease; }
.fdocs-icon-btn svg { transition: transform 0.2s ease; }

/* AI buttons */
.fdocs-ai-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.fdocs-ai-follow {
  background: #fff;
  color: #4f46e5;
  border-color: #c7d2fe;
}
.fdocs-ai-follow:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
}
.fdocs-ai-follow.is-active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.55);
}
.fdocs-ai-follow .fdocs-ai-pulse {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: fdocs-ai-pulse 1.6s ease-out infinite;
  margin-right: 0.1rem;
}
.fdocs-ai-follow.is-active .fdocs-ai-pulse { display: inline-block; }
@keyframes fdocs-ai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.fdocs-ai-improve {
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #a855f7 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.45);
}
.fdocs-ai-improve:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(99, 102, 241, 0.55); }
.fdocs-ai-improve.is-loading { opacity: 0.75; pointer-events: none; }
.fdocs-ai-improve.is-loading svg { animation: fdocs-spin 1s linear infinite; }
@keyframes fdocs-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .fdocs-ai-label { display: none; }
  .fdocs-ai-btn { padding: 0 0.55rem; }
}

/* Toolset wrapper (collapsible) */
.fdocs-toolset {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  max-height: 110px;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.fdocs-toolset.is-collapsed {
  max-height: 0;
  border-bottom: none;
  opacity: 0;
}

/* Menu bar with dropdowns */
.fdocs-menubar {
  display: flex;
  gap: 0.1rem;
  padding: 0.15rem 0.6rem;
  font-size: 12.5px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f1f3f7;
  height: 28px;
  align-items: center;
  position: relative;
  z-index: 90;
}
.fdocs-menu {
  position: relative;
}
.fdocs-menu-label {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
  color: #374151;
  line-height: 1.2;
  user-select: none;
  font-weight: 500;
}
.fdocs-menu-label:hover,
.fdocs-menu.is-open .fdocs-menu-label {
  background: #eef2ff;
  color: #4f46e5;
}

.fdocs-menu-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 24px 60px -16px rgba(15, 17, 23, 0.28), 0 8px 18px -6px rgba(15, 17, 23, 0.12);
  padding: 0.35rem;
  display: none;
  z-index: 200;
  animation: fdocs-menu-in 0.14s ease-out;
}
@keyframes fdocs-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fdocs-menu.is-open .fdocs-menu-drop { display: block; }

.fdocs-menu-drop button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: #1f2937;
  line-height: 1.3;
}
.fdocs-menu-drop button:hover {
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
  color: #4f46e5;
}
.fdocs-menu-drop button:active { background: #e0e7ff; }

.fdocs-menu-sep {
  height: 1px;
  background: #f1f3f7;
  margin: 0.3rem 0.2rem;
}

.fdocs-kbd {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  background: #f3f4f7;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'SF Mono', Menlo, monospace;
  letter-spacing: 0.02em;
}
.fdocs-menu-drop button:hover .fdocs-kbd {
  background: #fff;
  border-color: #c7d2fe;
  color: #6366f1;
}

/* Toolbar — two compact horizontal rows stacked, each scrollable */
.fdocs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.25rem 0.6rem;
  flex-shrink: 0;
}

.fdocs-toolbar-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  height: 34px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.fdocs-toolbar-row::-webkit-scrollbar { height: 4px; }
.fdocs-toolbar-row::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.fdocs-toolbar-row::-webkit-scrollbar-track { background: transparent; }

.fdocs-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  background: #f6f7fb;
  border-radius: 7px;
  border: 1px solid #eef0f5;
  margin: 0;
}
.fdocs-tool-group:last-child { border-right: 1px solid #eef0f5; }

.fdocs-toolbar button {
  background: transparent;
  border: none;
  width: 28px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.12s ease, color 0.12s ease;
}
.fdocs-toolbar button:hover { background: #fff; color: #2563eb; box-shadow: 0 1px 3px rgba(15, 17, 23, 0.06); }
.fdocs-toolbar button:active { background: #e0e7ff; }

.fdocs-tool-select {
  height: 26px;
  padding: 0 22px 0 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>") no-repeat right 6px center;
  font-family: inherit;
  font-size: 12.5px;
  color: #374151;
  cursor: pointer;
  margin: 0 0.15rem;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  min-width: 70px;
}
.fdocs-tool-select:hover { border-color: #c7d2fe; }
.fdocs-tool-style { min-width: 110px; }
.fdocs-tool-font { min-width: 120px; }
.fdocs-tool-size { width: 56px; min-width: 56px; padding-left: 0.4rem; }

.fdocs-color-btn {
  position: relative;
  width: 28px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #374151;
  flex-shrink: 0;
}

.fdocs-color-btn:hover { background: #fff; box-shadow: 0 1px 3px rgba(15,17,23,0.06); }

.fdocs-color-btn .fdocs-color-letter {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  line-height: 1;
  padding: 0;
}

.fdocs-color-btn .fdocs-color-bar {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  margin-top: 2px;
}

.fdocs-color-btn::before { content: none; }

.fdocs-color-btn input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
}

/* Page area */
.fdocs-page-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.4rem 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04), transparent 60%),
    #eef0f5;
}

.fdocs-page {
  width: 21cm;
  min-height: 29.7cm;
  max-width: 100%;
  background: #fff;
  padding: 2.5cm 2.5cm;
  box-shadow: 0 12px 40px -12px rgba(15, 17, 23, 0.18);
  outline: none;
  font-size: 12pt;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
  color: #1f2937;
}

.fdocs-page:focus { box-shadow: 0 16px 50px -12px rgba(37, 99, 235, 0.22); }

.fdocs-page h1 { font-size: 22pt; font-weight: 600; margin: 1.2em 0 0.5em; }
.fdocs-page h2 { font-size: 18pt; font-weight: 600; margin: 1em 0 0.4em; }
.fdocs-page h3 { font-size: 14pt; font-weight: 600; margin: 0.8em 0 0.3em; }
.fdocs-page h4 { font-size: 12pt; font-weight: 600; margin: 0.6em 0 0.3em; }
.fdocs-page p { margin: 0 0 0.6em; }
.fdocs-page blockquote { border-left: 3px solid #c7d2fe; padding-left: 1em; color: #4b5563; margin: 0.6em 0; }
.fdocs-page pre { background: #f3f4f6; padding: 0.8em 1em; border-radius: 6px; overflow-x: auto; font-family: 'SF Mono', Menlo, monospace; }
.fdocs-page img { max-width: 100%; height: auto; }
.fdocs-page table.fdocs-inserted-table { border-collapse: collapse; margin: 0.6em 0; }
.fdocs-page table.fdocs-inserted-table td { border: 1px solid #94a3b8; padding: 0.4em 0.6em; min-width: 60px; }

/* AI live indicator on blocks */
.fdocs-page .fdocs-ai-thinking {
  position: relative;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  background-size: 200% 100%;
  animation: fdocs-ai-shimmer 1.4s linear infinite;
  border-radius: 4px;
}
@keyframes fdocs-ai-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.fdocs-page .fdocs-ai-flash {
  animation: fdocs-ai-flash 1.4s ease-out;
  border-radius: 4px;
}
@keyframes fdocs-ai-flash {
  0%   { background: rgba(99, 102, 241, 0.16); }
  100% { background: transparent; }
}

/* AI status (footer) */
.fdocs-ai-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11.5px;
  color: #4f46e5;
  font-weight: 600;
  margin-right: 0.8rem;
}
.fdocs-ai-status[hidden] { display: none; }
.fdocs-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: fdocs-ai-pulse 1.6s ease-out infinite;
}

/* AI floating toast */
.fdocs-ai-toast {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  background: rgba(15, 17, 23, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(15, 17, 23, 0.5);
  backdrop-filter: blur(8px);
  z-index: 80;
  animation: fdocs-toast-in 0.25s ease-out;
}
.fdocs-ai-toast[hidden] { display: none; }
.fdocs-ai-toast.is-error { background: rgba(180, 35, 24, 0.95); }
@keyframes fdocs-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.fdocs-ai-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.fdocs-ai-toast.is-loading .fdocs-ai-toast-icon { animation: fdocs-spin 1.6s linear infinite; }
.fdocs-ai-toast-text { white-space: nowrap; }
.fdocs-ai-toast-undo {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-left: 0.2rem;
}
.fdocs-ai-toast-undo:hover { background: rgba(255, 255, 255, 0.22); }
.fdocs-ai-toast-undo[hidden] { display: none; }

/* AI improve modal */
.fdocs-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fdocs-modal-fade 0.2s ease-out;
}
.fdocs-modal[hidden] { display: none; }
@keyframes fdocs-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.fdocs-modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(15, 17, 23, 0.45);
  overflow: hidden;
  animation: fdocs-modal-pop 0.25s cubic-bezier(0.2, 1, 0.4, 1);
}
@keyframes fdocs-modal-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.fdocs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #f1f3f7;
  flex-shrink: 0;
}
.fdocs-modal-title h3 {
  margin: 0.3rem 0 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f1117;
}
.fdocs-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #6366f1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fdocs-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fdocs-modal-close:hover { background: #f3f4f6; color: #1f2937; }

.fdocs-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #f1f3f7;
  flex: 1;
  overflow: hidden;
}
.fdocs-modal-col {
  background: #fff;
  padding: 1rem 1.2rem;
  overflow-y: auto;
}
.fdocs-modal-col-new { background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%); }
.fdocs-modal-col h4 {
  margin: 0 0 0.6rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}
.fdocs-modal-col-new h4 { color: #6366f1; }
.fdocs-modal-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  font-family: inherit;
}
.fdocs-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid #f1f3f7;
  background: #fafbfd;
  flex-shrink: 0;
}
.fdocs-modal-foot .fdocs-btn-primary {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  padding: 0.55rem 1.1rem;
}
@media (max-width: 760px) {
  .fdocs-modal-body { grid-template-columns: 1fr; }
}

/* ----- SLIDES ----- */
.fdocs-slides-body {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
}

.fdocs-slides-list {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fdocs-slide-thumb {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
  font-size: 6px;
  padding: 4px 5px;
  transition: border-color 0.2s ease;
}

.fdocs-slide-thumb:hover { border-color: #c7d2fe; }

.fdocs-slide-thumb.is-active { border-color: #2563eb; }

.fdocs-slide-thumb-num {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 10px;
  color: #6b7280;
  background: rgba(255,255,255,0.85);
  padding: 1px 5px;
  border-radius: 3px;
}

.fdocs-slide-thumb-content {
  font-size: 6px;
  pointer-events: none;
  max-height: 100%;
  overflow: hidden;
  margin-top: 16px;
  zoom: 0.4;
}

.fdocs-slide-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  color: #6b7280;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fdocs-slide-thumb:hover .fdocs-slide-thumb-del { opacity: 1; }

.fdocs-slides-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #1f2937;
  overflow: auto;
}

.fdocs-slide {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  outline: none;
  font-size: 22px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1f2937;
  overflow-y: auto;
}

.fdocs-slide h1 { font-size: 48px; margin: 0 0 0.4em; font-weight: 600; color: #0f1117; }
.fdocs-slide h2 { font-size: 36px; margin: 0 0 0.4em; font-weight: 600; }
.fdocs-slide p { margin: 0 0 0.6em; line-height: 1.5; }
.fdocs-slide ul, .fdocs-slide ol { line-height: 1.7; }

/* Present mode */
.fdocs-present {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fdocs-present-slide {
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  background: #fff;
  padding: 4rem;
  border-radius: 4px;
  font-size: 28px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1f2937;
  overflow-y: auto;
}

.fdocs-present-slide h1 { font-size: 60px; margin: 0 0 0.4em; }
.fdocs-present-slide h2 { font-size: 44px; margin: 0 0 0.4em; }

.fdocs-present-controls {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.fdocs-present-controls button {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.fdocs-present-controls button:hover { background: rgba(255, 255, 255, 0.3); }

.fdocs-present-controls span {
  color: #fff;
  font-size: 13px;
  padding: 0 0.6rem;
  font-variant-numeric: tabular-nums;
}

/* ----- SHEET ----- */
.fdocs-sheet-formula {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.fdocs-sheet-formula span {
  display: inline-block;
  min-width: 50px;
  padding: 0.3rem 0.6rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  text-align: center;
  color: #374151;
}

.fdocs-sheet-formula input {
  flex: 1;
  padding: 0.4rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  outline: none;
}

.fdocs-sheet-formula input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.fdocs-sheet-wrap {
  flex: 1;
  overflow: auto;
  background: #fff;
}

.fdocs-sheet-table {
  border-collapse: collapse;
  font-size: 13px;
  font-family: 'SF Mono', Menlo, monospace;
}

.fdocs-sheet-table th {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.3rem 0.5rem;
  font-weight: 500;
  color: #4b5563;
  position: sticky;
  z-index: 1;
  font-size: 12px;
}

.fdocs-sheet-table thead th {
  top: 0;
  min-width: 80px;
}

.fdocs-sheet-table tbody th {
  left: 0;
  min-width: 36px;
  text-align: center;
}

.fdocs-sheet-table td {
  border: 1px solid #e5e7eb;
  padding: 0.35rem 0.5rem;
  min-width: 80px;
  cursor: cell;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.fdocs-sheet-table td.is-active {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #eff6ff;
}

/* ----- PRINT (PDF export) ----- */
@media print {
  body * { visibility: hidden; }
  .fdocs-page,
  .fdocs-page * { visibility: visible; }
  .fdocs-page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    padding: 1.5cm;
    margin: 0;
  }
  @page { size: A4; margin: 0; }
}

@media (max-width: 700px) {
  .fdocs-slides-body { grid-template-columns: 1fr; }
  .fdocs-slides-list { display: none; }
  .fdocs-page { padding: 1.5cm 1cm; }
}

/* ===========================================================
   LANDING PAGES (For Docs + For Meet)
   =========================================================== */
.fdocs-landing[hidden],
.fmeet-landing[hidden] { display: none !important; }

.fdocs-landing,
.fmeet-landing {
  min-height: 100vh;
  background: #f3f4f7;
  color: #0f1117;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fmeet-landing {
  background: linear-gradient(180deg, #f4fbf9 0%, #ffffff 60%);
}

.fdocs-landing-nav,
.fmeet-landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.4rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 5;
}

.fdocs-brand img,
.fmeet-brand img { width: 200px; height: auto; display: block; }

.fdocs-landing-cta-top,
.fmeet-landing-cta-top {
  padding: 0.7rem 1.4rem !important;
  font-size: 14px !important;
}

.fdocs-landing-hero,
.fmeet-landing-hero {
  max-width: 980px;
  margin: 4rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.fdocs-landing-eyebrow,
.fmeet-landing-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #2563eb;
  background: #dbeafe;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.fmeet-landing-eyebrow {
  color: #047857;
  background: #d1fae5;
}

.fdocs-landing-hero h1,
.fmeet-landing-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #0f1117;
}

.fdocs-grad,
.fmeet-landing-grad {
  background: linear-gradient(135deg, #2563eb, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.fmeet-landing-grad {
  background: linear-gradient(135deg, #047857, #14b8a6, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fdocs-landing-hero p,
.fmeet-landing-hero p {
  margin: 0 auto 2rem;
  max-width: 660px;
  font-size: 17px;
  line-height: 1.6;
  color: #4a5275;
}

.fdocs-landing-actions,
.fmeet-landing-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.fdocs-landing-cta,
.fmeet-landing-cta {
  padding: 0.95rem 1.8rem !important;
  font-size: 15px !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
}

.fdocs-landing-cta {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  box-shadow: 0 14px 36px -10px rgba(37, 99, 235, 0.5) !important;
}

.fmeet-landing-cta {
  background: linear-gradient(135deg, #14b8a6, #047857) !important;
  box-shadow: 0 14px 36px -10px rgba(20, 184, 166, 0.5) !important;
}

.fdocs-landing-cta-top {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  border-radius: 999px !important;
}

.fmeet-landing-cta-top {
  background: linear-gradient(135deg, #14b8a6, #047857) !important;
  border-radius: 999px !important;
}

/* Mock window in For Docs landing */
.fdocs-landing-mock {
  max-width: 980px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.fdocs-landing-window {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(37, 99, 235, 0.2);
}

.fdocs-landing-window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f3f4f7;
  border-bottom: 1px solid #e5e7eb;
}

.fdocs-landing-window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d1d5db;
}

.fdocs-landing-window-bar span:first-child { background: #ef4444; }
.fdocs-landing-window-bar span:nth-child(2) { background: #f59e0b; }
.fdocs-landing-window-bar span:nth-child(3) { background: #10b981; }

.fdocs-landing-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  background: #fafbff;
  border-bottom: 1px solid #e5e7eb;
}

.fdocs-mock-tool {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #4b5563;
}

.fdocs-landing-doc {
  padding: 2.4rem 3rem;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14pt;
  color: #1f2937;
  line-height: 1.6;
}

.fdocs-landing-doc h2 { margin: 0 0 1rem; font-size: 18pt; font-weight: 600; }
.fdocs-landing-doc ul { padding-left: 1.4em; margin: 0.6em 0; }

/* Features (shared structure) */
.fdocs-landing-features,
.fmeet-features {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 4rem 2rem;
}

.fdocs-landing-features h2,
.fmeet-features h2 {
  margin: 0 0 2.4rem;
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f1117;
}

.fdocs-features-grid,
.fmeet-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.fdocs-features-grid article,
.fmeet-features-grid article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fdocs-features-grid article:hover,
.fmeet-features-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(15, 17, 23, 0.12);
}

.fdocs-feat-ic,
.fmeet-feat-ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 0.8rem;
}

.fmeet-feat-ic {
  background: #d1fae5;
}

.fdocs-features-grid h3,
.fmeet-features-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 16px;
  font-weight: 600;
  color: #0f1117;
}

.fdocs-features-grid p,
.fmeet-features-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5f6684;
}

.fdocs-landing-final,
.fmeet-landing-final {
  text-align: center;
  padding: 4rem 2rem 6rem;
}

.fdocs-landing-final h2,
.fmeet-landing-final h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0f1117;
}

/* Page break visual */
.fdocs-pagebreak {
  height: 4px;
  margin: 1em 0;
  background: repeating-linear-gradient(90deg, #94a3b8 0 8px, transparent 8px 16px);
  border: none;
  page-break-after: always;
}

/* Reduce some heavier transitions for perceived latency */
* { transition-duration: 0.18s; }

/* ===========================================================
   PRO FEATURES — Pipeline / Templates / KPI / Score / Drawer
   =========================================================== */

/* View toggle (liste / pipeline) */
.view-toggle {
  display: inline-flex;
  background: #f3f4f7;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.view-toggle-btn:hover { color: #1f2937; }
.view-toggle-btn.is-active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15,17,23,0.08);
}

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.kanban-col {
  background: #f6f7fb;
  border-radius: 12px;
  border-top: 3px solid var(--col-color, #6b7280);
  padding: 0.7rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 200px;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.kanban-col-icon { font-size: 14px; }
.kanban-col-title { flex: 1; }
.kanban-col-count {
  background: rgba(15,17,23,0.06);
  color: #4b5563;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.kanban-col-total {
  font-size: 11px;
  color: #6b7280;
  font-family: 'SF Mono', Menlo, monospace;
  margin-bottom: 0.4rem;
}
.kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 80px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.kanban-col-body.is-drop {
  background: rgba(37, 99, 235, 0.08);
  outline: 2px dashed #93c5fd;
  outline-offset: -2px;
}
.kanban-empty {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding: 1.5rem 0.5rem;
  font-style: italic;
}
.kanban-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(15,17,23,0.18);
  border-color: var(--col-color, #c7d2fe);
}
.kanban-card.is-dragging { opacity: 0.4; cursor: grabbing; }
.kanban-card-num {
  font-size: 11px;
  color: #9ca3af;
  font-family: 'SF Mono', Menlo, monospace;
}
.kanban-card-client {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1117;
  margin-top: 2px;
}
.kanban-card-obj {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kanban-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f1f3f7;
}
.kanban-card-amount {
  font-size: 13px;
  font-weight: 600;
  color: #0f1117;
  font-family: 'SF Mono', Menlo, monospace;
}
.kanban-card-date { font-size: 11px; color: #9ca3af; }
.kanban-card.is-stale { border-color: #fbbf24; background: #fffbeb; }
.kanban-card-alert {
  margin-top: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
}
.badge-viewed { background: #ede9fe; color: #6d28d9; }
.badge-invoiced { background: #cffafe; color: #0e7490; }

/* Modèles métier — sobre & professionnel */
.templates-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.4rem 1.6rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 1px 2px rgba(15, 17, 23, 0.03);
}
.templates-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f1f3f7;
}
.templates-bar-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.4rem;
}
.templates-bar-title {
  margin: 0 0 0.3rem;
  font-size: 17px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.templates-bar-desc {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  max-width: 540px;
}
.templates-bar.is-collapsed .templates-bar-head {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.templates-bar.is-collapsed .templates-grid { display: none; }
.templates-bar.is-collapsed .templates-bar-desc { display: none; }
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.template-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.95rem 1rem 0.85rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: inherit;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.template-card:hover {
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.25), 0 1px 3px rgba(15, 17, 23, 0.04);
}
.template-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f3f4f7;
  color: #475569;
  margin-bottom: 0.35rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.template-card:hover .template-card-icon {
  background: #eff6ff;
  color: #2563eb;
}
.template-card strong {
  font-size: 14px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.005em;
}
.template-card > span:not(.template-card-icon):not(.template-card-price) {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.45;
}
.template-card-price {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f3f7;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
  font-family: 'SF Mono', Menlo, monospace;
  letter-spacing: 0.01em;
}
.template-card:hover .template-card-price { color: #2563eb; }

/* KPI row dashboard */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}
.kpi-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(15,17,23,0.12); }
.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.kpi-value {
  font-size: 28px;
  font-weight: 600;
  color: #0f1117;
  line-height: 1.1;
  margin-top: 0.2rem;
  letter-spacing: -0.02em;
}
.kpi-value.green { color: #16a34a; }
.kpi-sub { font-size: 12px; color: #6b7280; }
.kpi-bar {
  height: 4px;
  background: #f1f3f7;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.kpi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  border-radius: 999px;
  transition: width 0.5s ease-out;
}
.kpi-card-forecast { background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); border-color: #bbf7d0; }
.kpi-card-alert { background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); border-color: #fcd34d; }

/* Top clients */
.top-clients-card { padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; }
.top-clients-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.top-client-row {
  display: grid;
  grid-template-columns: 30px 1fr 120px 110px 80px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
}
.top-client-rank {
  font-size: 14px;
  font-weight: 700;
  color: #d97706;
}
.top-client-name { font-weight: 500; font-size: 14px; }
.top-client-bar {
  height: 8px;
  background: #f1f3f7;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.top-client-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 999px;
}
.top-client-amount {
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 600;
  text-align: right;
}
.top-client-count {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
}

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.score-badge-num {
  background: rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 0 6px;
  font-family: 'SF Mono', Menlo, monospace;
}
.score-high { background: #dcfce7; color: #15803d; }
.score-mid  { background: #dbeafe; color: #1e40af; }
.score-low  { background: #fef3c7; color: #b45309; }
.score-bad  { background: #fee2e2; color: #b91c1c; }

/* Client list — sturdy grid with proper email truncation */
.client-list-header,
.client-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(180px, 2fr) 130px 90px 140px;
  align-items: center;
  gap: 1.2rem;
  padding: 0.95rem 1.25rem;
}
.client-list-header {
  border-bottom: 1px solid var(--border, #e5e7eb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.client-row {
  border-bottom: 1px solid var(--border, #e5e7eb);
  transition: background 0.1s ease;
  cursor: pointer;
}
.client-row:hover { background: var(--gray-light, #f9fafb); }
.client-row:last-child { border-bottom: none; }
.client-cell {
  min-width: 0;
}
.client-cell-name-text {
  font-weight: 500;
  font-size: 14px;
  color: #0f1117;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-cell-email {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-cell-score {
  display: flex;
  justify-content: flex-start;
}
.client-cell-count {
  font-size: 13px;
  color: #6b7280;
}
.client-cell-ca {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  color: #0f1117;
}
.client-list-header > :last-child { text-align: right; }

/* Client drawer */
.client-drawer { position: fixed; inset: 0; z-index: 200; }
.client-drawer[hidden] { display: none; }
.client-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,17,23,0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.client-drawer.is-open .client-drawer-backdrop { opacity: 1; }
.client-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 540px;
  max-width: 95vw;
  background: #fff;
  box-shadow: -20px 0 50px -12px rgba(15,17,23,0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 1, 0.4, 1);
}
.client-drawer.is-open .client-drawer-panel { transform: translateX(0); }
.client-drawer-head {
  position: relative;
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid #f1f3f7;
}
.client-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f7;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
}
.client-drawer-close:hover { background: #e5e7eb; }
.client-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.client-drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}
.client-drawer-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f1117;
}
.client-drawer-title p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}
.client-drawer-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #f1f3f7;
}
.client-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.client-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}
.client-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #0f1117;
}
.client-stat-sub { font-size: 11px; color: #6b7280; }
.client-drawer-section {
  padding: 1rem 1.4rem;
  flex: 1;
  overflow-y: auto;
}
.client-drawer-section h3 {
  margin: 0 0 0.8rem;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.client-timeline { display: flex; flex-direction: column; gap: 0.4rem; }
.client-timeline-row {
  display: grid;
  grid-template-columns: 16px 80px 1fr 90px 80px 70px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid #f1f3f7;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 12.5px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.client-timeline-row:hover { background: #f9fafb; border-color: #e5e7eb; }
.client-timeline-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #9ca3af;
}
.client-timeline-status.status-draft { background: #9ca3af; }
.client-timeline-status.status-sent { background: #2563eb; }
.client-timeline-status.status-viewed { background: #7c3aed; }
.client-timeline-status.status-accepted { background: #16a34a; }
.client-timeline-status.status-refused { background: #dc2626; }
.client-timeline-status.status-invoiced { background: #0891b2; }
.client-timeline-num { font-family: 'SF Mono', Menlo, monospace; color: #6b7280; }
.client-timeline-obj { color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-timeline-amount { font-family: 'SF Mono', Menlo, monospace; font-weight: 600; text-align: right; }
.client-timeline-status-lbl { font-size: 11px; color: #6b7280; }
.client-timeline-date { font-size: 11px; color: #9ca3af; text-align: right; }
.client-drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid #f1f3f7;
}

@media (max-width: 1100px) {
  .kanban { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}
@media (max-width: 720px) {
  .kanban { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
  .client-drawer-panel { width: 100%; }
  .client-row { grid-template-columns: 1fr 100px; }
  .client-row > :nth-child(2),
  .client-row > :nth-child(4) { display: none; }
}

/* ===========================================================
   PAGE PUBLIQUE DE SIGNATURE
   =========================================================== */
.sign-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f7;
  color: #1f2937;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.sign-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.9rem 1.6rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}
.sign-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 12.5px;
  color: #4b5563;
}
.sign-brand img { height: 22px; width: auto; display: block; }
.sign-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.4rem 4rem;
}
.sign-state {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 540px;
  margin: 3rem auto;
}
.sign-state h2 { margin: 0.6rem 0 0.4rem; font-size: 22px; font-weight: 600; color: #0f1117; }
.sign-state p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.55; }
.sign-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: sign-spin 0.9s linear infinite;
}
@keyframes sign-spin { to { transform: rotate(360deg); } }
.sign-error-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.sign-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  box-shadow: 0 12px 30px -10px rgba(22, 163, 74, 0.4);
}
.sign-success-meta { margin-top: 0.8rem; font-size: 12px; color: #9ca3af; font-family: 'SF Mono', Menlo, monospace; }
.sign-success-hint {
  margin-top: 0.6rem !important;
  font-size: 12px !important;
  color: #9ca3af !important;
  font-style: italic;
}

/* Force hidden for grid / flex containers (the [hidden] attr alone is overridden by display:grid) */
.sign-state[hidden],
.sign-flow[hidden],
.sign-doc-section[hidden],
.sign-side[hidden],
.sign-pad-wrap[hidden],
.sign-upload-wrap[hidden],
.sign-type-wrap[hidden],
.sign-already-preview[hidden],
.sign-already-sig[hidden],
.sign-upload-preview[hidden] { display: none !important; }

/* Two columns */
.sign-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.sign-doc-section { min-width: 0; }
.sign-doc-head { margin-bottom: 1rem; }
.sign-doc-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 999px;
}
.sign-doc-head h1 { margin: 0.5rem 0 0.3rem; font-size: 26px; font-weight: 600; color: #0f1117; letter-spacing: -0.02em; }
.sign-doc-head p { margin: 0; font-size: 13px; color: #6b7280; }
.sign-doc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 4px 12px -4px rgba(15, 17, 23, 0.05);
}
.sign-doc-card-readonly { margin-top: 1rem; }
.sign-doc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f3f7;
  margin-bottom: 1rem;
}
.sign-doc-label, .sign-doc-mini-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}
.sign-doc-num { font-family: 'SF Mono', Menlo, monospace; font-size: 14px; font-weight: 600; color: #0f1117; }
.sign-doc-date { font-size: 13px; color: #6b7280; }
.sign-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f7;
}
.sign-doc-mini-val { font-size: 14px; font-weight: 600; color: #0f1117; }
.sign-doc-mini-sub { font-size: 12.5px; color: #6b7280; margin-top: 0.1rem; }
.sign-doc-objet, .sign-doc-note { padding: 1rem 0; border-bottom: 1px solid #f1f3f7; font-size: 13.5px; color: #1f2937; line-height: 1.55; }
.sign-doc-note:last-child { border-bottom: none; }
.sign-doc-items {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.sign-doc-items th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
}
.sign-doc-items th.num, .sign-doc-items td.num { text-align: right; font-family: 'SF Mono', Menlo, monospace; }
.sign-doc-items td {
  padding: 0.7rem 0.6rem;
  font-size: 13px;
  border-bottom: 1px solid #f1f3f7;
  color: #1f2937;
}
.sign-doc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  background: #0f1117;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
}
.sign-doc-total strong { font-size: 18px; font-family: 'SF Mono', Menlo, monospace; }

/* Side panel (form) */
.sign-side {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sign-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 4px 12px -4px rgba(15, 17, 23, 0.06);
}
.sign-form-head { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #f1f3f7; }
.sign-form-head h2 { margin: 0 0 0.3rem; font-size: 17px; font-weight: 600; color: #0f1117; }
.sign-form-head p { margin: 0; font-size: 12.5px; color: #6b7280; line-height: 1.45; }
.sign-form .form-group { margin-bottom: 0.8rem; }
.sign-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.3rem;
}
.sign-form input[type="text"],
.sign-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sign-form input[type="text"]:focus,
.sign-form input[type="email"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.sign-form .required { color: #dc2626; }

.sign-mode-toggle {
  display: flex;
  background: #f3f4f7;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  margin: 0.8rem 0;
}
.sign-mode-btn {
  flex: 1;
  padding: 0.5rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sign-mode-btn.is-active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15,17,23,0.08);
}

/* Pad */
.sign-pad-wrap {
  position: relative;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  height: 220px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.sign-pad-wrap canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  display: block;
  touch-action: none;
}
.sign-pad-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: #9ca3af;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.sign-pad-clear {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: #6b7280;
  cursor: pointer;
}
.sign-pad-clear:hover { background: #f3f4f6; color: #1f2937; }

/* Upload */
.sign-upload-btn {
  width: 100%;
  padding: 1.6rem;
  background: #fafbfd;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: 0.8rem;
}
.sign-upload-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.sign-upload-preview {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}
.sign-upload-preview img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  margin: 0 auto;
}
.sign-upload-preview button {
  position: absolute;
  top: 6px; right: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
}

/* Type */
.sign-type-wrap input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 0.5rem;
  outline: none;
  font-family: inherit;
}
.sign-type-preview {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  font-style: italic;
  font-size: 32px;
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  color: #0f1117;
  margin-bottom: 0.8rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Consent */
.sign-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.5;
  margin: 1rem 0;
  padding: 0.7rem 0.8rem;
  background: #fafbfd;
  border-radius: 8px;
  cursor: pointer;
}
.sign-consent input { margin-top: 2px; flex-shrink: 0; }

/* Submit */
.sign-submit-btn {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.sign-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.55);
}
.sign-submit-btn:disabled { opacity: 0.6; cursor: progress; }

.sign-error-inline {
  margin-top: 0.7rem;
  padding: 0.55rem 0.8rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 12.5px;
  color: #b91c1c;
}

.sign-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: 11.5px;
  color: #6b7280;
}
.sign-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sign-already-preview { margin-top: 1.5rem; text-align: left; }
.sign-already-sig {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}
.sign-already-sig img {
  display: block;
  max-width: 280px;
  height: auto;
  margin-top: 0.5rem;
}

@media (max-width: 940px) {
  .sign-flow { grid-template-columns: 1fr; }
  .sign-side { position: static; }
}

/* Barre signature électronique dans devis / reçu */
.sign-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 1px 2px rgba(15, 17, 23, 0.03);
}
.sign-bar-main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.sign-bar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sign-bar-copy { flex: 1; min-width: 0; }
.sign-bar-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f1117;
  margin-bottom: 0.15rem;
}
.sign-bar-desc {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.45;
}

.sign-bar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.sign-bar-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sign-bar-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.sign-bar-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15,17,23,0.15);
  transition: left 0.2s ease;
}
.sign-bar-toggle input:checked ~ .sign-bar-toggle-track {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.sign-bar-toggle input:checked ~ .sign-bar-toggle-track .sign-bar-toggle-thumb { left: 18px; }
.sign-bar-toggle-lbl { font-size: 13px; font-weight: 500; color: #1f2937; }

.sign-bar-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sign-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12.5px;
  color: #4b5563;
}
.sign-bar-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.18);
}
.sign-bar-btns { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }

.sign-bar-signed {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}
.sign-bar-signed-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 13.5px;
  color: #14532d;
  margin-bottom: 0.6rem;
}
.sign-bar-signed-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sign-bar-signed img {
  display: block;
  max-width: 220px;
  height: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem;
}

@media (max-width: 720px) {
  .sign-bar-main { flex-wrap: wrap; }
  .sign-bar-toggle { width: 100%; justify-content: flex-start; }
}

/* Signatures card (dashboard) */
.signatures-card { padding: 1.4rem 1.6rem 1.2rem; margin-bottom: 1.4rem; }
.signatures-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f3f7;
}
.signatures-subtitle {
  margin: 0.2rem 0 0;
  font-size: 12.5px;
  color: #6b7280;
}
.signatures-summary {
  display: inline-flex;
  gap: 0.5rem;
}
.signatures-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.35rem 0.9rem;
  min-width: 64px;
}
.signatures-pill-num {
  font-size: 18px;
  font-weight: 600;
  color: #166534;
  line-height: 1.1;
}
.signatures-pill-lbl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16a34a;
  font-weight: 600;
}
.signatures-pill-pending {
  background: #fefce8;
  border-color: #fde68a;
}
.signatures-pill-pending .signatures-pill-num { color: #92400e; }
.signatures-pill-pending .signatures-pill-lbl { color: #d97706; }

.signatures-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.signatures-empty {
  padding: 1.2rem;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  font-style: italic;
}

.sig-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #f1f3f7;
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sig-row:hover { border-color: #e5e7eb; background: #fafbfd; }
.sig-row.is-signed { border-left: 3px solid #16a34a; }
.sig-row.is-pending { border-left: 3px solid #f59e0b; background: #fffbeb; }
.sig-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sig-icon-ok { background: #16a34a; color: #fff; }
.sig-icon-wait { background: #f59e0b; color: #fff; }
.sig-row-main { min-width: 0; }
.sig-row-doc {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sig-row-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 0.15rem;
}
.sig-row-date {
  font-size: 11.5px;
  color: #9ca3af;
  font-family: 'SF Mono', Menlo, monospace;
  white-space: nowrap;
}
.sig-row-actions {
  display: inline-flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .sig-row { grid-template-columns: 24px 1fr; }
  .sig-row-date, .sig-row-actions { grid-column: 2; padding-top: 0.2rem; }
}

.signatures-foot {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f1f3f7;
  text-align: center;
}
.signatures-foot a {
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.signatures-foot a:hover { color: #1d4ed8; text-decoration: underline; }

/* Page complète signatures */
.page-header .signatures-summary { gap: 0.6rem; }

/* ============= CONTRACTS ============= */

/* Editor layout */
.contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
  align-items: start;
}
.contract-preview-aside {
  position: sticky;
  top: 90px;
}
.contract-preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.contract-sheet {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1f2937;
  box-shadow: 0 8px 24px -10px rgba(15,17,23,0.08);
  max-height: 78vh;
  overflow-y: auto;
}
.contract-sheet-head {
  text-align: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #f1f3f7;
  margin-bottom: 1.2rem;
}
.contract-sheet-num {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11.5px;
  color: #9ca3af;
  letter-spacing: 0.06em;
}
.contract-sheet-head h1 {
  margin: 0.4rem 0 0.3rem;
  font-size: 22px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.contract-sheet-date {
  margin: 0;
  font-size: 12.5px;
  color: #6b7280;
  font-style: italic;
}
.contract-sheet-parties h3 {
  margin: 0 0 0.8rem;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}
.contract-sheet-party {
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.contract-sheet-party strong {
  display: block;
  font-size: 14px;
  color: #0f1117;
  margin-bottom: 0.2rem;
}
.contract-sheet-party div { font-size: 12.5px; color: #4b5563; }
.contract-sheet-party-tag {
  margin-top: 0.4rem;
  font-size: 11px;
  font-style: italic;
  color: #6b7280;
}
.contract-sheet-and, .contract-sheet-it-was {
  text-align: center;
  font-size: 13px;
  color: #4b5563;
  margin: 0.8rem 0;
  font-weight: 500;
}
.contract-sheet-it-was {
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
}
.contract-sheet-articles { margin: 1rem 0; }
.contract-sheet-articles article { margin-bottom: 1rem; }
.contract-sheet-articles h4 {
  margin: 0 0 0.4rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1117;
}
.contract-sheet-articles p {
  margin: 0;
  font-size: 12.5px;
  color: #1f2937;
  line-height: 1.6;
  text-align: justify;
}
.contract-sheet-closing {
  margin: 1.5rem 0 1rem;
  font-size: 12.5px;
  font-style: italic;
  color: #4b5563;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f7;
}
.contract-sheet-signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f7;
}
.contract-sheet-mini-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}
.contract-sheet-sign-line {
  height: 70px;
  border-bottom: 1.5px solid #d1d5db;
  position: relative;
}
.contract-sheet-sign-img {
  display: block;
  max-height: 70px;
  max-width: 100%;
  margin: 0 auto;
}
.contract-sheet-sign-meta {
  margin-top: 0.4rem;
  font-size: 10.5px;
  color: #6b7280;
  font-style: italic;
}

/* Article editor row */
.article-row {
  background: #fafbfd;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}
.article-row-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.article-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.article-title {
  flex: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
}
.article-title:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.article-body {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}
.article-body:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

@media (max-width: 1100px) {
  .contract-grid { grid-template-columns: 1fr; }
  .contract-preview-aside { position: static; }
  .contract-sheet { max-height: none; }
}

/* Public sign page — contract render */
.contract-pub-title {
  margin: 1rem 0 0.6rem;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.contract-pub-parties {
  padding: 1rem 0;
  border-top: 1px solid #f1f3f7;
  border-bottom: 1px solid #f1f3f7;
  margin-bottom: 1rem;
}
.contract-pub-intro, .contract-pub-and, .contract-pub-it-was {
  text-align: center;
  font-size: 13px;
  color: #4b5563;
  margin: 0.6rem 0;
  font-weight: 500;
}
.contract-pub-it-was {
  font-style: italic;
  padding-top: 0.6rem;
  border-top: 1px dashed #e5e7eb;
  margin-top: 1rem;
}
.contract-pub-party {
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
}
.contract-pub-party-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f1117;
  margin-bottom: 0.2rem;
}
.contract-pub-party-line {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.5;
}
.contract-pub-party-mail { color: #2563eb; }
.contract-pub-articles article {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #f1f3f7;
}
.contract-pub-articles article:last-child { border-bottom: none; }
.contract-pub-articles h3 {
  margin: 0 0 0.4rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1117;
}
.contract-pub-articles p {
  margin: 0;
  font-size: 13px;
  color: #1f2937;
  line-height: 1.55;
  text-align: justify;
}
.contract-pub-closing {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f7;
  font-size: 12.5px;
  font-style: italic;
  color: #4b5563;
}

/* Type tags in signatures lists */
.sig-type-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.sig-type-quote { background: #dbeafe; color: #1e40af; }
.sig-type-contract { background: #ede9fe; color: #6d28d9; }
.sig-type-receipt { background: #dcfce7; color: #166534; }

/* Derniers reçus (dashboard) */
.receipts-subtitle {
  margin: 0.2rem 0 0;
  font-size: 12.5px;
  color: #6b7280;
}
.receipts-list-header {
  grid-template-columns: 100px 1fr 130px 100px 130px;
}
.receipt-row {
  display: grid;
  grid-template-columns: 100px 1fr 130px 100px 130px;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f3f7;
  transition: background 0.1s ease;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row:hover { background: #fafbfd; }
.receipt-num {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 600;
}
.receipt-payeur { min-width: 0; }
.receipt-payeur-name {
  font-size: 14px;
  font-weight: 500;
  color: #0f1117;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-payeur-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12.5px;
  color: #4b5563;
  background: #f3f4f7;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
}
.receipt-mode-icon { font-size: 14px; }
.receipt-date {
  font-size: 12.5px;
  color: #6b7280;
}
.receipt-amount {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14.5px;
  font-weight: 600;
  text-align: right;
  color: #16a34a;
}

@media (max-width: 720px) {
  .receipts-list-header { grid-template-columns: 80px 1fr 100px; }
  .receipt-row { grid-template-columns: 80px 1fr 100px; }
  .receipts-list-header span:nth-child(3),
  .receipts-list-header span:nth-child(4),
  .receipt-row .receipt-mode,
  .receipt-row .receipt-date { display: none; }
}

/* ============= FOR BUSINESS ============= */
.forb-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #0f1117;
  -webkit-font-smoothing: antialiased;
}

/* Top nav */
.forb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}
.forb-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.forb-brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.forb-brand-tag {
  background: linear-gradient(135deg, #0f1117, #1f2937);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.forb-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
}
.forb-nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.forb-nav-links a:hover { color: #0f1117; }
.forb-nav-links a.btn { color: #fff; }
@media (max-width: 720px) {
  .forb-nav-links a:not(.btn) { display: none; }
}

/* Eyebrow */
.forb-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 1rem;
}
.forb-eyebrow-light { color: #c4b5fd; }

/* HERO */
.forb-hero {
  padding: 5rem 2rem 4rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(99,102,241,0.12), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(168,85,247,0.10), transparent 50%),
    #ffffff;
  text-align: center;
}
.forb-hero-inner { max-width: 880px; margin: 0 auto; }
.forb-hero-title {
  margin: 0 0 1.4rem;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0f1117;
}
.forb-grad {
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.forb-hero-desc {
  margin: 0 auto 2rem;
  max-width: 660px;
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
}
.forb-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.forb-hero-actions .btn-lg { padding: 0.85rem 1.6rem; font-size: 15px; border-radius: 999px; }
.forb-hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 12.5px;
  color: #6b7280;
}
.forb-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Sections */
.forb-section {
  padding: 5rem 2rem;
  max-width: 1140px;
  margin: 0 auto;
}
.forb-section-dark {
  max-width: none;
  background: linear-gradient(180deg, #0f1117 0%, #1a1d2e 100%);
  color: #cbd5e1;
}
.forb-section-dark .forb-section-head h2 { color: #fff; }
.forb-section-dark .forb-section-head p { color: #94a3b8; }
.forb-section-head {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 720px;
}
.forb-section-head h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f1117;
}
.forb-section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

/* Avantages cards */
.forb-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.forb-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.6rem 1.7rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.forb-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 40px -12px rgba(99,102,241,0.18);
}
.forb-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-family: 'SF Mono', Menlo, monospace;
  margin-bottom: 0.8rem;
}
.forb-card h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.forb-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* Modules grid (dark section) */
.forb-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.forb-module {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.forb-module:hover { background: rgba(99,102,241,0.08); border-color: rgba(165,180,252,0.4); }
.forb-module strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.forb-module span {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Steps */
.forb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  position: relative;
}
.forb-step {
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  position: relative;
}
.forb-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0.8rem;
  box-shadow: 0 8px 18px -6px rgba(99,102,241,0.4);
}
.forb-step h3 {
  margin: 0 0 0.4rem;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f1117;
}
.forb-step p {
  margin: 0;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.55;
}

/* FAQ */
.forb-faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.forb-faq details {
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  transition: border-color 0.15s ease;
}
.forb-faq details[open] {
  border-color: #c7d2fe;
  background: #ffffff;
}
.forb-faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 14.5px;
  color: #0f1117;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.forb-faq summary::-webkit-details-marker { display: none; }
.forb-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.forb-faq details[open] summary::after { content: '−'; }
.forb-faq p {
  margin: 0.6rem 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
}

/* CTA bottom */
.forb-cta {
  background: linear-gradient(135deg, #0f1117 0%, #1a1d2e 100%);
  padding: 5rem 2rem;
  text-align: center;
}
.forb-cta-inner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.forb-cta-inner p {
  margin: 0 0 1.6rem;
  font-size: 15px;
  color: #94a3b8;
}
.forb-cta-inner .btn-lg { padding: 0.85rem 1.8rem; font-size: 15px; border-radius: 999px; }

.forb-footer {
  padding: 2rem;
  background: #0f1117;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
@media (max-width: 720px) {
  .forb-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* === Promo bandeau sur l'accueil === */
.forb-promo {
  background: linear-gradient(135deg, #0f1117 0%, #1f2937 60%, #312e81 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.forb-promo::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  pointer-events: none;
}
.forb-promo-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.forb-promo-copy { color: #f1f3f7; }
.forb-promo-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 1rem;
}
.forb-promo-copy h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}
.forb-promo-copy p {
  margin: 0 0 1.4rem;
  font-size: 16px;
  line-height: 1.65;
  color: #cbd5e1;
}
.forb-promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.forb-promo-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 14px;
  color: #e5e7eb;
}
.forb-promo-list svg {
  width: 14px; height: 14px;
  color: #34d399;
  flex-shrink: 0;
}
.forb-promo-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.forb-promo-cta .btn-lg { padding: 0.8rem 1.5rem; font-size: 14.5px; border-radius: 999px; }
.forb-promo-cta .btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.forb-promo-cta .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.forb-promo-visual {
  display: flex;
  justify-content: center;
}
.forb-promo-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
}
.forb-promo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.forb-promo-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
}
.forb-promo-card-tag {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.3);
}
.forb-promo-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 13px;
}
.forb-promo-card-row span { color: #94a3b8; }
.forb-promo-card-row strong { color: #fff; font-weight: 600; }
.forb-promo-card-ok { color: #4ade80 !important; }
@media (max-width: 880px) {
  .forb-promo-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .forb-promo-visual { display: none; }
}

/* === Form (questionnaire) === */
.forb-form-main {
  padding: 3rem 1rem 5rem;
  background: #f3f4f7;
  min-height: calc(100vh - 80px);
}
.forb-form-shell {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 80px -25px rgba(15,17,23,0.18);
  overflow: hidden;
}
.forb-form-head {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #f1f3f7;
  text-align: center;
}
.forb-form-head h1 {
  margin: 0.4rem 0 0.4rem;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f1117;
}
.forb-form-head p {
  margin: 0 0 1.2rem;
  font-size: 14px;
  color: #6b7280;
}
.forb-stepper {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.forb-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: #f3f4f7;
  border-radius: 999px;
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 500;
}
.forb-step-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  font-family: 'SF Mono', Menlo, monospace;
}
.forb-step-pill.is-active {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff;
}
.forb-step-pill.is-active span { background: rgba(255,255,255,0.2); color: #fff; }
.forb-step-pill.is-done { background: #ecfdf5; color: #166534; }
.forb-step-pill.is-done span { background: #16a34a; color: #fff; }

.forb-form { padding: 1.6rem 2rem 2rem; }
.forb-form-step { display: none; }
.forb-form-step.is-active { display: block; }
.forb-form-step h2 {
  margin: 0 0 1.2rem;
  font-size: 17px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f1f3f7;
}
.forb-form .form-group { margin-bottom: 0.9rem; }
.forb-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
@media (max-width: 600px) { .forb-form .form-row { grid-template-columns: 1fr; } }
.forb-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.forb-form input[type="text"],
.forb-form input[type="email"],
.forb-form input[type="tel"],
.forb-form input[type="url"],
.forb-form select,
.forb-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #0f1117;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.forb-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.forb-form textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.forb-form input:focus,
.forb-form select:focus,
.forb-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.forb-form .required { color: #dc2626; }
.forb-form-hint {
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 0.3rem;
}

.forb-modules-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 10px;
  padding: 0.7rem;
}
.forb-modules-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.forb-modules-checks label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e40af;
}
.forb-modules-checks input[type="checkbox"] {
  margin: 0;
  accent-color: #2563eb;
}

.forb-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.55;
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  margin-top: 0.6rem;
}
.forb-consent input { flex-shrink: 0; margin-top: 2px; }

.forb-form-promise {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  font-size: 13px;
  color: #4338ca;
  width: 100%;
  box-sizing: border-box;
}
.forb-form-promise svg { color: #6366f1; flex-shrink: 0; }

.forb-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f1f3f7;
}
.forb-form-actions .btn-lg { padding: 0.7rem 1.4rem; font-size: 14px; }

.forb-form-error {
  margin-top: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  font-size: 13px;
  color: #b91c1c;
}

/* Success state */
.forb-success {
  max-width: 580px;
  margin: 3rem auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(15,17,23,0.18);
  padding: 3rem 2.4rem 2.4rem;
  text-align: center;
}
.forb-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 14px 30px -10px rgba(22,163,74,0.4);
}
.forb-success h1 {
  margin: 0 0 0.5rem;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f1117;
}
.forb-success-lead {
  margin: 0 0 1.4rem;
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.6;
}
.forb-success-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
  text-align: left;
}
.forb-success-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.2rem;
}
.forb-success-card strong {
  font-size: 14px;
  color: #0f1117;
}
.forb-success-ref {
  font-family: 'SF Mono', Menlo, monospace;
}
.forb-success-hint {
  font-size: 12.5px;
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 1.2rem;
}
@media (max-width: 480px) {
  .forb-success-card { grid-template-columns: 1fr; }
}

/* ============= FOR BUSINESS — VERSION ENTREPRISE ============= */

/* Hero pro override */
.forb-hero-pro {
  padding: 6rem 2rem 5rem;
  background:
    radial-gradient(circle at 15% 5%, rgba(84,104,255,0.10), transparent 55%),
    radial-gradient(circle at 85% 95%, rgba(99,102,241,0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f3f4f7 100%);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
.forb-hero-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,17,23,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,17,23,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}
.forb-hero-pro .forb-hero-inner { position: relative; z-index: 1; }

/* Numbers section */
.forb-numbers {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 2.5rem 2rem;
}
.forb-numbers-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.forb-number {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}
.forb-number:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  width: 1px;
  background: #e5e7eb;
}
.forb-number strong {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.03em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1;
}
.forb-number span {
  font-size: 12.5px;
  color: #6b7280;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .forb-numbers-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .forb-number:not(:last-child)::after { display: none; }
  .forb-number:nth-child(odd):not(:last-child)::after {
    display: block;
    right: -0.8rem;
  }
}

/* Feature image section */
.forb-feature-image {
  padding: 6rem 2rem;
  background: #ffffff;
}
.forb-feature-image-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.forb-feature-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 40px 80px -20px rgba(15,17,23,0.25), 0 12px 24px -8px rgba(15,17,23,0.1);
}
.forb-feature-image-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(15,17,23,0.55) 0%, rgba(15,17,23,0.15) 50%, rgba(84,104,255,0.25) 100%),
    url('../assets/business-team.jpg');
  background-size: cover;
  background-position: center 30%;
  transition: transform 0.6s ease;
}
.forb-feature-image-frame:hover .forb-feature-image-photo {
  transform: scale(1.04);
}
/* Fallback gradient si l'image n'est pas encore présente */
.forb-feature-image-photo {
  background-color: #1f2937;
}
.forb-feature-image-overlay {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 24px 50px -16px rgba(15,17,23,0.4);
}
.forb-feature-image-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5468ff;
  margin-bottom: 0.6rem;
}
.forb-feature-image-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.55);
  animation: forb-pulse 1.8s ease-out infinite;
}
@keyframes forb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.forb-feature-image-overlay h3 {
  margin: 0 0 0.4rem;
  font-size: 17px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.forb-feature-image-overlay p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
}

.forb-feature-image-aside h2 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.forb-feature-image-aside p {
  margin: 0 0 1.2rem;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
}
.forb-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.forb-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.5;
}
.forb-feature-check {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 980px) {
  .forb-feature-image-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .forb-feature-image-frame { aspect-ratio: 16 / 10; }
}

/* Témoignage */
.forb-quote-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 5rem 2rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.forb-quote-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.forb-quote-mark {
  color: #c7d2fe;
  margin-bottom: 1.4rem;
}
.forb-quote-section blockquote {
  margin: 0 0 2rem;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: #0f1117;
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-style: italic;
}
.forb-quote-author {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}
.forb-quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5468ff, #6366f1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.forb-quote-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f1117;
}
.forb-quote-role {
  font-size: 12.5px;
  color: #6b7280;
}

/* Sécurité */
.forb-security {
  padding: 6rem 2rem;
  background: #0f1117;
  color: #cbd5e1;
}
.forb-security-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
.forb-security-copy h2 {
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.forb-security-copy p {
  margin: 0 0 1.6rem;
  font-size: 15.5px;
  color: #94a3b8;
  line-height: 1.65;
}
.forb-security-copy .forb-eyebrow { color: #a5b4fc; }
.forb-security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.forb-security-list li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.forb-security-list strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.forb-security-list span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.forb-security-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.forb-security-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.forb-security-badge:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(165,180,252,0.4);
  transform: translateY(-2px);
}
.forb-security-badge svg {
  color: #a5b4fc;
  margin-bottom: 0.3rem;
}
.forb-security-badge strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.forb-security-badge span {
  font-size: 11.5px;
  color: #94a3b8;
}

@media (max-width: 880px) {
  .forb-security-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .forb-security-list { grid-template-columns: 1fr; }
}

/* Footer pro */
.forb-footer-pro {
  background: #0a0c12;
  color: #94a3b8;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.forb-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.forb-footer-brand img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.forb-footer-brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 320px;
}
.forb-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.forb-footer-cols h4 {
  margin: 0 0 0.8rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.forb-footer-cols a {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.15s ease;
}
.forb-footer-cols a:hover { color: #fff; }
.forb-footer-bottom {
  max-width: 1180px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #6b7280;
}
@media (max-width: 720px) {
  .forb-footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .forb-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .forb-footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}

/* Eyebrow override pour la version entreprise */
.forb-hero-pro .forb-eyebrow,
.forb-feature-image-aside .forb-eyebrow {
  color: #5468ff;
  background: #eef2ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

/* ============= FOR BUSINESS — VERSION CLAIRE / OPENAI-LIKE ============= */

.forb-body-pro {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #0f1117;
  -webkit-font-smoothing: antialiased;
}

/* Navbar flottante */
.forb-nav-floating {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.25s ease;
  z-index: 100;
}
.forb-nav-floating.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  padding: 0.9rem 2.2rem;
  box-shadow: none;
}
.forb-nav-floating .forb-brand-logo {
  height: 64px;
  width: auto;
  transition: height 0.25s ease;
}
.forb-nav-floating.is-scrolled .forb-brand-logo { height: 56px; }
.forb-nav-floating .forb-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
}
.forb-nav-floating .forb-nav-links a {
  color: #1f2937;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.forb-nav-floating .forb-nav-links a:hover { color: #5468ff; }
.forb-nav-cta {
  background: #0f1117;
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 13.5px !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.forb-nav-cta:hover { background: #5468ff; transform: translateY(-1px); }

@media (max-width: 820px) {
  .forb-nav-floating .forb-nav-links a:not(.forb-nav-cta) { display: none; }
  .forb-nav-floating { padding: 0.9rem 1.2rem; }
}

/* Hero */
.forb-hero-clean {
  padding: 5rem 2rem 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(99,102,241,0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(168,85,247,0.08), transparent 70%),
    #ffffff;
  position: relative;
}
.forb-hero-clean::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,17,23,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,17,23,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}
.forb-hero-clean .forb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

/* Numbers clean */
.forb-numbers-clean {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid #f1f3f7;
}

/* Logos marquee */
.forb-logos {
  padding: 2rem 0 3rem;
  background: #ffffff;
  overflow: hidden;
}
.forb-logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 1.4rem;
}
.forb-logos-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.forb-logos-track {
  display: inline-flex;
  gap: 4rem;
  white-space: nowrap;
  animation: forb-marquee 38s linear infinite;
  padding-right: 4rem;
}
.forb-logos-track span {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
@keyframes forb-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section solutions / splits */
.forb-solutions {
  padding: 6rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.forb-section-head-left {
  text-align: left;
  max-width: 720px;
  margin: 0 0 4rem;
}
.forb-section-head-left h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0f1117;
  line-height: 1.1;
}

.forb-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}
.forb-split:last-child { margin-bottom: 0; }
.forb-split-reverse { grid-template-columns: 1.05fr 1fr; }
.forb-split-reverse .forb-split-text { order: 2; }
.forb-split-reverse .forb-split-visual { order: 1; }

.forb-split-text h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f1117;
  line-height: 1.2;
}
.forb-split-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.forb-split-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
}
.forb-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5468ff;
  margin-top: 9px;
  flex-shrink: 0;
}
.forb-split-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 15px;
  font-weight: 500;
  color: #5468ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, gap 0.15s ease;
}
.forb-split-link:hover {
  border-color: #5468ff;
  gap: 0.5rem;
}

.forb-split-visual {
  border-radius: 24px;
  padding: 2rem;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.forb-visual-1 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #c7d2fe 100%);
}
.forb-visual-2 {
  background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 50%, #a7f3d0 100%);
}
.forb-visual-3 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
}

/* Mock teams (visual 1) */
.forb-mock {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 24px 50px -16px rgba(15,17,23,0.18), 0 4px 10px -4px rgba(15,17,23,0.06);
  width: 100%;
  max-width: 420px;
}
.forb-mock-team {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.forb-mock-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.5rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.forb-mock-row:hover { background: #fafbfd; }
.forb-mock-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.forb-mock-row strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f1117;
}
.forb-mock-row > div > span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}
.forb-mock-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.forb-mock-tag-green { background: #dcfce7; color: #166534; }
.forb-mock-tag-grey { background: #f3f4f7; color: #6b7280; }

/* Mock security (visual 2) */
.forb-mock-security {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.forb-mock-shield {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  box-shadow: 0 14px 30px -10px rgba(22,163,74,0.5);
}
.forb-mock-cert {
  display: grid;
  grid-template-columns: 1fr auto 14px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem;
  background: #fafbfd;
  border: 1px solid #f1f3f7;
  border-radius: 10px;
}
.forb-mock-cert strong { font-size: 13px; font-weight: 600; color: #0f1117; }
.forb-mock-cert span:not(.forb-mock-cert-dot) { font-size: 11.5px; color: #6b7280; }
.forb-mock-cert-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.forb-mock-cert-dot-progress { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.forb-mock-cert-dot-grey { background: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,0.18); }
.forb-mock-encryption {
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  background: #0f1117;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.forb-mock-encryption-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6366f1;
}
.forb-mock-encryption code {
  font-size: 12.5px;
  color: #d1d5db;
  font-family: 'SF Mono', Menlo, monospace;
}

/* Mock integrations (visual 3) */
.forb-mock-integrations {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.forb-mock-int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.forb-mock-int {
  background: #fff;
  border: 1px solid var(--c, #e5e7eb);
  color: var(--c, #4b5563);
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c, #5468ff) 5%, white) 100%);
}
.forb-mock-int:hover { transform: translateY(-2px); }
.forb-mock-int-caption {
  font-size: 11.5px;
  color: #6b7280;
  text-align: center;
  font-style: italic;
}

@media (max-width: 880px) {
  .forb-split { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
  .forb-split-reverse .forb-split-text { order: 1; }
  .forb-split-reverse .forb-split-visual { order: 2; }
  .forb-split-visual { min-height: 280px; }
}

/* Section avec carousel */
.forb-section-carousel {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  padding: 5rem 0;
  max-width: none;
}
.forb-section-carousel .forb-section-head { padding: 0 2rem; }
.forb-carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.forb-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 2rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.forb-carousel-track::-webkit-scrollbar { display: none; }
.forb-carousel-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.6rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.forb-carousel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, #5468ff);
}
.forb-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(15,17,23,0.16);
  border-color: var(--accent, #c7d2fe);
}
.forb-carousel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #5468ff) 12%, white);
  color: var(--accent, #5468ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.forb-carousel-card h3 {
  margin: 0 0 0.4rem;
  font-size: 17px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.forb-carousel-card p {
  margin: 0;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.55;
}
.forb-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  box-shadow: 0 8px 18px -8px rgba(15,17,23,0.18);
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}
.forb-carousel-arrow:hover { background: #f3f4f7; transform: translateY(-50%) scale(1.05); }
.forb-carousel-prev { left: 0.6rem; }
.forb-carousel-next { right: 0.6rem; }

@media (max-width: 720px) {
  .forb-carousel-arrow { display: none; }
}

/* Process timeline */
.forb-process {
  padding: 6rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.forb-process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}
.forb-process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, #5468ff, #a855f7);
  opacity: 0.25;
  z-index: 0;
}
.forb-process-step {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 1rem 1.2rem 1.4rem;
}
.forb-process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5468ff, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 1rem;
  font-family: 'SF Mono', Menlo, monospace;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 28px -10px rgba(99,102,241,0.5);
}
.forb-process-step h3 {
  margin: 0 0 0.4rem;
  font-size: 16px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
}
.forb-process-step p {
  margin: 0;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.55;
}
@media (max-width: 880px) {
  .forb-process-timeline { grid-template-columns: 1fr 1fr; }
  .forb-process-timeline::before { display: none; }
}
@media (max-width: 520px) {
  .forb-process-timeline { grid-template-columns: 1fr; }
}

/* Témoignages */
.forb-testimonials {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}
.forb-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.forb-testimonial {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.8rem 1.8rem 1.4rem;
  margin: 0;
  box-shadow: 0 4px 12px -4px rgba(15,17,23,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.forb-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(15,17,23,0.12);
}
.forb-testimonial p {
  margin: 0 0 1.4rem;
  font-size: 15px;
  line-height: 1.65;
  color: #1f2937;
  font-style: italic;
  position: relative;
  padding-left: 14px;
}
.forb-testimonial p::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 32px;
  color: #5468ff;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.forb-testimonial cite {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-style: normal;
}
.forb-testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.forb-testimonial cite > span:not(.forb-testimonial-avatar) {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
}
.forb-testimonial cite strong {
  font-size: 13.5px;
  color: #0f1117;
  font-weight: 600;
  display: block;
}

/* Ressources cards (style OpenAI bottom) */
.forb-resources {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.forb-resources .forb-section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.forb-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.forb-resource-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.forb-resource-card:hover { transform: translateY(-4px); }
.forb-resource-card:hover .forb-resource-img { box-shadow: 0 28px 56px -16px rgba(15,17,23,0.22); }
.forb-resource-img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: box-shadow 0.25s ease;
  box-shadow: 0 8px 20px -8px rgba(15,17,23,0.1);
}
.forb-resource-mock {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 14px 28px -10px rgba(15,17,23,0.18);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 60%;
  text-align: center;
}
.forb-resource-mock strong {
  font-size: 16px;
  font-weight: 600;
  color: #0f1117;
}
.forb-resource-mock > span {
  font-size: 12px;
  color: #6b7280;
}
.forb-resource-mock-pill {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5468ff;
  background: #eef2ff;
  border-radius: 999px;
  padding: 3px 10px;
  align-self: center;
}
.forb-resource-mock-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 999px;
  align-self: center;
}
.forb-resource-mock-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3f4f7;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  margin: 0 2px;
}
.forb-resource-mock-step.is-active {
  background: #16a34a;
  color: #fff;
}
.forb-resource-meta {
  display: flex;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.forb-resource-card h3 {
  margin: 0 0 0.4rem;
  font-size: 17px;
  font-weight: 600;
  color: #0f1117;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.forb-resource-card p {
  margin: 0;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
}

/* Final CTA */
.forb-final-cta {
  padding: 6rem 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.10), transparent 70%),
    #ffffff;
  text-align: center;
}
.forb-final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.forb-final-cta h2 {
  margin: 0.6rem 0 1.6rem;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0f1117;
  line-height: 1.15;
}
.forb-final-cta .btn-lg {
  padding: 0.85rem 2rem;
  font-size: 15px;
  border-radius: 999px;
}

/* Footer light */
.forb-footer-light {
  padding: 2rem;
  border-top: 1px solid #f1f3f7;
  background: #ffffff;
}
.forb-footer-light-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.forb-footer-light-inner .forb-brand-logo { height: 36px; width: auto; }
.forb-footer-light-links {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.forb-footer-light-links a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}
.forb-footer-light-links a:hover { color: #0f1117; }
.forb-footer-light-copy {
  font-size: 12px;
  color: #9ca3af;
}
@media (max-width: 720px) {
  .forb-footer-light-inner { flex-direction: column; text-align: center; }
}

/* Eyebrow chips */
.forb-hero-clean .forb-eyebrow,
.forb-section-head .forb-eyebrow,
.forb-section-head-left .forb-eyebrow,
.forb-final-cta .forb-eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: #5468ff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

/* Confirmation mot de passe — auth */
.auth-password-match {
  margin-top: 0.45rem;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.auth-password-match.is-ok { color: #16a34a; }
.auth-password-match.is-error { color: #dc2626; }
.auth-form input[type="password"].is-ok {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.auth-form input[type="password"].is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ===== For AI — Account page ===== */
.forai-account-body {
  background: linear-gradient(180deg, #fafafe 0%, #ffffff 100%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f1117;
}

.forai-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.forai-account-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #0f1117;
}

.forai-account-back {
  font-size: 13px;
  font-weight: 600;
  color: #6172f3;
  text-decoration: none;
}
.forai-account-back:hover { text-decoration: underline; }

.forai-account-main {
  padding: 2.5rem 1.5rem 4rem;
}

.forai-account-container {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.forai-account-hero {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(97, 114, 243, 0.08), rgba(168, 85, 247, 0.08));
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 19, 0.05);
}

.forai-account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  flex-shrink: 0;
}

.forai-account-hero h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.forai-account-email {
  font-size: 13px;
  color: #5b6178;
  margin-bottom: 8px;
}

.forai-account-plan-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #6172f3;
  border: 1px solid rgba(97, 114, 243, 0.25);
}

.forai-account-card {
  background: #fff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 18px;
  padding: 1.6rem;
}

.forai-account-card h2 {
  margin: 0 0 0.4rem;
  font-size: 17px;
  font-weight: 800;
}

.forai-account-card-desc {
  margin: 0 0 1.1rem;
  font-size: 13px;
  color: #5b6178;
}

.forai-account-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.forai-account-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.forai-account-form input {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 15, 19, 0.12);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: #fafafe;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.forai-account-form input:focus {
  border-color: #6172f3;
  box-shadow: 0 0 0 3px rgba(97, 114, 243, 0.12);
}

.btn-forai-primary,
.btn-forai-secondary,
.btn-forai-danger {
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  align-self: flex-start;
}

.btn-forai-primary {
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #fff;
}
.btn-forai-primary:hover { transform: translateY(-1px); }

.btn-forai-secondary {
  background: #fff;
  color: #6172f3;
  border: 1px solid rgba(97, 114, 243, 0.3);
}
.btn-forai-secondary:hover { background: rgba(97, 114, 243, 0.06); }

.btn-forai-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.btn-forai-danger:hover { background: rgba(220, 38, 38, 0.06); }

.forai-account-danger {
  border-color: rgba(220, 38, 38, 0.15);
}

/* Plans */
.forai-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}

.forai-plan {
  position: relative;
  background: #fafafe;
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.forai-plan:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 114, 243, 0.4);
  box-shadow: 0 8px 24px rgba(15, 15, 19, 0.06);
}

.forai-plan.is-featured {
  background: linear-gradient(180deg, #fff, #fafafe);
  border-color: rgba(97, 114, 243, 0.5);
  box-shadow: 0 6px 20px rgba(97, 114, 243, 0.1);
}

.forai-plan.is-current {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.04);
}

.forai-plan.is-current::after {
  content: 'Plan actuel';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.forai-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.forai-plan h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.forai-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 4px;
}

.forai-plan-price span {
  font-size: 28px;
  font-weight: 800;
  color: #0f1117;
}

.forai-plan-price small {
  font-size: 12px;
  color: #5b6178;
}

.forai-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.forai-plan-features li {
  font-size: 13px;
  color: #2d3142;
  padding-left: 1.2rem;
  position: relative;
}

.forai-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

.forai-plan button {
  align-self: stretch;
  text-align: center;
}

@media (max-width: 760px) {
  .forai-plans { grid-template-columns: 1fr; }
  .forai-account-row { grid-template-columns: 1fr; }
}

/* ===== For AI — Settings modal ===== */
body.forai-modal-open { overflow: hidden; }

.forai-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: foraiOverlayIn 160ms ease;
}

.forai-settings-overlay[hidden] { display: none; }

@keyframes foraiOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.forai-settings-modal {
  background: var(--forai-modal-bg, #ffffff);
  color: var(--forai-text, #0f1117);
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 15, 19, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: foraiModalIn 220ms cubic-bezier(0.34, 1.36, 0.64, 1);
}

@keyframes foraiModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.forai-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--forai-border, rgba(15, 15, 19, 0.08));
}

.forai-settings-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.forai-settings-close {
  background: transparent;
  border: none;
  color: var(--forai-muted, #5f6684);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
}
.forai-settings-close:hover {
  background: var(--forai-hover, rgba(15, 15, 19, 0.06));
  color: var(--forai-text, #0f1117);
}

.forai-settings-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 1;
  min-height: 0;
}

.forai-settings-nav {
  border-right: 1px solid var(--forai-border, rgba(15, 15, 19, 0.08));
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.forai-settings-nav button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--forai-text-secondary, #2d3142);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.forai-settings-nav button svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.forai-settings-nav button:hover {
  background: var(--forai-hover, rgba(15, 15, 19, 0.05));
}

.forai-settings-nav button.is-active {
  background: var(--forai-active, rgba(97, 114, 243, 0.1));
  color: var(--forai-accent, #4f5dd6);
}
.forai-settings-nav button.is-active svg { opacity: 1; }

.forai-settings-panels {
  overflow-y: auto;
  padding: 1.4rem 1.6rem 1.8rem;
}

.forai-settings-panel {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}
.forai-settings-panel.is-active {
  display: flex;
}

.forai-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.forai-setting-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.forai-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--forai-text, #0f1117);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.forai-setting-label small {
  font-size: 12px;
  font-weight: 400;
  color: var(--forai-muted, #6f7594);
}

.forai-setting-control { flex-shrink: 0; }
.forai-setting-control-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.forai-setting-divider {
  height: 1px;
  background: var(--forai-border, rgba(15, 15, 19, 0.06));
  margin: 0.4rem 0;
}

.forai-segmented {
  display: inline-flex;
  background: var(--forai-segmented-bg, #f4f4f8);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}

.forai-segmented button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--forai-muted, #6f7594);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.forai-segmented button.is-active {
  background: var(--forai-modal-bg, #fff);
  color: var(--forai-text, #0f1117);
  box-shadow: 0 1px 3px rgba(15, 15, 19, 0.08);
}

.forai-segmented button svg { flex-shrink: 0; }

.forai-select,
.forai-input {
  font: inherit;
  font-size: 14px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--forai-border-strong, rgba(15, 15, 19, 0.12));
  border-radius: 8px;
  background: var(--forai-input-bg, #ffffff);
  color: var(--forai-text, #0f1117);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 160px;
}

.forai-select:focus,
.forai-input:focus {
  border-color: #6172f3;
  box-shadow: 0 0 0 3px rgba(97, 114, 243, 0.15);
}

.forai-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  cursor: pointer;
}
.forai-switch input { opacity: 0; width: 0; height: 0; }
.forai-switch span {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.forai-switch span::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.forai-switch input:checked + span { background: #6172f3; }
.forai-switch input:checked + span::after { transform: translateX(16px); }

.forai-btn-primary,
.forai-btn-secondary,
.forai-btn-danger {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  align-self: flex-start;
}

.forai-btn-primary {
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #fff;
}
.forai-btn-primary:hover { filter: brightness(1.05); }

.forai-btn-secondary {
  background: var(--forai-modal-bg, #fff);
  color: var(--forai-accent, #4f5dd6);
  border-color: rgba(97, 114, 243, 0.3);
}
.forai-btn-secondary:hover { background: rgba(97, 114, 243, 0.06); }

.forai-btn-danger {
  background: var(--forai-modal-bg, #fff);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.35);
}
.forai-btn-danger:hover { background: rgba(220, 38, 38, 0.06); }

/* Profile */
.forai-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--forai-card-bg, #fafafe);
  border: 1px solid var(--forai-border, rgba(15, 15, 19, 0.06));
  border-radius: 12px;
}
.forai-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6172f3, #ec4899);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}
.forai-profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--forai-text, #0f1117);
}
.forai-profile-email {
  font-size: 13px;
  color: var(--forai-muted, #6f7594);
}

/* Data */
.forai-data-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.forai-data-stat {
  background: var(--forai-card-bg, #fafafe);
  border: 1px solid var(--forai-border, rgba(15, 15, 19, 0.06));
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.forai-data-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forai-muted, #6f7594);
  margin-bottom: 4px;
}
.forai-data-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--forai-text, #0f1117);
}

/* About */
.forai-about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.forai-about-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 18px;
  font-weight: 700;
}
.forai-about-version {
  font-size: 12px;
  color: var(--forai-muted, #6f7594);
  font-weight: 500;
}
.forai-about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--forai-border, rgba(15, 15, 19, 0.06));
  border-radius: 10px;
  overflow: hidden;
}
.forai-about-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  font-size: 13px;
  border-bottom: 1px solid var(--forai-border, rgba(15, 15, 19, 0.05));
}
.forai-about-list li:last-child { border-bottom: 0; }
.forai-about-list span { color: var(--forai-muted, #6f7594); }
.forai-about-list strong { font-weight: 600; color: var(--forai-text, #0f1117); }

.forai-about-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.forai-about-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--forai-accent, #4f5dd6);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  background: var(--forai-card-bg, #fafafe);
  border: 1px solid var(--forai-border, rgba(15, 15, 19, 0.06));
}
.forai-about-links a:hover {
  background: rgba(97, 114, 243, 0.06);
}
.forai-about-foot {
  font-size: 11.5px;
  color: var(--forai-muted, #9aa0bb);
  margin: 0;
  text-align: center;
}

/* ===== Dark theme ===== */
:root[data-forai-theme="dark"] {
  --forai-text: #e8e9ee;
  --forai-text-secondary: #c5c8d6;
  --forai-muted: #8e93a8;
  --forai-modal-bg: #1c1d22;
  --forai-card-bg: #25262d;
  --forai-input-bg: #25262d;
  --forai-border: rgba(255, 255, 255, 0.08);
  --forai-border-strong: rgba(255, 255, 255, 0.14);
  --forai-hover: rgba(255, 255, 255, 0.06);
  --forai-active: rgba(97, 114, 243, 0.18);
  --forai-segmented-bg: #2a2b32;
  --forai-accent: #8b9bff;
}

:root[data-forai-theme="dark"] .forai-chat-body {
  background: #16171b;
  color: #e8e9ee;
}
:root[data-forai-theme="dark"] .forai-chat-sidebar {
  background: #1a1b20;
  border-right-color: rgba(255, 255, 255, 0.06);
}
:root[data-forai-theme="dark"] .forai-history-title { color: #c5c8d6; }
:root[data-forai-theme="dark"] .forai-history-item:hover { background: rgba(255, 255, 255, 0.04); }
:root[data-forai-theme="dark"] .forai-history-item.is-active { background: rgba(97, 114, 243, 0.18); }
:root[data-forai-theme="dark"] .forai-new-chat-btn {
  background: #25262d;
  color: #c5c8d6;
  border-color: rgba(255, 255, 255, 0.1);
}
:root[data-forai-theme="dark"] .forai-new-chat-btn:hover {
  background: #2c2e36;
  border-color: rgba(97, 114, 243, 0.4);
}
:root[data-forai-theme="dark"] .forai-history-label { color: #6e7388; }
:root[data-forai-theme="dark"] .forai-sidebar-foot { border-top-color: rgba(255, 255, 255, 0.06); }
:root[data-forai-theme="dark"] .forai-user-row:hover,
:root[data-forai-theme="dark"] .forai-user-row.is-open { background: rgba(255, 255, 255, 0.05); }
:root[data-forai-theme="dark"] .forai-user-info strong { color: #e8e9ee; }
:root[data-forai-theme="dark"] .forai-user-menu-btn { color: #8e93a8; }
:root[data-forai-theme="dark"] .forai-user-menu-btn:hover { background: rgba(255,255,255,0.08); color: #e8e9ee; }
:root[data-forai-theme="dark"] .forai-user-menu {
  background: #25262d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}
:root[data-forai-theme="dark"] .forai-user-menu-item { color: #c5c8d6; }
:root[data-forai-theme="dark"] .forai-user-menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
:root[data-forai-theme="dark"] .forai-chat-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(28, 29, 34, 0.7);
}
:root[data-forai-theme="dark"] .forai-chat-title { color: #e8e9ee; }
:root[data-forai-theme="dark"] .forai-clear-btn { color: #8e93a8; }
:root[data-forai-theme="dark"] .forai-message.is-user .forai-message-bubble {
  background: #2a2b32;
  color: #e8e9ee;
}
:root[data-forai-theme="dark"] .forai-message.is-bot .forai-message-bubble {
  background: rgba(97, 114, 243, 0.1);
  color: #e8e9ee;
}
:root[data-forai-theme="dark"] .forai-empty-chat h2 { color: #e8e9ee; }
:root[data-forai-theme="dark"] .forai-empty-chat p { color: #9aa0bb; }
:root[data-forai-theme="dark"] .forai-suggestion {
  background: #25262d;
  border-color: rgba(255,255,255,0.08);
  color: #e8e9ee;
}
:root[data-forai-theme="dark"] .forai-suggestion strong { color: #e8e9ee; }
:root[data-forai-theme="dark"] .forai-suggestion span { color: #9aa0bb; }
:root[data-forai-theme="dark"] .forai-suggestion:hover { background: #2c2e36; }
:root[data-forai-theme="dark"] .forai-chat-composer {
  background: #16171b;
  border-top: 1px solid rgba(255,255,255,0.06);
}
:root[data-forai-theme="dark"] .forai-composer-form {
  background: #25262d;
  border-color: rgba(255,255,255,0.1);
}
:root[data-forai-theme="dark"] .forai-composer-form textarea {
  background: transparent;
  color: #e8e9ee;
}
:root[data-forai-theme="dark"] .forai-composer-form textarea::placeholder { color: #6e7388; }
:root[data-forai-theme="dark"] .forai-composer-hint { color: #6e7388; }
:root[data-forai-theme="dark"] .forai-attach-btn { color: #8b9bff; }

@media (max-width: 720px) {
  .forai-settings-body { grid-template-columns: 1fr; }
  .forai-settings-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--forai-border, rgba(15,15,19,0.08)); }
  .forai-data-stats { grid-template-columns: 1fr; }
  .forai-setting-row { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
}

/* ===== For Help Center page ===== */
.forai-help-body {
  background: linear-gradient(180deg, #fafafe 0%, #ffffff 100%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f1117;
  margin: 0;
}

.forai-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
  position: sticky;
  top: 0;
  z-index: 5;
}

.forai-help-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.forai-help-logo {
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, 0.25));
}

.forai-help-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.forai-help-brand-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.forai-help-brand-text span {
  font-size: 11.5px;
  color: #6f7594;
  font-weight: 500;
}

.forai-help-back {
  font-size: 13px;
  font-weight: 600;
  color: #6172f3;
  text-decoration: none;
}
.forai-help-back:hover { text-decoration: underline; }

.forai-help-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.forai-help-hero {
  text-align: center;
  padding: 1rem 1rem 0.5rem;
}

.forai-help-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  background: linear-gradient(135deg, #6172f3 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.forai-help-hero p {
  font-size: 15px;
  color: #5b6178;
  margin: 0 auto 1.4rem;
  max-width: 540px;
}

.forai-help-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.forai-help-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a90aa;
  pointer-events: none;
}

.forai-help-search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid rgba(15, 15, 19, 0.1);
  border-radius: 14px;
  background: #fff;
  outline: none;
  box-shadow: 0 4px 14px rgba(15, 15, 19, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.forai-help-search input:focus {
  border-color: rgba(97, 114, 243, 0.5);
  box-shadow: 0 0 0 4px rgba(97, 114, 243, 0.12);
}

.forai-help-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.forai-help-cat {
  background: #fff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 14px;
  padding: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.forai-help-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 15, 19, 0.07);
  border-color: rgba(97, 114, 243, 0.3);
}

.forai-help-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.forai-help-cat h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #0f1117;
}

.forai-help-cat p {
  font-size: 12.5px;
  color: #6f7594;
  margin: 0;
  line-height: 1.5;
}

.forai-help-faq {
  background: #fff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 16px;
  padding: 1.6rem 1.6rem 1.4rem;
}

.forai-help-faq h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 1.1rem;
}

.forai-faq-list details {
  border-bottom: 1px solid rgba(15, 15, 19, 0.06);
  padding: 0.9rem 0.2rem;
}
.forai-faq-list details:last-child { border-bottom: 0; }

.forai-faq-list summary {
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 0.5rem;
  color: #0f1117;
}
.forai-faq-list summary::-webkit-details-marker { display: none; }

.forai-faq-list summary::after {
  content: '＋';
  font-size: 18px;
  font-weight: 400;
  color: #8a90aa;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.forai-faq-list details[open] summary::after { content: '−'; }

.forai-faq-list details p {
  font-size: 13.5px;
  color: #4b5070;
  line-height: 1.65;
  margin: 0.7rem 0 0.2rem;
}

.forai-faq-list details code {
  background: #f4f4f8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.forai-help-contact {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.6rem;
  background: #fff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 16px;
  padding: 1.8rem;
}

.forai-help-contact-info h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.forai-help-contact-info p {
  font-size: 13.5px;
  color: #5b6178;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.forai-help-contact-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.forai-help-contact-bullets li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13px;
  color: #2d3142;
}

.forai-help-contact-bullets svg {
  color: #16a34a;
  flex-shrink: 0;
}

.forai-help-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.forai-help-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.forai-help-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  color: #2d3142;
}

.forai-help-form input,
.forai-help-form select,
.forai-help-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 15, 19, 0.12);
  border-radius: 10px;
  background: #fafafe;
  color: #0f1117;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-weight: 400;
  resize: vertical;
}

.forai-help-form input:focus,
.forai-help-form select:focus,
.forai-help-form textarea:focus {
  border-color: #6172f3;
  box-shadow: 0 0 0 3px rgba(97, 114, 243, 0.15);
}

.forai-help-form button[type="submit"] {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
}

.forai-help-form-status {
  font-size: 13px;
  font-weight: 500;
  margin-top: 0.4rem;
}

.forai-help-form-status.is-success { color: #16a34a; }
.forai-help-form-status.is-error { color: #b42318; }

@media (max-width: 760px) {
  .forai-help-contact { grid-template-columns: 1fr; }
  .forai-help-form-row { grid-template-columns: 1fr; }
  .forai-help-hero h1 { font-size: 26px; }
}

/* ===== For AI — Limit reached modal ===== */
.forai-limit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 19, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1.5rem;
  animation: foraiOverlayIn 200ms ease;
}

.forai-limit-overlay[hidden] { display: none; }

.forai-limit-modal {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15, 15, 19, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2rem 2rem 1.4rem;
  text-align: center;
  animation: foraiLimitIn 280ms cubic-bezier(0.34, 1.36, 0.64, 1);
}

@keyframes foraiLimitIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.forai-limit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #6f7594;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
}
.forai-limit-close:hover {
  background: rgba(15, 15, 19, 0.06);
  color: #0f1117;
}

.forai-limit-icon {
  width: 64px;
  height: 64px;
  margin: 0.4rem auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(97, 114, 243, 0.15), rgba(168, 85, 247, 0.15));
  color: #6172f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forai-limit-modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
  color: #0f1117;
}

.forai-limit-text {
  font-size: 14.5px;
  color: #4b5070;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.forai-limit-text strong {
  color: #0f1117;
  font-weight: 700;
}

.forai-limit-sub {
  font-size: 13.5px;
  color: #6f7594;
  margin: 0 0 1.4rem;
}

.forai-limit-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.forai-limit-plan {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 15, 19, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1rem 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.forai-limit-plan[data-plan="plus"] {
  border-color: rgba(97, 114, 243, 0.5);
  box-shadow: 0 6px 20px rgba(97, 114, 243, 0.1);
}

.forai-limit-plan-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.forai-limit-plan h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f1117;
}

.forai-limit-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.forai-limit-plan-price span {
  font-size: 22px;
  font-weight: 800;
  color: #0f1117;
}
.forai-limit-plan-price small {
  font-size: 11.5px;
  color: #6f7594;
}

.forai-limit-plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 12.5px;
  color: #2d3142;
  flex: 1;
}

.forai-limit-plan ul li {
  padding-left: 1rem;
  position: relative;
}

.forai-limit-plan ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

.forai-limit-plan-btn {
  width: 100%;
  text-align: center;
  align-self: stretch !important;
}

.forai-limit-later {
  background: transparent;
  border: none;
  color: #6f7594;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem;
}
.forai-limit-later:hover { color: #0f1117; text-decoration: underline; }

/* Dark mode for limit modal */
:root[data-forai-theme="dark"] .forai-limit-modal {
  background: rgba(28, 29, 34, 0.92);
  border-color: rgba(255,255,255,0.08);
}
:root[data-forai-theme="dark"] .forai-limit-modal h2 { color: #fff; }
:root[data-forai-theme="dark"] .forai-limit-text { color: #c5c8d6; }
:root[data-forai-theme="dark"] .forai-limit-text strong { color: #fff; }
:root[data-forai-theme="dark"] .forai-limit-sub { color: #8e93a8; }
:root[data-forai-theme="dark"] .forai-limit-close { color: #8e93a8; }
:root[data-forai-theme="dark"] .forai-limit-close:hover { background: rgba(255,255,255,0.06); color: #fff; }
:root[data-forai-theme="dark"] .forai-limit-plan {
  background: rgba(37, 38, 45, 0.85);
  border-color: rgba(255,255,255,0.08);
}
:root[data-forai-theme="dark"] .forai-limit-plan h3,
:root[data-forai-theme="dark"] .forai-limit-plan-price span { color: #fff; }
:root[data-forai-theme="dark"] .forai-limit-plan ul { color: #c5c8d6; }

/* ===== Usage panel in Settings ===== */
.forai-usage-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.forai-usage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--forai-card-bg, #fafafe);
  border: 1px solid var(--forai-border, rgba(15, 15, 19, 0.06));
  border-radius: 12px;
}

.forai-usage-plan-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forai-muted, #6f7594);
  margin-bottom: 4px;
}

.forai-usage-plan-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--forai-text, #0f1117);
}

.forai-usage-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--forai-text-secondary, #2d3142);
  margin-bottom: 0.4rem;
}

.forai-usage-meter-head span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.forai-usage-meter-bar {
  height: 8px;
  background: var(--forai-card-bg, #f0f0f5);
  border-radius: 999px;
  overflow: hidden;
}

.forai-usage-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6172f3, #a855f7);
  border-radius: 999px;
  transition: width 0.4s ease, background 0.3s ease;
}

.forai-usage-meter-fill.is-warning {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.forai-usage-meter-fill.is-full {
  background: #ef4444;
}

.forai-usage-meter-foot {
  font-size: 12px;
  color: var(--forai-muted, #6f7594);
  margin-top: 0.5rem;
}

.forai-usage-features {
  border-top: 1px solid var(--forai-border, rgba(15, 15, 19, 0.06));
  padding-top: 1rem;
}

.forai-usage-features h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--forai-text, #0f1117);
}

.forai-usage-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.forai-usage-features li {
  font-size: 13px;
  color: var(--forai-text-secondary, #2d3142);
  padding-left: 1.2rem;
  position: relative;
}

.forai-usage-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

@media (max-width: 600px) {
  .forai-limit-plans { grid-template-columns: 1fr; }
  .forai-limit-modal { padding: 1.5rem; }
}

/* ===== Inline spinner for buttons during async ===== */
.forai-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: foraiSpin 0.7s linear infinite;
  vertical-align: middle;
  opacity: 0.85;
}

@keyframes foraiSpin {
  to { transform: rotate(360deg); }
}

button.is-loading {
  cursor: wait;
  pointer-events: none;
}

/* ===== For AI — Pricing page (redesign) ===== */
.forai-pricing-body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(800px 400px at 80% 300px, rgba(236, 72, 153, 0.08), transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 60%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f1117;
  margin: 0;
}

.forai-pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.4rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 15, 19, 0.04);
  position: sticky;
  top: 0;
  z-index: 5;
}

.forai-pricing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #0f1117;
}

.forai-pricing-back {
  font-size: 13.5px;
  font-weight: 600;
  color: #6172f3;
  text-decoration: none;
}
.forai-pricing-back:hover { text-decoration: underline; }

.forai-pricing-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
}

.forai-pricing-hero {
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 720px;
}

.forai-pricing-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(97, 114, 243, 0.08);
  color: #6172f3;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}

.forai-pricing-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: #0f1117;
}

.forai-pricing-hero h1 span {
  background: linear-gradient(135deg, #6172f3 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.forai-pricing-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #5b6178;
  line-height: 1.6;
  margin: 0;
}

.forai-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.forai-pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.forai-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 15, 19, 0.08);
}

.forai-pricing-card.is-featured {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(97, 114, 243, 0.4);
  box-shadow: 0 24px 60px rgba(97, 114, 243, 0.18);
  transform: translateY(-8px);
}

.forai-pricing-card.is-featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 72px rgba(97, 114, 243, 0.25);
}

.forai-pricing-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(97, 114, 243, 0.2), rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
}

.forai-pricing-card.is-current {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.04);
}

.forai-pricing-card.is-current::after {
  content: 'Plan actuel';
  position: absolute;
  top: 14px;
  right: 14px;
  background: #16a34a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.forai-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(97, 114, 243, 0.3);
}

.forai-pricing-card-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.forai-pricing-card-tag {
  font-size: 13px;
  color: #6f7594;
  margin: 4px 0 0;
}

.forai-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.8rem 0 0.4rem;
}

.forai-pricing-price-amount {
  font-size: 44px;
  font-weight: 800;
  color: #0f1117;
  letter-spacing: -0.03em;
}

.forai-pricing-price-period {
  font-size: 14px;
  color: #6f7594;
  font-weight: 500;
}

.forai-pricing-cta {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.forai-cta-primary {
  background: linear-gradient(135deg, #6172f3, #a855f7);
  color: #fff;
  box-shadow: 0 8px 20px rgba(97, 114, 243, 0.25);
}
.forai-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(97, 114, 243, 0.32); }

.forai-cta-ghost {
  background: #fff;
  color: #4f5dd6;
  border-color: rgba(97, 114, 243, 0.3);
}
.forai-cta-ghost:hover { background: rgba(97, 114, 243, 0.06); }

.forai-cta-dark {
  background: #0f1117;
  color: #fff;
}
.forai-cta-dark:hover { background: #1f2230; }

.forai-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid rgba(15, 15, 19, 0.06);
  padding-top: 1.2rem;
}

.forai-pricing-features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 13.5px;
  color: #2d3142;
  line-height: 1.5;
}

.forai-pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.forai-pricing-features li strong {
  color: #0f1117;
  font-weight: 700;
}

/* Compare table */
.forai-pricing-compare {
  margin-bottom: 5rem;
}

.forai-pricing-compare h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.forai-compare-table {
  background: #fff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 18px;
  overflow: hidden;
}

.forai-compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  align-items: center;
  padding: 1rem 1.4rem;
  font-size: 14px;
  border-bottom: 1px solid rgba(15, 15, 19, 0.05);
}
.forai-compare-row:last-child { border-bottom: 0; }

.forai-compare-row > div:first-child {
  font-weight: 600;
  color: #0f1117;
}

.forai-compare-row > div:not(:first-child) {
  text-align: center;
  color: #4b5070;
}

.forai-compare-row.forai-compare-head {
  background: #fafafe;
  font-weight: 800;
}
.forai-compare-row.forai-compare-head > div { color: #0f1117; font-size: 14.5px; }

.forai-compare-row .is-featured {
  color: #4f5dd6 !important;
  font-weight: 700;
  background: rgba(97, 114, 243, 0.04);
}

/* FAQ */
.forai-pricing-faq h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.forai-pricing-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.forai-pricing-faq-grid details {
  background: #fff;
  border: 1px solid rgba(15, 15, 19, 0.06);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  transition: border-color 0.15s ease;
}
.forai-pricing-faq-grid details:hover { border-color: rgba(97, 114, 243, 0.25); }

.forai-pricing-faq-grid summary {
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forai-pricing-faq-grid summary::-webkit-details-marker { display: none; }
.forai-pricing-faq-grid summary::after {
  content: '＋';
  font-size: 18px;
  color: #8a90aa;
}
.forai-pricing-faq-grid details[open] summary::after { content: '−'; }

.forai-pricing-faq-grid p {
  font-size: 13.5px;
  color: #4b5070;
  line-height: 1.65;
  margin: 0.7rem 0 0;
}

.forai-pricing-foot {
  text-align: center;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(15, 15, 19, 0.04);
  margin-top: 3rem;
}

.forai-pricing-foot p {
  font-size: 13px;
  color: #6f7594;
  margin: 0;
}

@media (max-width: 880px) {
  .forai-pricing-grid { grid-template-columns: 1fr; }
  .forai-pricing-card.is-featured { transform: none; }
  .forai-compare-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 0.8rem 0.9rem; font-size: 12.5px; }
  .forai-pricing-faq-grid { grid-template-columns: 1fr; }
}

/* ===== Image generation in chat ===== */
.forai-imagegen-btn { color: #a855f7; }
.forai-imagegen-btn.is-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.12));
  color: #ec4899;
}

.forai-composer-form.is-imagegen {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.forai-image-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13px;
  color: #6f7594;
}

:root[data-forai-theme="dark"] .forai-image-loading { color: #9aa0bb; }

/* ===== Dancing character loader ===== */
.forai-dance-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
}

.forai-dancer {
  width: 70px;
  height: 90px;
  color: #6172f3;
  overflow: visible;
}

/* Body bounces */
.forai-dancer-body,
.forai-dancer-head {
  transform-origin: 50px 80px;
  animation: foraiDance-bounce 0.6s ease-in-out infinite alternate;
}

@keyframes foraiDance-bounce {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px) rotate(-3deg); }
}

/* Arms swing */
.forai-dancer-arm-l { transform-origin: 50px 50px; animation: foraiDance-armL 0.6s ease-in-out infinite alternate; }
.forai-dancer-arm-r { transform-origin: 50px 50px; animation: foraiDance-armR 0.6s ease-in-out infinite alternate; }

@keyframes foraiDance-armL { 0%{transform:rotate(0)} 100%{transform:rotate(-25deg)} }
@keyframes foraiDance-armR { 0%{transform:rotate(0)} 100%{transform:rotate(25deg)} }

/* Legs alternating */
.forai-dancer-leg-l { transform-origin: 50px 78px; animation: foraiDance-legL 0.6s ease-in-out infinite alternate; }
.forai-dancer-leg-r { transform-origin: 50px 78px; animation: foraiDance-legR 0.6s ease-in-out infinite alternate; }

@keyframes foraiDance-legL { 0%{transform:rotate(0)} 100%{transform:rotate(-12deg)} }
@keyframes foraiDance-legR { 0%{transform:rotate(0)} 100%{transform:rotate(12deg)} }

/* Shadow scales with bounce */
.forai-dancer-shadow {
  fill: rgba(15, 15, 19, 0.12);
  transform-origin: 50px 125px;
  animation: foraiDance-shadow 0.6s ease-in-out infinite alternate;
}
@keyframes foraiDance-shadow { 0%{transform:scale(1,1)} 100%{transform:scale(0.85,0.7)} }

/* Floating music notes */
.forai-dancer-note {
  fill: #a855f7;
  font-weight: 700;
  opacity: 0;
  animation: foraiDance-note 1.6s ease-out infinite;
}
.forai-dancer-note-1 { animation-delay: 0s; }
.forai-dancer-note-2 { animation-delay: 0.55s; fill: #ec4899; }
.forai-dancer-note-3 { animation-delay: 1.1s; fill: #6172f3; }

@keyframes foraiDance-note {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px) scale(1.1); }
}

.forai-dance-text {
  font-size: 13px;
  color: #6f7594;
  font-weight: 500;
}

:root[data-forai-theme="dark"] .forai-dancer { color: #8b9bff; }
:root[data-forai-theme="dark"] .forai-dance-text { color: #9aa0bb; }

/* Make chat-message images visibly clickable */
.forai-message-images img {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.forai-message-images img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(15, 15, 19, 0.12);
}

/* ===== Image lightbox ===== */
.forai-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 19, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2.5rem;
  animation: foraiLightboxIn 200ms ease;
  cursor: zoom-out;
}

.forai-lightbox-overlay[hidden] { display: none; }

@keyframes foraiLightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.forai-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
  animation: foraiLightboxImgIn 280ms cubic-bezier(0.34, 1.36, 0.64, 1);
  user-select: none;
}

@keyframes foraiLightboxImgIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.forai-lightbox-close,
.forai-lightbox-download {
  position: fixed;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2001;
}

.forai-lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
}

.forai-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.forai-lightbox-download {
  top: 24px;
  right: 80px;
  height: 44px;
  padding: 0 1.1rem;
  gap: 0.45rem;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.forai-lightbox-download:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .forai-lightbox-download span { display: none; }
  .forai-lightbox-download { width: 44px; padding: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   AI HERO 2026 — NOUVEAU DESIGN PAGE D'ACCUEIL
═══════════════════════════════════════════════════════════════════════ */
.ai-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(140deg, #f0f4ff 0%, #e8f0fe 35%, #dbeafe 65%, #eff6ff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.ai-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,0.13) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.55;
}

.ai-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 160px);
  position: relative;
  z-index: 1;
}

.ai-hero-copy { display: flex; flex-direction: column; }

.ai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(99,102,241,0.25);
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(99,102,241,0.1);
}

.ai-hero-h1 {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  color: #0f1117;
  margin-bottom: 22px;
  letter-spacing: -0.026em;
}

.ai-hero-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-hero-sub {
  font-size: 17px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.ai-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ai-hero-discover {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3b4ef0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid rgba(59,78,240,0.3);
  transition: border-color .2s, gap .2s;
}
.ai-hero-discover:hover { border-color: #3b4ef0; gap: 11px; }

.ai-hero-trust { display: flex; gap: 18px; flex-wrap: wrap; }
.ai-hero-trust span { font-size: 12px; color: #1e3a5f; font-weight: 700; letter-spacing: .01em; }

/* ── CUBE 3D ─────────────────────────────────────────────────────── */
.ai-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.ai-cube-wrap {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-cube-halo {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 70px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.38) 0%, transparent 70%);
  filter: blur(18px);
  animation: ai-halo-pulse 4s ease-in-out infinite;
}

@keyframes ai-halo-pulse {
  0%,100% { opacity:.5; transform:translateX(-50%) scaleX(1); }
  50%      { opacity:.85; transform:translateX(-50%) scaleX(1.18); }
}

.ai-cube-scene {
  perspective: 900px;
  perspective-origin: 50% 45%;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-cube {
  position: relative;
  transform-style: preserve-3d;
}

.ai-cube-main {
  width: 210px;
  height: 210px;
  animation: ai-cube-spin 15s linear infinite;
}

@keyframes ai-cube-spin {
  0%   { transform: rotateX(-22deg) rotateY(0deg)   rotateZ(4deg); }
  100% { transform: rotateX(-22deg) rotateY(360deg) rotateZ(4deg); }
}

.ai-cube-face {
  position: absolute;
  border: 1px solid rgba(147,197,253,.5);
  border-radius: 6px;
  width: 210px;
  height: 210px;
}

.cf  { background: linear-gradient(135deg,rgba(186,230,255,.95),rgba(96,165,250,.9));
       transform: translateZ(105px);
       box-shadow: 0 0 80px rgba(59,130,246,.45) inset, 0 20px 60px rgba(59,130,246,.25); }
.cb  { background: linear-gradient(135deg,rgba(37,99,235,.9),rgba(29,78,216,.95));
       transform: rotateY(180deg) translateZ(105px); }
.cl  { background: linear-gradient(135deg,rgba(147,197,253,.9),rgba(59,130,246,.95));
       transform: rotateY(-90deg) translateZ(105px); }
.cr  { background: linear-gradient(135deg,rgba(59,130,246,.9),rgba(37,99,235,.95));
       transform: rotateY(90deg)  translateZ(105px); }
.ct  { background: linear-gradient(135deg,rgba(219,234,254,.98),rgba(186,230,255,.95));
       transform: rotateX(90deg)  translateZ(105px);
       box-shadow: 0 0 50px rgba(147,197,253,.8) inset; }
.cbt { background: linear-gradient(135deg,rgba(29,78,216,.95),rgba(30,64,175,1));
       transform: rotateX(-90deg) translateZ(105px); }

/* Mini cubes flottants */
.ai-minicube {
  position: absolute;
  perspective: 400px;
}
.ai-mc-inner {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg,rgba(147,197,253,.9),rgba(59,130,246,.8));
  border: 1px solid rgba(96,165,250,.6);
  border-radius: 7px;
  transform-style: preserve-3d;
  transform: rotateX(-25deg) rotateY(25deg);
  box-shadow: 5px 5px 0 rgba(37,99,235,.35), 0 10px 22px rgba(59,130,246,.3);
}
.ai-mc1 { top:6%;  left:4%;   animation: mc-float 5s ease-in-out infinite; }
.ai-mc2 { top:8%;  right:4%;  animation: mc-float 6.2s ease-in-out infinite 1.1s; }
.ai-mc3 { bottom:10%; left:6%; animation: mc-float 4.5s ease-in-out infinite .5s; }
.ai-mc4 { bottom:4%; right:10%; animation: mc-float 5.8s ease-in-out infinite 1.6s; }

@keyframes mc-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-13px) rotate(9deg); }
}

/* Particules */
.ai-particle { position: absolute; border-radius: 50%; }
.ai-p1 { width:9px; height:9px; top:15%; left:18%;  background:#60a5fa; opacity:.8; animation: p-fl 4s ease-in-out infinite; }
.ai-p2 { width:5px; height:5px; top:72%; left:6%;   background:#60a5fa; opacity:.6; animation: p-fl 5.5s ease-in-out infinite .8s; }
.ai-p3 { width:11px;height:11px;top:28%; right:7%;  background:#818cf8; opacity:.7; animation: p-fl 3.8s ease-in-out infinite 1.2s; }
.ai-p4 { width:6px; height:6px; bottom:22%;right:14%;background:#60a5fa;opacity:.6; animation: p-fl 4.5s ease-in-out infinite .4s; }
.ai-p5 { width:13px;height:13px;top:55%; right:2%;  background:#38bdf8; opacity:.5; animation: p-fl 6s ease-in-out infinite 2s; }
@keyframes p-fl {
  0%,100% { transform:translateY(0) scale(1); }
  50%      { transform:translateY(-18px) scale(1.3); }
}

.ai-hero-logos { padding: 0 0 48px; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   VIDEO SECTION PRO
═══════════════════════════════════════════════════════════════════════ */
.video-section-pro {
  position: relative;
  padding: 110px 0 100px;
  background: #fff;
  overflow: hidden;
}
.video-section-pro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.3), transparent);
}
.video-section-pro::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.2), transparent);
}

.video-pro-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
  padding: 0 20px;
}
.video-pro-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg,#4f46e5,#2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.video-pro-title {
  font-size: clamp(26px,3.5vw,40px);
  font-weight: 900;
  color: #0f1117;
  margin-bottom: 14px;
  line-height: 1.15;
}
.video-pro-sub {
  font-size: 16px;
  color: #64748b;
  line-height: 1.65;
}

.video-pro-frame-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 32px;
  position: relative;
}
.video-pro-browser {
  background: #1e1e2e;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(15,17,23,.28),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 60px rgba(99,102,241,.1);
}
.video-pro-chrome {
  background: #2d2d3f;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.video-chrome-dots { display: flex; gap: 6px; }
.video-chrome-dots span { width: 11px; height: 11px; border-radius: 50%; }
.video-chrome-dots span:nth-child(1) { background: #ff5f57; }
.video-chrome-dots span:nth-child(2) { background: #febc2e; }
.video-chrome-dots span:nth-child(3) { background: #28c840; }
.video-chrome-url {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  font-family: monospace;
}
.video-pro-browser video { display: block; width: 100%; aspect-ratio: 16/9; }

.video-float-badge {
  position: absolute;
  bottom: -4px;
  right: 52px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f1117;
  animation: badge-float 4s ease-in-out infinite;
}
@keyframes badge-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.video-float-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #10b981;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION ANIMÉE — BUREAU / PERSONNAGE
═══════════════════════════════════════════════════════════════════════ */
.anim-desk-section {
  position: relative;
  padding: 90px 0 70px;
  background: linear-gradient(180deg,#fff 0%,#f0f4ff 50%,#e8f0fe 100%);
  overflow: hidden;
  text-align: center;
}
.anim-desk-section::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0;
  height: 60px;
  background: linear-gradient(180deg,rgba(255,255,255,1),transparent);
}

.anim-desk-label {
  font-size: 13px;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.anim-desk-title {
  font-size: clamp(22px,3vw,36px);
  font-weight: 900;
  color: #0f1117;
  margin-bottom: 56px;
}

/* Scène du bureau */
.desk-scene {
  position: relative;
  width: 440px;
  height: 300px;
  margin: 0 auto 48px;
}

/* Table */
.desk-table {
  position: absolute;
  bottom: 34px; left: 10px; right: 10px;
  height: 12px;
  background: linear-gradient(180deg,#8b7355,#6b5740);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 5px 0 #5a4530, 0 8px 20px rgba(0,0,0,.18);
}
.desk-table::before, .desk-table::after {
  content:''; position:absolute;
  bottom: -22px; width: 10px; height: 22px;
  background: #6b5740; border-radius: 0 0 4px 4px;
}
.desk-table::before { left: 24px; }
.desk-table::after  { right: 24px; }

/* Moniteur */
.desk-monitor {
  position: absolute;
  bottom: 48px;
  left: 50%; transform: translateX(-55%);
  width: 170px;
  text-align: center;
}
.desk-monitor-screen {
  width: 170px;
  height: 112px;
  background: linear-gradient(135deg,#1e1b4b,#312e81);
  border-radius: 8px 8px 0 0;
  border: 3px solid #4338ca;
  position: relative;
  overflow: hidden;
}
.desk-monitor-screen::before {
  content:''; position:absolute;
  top:0; left:0; right:0; height:18px;
  background: rgba(255,255,255,.05);
  border-radius: 6px 6px 0 0;
}
.desk-code-line {
  position: absolute;
  height: 4px; border-radius: 2px;
  animation: code-appear 3s ease-in-out infinite;
}
.desk-code-line:nth-child(1) { top:22px; left:10px; width:62%; background:rgba(139,92,246,.8); animation-delay:0s; }
.desk-code-line:nth-child(2) { top:32px; left:10px; width:42%; background:rgba(34,211,238,.6); animation-delay:.25s; }
.desk-code-line:nth-child(3) { top:42px; left:10px; width:76%; background:rgba(167,243,208,.6); animation-delay:.5s; }
.desk-code-line:nth-child(4) { top:52px; left:10px; width:54%; background:rgba(139,92,246,.7); animation-delay:.75s; }
.desk-code-line:nth-child(5) { top:62px; left:10px; width:38%; background:rgba(34,211,238,.5); animation-delay:1s; }
.desk-code-line:nth-child(6) { top:72px; left:10px; width:66%; background:rgba(167,243,208,.5); animation-delay:1.25s; }
@keyframes code-appear {
  0%   { opacity:0; }
  20%  { opacity:1; }
  80%  { opacity:.7; }
  100% { opacity:0; }
}

.desk-monitor-base {
  width: 44px; height: 8px;
  background: #4338ca;
  margin: 0 auto;
  border-radius: 0 0 3px 3px;
}
.desk-monitor-stand {
  width: 16px; height: 14px;
  background: #3730a3;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

/* Clavier */
.desk-keyboard {
  position: absolute;
  bottom: 46px;
  left: 50%; transform: translateX(-55%);
  width: 130px; height: 26px;
  background: linear-gradient(180deg,#e2e8f0,#cbd5e1);
  border-radius: 5px;
  border: 1px solid #94a3b8;
}
.desk-keyboard::after {
  content:''; position:absolute; inset:4px;
  background: repeating-linear-gradient(90deg,
    rgba(0,0,0,.05) 0,rgba(0,0,0,.05) 6px,
    transparent 6px, transparent 10px);
  border-radius: 2px;
}

/* Robot assistant */
.desk-robot {
  position: absolute;
  bottom: 46px;
  left: 50%; margin-left: -80px;
}
.desk-robot-head {
  width: 30px; height: 30px;
  background: linear-gradient(135deg,#6366f1,#4f46e5);
  border-radius: 8px;
  margin: 0 auto;
  position: relative;
  border: 2px solid #818cf8;
  animation: robot-bob 2.2s ease-in-out infinite;
}
@keyframes robot-bob {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-5px); }
}
.desk-robot-eye {
  position: absolute;
  width: 7px; height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  top: 8px;
  animation: eye-blink 3.5s ease-in-out infinite;
}
.desk-robot-eye:nth-child(1) { left:5px; }
.desk-robot-eye:nth-child(2) { right:5px; }
@keyframes eye-blink {
  0%,88%,100% { transform:scaleY(1); }
  94%         { transform:scaleY(.1); }
}
.desk-robot-mouth {
  position: absolute;
  bottom:5px; left:50%; transform:translateX(-50%);
  width:12px; height:3px;
  background:#38bdf8;
  border-radius: 0 0 4px 4px;
}
.desk-robot-body {
  width: 24px; height: 20px;
  background: linear-gradient(180deg,#4f46e5,#3730a3);
  border-radius: 4px 4px 6px 6px;
  margin: 0 auto;
  border: 1px solid #6366f1;
}

/* Plante */
.desk-plant {
  position: absolute;
  bottom: 46px;
  right: 38px;
}
.desk-plant-pot {
  width: 32px; height: 24px;
  background: linear-gradient(180deg,#c2996e,#9a7050);
  border-radius: 4px 4px 7px 7px;
  margin: 0 auto;
  position: relative;
}
.desk-plant-pot::before {
  content:''; position:absolute;
  top:-4px; left:-4px; right:-4px;
  height:7px; background:#b08060; border-radius:3px;
}
.desk-plant-stem {
  width: 4px; height: 30px;
  background: #4ade80;
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}
.desk-leaf {
  position: absolute;
  width: 22px; height: 15px;
  background: #22c55e;
  border-radius: 50% 50% 0 50%;
}
.desk-leaf:nth-child(1) { top:-8px; left:-18px; transform:rotate(-30deg); animation:leaf-sw 3s ease-in-out infinite; }
.desk-leaf:nth-child(2) { top:-18px; left:3px;  transform:rotate(18deg);  animation:leaf-sw 3.5s ease-in-out infinite .4s; }
.desk-leaf:nth-child(3) { top:-10px; right:-18px; transform:rotate(50deg) scaleX(-1); animation:leaf-sw 4s ease-in-out infinite .8s; }
@keyframes leaf-sw {
  0%,100% { filter:brightness(1); }
  50%      { filter:brightness(1.12); }
}

/* Tasse café */
.desk-cup {
  position: absolute;
  bottom: 46px;
  left: 52px;
}
.desk-cup-body {
  width: 24px; height: 22px;
  background: linear-gradient(180deg,#6366f1,#4f46e5);
  border-radius: 0 0 7px 7px;
  position: relative;
}
.desk-cup-body::before {
  content:''; position:absolute;
  top:-5px; left:0; right:0;
  height:5px; background:#818cf8; border-radius:3px;
}
.desk-cup-handle {
  position: absolute;
  right:-9px; top:4px;
  width:9px; height:12px;
  border:2px solid #4f46e5;
  border-radius: 0 5px 5px 0;
  border-left: none;
}
.desk-steam {
  position: absolute;
  top:-20px; left:50%; transform:translateX(-50%);
  display:flex; gap:3px;
}
.steam-line {
  width:2px; border-radius:2px;
  background:rgba(255,255,255,.5);
  animation: steam-up 2.2s ease-in-out infinite;
}
.steam-line:nth-child(1) { height:12px; animation-delay:0s; }
.steam-line:nth-child(2) { height:16px; animation-delay:.4s; }
.steam-line:nth-child(3) { height:10px; animation-delay:.8s; }
@keyframes steam-up {
  0%   { transform:translateY(0) scaleX(1); opacity:0; }
  40%  { opacity:.7; }
  100% { transform:translateY(-14px) scaleX(0.5); opacity:0; }
}

/* Bulle notification */
.desk-notif {
  position: absolute;
  top: 14px; right: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  font-size: 12px;
  font-weight: 700;
  color: #0f1117;
  white-space: nowrap;
  animation: notif-fl 4s ease-in-out infinite;
  border-left: 3px solid #10b981;
}
@keyframes notif-fl {
  0%,100% { transform:translateY(0) scale(1); }
  50%      { transform:translateY(-7px) scale(1.02); }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOR BUSINESS — NOUVELLE VERSION SOMBRE
═══════════════════════════════════════════════════════════════════════ */
.forb-promo-new {
  background: linear-gradient(135deg,#0f1117 0%,#1a1a2e 40%,#16213e 70%,#0f3460 100%) !important;
  position: relative;
  overflow: hidden;
}
.forb-promo-new::before {
  content:''; position:absolute;
  top:-200px; right:-100px;
  width:500px; height:500px;
  background: radial-gradient(circle,rgba(99,102,241,.16) 0%,transparent 70%);
  pointer-events:none;
}
.forb-promo-new::after {
  content:''; position:absolute;
  bottom:-150px; left:-80px;
  width:400px; height:400px;
  background: radial-gradient(circle,rgba(6,182,212,.1) 0%,transparent 70%);
  pointer-events:none;
}

.forb-promo-new .forb-promo-eyebrow {
  background: rgba(99,102,241,.15) !important;
  border: 1px solid rgba(99,102,241,.3) !important;
  color: #a5b4fc !important;
}

.forb-promo-new h2 { color: #fff !important; }
.forb-promo-new p  { color: rgba(255,255,255,.65) !important; }

.forb-promo-new .forb-promo-list li {
  color: rgba(255,255,255,.85) !important;
}
.forb-promo-new .forb-promo-list li svg {
  stroke: #4ade80 !important;
}

.forb-promo-new .forb-promo-card {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}
.forb-promo-new .forb-promo-card::before {
  content:''; position:absolute;
  top:-40px; right:-40px;
  width:120px; height:120px;
  background: radial-gradient(circle,rgba(99,102,241,.3) 0%,transparent 70%);
}
.forb-promo-new .forb-promo-card-head { border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom:14px; margin-bottom:6px; }
.forb-promo-new .forb-promo-card-eyebrow { color: rgba(255,255,255,.55) !important; }
.forb-promo-new .forb-promo-card-tag {
  background: rgba(74,222,128,.15) !important;
  border: 1px solid rgba(74,222,128,.3) !important;
  color: #4ade80 !important;
  border-radius: 100px !important;
  font-size: 11px !important;
  padding: 3px 10px !important;
}
.forb-promo-new .forb-promo-card-row span  { color: rgba(255,255,255,.45); }
.forb-promo-new .forb-promo-card-row strong { color: #fff; }
.forb-promo-new .forb-promo-card-ok { color: #4ade80 !important; }
.forb-promo-new .btn-ghost {
  color: rgba(255,255,255,.75) !important;
  border-color: rgba(255,255,255,.22) !important;
}
.forb-promo-new .btn-ghost:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER SOMBRE — REDESIGN
═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg,#0c0f1e 0%,#0f1117 100%) !important;
  color: rgba(255,255,255,.7) !important;
}
.site-footer .footer-logo {
  filter: brightness(0) invert(1);
}
.site-footer .footer-tagline {
  color: rgba(255,255,255,.4) !important;
}
.site-footer .footer-social-link {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.55) !important;
}
.site-footer .footer-social-link:hover {
  background: rgba(99,102,241,.2) !important;
  border-color: rgba(99,102,241,.4) !important;
  color: #a5b4fc !important;
}
.site-footer .footer-col-title {
  color: rgba(255,255,255,.9) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
}
.site-footer .footer-links-col a {
  color: rgba(255,255,255,.42) !important;
}
.site-footer .footer-links-col a:hover {
  color: rgba(255,255,255,.9) !important;
}
.site-footer .footer-bottom {
  border-top: none !important;
  background: none !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.28) !important;
  max-width: 100% !important;
  padding: 20px 40px !important;
}
.site-footer .footer-bottom-links a {
  color: rgba(255,255,255,.28) !important;
}
.site-footer .footer-bottom-links a:hover {
  color: rgba(255,255,255,.7) !important;
}

/* Enlever la barre visible sous le footer-bottom */
.site-footer .footer-bottom + * { display: none; }

/* Transition from review section to footer */
.footer-transition-dark {
  height: 100px;
  background: linear-gradient(180deg, #f0f4ff 0%, #0c0f1e 100%);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ai-hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 80px 24px 40px; }
  .ai-hero-visual { display: none; }
  .desk-scene { width: 320px; }
  .forb-promo-new .forb-promo-inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .video-float-badge { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   FIGMA-STYLE HOMEPAGE 2026 — REDESIGN COMPLET
   Toutes ces classes préfixées "mkt-" sont pour la page d'accueil seule
════════════════════════════════════════════════════════════════════ */

/* ── BODY ───────────────────────────────────────────────────────── */
.mkt-body {
  background: #09090b;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ───────────────────────────────────────────────────────── */
.mkt-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 64px;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mkt-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mkt-nav-logo img {
  height: 26px; width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.mkt-nav-center {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mkt-nav-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.mkt-nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.mkt-nav-right { display: flex; align-items: center; gap: 8px; }
.mkt-nav-ghost {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.mkt-nav-ghost:hover { color: #fff; background: rgba(255,255,255,0.07); }
.mkt-nav-cta {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff !important;
  font-size: 14px; font-weight: 600;
  padding: 8px 18px; border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.mkt-nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── HERO ───────────────────────────────────────────────────────── */
.mkt-hero {
  min-height: 100vh;
  background: #09090b;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
}

/* Grid */
.mkt-grid {
  position: absolute;
  inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

/* Orbs */
.mkt-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.o1 { width:700px;height:700px;
      background:radial-gradient(circle,rgba(124,58,237,.28) 0%,transparent 70%);
      top:-280px;left:-200px;
      animation:orb-fl 11s ease-in-out infinite; }
.o2 { width:600px;height:600px;
      background:radial-gradient(circle,rgba(37,99,235,.2) 0%,transparent 70%);
      top:-180px;right:-200px;
      animation:orb-fl 13s ease-in-out infinite 3s; }
.o3 { width:450px;height:450px;
      background:radial-gradient(circle,rgba(6,182,212,.14) 0%,transparent 70%);
      bottom:60px;left:25%;
      animation:orb-fl 9s ease-in-out infinite 1.5s; }
@keyframes orb-fl {
  0%,100% { transform:translateY(0) scale(1); }
  50%      { transform:translateY(-28px) scale(1.06); }
}

/* Hero text block */
.mkt-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 88px 24px 40px;
}
.mkt-hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.72);
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 36px; cursor: default;
  animation: fu .6s ease both;
}
.mkt-pill-dot {
  width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.25} }
.mkt-pill-new {
  background: rgba(124,58,237,.2); color: #c084fc;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}

.mkt-hero-h1 {
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.036em;
  color: #fff;
  margin-bottom: 24px;
  animation: fu .6s ease .1s both;
}
.mkt-grad {
  background: linear-gradient(135deg, #c084fc 0%, #60a5fa 42%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mkt-hero-p {
  font-size: 18px;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 40px;
  animation: fu .6s ease .2s both;
}
.mkt-hero-btns {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fu .6s ease .3s both;
}
.mkt-btn-p {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff; padding: 14px 28px;
  border-radius: 10px; font-size: 16px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(124,58,237,.4);
}
.mkt-btn-p:hover { transform:translateY(-2px); box-shadow:0 8px 32px rgba(124,58,237,.52); }
.mkt-btn-g {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  padding: 14px 24px; border-radius: 10px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s;
}
.mkt-btn-g:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); }
.mkt-trust {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  animation: fu .6s ease .4s both;
}
.mkt-trust span { font-size:12px; color:rgba(255,255,255,.3); font-weight:600; }

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

/* Hero product mockup */
.mkt-mockup {
  position: relative; z-index: 2;
  width: 100%; max-width: 1020px;
  padding: 0 24px 0;
  animation: fu .9s ease .55s both;
}
.mkt-mockup-shell {
  background: #111118;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 60px 130px rgba(0,0,0,.75),
    0 0 100px rgba(124,58,237,.12);
  position: relative;
}
.mkt-mockup-shell::after {
  content:''; position:absolute;
  bottom:0;left:0;right:0;height:38%;
  background:linear-gradient(to bottom, transparent, #09090b);
  pointer-events:none; z-index:10;
}
.mkt-mc-chrome {
  background: #1a1a24;
  padding: 13px 20px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mkt-mc-dots { display:flex; gap:6px; }
.mkt-mc-dots span { width:11px;height:11px;border-radius:50%; }
.mkt-mc-dots span:nth-child(1){background:#ff5f57}
.mkt-mc-dots span:nth-child(2){background:#febc2e}
.mkt-mc-dots span:nth-child(3){background:#28c840}
.mkt-mc-url {
  flex:1; text-align:center;
  background:rgba(255,255,255,.05); border-radius:6px;
  padding:4px 14px; font-size:12px;
  color:rgba(255,255,255,.3); font-family:'DM Mono',monospace;
}
.mkt-mc-body { display:flex; height:380px; overflow:hidden; }

/* Sidebar */
.mkt-mc-sb {
  width:164px; flex-shrink:0;
  background:#0d0d18;
  border-right:1px solid rgba(255,255,255,.05);
  padding:18px 12px;
}
.mkt-mc-brand {
  font-size:14px; font-weight:800; color:#fff;
  padding:6px 10px; margin-bottom:14px;
}
.mkt-mc-nav-item {
  display:flex; align-items:center; gap:8px;
  font-size:12px; color:rgba(255,255,255,.38);
  padding:8px 10px; border-radius:7px;
  transition:background .15s, color .15s; margin-bottom:2px;
}
.mkt-mc-nav-item.on { background:rgba(124,58,237,.18); color:#c084fc; }

/* Main dashboard */
.mkt-mc-main { flex:1; padding:22px; overflow:hidden; }
.mkt-mc-title { font-size:15px; font-weight:700; color:#fff; margin-bottom:16px; }
.mkt-mc-kpis {
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px;
}
.mkt-mc-kpi {
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px; padding:14px;
}
.mkt-mc-kpi-v { font-size:17px; font-weight:800; margin-bottom:2px; }
.mkt-mc-kpi-v.c-pur { color:#c084fc; }
.mkt-mc-kpi-v.c-grn { color:#4ade80; }
.mkt-mc-kpi-v.c-amb { color:#fbbf24; }
.mkt-mc-kpi-l { font-size:10px; color:rgba(255,255,255,.38); }
.mkt-mc-kpi-s { font-size:10px; color:rgba(255,255,255,.22); margin-top:2px; }

.mkt-mc-table {
  border:1px solid rgba(255,255,255,.06); border-radius:10px; overflow:hidden;
}
.mkt-mc-tr {
  display:grid; grid-template-columns:50px 1fr 82px 70px;
  align-items:center; padding:9px 14px;
  font-size:11px; gap:8px;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.mkt-mc-tr:last-child { border-bottom:none; }
.mkt-mc-tr.hd {
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:.05em; color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.02);
}
.mkt-mc-tr:not(.hd) { color:rgba(255,255,255,.65); }
.mkt-mc-n { color:rgba(255,255,255,.25); font-size:10px; font-family:'DM Mono',monospace; }
.mkt-mc-badge {
  display:inline-flex; align-items:center;
  padding:2px 8px; border-radius:100px; font-size:10px; font-weight:600;
}
.mkt-mc-badge.ok  { background:rgba(74,222,128,.12); color:#4ade80; border:1px solid rgba(74,222,128,.2); }
.mkt-mc-badge.env { background:rgba(96,165,250,.12); color:#60a5fa; border:1px solid rgba(96,165,250,.2); }
.mkt-mc-amt { color:#fff; font-weight:600; text-align:right; }

/* Floating badges */
.mkt-flt {
  position:absolute;
  display:flex; align-items:center; gap:10px;
  background:rgba(14,14,22,.96);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px; padding:12px 16px;
  backdrop-filter:blur(12px);
  box-shadow:0 8px 32px rgba(0,0,0,.45);
  white-space:nowrap; z-index:20;
}
.mkt-flt-title { font-size:12px; font-weight:700; color:#fff; }
.mkt-flt-sub   { font-size:10px; color:rgba(255,255,255,.42); margin-top:1px; }
.mkt-flt-dot   { width:9px;height:9px;background:#4ade80;border-radius:50%;flex-shrink:0;
                  animation:dpls 2s ease-in-out infinite; }
.mkt-flt-ico   { font-size:20px; }
@keyframes dpls {
  0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,.4)}
  50%    {box-shadow:0 0 0 6px rgba(74,222,128,0)}
}
.mkt-flt-sign { bottom:28px; left:-28px; animation:fl-l 4s ease-in-out infinite; }
.mkt-flt-ai   { top:72px; right:-28px; animation:fl-r 5s ease-in-out infinite 1.2s; }
@keyframes fl-l { 0%,100%{transform:translateY(0) rotate(-1.5deg)} 50%{transform:translateY(-9px) rotate(1deg)} }
@keyframes fl-r { 0%,100%{transform:translateY(0) rotate(1deg)}    50%{transform:translateY(-7px) rotate(-1deg)} }

/* ── LOGOS ───────────────────────────────────────────────────────── */
.mkt-logos {
  background: #09090b;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mkt-logos-lbl {
  text-align:center;
  font-size:11px; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase;
  color:rgba(255,255,255,.22);
  margin-bottom:24px;
}
.mkt-logos .marquee-item-name { color:rgba(255,255,255,.4) !important; }
.mkt-logos .marquee-item svg path,
.mkt-logos .marquee-item svg circle,
.mkt-logos .marquee-item svg text { opacity:.5; }

/* ── STATS ───────────────────────────────────────────────────────── */
.mkt-stats {
  background: #09090b;
  padding: 90px 24px;
}
.mkt-stats-inner {
  max-width:900px; margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  align-items:center;
}
.mkt-stat { text-align:center; padding:20px; }
.mkt-stat-n {
  font-size:clamp(36px,5vw,60px);
  font-weight:900; color:#fff;
  line-height:1; margin-bottom:8px;
  letter-spacing:-0.025em;
}
.mkt-stat-n span {
  background:linear-gradient(135deg,#c084fc,#60a5fa);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.mkt-stat-lbl { font-size:13px; color:rgba(255,255,255,.38); line-height:1.4; max-width:110px; margin:0 auto; }
.mkt-stat-div { width:1px; height:60px; background:rgba(255,255,255,.08); }

/* ── FEATURES ────────────────────────────────────────────────────── */
.mkt-features {
  background: #09090b;
  padding: 90px 24px 110px;
  border-top:1px solid rgba(255,255,255,.06);
}
.mkt-feat-inner { max-width:1140px; margin:0 auto; }
.mkt-section-pill {
  display:inline-block;
  background:rgba(124,58,237,.14);
  border:1px solid rgba(124,58,237,.28);
  color:#c084fc;
  font-size:12px; font-weight:700;
  padding:5px 14px; border-radius:100px;
  margin-bottom:20px;
  letter-spacing:.05em; text-transform:uppercase;
}
.mkt-section-h2 {
  font-size:clamp(28px,4vw,46px);
  font-weight:900; color:#fff;
  line-height:1.1; margin-bottom:64px;
  letter-spacing:-0.022em;
}
.mkt-feat-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.mkt-fc {
  background:rgba(255,255,255,.028);
  border:1px solid rgba(255,255,255,.07);
  border-radius:18px; padding:28px;
  transition:background .2s, border-color .2s, transform .22s;
  position:relative; overflow:hidden;
}
.mkt-fc::before {
  content:''; position:absolute; inset:0; border-radius:18px;
  background:linear-gradient(135deg,rgba(124,58,237,.07) 0%,transparent 55%);
  opacity:0; transition:opacity .3s;
}
.mkt-fc:hover { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.13); transform:translateY(-3px); }
.mkt-fc:hover::before { opacity:1; }
.mkt-fc.wide  { grid-column:span 2; }
.mkt-fc.glow  { background:linear-gradient(135deg,rgba(124,58,237,.13),rgba(37,99,235,.08)); border-color:rgba(124,58,237,.22); }
.mkt-fc-icon  { font-size:30px; margin-bottom:16px; display:block; }
.mkt-fc h3    { font-size:17px; font-weight:700; color:#fff; margin-bottom:10px; line-height:1.3; }
.mkt-fc p     { font-size:14px; color:rgba(255,255,255,.42); line-height:1.68; }

/* AI demo inside card */
.mkt-fc-ai {
  margin-top:22px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px; padding:16px;
}
.mkt-fc-ai-prompt { font-size:11px; color:rgba(255,255,255,.35); font-family:'DM Mono',monospace; margin-bottom:8px; }
.mkt-fc-ai-line   { font-size:12px; color:rgba(255,255,255,.65); line-height:1.6; }
.mkt-fc-cursor    { display:inline-block; width:2px; height:13px; background:#c084fc; margin-left:2px; vertical-align:middle; animation:cb 1s ease-in-out infinite; }
@keyframes cb { 0%,100%{opacity:1} 50%{opacity:0} }

/* Sign visual */
.mkt-fc-sign {
  margin-top:20px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06);
  border-radius:10px; padding:14px;
  display:flex; flex-direction:column; gap:8px;
}
.mkt-fc-sign-line {
  height:4px; background:rgba(255,255,255,.06); border-radius:2px;
}
.mkt-fc-sign-line.w60 { width:60%; }
.mkt-fc-sign-line.w80 { width:80%; }
.mkt-fc-sign-line.w40 { width:40%; }
.mkt-fc-sign-btn {
  margin-top:6px; align-self:flex-start;
  background:linear-gradient(135deg,#4ade80,#22c55e);
  color:#fff; font-size:11px; font-weight:700;
  padding:6px 14px; border-radius:6px;
  display:flex; align-items:center; gap:5px;
}

/* ── VIDEO ───────────────────────────────────────────────────────── */
.mkt-video {
  background: #09090b;
  padding: 100px 24px;
  border-top:1px solid rgba(255,255,255,.06);
}
.mkt-video-hdr {
  text-align:center; max-width:620px;
  margin:0 auto 56px; padding:0 24px;
}
.mkt-video-h2 {
  font-size:clamp(26px,3.5vw,40px);
  font-weight:900; color:#fff;
  margin-bottom:14px; line-height:1.14;
}
.mkt-video-sub { font-size:16px; color:rgba(255,255,255,.42); line-height:1.65; }
.mkt-video-wrap { max-width:940px; margin:0 auto; position:relative; }
.mkt-video-browser {
  background:#111118;
  border-radius:18px; overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 50px 120px rgba(0,0,0,.68),
    0 0 80px rgba(124,58,237,.1);
}
.mkt-video-chrome {
  background:#1a1a24; padding:12px 18px;
  display:flex; align-items:center; gap:14px;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.mkt-video-dots span { width:11px;height:11px;border-radius:50%; display:inline-block; }
.mkt-video-dots span:nth-child(1){background:#ff5f57}
.mkt-video-dots span:nth-child(2){background:#febc2e;margin:0 4px;}
.mkt-video-dots span:nth-child(3){background:#28c840}
.mkt-video-url {
  flex:1; text-align:center;
  background:rgba(255,255,255,.05); border-radius:6px;
  padding:4px 14px; font-size:12px;
  color:rgba(255,255,255,.32); font-family:'DM Mono',monospace;
}
.mkt-video-browser video { display:block; width:100%; aspect-ratio:16/9; }
.mkt-video-badge {
  position:absolute; bottom:4px; right:44px;
  background:rgba(14,14,22,.96);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px; padding:12px 18px;
  display:flex; align-items:center; gap:10px;
  font-size:13px; font-weight:600; color:#fff;
  backdrop-filter:blur(12px);
  box-shadow:0 8px 24px rgba(0,0,0,.5);
  animation:vbadge 3.5s ease-in-out infinite;
  z-index:5;
}
@keyframes vbadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.mkt-video-badge-dot {
  width:9px;height:9px;background:#4ade80;border-radius:50%;
  animation:dpls 2s ease-in-out infinite;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.mkt-testi {
  background:#09090b;
  padding:100px 0;
  border-top:1px solid rgba(255,255,255,.06);
  overflow:hidden;
}
.mkt-testi-hdr {
  text-align:center; max-width:580px;
  margin:0 auto 56px; padding:0 24px;
}
.mkt-testi-stars { font-size:22px; color:#fbbf24; margin-bottom:12px; letter-spacing:3px; }
.mkt-testi-score { font-size:clamp(28px,4vw,46px); font-weight:900; color:#fff; margin-bottom:8px; }
.mkt-testi-ct    { font-size:14px; color:rgba(255,255,255,.32); }

.mkt-testi-row { display:flex; gap:14px; width:max-content; padding-bottom:2px; }
.mkt-testi-row.row1 { animation:tscroll 45s linear infinite; }
.mkt-testi-row.row2 { animation:tscroll 55s linear infinite reverse; margin-top:14px; }
.mkt-testi-row:hover { animation-play-state:paused; }
@keyframes tscroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.mkt-rv {
  width:310px; flex-shrink:0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px; padding:22px;
  transition:border-color .2s;
}
.mkt-rv:hover { border-color:rgba(255,255,255,.15); }
.mkt-rv-top { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.mkt-rv-av  { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;flex-shrink:0; }
.mkt-rv-name  { font-size:13px; font-weight:600; color:#fff; }
.mkt-rv-stars { font-size:11px; color:#fbbf24; }
.mkt-rv-text  { font-size:13px; color:rgba(255,255,255,.48); line-height:1.65; }

/* ── FOR BUSINESS ────────────────────────────────────────────────── */
.mkt-biz {
  padding:100px 24px;
  background:linear-gradient(140deg,#0f0f18 0%,#1a1330 50%,#0f2040 100%);
  position:relative; overflow:hidden;
  border-top:1px solid rgba(255,255,255,.06);
}
.mkt-biz::before {
  content:''; position:absolute; top:-200px; right:-80px;
  width:520px;height:520px;
  background:radial-gradient(circle,rgba(124,58,237,.18) 0%,transparent 70%);
  pointer-events:none;
}
.mkt-biz::after {
  content:''; position:absolute; bottom:-150px; left:-60px;
  width:400px;height:400px;
  background:radial-gradient(circle,rgba(6,182,212,.1) 0%,transparent 70%);
  pointer-events:none;
}
.mkt-biz-inner {
  max-width:1100px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:80px;
  align-items:center; position:relative; z-index:1;
}
.mkt-biz-pill {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(124,58,237,.14); border:1px solid rgba(124,58,237,.28);
  color:#c084fc; font-size:12px; font-weight:700;
  padding:5px 14px; border-radius:100px;
  margin-bottom:20px; letter-spacing:.05em; text-transform:uppercase;
}
.mkt-biz h2 { font-size:clamp(28px,3.5vw,44px); font-weight:900; color:#fff; margin-bottom:16px; line-height:1.1; }
.mkt-biz > .mkt-biz-inner > .mkt-biz-copy > p,
.mkt-biz-copy p { font-size:16px; color:rgba(255,255,255,.58); line-height:1.7; margin-bottom:26px; }
.mkt-biz-list { list-style:none; padding:0; margin-bottom:34px; display:flex; flex-direction:column; gap:11px; }
.mkt-biz-list li { display:flex; align-items:center; gap:10px; font-size:15px; color:rgba(255,255,255,.8); }
.mkt-biz-list li svg { stroke:#4ade80; flex-shrink:0; }
.mkt-biz-cta { display:flex; gap:12px; flex-wrap:wrap; }

.mkt-biz-card {
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px; padding:30px;
  backdrop-filter:blur(20px);
  position:relative; overflow:hidden;
}
.mkt-biz-card::before {
  content:''; position:absolute; top:-50px; right:-50px;
  width:140px;height:140px;
  background:radial-gradient(circle,rgba(124,58,237,.25) 0%,transparent 70%);
}
.mkt-biz-card-head {
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:18px; padding-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.mkt-biz-card-t { font-size:16px; font-weight:800; color:#fff; }
.mkt-biz-card-s { font-size:11px; color:rgba(255,255,255,.35); margin-top:2px; }
.mkt-biz-card-tag {
  background:rgba(74,222,128,.14); border:1px solid rgba(74,222,128,.28);
  color:#4ade80; font-size:11px; font-weight:700;
  padding:3px 10px; border-radius:100px;
}
.mkt-biz-row {
  display:flex; justify-content:space-between;
  padding:11px 0; border-bottom:1px solid rgba(255,255,255,.05);
  font-size:14px;
}
.mkt-biz-row:last-of-type { border-bottom:none; }
.mkt-biz-row span  { color:rgba(255,255,255,.42); }
.mkt-biz-row strong { color:#fff; }
.mkt-biz-ok { color:#4ade80 !important; }
.mkt-biz-kpis { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.mkt-biz-kp   { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:10px; padding:14px; text-align:center; }
.mkt-biz-kp .v { font-size:22px; font-weight:900; color:#fff; }
.mkt-biz-kp .l { font-size:10px; color:rgba(255,255,255,.35); margin-top:3px; }

/* ── CTA — blanc + rose léger animé + motifs dégoulinants ─────────── */
.mkt-cta {
  background: #ffffff;
  padding: 110px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #fde8f5;
}
/* Orbes roses animées */
.mkt-cta::before {
  content: '';
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(ellipse 60% 55% at 15% 20%, rgba(244,114,182,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(236,72,153,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 75% 40% at 55% 5%, rgba(252,231,243,0.30) 0%, transparent 60%);
  animation: cta-blob 11s ease-in-out infinite alternate;
}
@keyframes cta-blob {
  0%   { transform: scale(1) translate(0,0); }
  33%  { transform: scale(1.04) translate(2%,3%); }
  66%  { transform: scale(0.97) translate(-2%,1%); }
  100% { transform: scale(1.02) translate(1%,-2%); }
}
/* Motifs dégoulinants en haut */
.mkt-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='160'%3E%3Cpath d='M64 0 L72 0 L72 90 Q68 105 64 90 Z' fill='%23f472b6' fill-opacity='0.12'/%3E%3Ccircle cx='68' cy='114' r='9' fill='%23f472b6' fill-opacity='0.12'/%3E%3Cpath d='M184 0 L192 0 L192 64 Q188 78 184 64 Z' fill='%23ec4899' fill-opacity='0.08'/%3E%3Ccircle cx='188' cy='87' r='9' fill='%23ec4899' fill-opacity='0.08'/%3E%3Cpath d='M323 0 L331 0 L331 108 Q327 123 323 108 Z' fill='%23f472b6' fill-opacity='0.10'/%3E%3Ccircle cx='327' cy='131' r='8' fill='%23f472b6' fill-opacity='0.10'/%3E%3Cpath d='M485 0 L494 0 L494 74 Q489 88 485 74 Z' fill='%23fbcfe8' fill-opacity='0.40'/%3E%3Ccircle cx='489' cy='98' r='11' fill='%23fbcfe8' fill-opacity='0.40'/%3E%3Cpath d='M644 0 L650 0 L650 95 Q647 108 644 95 Z' fill='%23f472b6' fill-opacity='0.09'/%3E%3Ccircle cx='647' cy='115' r='7' fill='%23f472b6' fill-opacity='0.09'/%3E%3Cpath d='M804 0 L812 0 L812 50 Q808 63 804 50 Z' fill='%23ec4899' fill-opacity='0.07'/%3E%3Ccircle cx='808' cy='72' r='10' fill='%23ec4899' fill-opacity='0.07'/%3E%3Cpath d='M964 0 L972 0 L972 80 Q968 94 964 80 Z' fill='%23f472b6' fill-opacity='0.11'/%3E%3Ccircle cx='968' cy='103' r='9' fill='%23f472b6' fill-opacity='0.11'/%3E%3Cpath d='M1124 0 L1133 0 L1133 116 Q1128 132 1124 116 Z' fill='%23fbcfe8' fill-opacity='0.32'/%3E%3Ccircle cx='1128' cy='143' r='11' fill='%23fbcfe8' fill-opacity='0.32'/%3E%3Cpath d='M1284 0 L1291 0 L1291 60 Q1287 73 1284 60 Z' fill='%23ec4899' fill-opacity='0.08'/%3E%3Ccircle cx='1287' cy='81' r='8' fill='%23ec4899' fill-opacity='0.08'/%3E%3Cpath d='M1404 0 L1412 0 L1412 84 Q1408 97 1404 84 Z' fill='%23f472b6' fill-opacity='0.10'/%3E%3Ccircle cx='1408' cy='104' r='7' fill='%23f472b6' fill-opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  animation: drip-sway 8s ease-in-out infinite alternate;
}
@keyframes drip-sway {
  0%   { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(7px); opacity: 1; }
}
.mkt-cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.mkt-cta h2 {
  font-size: clamp(32px,5.5vw,62px);
  font-weight: 900; color: #0f1117;
  margin-bottom: 20px; line-height: 1.05;
  letter-spacing: -0.028em;
}
.mkt-cta p { font-size: 18px; color: #475569; line-height: 1.65; margin-bottom: 38px; }
.mkt-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mkt-cta-bw {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  padding: 15px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 20px rgba(236,72,153,0.22);
}
.mkt-cta-bw:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(236,72,153,0.35); }
.mkt-cta-bo {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: #334155; padding: 15px 28px; border-radius: 10px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.mkt-cta-bo:hover { background: #f8faff; color: #0f1117; }
.mkt-cta-note { margin-top: 20px; font-size: 13px; color: #94a3b8; }

/* ── FOOTER CLAIR ────────────────────────────────────────────────── */
.mkt-footer {
  background: #fff;
  color: #0f1117;
  font-family:'DM Sans',sans-serif;
}
.mkt-footer-top {
  max-width:1200px; margin:0 auto;
  padding:64px 40px 48px;
  display:grid;
  grid-template-columns:1.8fr 1fr 1fr 1fr 1fr;
  gap:32px;
}
.mkt-footer-logo { height:22px; width:auto; display:block; margin-bottom:14px; }
.mkt-footer-brand-p { font-size:14px; color:#64748b; line-height:1.65; margin-bottom:20px; }
.mkt-footer-socials { display:flex; gap:8px; }
.mkt-footer-soc {
  width:34px;height:34px; border-radius:8px;
  background:#f1f5f9; border:1px solid #e2e8f0;
  display:flex; align-items:center; justify-content:center;
  color:#64748b; text-decoration:none;
  transition:background .15s, color .15s;
}
.mkt-footer-soc:hover { background:#e2e8f0; color:#0f1117; }
.mkt-footer-col-title {
  font-size:11px; font-weight:800; color:#0f1117;
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px;
}
.mkt-footer-col { display:flex; flex-direction:column; gap:10px; }
.mkt-footer-col a {
  color:#64748b; text-decoration:none; font-size:14px;
  transition:color .15s;
}
.mkt-footer-col a:hover { color:#0f1117; }
.mkt-footer-bottom {
  max-width:1200px; margin:0 auto;
  padding:20px 40px;
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid #f1f5f9;
  font-size:13px; color:#94a3b8;
}
.mkt-footer-bl { display:flex; gap:20px; }
.mkt-footer-bl a { color:#94a3b8; text-decoration:none; font-size:12px; transition:color .15s; }
.mkt-footer-bl a:hover { color:#0f1117; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width:960px) {
  .mkt-hero-h1 { font-size:clamp(36px,9vw,52px); }
  .mkt-mc-body { height:260px; }
  .mkt-mc-sb   { width:120px; }
  .mkt-mc-kpis { gap:6px; }
  .mkt-stats-inner { grid-template-columns:1fr 1fr; gap:0; }
  .mkt-stat-div { display:none; }
  .mkt-feat-grid { grid-template-columns:1fr 1fr; }
  .mkt-fc.wide { grid-column:span 2; }
  .mkt-biz-inner { grid-template-columns:1fr; gap:44px; }
  .mkt-footer-top { grid-template-columns:1fr 1fr; }
  .mkt-nav-center { display:none; }
  .mkt-flt { display:none; }
}
@media (max-width:600px) {
  .mkt-feat-grid { grid-template-columns:1fr; }
  .mkt-fc.wide { grid-column:span 1; }
  .mkt-stats-inner { grid-template-columns:1fr 1fr; }
  .mkt-mc-sb { display:none; }
  .mkt-hero-pill { font-size:11px; }
  .mkt-footer-top { grid-template-columns:1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDE — toutes les sections mkt-* passent en clair
════════════════════════════════════════════════════════════════════ */

/* ── BODY ───────────────────────────────────────────────────────── */
.mkt-body { background: #ffffff; }

/* ── NAV ────────────────────────────────────────────────────────── */
.mkt-nav {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #e2e8f0;
}
.mkt-nav-logo img { filter: none; }
.mkt-nav-link { color: #475569; }
.mkt-nav-link:hover { color: #0f1117; background: #f1f5f9; }
.mkt-nav-ghost { color: #475569; }
.mkt-nav-ghost:hover { color: #0f1117; background: #f1f5f9; }

/* ── HERO ────────────────────────────────────────────────────────── */
.mkt-hero { background: #ffffff; }
.mkt-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.038) 1px, transparent 1px);
}
.o1 { background: radial-gradient(circle, rgba(124,58,237,.10) 0%, transparent 70%); filter: blur(80px); }
.o2 { background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%); filter: blur(80px); }
.o3 { background: radial-gradient(circle, rgba(6,182,212,.07) 0%, transparent 70%); filter: blur(80px); }

.mkt-hero-pill {
  background: rgba(0,0,0,0.042);
  border: 1px solid rgba(0,0,0,0.08);
  color: #475569;
}
.mkt-pill-new { background: rgba(124,58,237,.1); color: #7c3aed; }
.mkt-hero-h1 { color: #0f1117; }
.mkt-hero-p { color: #64748b; }
.mkt-trust span { color: #94a3b8; }

.mkt-btn-g {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.1);
  color: #0f1117;
}
.mkt-btn-g:hover {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.16);
}

/* ── MOCKUP ─────────────────────────────────────────────────────── */
.mkt-mockup-shell {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.03),
    0 40px 100px rgba(0,0,0,.07),
    0 0 80px rgba(124,58,237,.05);
}
.mkt-mockup-shell::after {
  background: linear-gradient(to bottom, transparent, #ffffff);
}
.mkt-mc-chrome {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.mkt-mc-url {
  background: #ffffff;
  color: #94a3b8;
}
.mkt-mc-sb {
  background: #f8faff;
  border-right: 1px solid #e2e8f0;
}
.mkt-mc-brand { color: #0f1117; }
.mkt-mc-nav-item { color: #94a3b8; }
.mkt-mc-nav-item.on { background: rgba(124,58,237,.08); color: #7c3aed; }
.mkt-mc-main { background: #ffffff; }
.mkt-mc-title { color: #0f1117; }
.mkt-mc-kpi {
  background: #f8faff;
  border: 1px solid #e2e8f0;
}
.mkt-mc-kpi-l { color: #94a3b8; }
.mkt-mc-kpi-s { color: #cbd5e1; }
.mkt-mc-table { border: 1px solid #e2e8f0; }
.mkt-mc-tr { border-bottom: 1px solid #f1f5f9; }
.mkt-mc-tr.hd { background: #f8faff; color: #94a3b8; }
.mkt-mc-tr:not(.hd) { color: #334155; }
.mkt-mc-n { color: #cbd5e1; }
.mkt-mc-amt { color: #0f1117; font-weight: 700; }

/* Floating badges */
.mkt-flt {
  background: rgba(255,255,255,.98);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
.mkt-flt-title { color: #0f1117; }
.mkt-flt-sub { color: #94a3b8; }
.mkt-flt-ico { color: #7c3aed; }

/* ── LOGOS ───────────────────────────────────────────────────────── */
.mkt-logos {
  background: #f8faff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.mkt-logos-lbl { color: #94a3b8; }
/* Reset opacity on light bg — logos are already dark */
.mkt-logos .marquee-item svg path,
.mkt-logos .marquee-item svg circle,
.mkt-logos .marquee-item svg text { opacity: 0.7; }
.mkt-logos .marquee-item-name { color: #64748b !important; }

/* ── STATS ───────────────────────────────────────────────────────── */
.mkt-stats { background: #ffffff; }
.mkt-stat-n { color: #0f1117; }
.mkt-stat-lbl { color: #94a3b8; }
.mkt-stat-div { background: #e2e8f0; }

/* ── FEATURES ────────────────────────────────────────────────────── */
.mkt-features {
  background: #f8faff;
  border-top: 1px solid #e2e8f0;
}
.mkt-section-h2 { color: #0f1117; }
.mkt-fc {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.mkt-fc:hover {
  background: #fafafe;
  border-color: rgba(124,58,237,.22);
  box-shadow: 0 4px 20px rgba(124,58,237,.08);
}
.mkt-fc::before {
  background: linear-gradient(135deg, rgba(124,58,237,.04) 0%, transparent 55%);
}
.mkt-fc.glow {
  background: linear-gradient(135deg, rgba(124,58,237,.04), rgba(37,99,235,.02));
  border-color: rgba(124,58,237,.14);
}
.mkt-fc h3 { color: #0f1117; }
.mkt-fc p  { color: #64748b; }
.mkt-fc-ai {
  background: #f8faff;
  border: 1px solid #e2e8f0;
}
.mkt-fc-ai-prompt { color: #94a3b8; }
.mkt-fc-ai-line   { color: #334155; }
.mkt-fc-sign {
  background: #f8faff;
  border: 1px solid #e2e8f0;
}
.mkt-fc-sign-line { background: #e2e8f0; }
.mkt-section-pill {
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.18);
  color: #7c3aed;
}

/* ── VIDEO ───────────────────────────────────────────────────────── */
.mkt-video {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.mkt-video-h2  { color: #0f1117; }
.mkt-video-sub { color: #64748b; }
.mkt-video-browser {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.03),
    0 40px 100px rgba(0,0,0,.06);
}
.mkt-video-chrome {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.mkt-video-url {
  background: #ffffff;
  color: #94a3b8;
}
.mkt-video-badge {
  background: rgba(255,255,255,.98);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  color: #0f1117;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.mkt-testi {
  background: #f8faff;
  border-top: 1px solid #e2e8f0;
}
.mkt-testi-stars { color: #fbbf24; }
.mkt-testi-score { color: #0f1117; }
.mkt-testi-ct    { color: #94a3b8; }
.mkt-rv {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.mkt-rv:hover { border-color: rgba(124,58,237,.2); }
.mkt-rv-name  { color: #0f1117; }
.mkt-rv-text  { color: #64748b; }
.mkt-rv-stars { color: #fbbf24; }

/* ── FOR BUSINESS ────────────────────────────────────────────────── */
.mkt-biz {
  background: linear-gradient(140deg, #faf8ff 0%, #f3f0ff 40%, #eff6ff 100%);
  border-top: 1px solid #e2e8f0;
}
.mkt-biz::before {
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%);
}
.mkt-biz::after {
  background: radial-gradient(circle, rgba(6,182,212,.04) 0%, transparent 70%);
}
.mkt-biz-pill { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.18); color: #7c3aed; }
.mkt-biz h2 { color: #0f1117; }
.mkt-biz-copy p { color: #64748b; }
.mkt-biz-list li { color: #334155; }
.mkt-biz-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  backdrop-filter: none;
}
.mkt-biz-card::before {
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%);
}
.mkt-biz-card-head { border-bottom: 1px solid #f1f5f9; }
.mkt-biz-card-t { color: #0f1117; }
.mkt-biz-card-s { color: #94a3b8; }
.mkt-biz-row { border-bottom: 1px solid #f1f5f9; }
.mkt-biz-row span   { color: #94a3b8; }
.mkt-biz-row strong { color: #0f1117; }
.mkt-biz-kp {
  background: #f8faff;
  border: 1px solid #e2e8f0;
}
.mkt-biz-kp .v { color: #0f1117; }
.mkt-biz-kp .l { color: #94a3b8; }

/* ── CTA (garde son gradient) ───────────────────────────────────── */
/* pas de changement sur la section CTA, elle fonctionne telle quelle */

/* ── FOOTER (déjà clair) ────────────────────────────────────────── */
/* pas de changement nécessaire */

/* ════════════════════════════════════════════════════════════════════
   GALERIE PEXELS — Section défilante
════════════════════════════════════════════════════════════════════ */

.mkt-gallery {
  padding: 80px 0 72px;
  background: #f8faff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

/* Masques de fondu gauche / droite */
.mkt-gallery::before,
.mkt-gallery::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 10;
  pointer-events: none;
}
.mkt-gallery::before { left: 0;  background: linear-gradient(to right, #f8faff 30%, transparent); }
.mkt-gallery::after  { right: 0; background: linear-gradient(to left,  #f8faff 30%, transparent); }

.mkt-gallery-hdr {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 44px;
}
.mkt-gallery-h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 900;
  color: #0f1117;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.mkt-gallery-sub {
  font-size: 15px;
  color: #94a3b8;
}

.mkt-gallery-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mkt-gallery-wrap {
  overflow: hidden;
  width: 100%;
}

.mkt-gallery-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

/* Vitesses & directions différentes pour chaque rangée */
.mkt-gallery-track.r1 {
  animation: gscrl 50s linear infinite;
}
.mkt-gallery-track.r2 {
  animation: gscrl 65s linear infinite reverse;
  animation-delay: -15s;
}
.mkt-gallery-track.r3 {
  animation: gscrl 42s linear infinite;
  animation-delay: -8s;
}

/* Pause au survol */
.mkt-gallery-wrap:hover .mkt-gallery-track {
  animation-play-state: paused;
}

@keyframes gscrl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mkt-gallery-img {
  height: 200px;
  width: auto;
  min-width: 260px;
  max-width: 420px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  filter: brightness(0.96) saturate(1.05);
  cursor: pointer;
}

.mkt-gallery-img:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  filter: brightness(1) saturate(1.15);
  z-index: 5;
  position: relative;
}

/* Skeleton placeholder pendant le chargement */
.mkt-gallery-track:empty::after {
  content: '';
  display: flex;
  height: 200px;
  width: 100vw;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 14px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════════════════════════
   HERO SPLIT — texte gauche + colonnes portrait droite
════════════════════════════════════════════════════════════════════ */

/* Logo agrandi dans la nav (sans agrandir la nav) */
.mkt-nav-logo img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
}

/* Hero devient une rangée flex */
.mkt-hero {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Masque les anciens éléments centrés si jamais ils persistent */
.mkt-hero-inner  { display: none !important; }
.mkt-mockup      { display: none !important; }
.mkt-hero-p      { display: none !important; }
.mkt-trust       { display: none !important; }
.mkt-hero-btns   { display: none !important; }

/* ── Côté texte ─────────────────────────────────────────────────── */
.mkt-hero-left {
  flex: 0 0 auto;
  width: clamp(340px, 42%, 560px);
  padding: 0 48px 0 60px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.mkt-hero-left .mkt-hero-pill {
  margin-bottom: 0;
  animation: fu .5s ease both;
}
.mkt-hero-left .mkt-hero-h1 {
  text-align: left;
  margin-bottom: 0;
  animation: fu .5s ease .1s both;
}
.mkt-hero-cta-btn {
  animation: fu .5s ease .2s both;
}

/* ── Colonnes images ────────────────────────────────────────────── */
.mkt-hero-right {
  flex: 1;
  height: 100vh;
  display: flex;
  gap: 10px;
  overflow: hidden;
  position: relative;
  padding-top: 64px; /* nav height */
}

/* Fondu haut + bas */
.mkt-hero-right::before,
.mkt-hero-right::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  z-index: 10;
  pointer-events: none;
}
.mkt-hero-right::before {
  top: 64px;
  height: 100px;
  background: linear-gradient(to bottom, #ffffff, transparent);
}
.mkt-hero-right::after {
  bottom: 0;
  height: 140px;
  background: linear-gradient(to top, #ffffff, transparent);
}

/* Fondu gauche (liaison texte → images) */
.mkt-hero-right-fade-l {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 90px;
  background: linear-gradient(to right, #ffffff, transparent);
  z-index: 11;
  pointer-events: none;
}

/* Chaque colonne */
.mkt-hcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}
.mkt-hcol.c1 { animation: vscrl 30s linear infinite; }
.mkt-hcol.c2 { animation: vscrl 38s linear infinite reverse; animation-delay: -12s; }
.mkt-hcol.c3 { animation: vscrl 26s linear infinite; animation-delay: -7s; }

@keyframes vscrl {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Images portrait 9:16 */
.mkt-himg {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  transition: transform .35s ease, box-shadow .35s ease;
}
.mkt-himg:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

/* Responsive */
@media (max-width: 900px) {
  .mkt-hero { flex-direction: column !important; min-height: auto !important; }
  .mkt-hero-left { width: 100% !important; padding: 100px 24px 0 !important; align-items: center; text-align: center; }
  .mkt-hero-left .mkt-hero-h1 { text-align: center; }
  .mkt-hero-right { height: 50vh; width: 100%; }
  .mkt-hcol.c3 { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   NAV — logo grand, tout à droite
════════════════════════════════════════════════════════════════════ */
.mkt-nav-inner {
  justify-content: space-between !important;
}
.mkt-nav-logo img {
  height: 52px !important;
  max-height: 52px !important;
  width: auto !important;
  filter: none !important;
}
.mkt-nav-center { display: none !important; }
.mkt-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  margin-left: auto !important;
}
.mkt-nav-right .mkt-nav-link {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.mkt-nav-right .mkt-nav-link:hover { color: #0f1117; background: #f1f5f9; }

/* ════════════════════════════════════════════════════════════════════
   VIDEO — style Figma (grand titre gauche + vidéo droite)
════════════════════════════════════════════════════════════════════ */
.mkt-vidshow {
  background: #ffffff;
  padding: 110px 60px;
  border-top: 1px solid #e2e8f0;
}
.mkt-vidshow-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.mkt-vidshow-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #94a3b8;
  margin-bottom: 20px;
}
.mkt-vidshow-h2 {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 900;
  color: #0f1117;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.mkt-vidshow-p {
  font-size: 17px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 340px;
}
.mkt-vidshow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f1117;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .15s;
}
.mkt-vidshow-link:hover { opacity: .65; }
.mkt-vidshow-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 30px 90px rgba(0,0,0,.11), 0 0 0 1px rgba(0,0,0,.03);
  position: relative;
}
.mkt-vidshow-chrome {
  background: #f1f5f9;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.mkt-vidshow-dots { display: flex; gap: 6px; }
.mkt-vidshow-dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mkt-vidshow-dots span:nth-child(1) { background: #ff5f57; }
.mkt-vidshow-dots span:nth-child(2) { background: #febc2e; }
.mkt-vidshow-dots span:nth-child(3) { background: #28c840; }
.mkt-vidshow-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  color: #94a3b8;
  font-family: 'DM Mono', monospace;
  text-align: center;
}
.mkt-vidshow-frame video { display: block; width: 100%; aspect-ratio: 16/9; }
.mkt-vidshow-right { position: relative; }
.mkt-vidshow-badge {
  position: absolute;
  bottom: -16px;
  left: 28px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f1117;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.mkt-vidshow-bdot {
  width: 9px; height: 9px;
  background: #22c55e;
  border-radius: 50%;
  animation: dpls 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   DELIVER — style Figma "Livrez vos produits"
════════════════════════════════════════════════════════════════════ */
.mkt-deliver {
  background: #f8faff;
  padding: 110px 60px;
  border-top: 1px solid #e2e8f0;
}
.mkt-deliver-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
  align-items: start;
}
.mkt-deliver-h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 900;
  color: #0f1117;
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: 40px;
}
.mkt-deliver-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #e2e8f0;
}
.mkt-deliver-item:first-of-type { border-top: 1px solid #e2e8f0; }
.mkt-deliver-ico {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}
.mkt-deliver-item strong {
  font-size: 16px;
  font-weight: 700;
  color: #0f1117;
  display: block;
  margin-bottom: 7px;
  line-height: 1.3;
}
.mkt-deliver-item p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 10px;
}
.mkt-deliver-lnk {
  font-size: 13px;
  color: #0f1117;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .15s;
}
.mkt-deliver-lnk:hover { opacity: .55; }

/* Produit For — mockup dark */
.mkt-deliver-right { position: sticky; top: 90px; }
.mkt-deliver-demo {
  background: #0d0d18;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 110px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.03);
}
.mkt-dd-chrome {
  background: #1a1a2e;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mkt-dd-dots { display: flex; gap: 6px; }
.mkt-dd-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mkt-dd-dots span:nth-child(1) { background: #ff5f57; }
.mkt-dd-dots span:nth-child(2) { background: #febc2e; }
.mkt-dd-dots span:nth-child(3) { background: #28c840; }
.mkt-dd-url {
  flex: 1; text-align: center;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-family: 'DM Mono', monospace;
}
.mkt-dd-body { display: flex; height: 340px; }
.mkt-dd-sb {
  width: 140px;
  background: #0d0d18;
  border-right: 1px solid rgba(255,255,255,.05);
  padding: 18px 12px;
  flex-shrink: 0;
}
.mkt-dd-logo { font-size: 13px; font-weight: 800; color: #fff; padding: 6px 8px; margin-bottom: 12px; }
.mkt-dd-item {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  padding: 8px 10px;
  border-radius: 7px;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.mkt-dd-item.active { background: rgba(124,58,237,.18); color: #c084fc; }
.mkt-dd-main { flex: 1; padding: 18px; overflow: hidden; }
.mkt-dd-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mkt-dd-title { font-size: 14px; font-weight: 700; color: #fff; }
.mkt-dd-newbtn {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 7px;
}
.mkt-dd-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.mkt-dd-kpi {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px 10px;
}
.mkt-dd-kv { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.mkt-dd-kl { font-size: 9px; color: rgba(255,255,255,.35); }
.mkt-dd-ks { font-size: 9px; color: rgba(255,255,255,.22); margin-top: 2px; }
.mkt-dd-table { border: 1px solid rgba(255,255,255,.06); border-radius: 10px; overflow: hidden; }
.mkt-dd-tr {
  display: grid;
  grid-template-columns: 36px 1fr 72px 64px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 11px; gap: 6px; align-items: center;
}
.mkt-dd-tr:last-child { border-bottom: none; }
.mkt-dd-tr.hd { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.25); background: rgba(255,255,255,.02); }
.mkt-dd-tr:not(.hd) { color: rgba(255,255,255,.6); }
.mkt-dd-n { color: rgba(255,255,255,.22); font-family: 'DM Mono', monospace; }
.mkt-dd-ok   { color: #4ade80; font-weight: 600; font-size: 10px; }
.mkt-dd-pend { color: #60a5fa; font-weight: 600; font-size: 10px; }
.mkt-dd-amt  { color: #fff; font-weight: 700; text-align: right; }

/* Responsive */
@media (max-width: 960px) {
  .mkt-vidshow-inner  { grid-template-columns: 1fr; gap: 44px; }
  .mkt-deliver-inner  { grid-template-columns: 1fr; gap: 48px; }
  .mkt-deliver-right  { position: static; }
  .mkt-vidshow, .mkt-deliver { padding: 70px 24px; }
}

/* ════════════════════════════════════════════════════════════════════
   NAV FINAL — logo très grand, tout le reste à droite
════════════════════════════════════════════════════════════════════ */
.mkt-nav {
  height: 80px !important;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: fixed !important;
  top: 0; left: 0; right: 0 !important;
  z-index: 500 !important;
}
.mkt-nav-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 24px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}

/* LOGO — très grand, à gauche, pousse tout le reste à droite */
.mkt-nav-logo {
  display: flex !important;
  align-items: center !important;
  margin-right: auto !important;
  flex-shrink: 0 !important;
}
.mkt-nav-logo img {
  height: 68px !important;
  max-height: 68px !important;
  width: auto !important;
  display: block !important;
  filter: none !important;
}

/* Masquer l'ancien nav-center s'il restait */
.mkt-nav-center { display: none !important; }

/* NAV RIGHT — tout à droite, serré */
.mkt-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  margin-left: 0 !important;
}
nav.mkt-nav .mkt-nav-right a.mkt-nav-link {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color .15s, background .15s !important;
}
nav.mkt-nav .mkt-nav-right a.mkt-nav-link:hover {
  color: #0f1117 !important;
  background: #f1f5f9 !important;
}
nav.mkt-nav .mkt-nav-right a.mkt-nav-cta {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin-left: 8px !important;
  box-shadow: 0 4px 16px rgba(124,58,237,.3) !important;
  transition: opacity .2s, transform .2s !important;
}
nav.mkt-nav .mkt-nav-right a.mkt-nav-cta:hover {
  opacity: .88 !important;
  transform: translateY(-1px) !important;
}

/* Ajuster le hero pour le nouveau nav de 80px */
.mkt-hero { padding-top: 0 !important; }
.mkt-hero-right { padding-top: 80px !important; }
.mkt-hero-right::before { top: 80px !important; }

/* ══════════════════════════════════════════════════════════
   BENTO GRID
══════════════════════════════════════════════════════════ */
.mkt-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 360px 230px;
  gap: 16px;
  margin-top: 52px;
}
.mkt-bc {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mkt-bc:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.mkt-bc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mkt-bc:hover .mkt-bc-img { transform: scale(1.05); }
.mkt-bc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.22) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
}
.mkt-bc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 5px 13px;
  width: fit-content;
  margin-bottom: 12px;
}
.mkt-bc-h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}
.mkt-bc-p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
  margin: 0;
}
.mkt-bc-large { grid-column: span 7; background: linear-gradient(135deg,#7c3aed,#2563eb); }
.mkt-bc-med   { grid-column: span 5; background: linear-gradient(135deg,#ec4899,#f97316); }
.mkt-bc-sm    { grid-column: span 4; }
.mkt-bc-sm .mkt-bc-h3 { font-size: 19px; }
.mkt-bc-sm .mkt-bc-p  { font-size: 13px; }
.mkt-bc-sm .mkt-bc-overlay { padding: 22px; }
.mkt-bc-sm1 { background: linear-gradient(135deg,#06b6d4,#6366f1); }
.mkt-bc-sm2 { background: linear-gradient(135deg,#10b981,#3b82f6); }
.mkt-bc-sm3 { background: linear-gradient(135deg,#f59e0b,#ef4444); }

/* ══════════════════════════════════════════════════════════
   TESTIMONIAL QUOTE (Sofia) — dark uniquement
══════════════════════════════════════════════════════════ */
.mkt-testi.mkt-quote {
  background: #09090c;
  padding: 100px 48px;
}
.mkt-testi-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}
.mkt-testi-left { flex: 1; min-width: 0; }
.mkt-testi-qmark {
  font-family: Georgia,'Times New Roman',serif;
  font-size: 130px;
  line-height: 0.7;
  color: #f59e0b;
  display: block;
  height: 70px;
  margin-bottom: 8px;
}
.mkt-testi-text {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.38;
  color: #fff;
  margin: 0;
  font-style: normal;
}
.mkt-testi-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 170px;
}
.mkt-testi-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
  background: #1e1e24;
}
.mkt-testi-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.mkt-testi-role {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.4;
}
.mkt-testi-company {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   VIDEO SECTION — STYLE FIGMA
══════════════════════════════════════════════════════════ */
.mkt-vidshow {
  background: #fff !important;
  padding: 100px 48px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.mkt-vidshow-inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 72px !important;
}
.mkt-vidshow-left {
  flex: 1 !important;
  min-width: 0 !important;
}
.mkt-vs-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #7c3aed !important;
  margin-bottom: 20px !important;
}
.mkt-vs-h2 {
  font-size: 52px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #0f1117 !important;
  margin: 0 0 24px !important;
  letter-spacing: -0.02em !important;
}
.mkt-vs-p {
  font-size: 17px !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 0 32px !important;
}
.mkt-vs-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f1117 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
.mkt-vs-cta:hover { color: #7c3aed !important; }
.mkt-vidshow-right {
  flex-shrink: 0 !important;
  width: 460px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
}
.mkt-vs-videobox {
  width: 460px !important;
  height: 460px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #0f1117 !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06) !important;
}
.mkt-vs-videobox video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.mkt-vs-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 20px !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #15803d !important;
}
.mkt-vs-bdot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  flex-shrink: 0 !important;
  animation: pulse-green 2s infinite !important;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ══════════════════════════════════════════════════════════
   FIXES DEFINITIFS
══════════════════════════════════════════════════════════ */

/* --- Ligne blanche entre images hero --- */
.mkt-hero-right { gap: 0 !important; }
.mkt-hcol { gap: 0 !important; }
.mkt-himg { margin: 0 !important; display: block !important; }

/* --- Logo 3x — déborde hors de la navbar, qui reste inchangée --- */
#nav-root { height: 90px !important; overflow: visible !important; }
#nav-logo-img { height: 234px !important; width: auto !important; display: block !important; filter: none !important; position: relative; z-index: 10; }
.mkt-hero-right { padding-top: 90px !important; }
.mkt-hero-right::before { top: 90px !important; }

/* --- Boutons à droite, logo à gauche --- */
#nav-inner { justify-content: space-between !important; gap: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
#nav-links { margin-left: auto !important; }

/* --- Section vidéo : mise en page manquante (classes HTML non stylées) --- */
.mkt-vs-wrapper {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 64px !important;
}
.mkt-vs-text {
  flex: 1 !important;
  min-width: 0 !important;
}
.mkt-vs-frame {
  flex-shrink: 0 !important;
  width: 500px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.07) !important;
  background: #f1f5f9 !important;
}
.mkt-vs-chrome {
  background: #f1f5f9 !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.mkt-vs-dots { display: flex !important; gap: 6px !important; }
.mkt-vs-dots span { width: 10px !important; height: 10px !important; border-radius: 50% !important; display: inline-block !important; }
.mkt-vs-dots span:nth-child(1) { background: #ff5f57 !important; }
.mkt-vs-dots span:nth-child(2) { background: #febc2e !important; }
.mkt-vs-dots span:nth-child(3) { background: #28c840 !important; }
.mkt-vs-url {
  flex: 1 !important;
  background: #ffffff !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  text-align: center !important;
}
.mkt-vs-screen video {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — LANDING PAGE
══════════════════════════════════════════════════════════ */

/* ── Hamburger button ───────────────────────────────────── */
.mkt-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 200;
  flex-shrink: 0;
}
.mkt-nav-hamburger span {
  width: 22px; height: 2px;
  background: #0f1117;
  border-radius: 2px;
  display: block;
  transition: transform 0.22s, opacity 0.22s;
}
.mkt-nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mkt-nav-hamburger.active span:nth-child(2) { opacity: 0; }
.mkt-nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu panel ──────────────────────────────────── */
.mkt-nav-mobile-menu {
  display: none;
  position: absolute;
  top: 60px; left: 0; right: 0;
  background: rgba(255,255,255,0.99);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #e2e8f0;
  z-index: 150;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.mkt-nav-mobile-menu.open { display: flex; }
.mkt-nav-mobile-menu a {
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 10px;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.15s;
}
.mkt-nav-mobile-menu a:hover { color: #7c3aed; }
.mkt-nav-mobile-menu .mkt-nav-mobile-cta {
  margin-top: 10px;
  background: linear-gradient(135deg,#7c3aed,#2563eb);
  color: #fff !important;
  text-align: center;
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: none;
}

/* ── Breakpoint 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Hamburger visible, liens desktop cachés */
  .mkt-nav-desktop-only { display: none !important; }
  .mkt-nav-hamburger { display: flex !important; }

  /* ── Hero : texte centré, images limitées ─── */
  .mkt-hero { flex-direction: column !important; }
  .mkt-hero-left {
    width: 100% !important;
    padding: 72px 20px 16px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .mkt-hero-left .mkt-hero-pill { justify-content: center !important; font-size: 11px !important; padding: 5px 12px !important; margin-bottom: 0 !important; }
  .mkt-hero-left .mkt-hero-h1 { text-align: center !important; font-size: clamp(26px, 8vw, 38px) !important; margin-bottom: 0 !important; }
  .mkt-hero-cta-btn { font-size: 14px !important; padding: 12px 20px !important; }

  /* Images hero — rangée courte, 1 colonne seulement */
  .mkt-hero-right {
    height: 220px !important;
    min-height: 0 !important;
    max-height: 220px !important;
    width: 100% !important;
    padding-top: 0 !important;
  }
  .mkt-hcol.c1 { display: flex !important; }
  .mkt-hcol.c2 { display: none !important; }
  .mkt-hcol.c3 { display: none !important; }

  /* ── Stats ─── */
  .mkt-stats { padding: 40px 20px !important; }
  .mkt-stats-inner { grid-template-columns: 1fr 1fr !important; gap: 16px 0 !important; }
  .mkt-stat { padding: 12px 8px !important; }
  .mkt-stat-n { font-size: clamp(26px, 8vw, 38px) !important; }
  .mkt-stat-lbl { font-size: 11px !important; }
  .mkt-stat-div { display: none !important; }

  /* ── Features / Bento ─── */
  .mkt-features { padding: 40px 16px 56px !important; }
  .mkt-section-h2 { font-size: clamp(20px, 5.5vw, 28px) !important; margin-bottom: 28px !important; }
  .mkt-bento {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
    margin-top: 24px !important;
  }
  .mkt-bc-large { grid-column: span 1 !important; min-height: 180px !important; }
  .mkt-bc-med   { grid-column: span 1 !important; min-height: 160px !important; }
  .mkt-bc-sm    { grid-column: span 1 !important; min-height: 130px !important; }
  .mkt-bc-overlay { padding: 18px !important; }
  .mkt-bc-h3 { font-size: 17px !important; }
  .mkt-bc-p  { font-size: 13px !important; }

  /* ── Testimonial quote ─── */
  .mkt-testi.mkt-quote { padding: 44px 20px !important; }
  .mkt-testi-inner { flex-direction: column !important; gap: 24px !important; align-items: center !important; text-align: center !important; }
  .mkt-testi-text { font-size: 18px !important; }
  .mkt-testi-qmark { font-size: 64px !important; height: 36px !important; }
  .mkt-testi-right { width: auto !important; }

  /* ── Témoignages scroll ─── */
  .mkt-rv { width: 260px !important; padding: 16px !important; }
  .mkt-rv-text { font-size: 12px !important; }

  /* ── Section vidéo ─── */
  .mkt-vidshow { padding: 44px 16px !important; }
  .mkt-vs-wrapper { flex-direction: column !important; gap: 28px !important; }
  .mkt-vs-h2 { font-size: 24px !important; }
  .mkt-vs-p { font-size: 14px !important; margin: 0 0 20px !important; }
  .mkt-vs-frame { width: 100% !important; }

  /* ── Section Deliver ─── */
  .mkt-deliver { padding: 44px 16px !important; }
  .mkt-deliver-inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  .mkt-deliver-right { position: static !important; display: none !important; }
  .mkt-deliver-h2 { font-size: clamp(22px, 6vw, 28px) !important; }
  .mkt-deliver-item { padding: 12px 0 !important; }
  .mkt-deliver-item p { font-size: 13px !important; }

  /* ── For Business ─── */
  .mkt-biz { padding: 44px 16px !important; }
  .mkt-biz-inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  .mkt-biz-card { display: none !important; }

  /* ── CTA final ─── */
  .mkt-cta { padding: 60px 20px !important; }
  .mkt-cta-inner h2 { font-size: clamp(22px, 6vw, 32px) !important; }
  .mkt-cta-inner p { font-size: 14px !important; }
  .mkt-cta-btns { flex-direction: column !important; align-items: center !important; gap: 10px !important; }
  .mkt-cta-bw, .mkt-cta-bo { width: 100% !important; max-width: 300px !important; text-align: center !important; justify-content: center !important; padding: 13px 20px !important; font-size: 15px !important; }

  /* ── Footer ─── */
  .mkt-footer-top { grid-template-columns: 1fr 1fr !important; gap: 32px 20px !important; padding: 40px 20px !important; }
  .mkt-footer-bottom { flex-direction: column !important; align-items: center !important; gap: 8px !important; text-align: center !important; padding: 16px 20px !important; }
  .mkt-footer-bl { justify-content: center !important; flex-wrap: wrap !important; gap: 12px !important; }
  .mkt-footer-brand-p { font-size: 13px !important; }
}

@media (max-width: 480px) {
  /* Bannière encore plus compacte */
  #promo-banner { font-size: 12px !important; }

  /* Footer 1 colonne */
  .mkt-footer-top { grid-template-columns: 1fr !important; }

  /* Stats numéros plus petits */
  .mkt-stat-n { font-size: clamp(22px, 8vw, 32px) !important; }

  /* Hero encore plus compact */
  .mkt-hero-left { padding: 64px 16px 12px !important; }
  .mkt-hero-left .mkt-hero-h1 { font-size: clamp(24px, 7.5vw, 32px) !important; }
  .mkt-hero-right { height: 180px !important; max-height: 180px !important; }
}

/* ══════════════════════════════════════════════════════════
   APP PAGES — MOBILE RESPONSIVE (nav interne après connexion)
══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Nav app compacte ─── */
  nav {
    min-height: 64px !important;
    height: 64px !important;
    padding: 0 14px !important;
    grid-template-columns: auto 1fr auto !important;
    column-gap: 6px !important;
    overflow: visible !important;
  }

  .nav-logo {
    width: auto !important;
    flex: none !important;
    min-width: 0 !important;
  }

  .nav-logo img {
    height: 60px !important;
    max-width: 120px !important;
    transform: scale(1) !important;
    transform-origin: left center !important;
  }

  /* Cacher les liens de nav sur mobile */
  .nav-links { display: none !important; }

  /* Actions nav — garder compact */
  .nav-actions {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .nav-actions [data-user-name] { display: none !important; }
  .nav-actions .btn-ghost { padding: 6px 8px !important; }
  .nav-actions .btn-primary span:not(svg) { display: none; }
  .nav-actions .btn-primary { padding: 8px 10px !important; }

  /* ── Contenu pages ─── */
  .container { padding: 0 14px !important; }
  .page { padding: 1.2rem 0 5rem !important; }
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 1.2rem !important;
  }
  .page-title { font-size: 20px !important; }

  /* ── Stats grid 2×2 ─── */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.7rem !important;
    margin-bottom: 1rem !important;
  }
  .stat-card { padding: 1rem 1rem 0.9rem !important; }
  .stat-value { font-size: 22px !important; }
  .stat-revenue-detail { display: none; }

  /* ── KPI row 2 colonnes ─── */
  .kpi-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.7rem !important;
  }
  .kpi-value { font-size: 22px !important; }

  /* ── Cards ─── */
  .card { border-radius: 14px !important; }
  .card-header { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }

  /* ── Top clients table ─── */
  .top-client-row {
    grid-template-columns: 28px 1fr auto !important;
    gap: 6px !important;
  }
  .top-client-row > :nth-child(4),
  .top-client-row > :nth-child(5) { display: none !important; }

  /* ── Filtres ─── */
  .filters { flex-wrap: wrap !important; gap: 8px !important; }
  .filters input, .filters select { max-width: 100% !important; width: 100% !important; }

  /* ── Table devis / clients ─── */
  .devis-table-wrap, .clients-table-wrap { overflow-x: auto !important; }

  /* ── Padding general des sections ─── */
  .kpi-row, .stats-grid { padding: 0 !important; }
}

/* ── Bottom navigation bar (mobile app) ──────────────── */
.app-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
  z-index: 999;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
}

@media (max-width: 768px) {
  .app-bottom-nav { display: flex !important; }
  body { padding-bottom: 64px; }
}

.app-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
  flex: 1;
  max-width: 72px;
}

.app-bottom-nav-item svg {
  width: 22px; height: 22px;
  stroke-width: 1.8;
}

.app-bottom-nav-item.active,
.app-bottom-nav-item:hover {
  color: #2b3bf0;
}

.app-bottom-nav-item.active svg { stroke-width: 2.5; }

/* Bouton central Nouveau */
.app-bottom-nav-item.nav-new {
  background: linear-gradient(135deg, #2b3bf0, #6366f1);
  color: #fff !important;
  border-radius: 16px;
  padding: 10px 14px;
  margin: 0 4px;
  box-shadow: 0 4px 14px rgba(43,59,240,0.35);
}
.app-bottom-nav-item.nav-new svg { width: 24px; height: 24px; stroke-width: 2.5; }

/* ─── Sélecteur de thème ─── */
.theme-picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.theme-picker-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.theme-picker-card:hover { border-color: #6366f1; }
.theme-picker-card.is-selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.theme-picker-preview {
  width: 100%;
  height: 110px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.theme-picker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}
.theme-picker-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}
.theme-picker-card.is-selected .theme-picker-check {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

/* ─── DARK MODE ─── */
[data-theme="dark"] body {
  background: #0f1117 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] nav {
  background: rgba(15,17,23,0.97) !important;
  border-bottom-color: #1e2130 !important;
}
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .nav-logo,
[data-theme="dark"] .nav-dropdown > a {
  color: #e2e8f0 !important;
}
[data-theme="dark"] .nav-dropdown-menu {
  background: #1e2130 !important;
  border-color: #2d3748 !important;
}
[data-theme="dark"] .nav-dropdown-menu a { color: #cbd5e1 !important; }
[data-theme="dark"] .nav-dropdown-menu a:hover { background: #2d3748 !important; }
[data-theme="dark"] .card,
[data-theme="dark"] .account-hero,
[data-theme="dark"] .bank-tx-card,
[data-theme="dark"] .bank-stat-card {
  background: #1e2130 !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .card-title,
[data-theme="dark"] .page-title,
[data-theme="dark"] .stat-value,
[data-theme="dark"] .kpi-value,
[data-theme="dark"] .account-hero-name,
[data-theme="dark"] .bank-hero-amount,
[data-theme="dark"] .bank-stat-value {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .page-subtitle,
[data-theme="dark"] .card-title + p,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-sub,
[data-theme="dark"] .kpi-sub,
[data-theme="dark"] .kpi-label {
  color: #94a3b8 !important;
}
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0f1117 !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .btn-ghost {
  color: #94a3b8 !important;
  border-color: #2d3748 !important;
}
[data-theme="dark"] .btn-ghost:hover { background: #2d3748 !important; }
[data-theme="dark"] .devis-item,
[data-theme="dark"] .list-header {
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .devis-item:hover { background: #252d3f !important; }
[data-theme="dark"] .stat-card { background: #1e2130 !important; border-color: #2d3748 !important; }
[data-theme="dark"] .kpi-card { background: #1e2130 !important; border-color: #2d3748 !important; }
[data-theme="dark"] .kpi-bar { background: #2d3748 !important; }
[data-theme="dark"] .account-shortcut-btn {
  background: #1e2130 !important;
  border-color: #2d3748 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .account-shortcut-btn:hover { background: #252d3f !important; }
[data-theme="dark"] .account-shortcut-btn strong { color: #f1f5f9 !important; }
[data-theme="dark"] .account-shortcut-btn small { color: #64748b !important; }
[data-theme="dark"] .account-section-label { color: #475569 !important; }
[data-theme="dark"] .bank-tx-item:hover { background: #252d3f !important; }
[data-theme="dark"] .bank-tx-name { color: #f1f5f9 !important; }
[data-theme="dark"] .theme-picker-label { background: #1e2130 !important; border-top-color: #2d3748 !important; }
[data-theme="dark"] .theme-picker-label div div:first-child { color: #f1f5f9 !important; }
[data-theme="dark"] .filters { background: #1e2130 !important; border-color: #2d3748 !important; }
[data-theme="dark"] .page-header { border-bottom-color: #2d3748 !important; }
[data-theme="dark"] .app-bottom-nav {
  background: rgba(15,17,23,0.97) !important;
  border-top-color: #2d3748 !important;
}
[data-theme="dark"] .notif { background: #1e2130 !important; color: #f1f5f9 !important; }

/* ─── Hero compte ─── */
.account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.account-hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.account-hero-info { flex: 1; min-width: 0; }
.account-hero-name {
  font-size: 20px;
  font-weight: 800;
  color: #0f1117;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-hero-email { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.account-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.account-hero-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
}
.account-hero-badge-member { background: #f0fdf4; color: #15803d; }
.account-hero-bank {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 160px;
  transition: opacity 0.15s;
}
.account-hero-bank:hover { opacity: 0.9; }
.account-hero-bank-label { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; margin-bottom: 4px; }
.account-hero-bank-amount { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.account-hero-bank-sub { font-size: 11px; color: rgba(255,255,255,0.55); }

/* Section labels dans les shortcuts */
.account-section-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 4px 2px 0;
  margin-top: 4px;
}
.account-section-label-danger { color: #ef4444; }

/* Icône SVG dans les shortcuts */
.account-shortcut-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .account-hero { flex-wrap: wrap; }
  .account-hero-bank { width: 100%; min-width: 0; }
}

/* ─── Graphique comportement clients ─── */
.client-chart-body {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 8px 0 4px;
}
.client-chart-donut {
  position: relative;
  flex-shrink: 0;
  width: 190px;
  height: 190px;
}
.client-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.client-chart-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.client-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.client-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.client-legend-label {
  flex: 1;
  color: #374151;
  font-weight: 500;
}
.client-legend-count {
  font-weight: 700;
  color: #0f1117;
  min-width: 20px;
  text-align: right;
}
.client-legend-pct {
  color: #94a3b8;
  font-size: 12px;
  min-width: 36px;
  text-align: right;
}
@media (max-width: 520px) {
  .client-chart-body { flex-direction: column; gap: 20px; align-items: center; }
  .client-chart-donut { width: 160px; height: 160px; }
}
