/* Glow Up Era — LUVOR Premium Design System */
:root {
  --bg: #FAF0F0;
  --bg-card: #FFFFFF;
  --bordeaux: #2D1A1F;
  --rose: #C4869A;
  --rose-light: #E8C4CC;
  --rose-pale: #F5E8EC;
  --muted: #9A7A82;
  --border: rgba(196, 134, 154, 0.2);
  --shadow: rgba(45, 26, 31, 0.08);
  /* legacy aliases — fond clair / texte foncé */
  --black: #FAF0F0;
  --white: #2D1A1F;
  --cream: #FAF0F0;
  --magenta: #C4869A;
  --magenta-dim: rgba(196, 134, 154, 0.12);
  --magenta-dark: #8B4A5E;
  --border-hot: rgba(196, 134, 154, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #FAF0F0 !important;
  color: #2D1A1F !important;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, .tool h2, .hero h1, .how h2, .why h2, .community h2,
.results-hd h2, .page-title, .day-hero h1, .naomi-info h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600;
  color: var(--bordeaux);
}

.hero h1 .l3, blockquote, .daily blockquote, .quote-strip blockquote,
.naomi-msg, .hero-sub em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.step-label, .opt-label, .hero-tag, .section-tag, .tag, .card-tag,
.ticker span, .naomi-label, .article-meta, .day-num {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== BACK BUTTON — PERMANENT ===== */
.gue-back-btn {
  position: relative !important;
  z-index: 1001 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  color: rgba(45, 26, 31, 0.5) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  padding: 0 !important;
  margin: 0 12px 0 0 !important;
  width: auto !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

/* ===== HEADER — PERMANENT ===== */
header, .gue-has-back {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  position: relative !important;
  z-index: 100 !important;
}

.logo {
  position: relative !important;
  z-index: 1 !important;
  flex-shrink: 0 !important;
}

/* RTL back button */
[dir="rtl"] .gue-back-btn {
  margin: 0 0 0 12px !important;
}
.gue-back-arrow-rtl { display: none; }
[dir="rtl"] .gue-back-arrow-ltr { display: none !important; }
[dir="rtl"] .gue-back-arrow-rtl { display: inline !important; }

@media (max-width: 768px) {
  .gue-back-label { display: none !important; }
  .gue-back-btn { font-size: 10px !important; }
}

.gue-back-btn.is-hidden {
  display: none !important;
}

.logo, .footer-logo {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px;
  font-weight: 600;
  color: var(--bordeaux) !important;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .footer-logo {
  margin-right: 0;
  margin-left: auto;
  direction: ltr;
}

.logo span, .footer-logo span { color: var(--rose) !important; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

html[dir="rtl"] .lang-row { direction: ltr; }

.nav-menu a, .lang-row a, .nav-link {
  color: var(--muted) !important;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

html[dir="rtl"] .nav-menu a,
html[dir="rtl"] .lang-row a,
html[dir="rtl"] .nav-link {
  font-family: 'Heebo', 'Inter', sans-serif;
}

.nav-menu a:hover, .lang-row a:hover, .nav-link:hover {
  color: var(--bordeaux) !important;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
}

.ticker {
  animation: ticker 30s linear infinite !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker span {
  color: var(--muted) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.ticker span.hot { color: var(--rose) !important; }

.ticker-star {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.ticker-star svg { width: 10px; height: 10px; fill: var(--rose); }

/* ── BUTTONS ── */
.btn-primary, .btn-gen, .btn-start, .btn-naomi, .dl-btn, .discord-btn {
  background: linear-gradient(160deg, #C4869A 0%, #8B4A5E 60%, #6B2A3E 100%) !important;
  border-radius: 50px !important;
  padding: 14px 32px;
  color: #FAF0F0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none !important;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 6px 20px rgba(139, 74, 94, 0.35),
    0 2px 4px rgba(45, 26, 31, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover, .btn-gen:hover:not(:disabled),
.btn-start:hover, .btn-naomi:hover, .dl-btn:hover, .discord-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 10px 28px rgba(139, 74, 94, 0.45),
    0 4px 8px rgba(45, 26, 31, 0.2) !important;
}

.btn-primary:active, .btn-gen:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 3px 10px rgba(139, 74, 94, 0.3) !important;
}

/* ── NAV CTA ── */
.nav-cta {
  background: #9A7A82 !important;
  color: #FAF0F0 !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-left: 16px !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  transform: none !important;
}

html[dir="rtl"] .nav-cta {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.nav-cta:hover {
  background: #9A7A82 !important;
  color: #FAF0F0 !important;
  opacity: 0.88;
  transform: none !important;
  box-shadow: none !important;
}

.nav-cta:active {
  opacity: 0.8;
  transform: none !important;
  box-shadow: none !important;
}

/* ── RTL (HE) HEADER — LTR visual layout ── */
html[dir="rtl"] header.gue-has-back {
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

html[dir="rtl"] header.gue-has-back .gue-back-btn {
  order: 0 !important;
  flex: 0 0 auto !important;
}

html[dir="rtl"] header.gue-has-back .gue-back-label {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
}

html[dir="rtl"] header.gue-has-back .logo {
  order: 1 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  direction: ltr !important;
  flex-shrink: 0 !important;
}

html[dir="rtl"] header.gue-has-back .nav-menu {
  order: 2 !important;
  direction: rtl !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
}

html[dir="rtl"] header.gue-has-back .lang-row {
  order: 4 !important;
  margin-left: 0 !important;
  direction: ltr !important;
  flex-shrink: 0 !important;
}

html[dir="rtl"] header.gue-has-back .nav-cta {
  order: 5 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  flex-shrink: 0 !important;
  font-size: 11px !important;
  padding: 8px 18px !important;
}

.btn-gen:disabled {
  background: var(--rose-pale) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  color: var(--muted) !important;
  border-bottom-color: var(--border) !important;
}

.btn-secondary:hover {
  color: var(--bordeaux) !important;
  border-color: var(--rose) !important;
}

/* ── ICON CIRCLES ── */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D1A1F, #4A2535);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E8C4CC;
  box-shadow:
    0 4px 12px rgba(45, 26, 31, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  margin: 0 auto 12px;
}

.upload-icon.icon-circle { display: flex; }

.chip-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  vertical-align: -2px;
  margin-right: 6px;
}

.chip, .opt-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 50px;
  border: 1.5px solid rgba(196, 134, 154, 0.25) !important;
  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bordeaux) !important;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(45, 26, 31, 0.06);
  cursor: pointer;
}

.chip:hover, .opt-btn:hover {
  border-color: var(--rose) !important;
  color: var(--bordeaux) !important;
}

.chip.active, .opt-btn.active {
  background: linear-gradient(135deg, #C4869A, #8B4A5E) !important;
  border-color: transparent !important;
  color: #FAF0F0 !important;
  box-shadow: 0 4px 14px rgba(139, 74, 94, 0.3);
}

.chip.active .chip-svg, .opt-btn.active .chip-svg { stroke: #FAF0F0; }

/* ── CARDS ── */
.card-premium, .step-card, .why-card, .day-card, .card, .result-card {
  background: var(--bg-card) !important;
  border-radius: 20px;
  border: 1px solid rgba(196, 134, 154, 0.15) !important;
  box-shadow:
    0 4px 24px rgba(45, 26, 31, 0.06),
    0 1px 4px rgba(45, 26, 31, 0.04);
  overflow: hidden;
}

.step-card:hover { background: var(--rose-pale) !important; }

/* ── UPLOAD ── */
.upload-zone {
  border: 2px dashed rgba(196, 134, 154, 0.4) !important;
  border-radius: 20px !important;
  background-color: rgba(196, 134, 154, 0.04) !important;
  transition: all 0.25s;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--rose) !important;
  background-color: rgba(196, 134, 154, 0.08) !important;
}

.upload-zone.has-preview {
  background-size: cover !important;
  background-color: transparent !important;
}

.upload-zone.has-preview:hover, .upload-zone.has-preview.drag-over {
  background-color: transparent !important;
}

.upload-zone p { color: var(--muted) !important; }
.upload-zone p strong { color: var(--bordeaux); }

/* ── LABELS & TAGS ── */
.step-label, .opt-label, .hero-tag, .section-tag, .tag,
.daily .tag, .card-tag, .article-meta {
  color: var(--rose) !important;
}

.tool h2 span, .hero h1 .l1, .how h2 span, .why h2 span,
.community h2 span, .step-num {
  color: var(--rose) !important;
}

.hero h1 .l2 { color: var(--bordeaux) !important; }
.hero h1 .l3 { color: var(--muted) !important; }
.hero-sub { color: var(--muted) !important; }
.hero-sub strong { color: var(--bordeaux) !important; }
.tool p.sub { color: var(--muted) !important; }

/* ── FAB ── */
.fab-btn, .naomi-fab-btn {
  background: linear-gradient(135deg, #C4869A, #6B2A3E) !important;
  box-shadow: 0 6px 24px rgba(139, 74, 94, 0.45) !important;
  border-radius: 50% !important;
  width: 56px !important;
  height: 56px !important;
  color: #FAF0F0 !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.fab-btn:hover, .naomi-fab-btn:hover { transform: scale(1.06); }

.gue-icon, .gue-icon-inline { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.feature-icon { display: flex; align-items: flex-start; flex-shrink: 0; margin-top: 2px; }
.mode-label { display: inline-flex; align-items: center; gap: 5px; }
.starter-icon { display: inline-flex; align-items: center; vertical-align: middle; }
.ob-card-icon { font-size: 0; line-height: 0; }
.habit-card-icon svg { display: block; }
.ticker .hot { display: inline-flex; align-items: center; vertical-align: middle; }
.lock-icon { display: inline-flex; align-items: center; }

.fab-label {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  font-style: italic;
  letter-spacing: 0.1em !important;
  text-transform: none !important;
  background: rgba(250, 240, 240, 0.92) !important;
  border: none !important;
  box-shadow: 0 2px 14px rgba(45, 26, 31, 0.08) !important;
  color: var(--bordeaux) !important;
  padding: 5px 11px;
  border-radius: 2px;
}

/* ── FOOTER ── */
footer.gue-footer {
  background: #2d1b2e !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 48px 48px !important;
  color: #FAF0F0;
}

.gue-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
}

.gue-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer.gue-footer .footer-logo {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #FAF0F0 !important;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin: 0 !important;
  direction: ltr;
}

footer.gue-footer .footer-logo span {
  color: #C4869A !important;
}

.gue-footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: #FAF0F0;
  opacity: 0.6;
  margin: 0;
  line-height: 1.4;
}

.gue-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gue-footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FAF0F0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.gue-footer-nav a:hover {
  opacity: 1;
}

.gue-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.gue-footer-langs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gue-footer-langs a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FAF0F0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.gue-footer-langs a:hover {
  opacity: 1;
}

.gue-footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #FAF0F0 !important;
  opacity: 0.5;
  margin: 0;
}

html[dir="rtl"] .gue-footer-inner {
  direction: rtl;
}

html[dir="rtl"] .gue-footer-meta {
  align-items: flex-start;
}

html[dir="rtl"] .gue-footer-brand {
  align-items: flex-end;
}

html[dir="rtl"] .gue-footer-tagline {
  font-family: 'Heebo', 'Inter', sans-serif;
  font-style: normal;
}

html[dir="rtl"] .gue-footer-nav a,
html[dir="rtl"] .gue-footer-langs a {
  font-family: 'Heebo', 'Inter', sans-serif;
}

@media (max-width: 768px) {
  footer.gue-footer {
    padding: 48px 24px !important;
  }

  .gue-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .gue-footer-brand,
  html[dir="rtl"] .gue-footer-brand {
    align-items: center;
  }

  .gue-footer-nav {
    align-items: center;
  }

  .gue-footer-meta,
  html[dir="rtl"] .gue-footer-meta {
    align-items: center;
  }

  .gue-footer-langs {
    justify-content: center;
  }
}

/* Legacy footer fallback */
footer:not(.gue-footer) {
  background: var(--rose-pale);
  border-top: 1px solid var(--border) !important;
}

footer:not(.gue-footer) p { color: var(--muted) !important; }
.footer-langs a { color: var(--muted) !important; }
.footer-langs a:hover { color: var(--rose) !important; }

/* ── SECTIONS ── */
.steps-grid { background: var(--border) !important; }
.divider { background: linear-gradient(90deg, var(--rose), transparent 60%) !important; }
.quote-strip, .daily, .community, .why {
  border-color: var(--border) !important;
}

.overlay {
  background: linear-gradient(to top, rgba(45, 26, 31, 0.75) 0%, transparent 55%) !important;
}

.error {
  border-color: rgba(196, 134, 154, 0.4) !important;
  background: var(--rose-pale) !important;
  color: var(--bordeaux) !important;
}

.ring { border-color: var(--border) !important; border-top-color: var(--rose) !important; }

/* ── NAOMI CHAT ── */
.naomi-avatar {
  background: linear-gradient(135deg, var(--rose), #6B2A3E) !important;
}

.bubble-naomi, .msg-naomi .bubble {
  background: var(--rose-pale) !important;
  border: 1px solid var(--border);
  color: var(--bordeaux) !important;
}

.bubble-user, .msg-user .bubble {
  background: var(--bg-card) !important;
  border: 1px solid var(--border);
  color: var(--bordeaux) !important;
}

.chat-input-wrap {
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border) !important;
}

.chat-input {
  background: var(--rose-pale) !important;
  color: var(--bordeaux) !important;
  border: 1px solid var(--border) !important;
}

.send-btn {
  background: linear-gradient(135deg, #C4869A, #8B4A5E) !important;
  color: #FAF0F0 !important;
}

/* ── DAY PAGE ── */
.day-grid .day-card.active {
  border-color: var(--rose) !important;
  background: var(--rose-pale) !important;
}

html[dir="rtl"] body {
  font-family: 'Heebo', 'Inter', sans-serif !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── GLOBAL OVERFLOW ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* ── NAOMI SITUATION BUTTONS ── */
.situation-btn,
.chat-starter,
.starter-btn {
  background: rgba(196, 134, 154, 0.12) !important;
  border: 1.5px solid rgba(196, 134, 154, 0.3) !important;
  border-radius: 16px !important;
  color: #2D1A1F !important;
  padding: 16px 20px !important;
  text-align: left;
  width: 100%;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  cursor: pointer;
  transition: all 0.2s;
}

.situation-btn:hover,
.chat-starter:hover,
.starter-btn:hover {
  background: rgba(196, 134, 154, 0.2) !important;
  border-color: #C4869A !important;
}

.starter-btn .starter-icon { color: #C4869A !important; }

/* ── NAOMI AVATAR ── */
.naomi-avatar,
.onboarding-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4869A, #8B4A5E) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 28px !important;
  color: #FAF0F0 !important;
  margin: 0 auto 20px !important;
  flex-shrink: 0;
}

header .naomi-avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 14px !important;
  margin: 0 !important;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  header:not(.gue-has-back) {
    padding: 12px 16px !important;
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    justify-content: unset !important;
  }

  header.gue-has-back {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 14px 20px !important;
  }

  header.gue-has-back .gue-back-btn {
    order: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    align-self: center !important;
  }

  header.gue-has-back .logo {
    order: 1 !important;
    flex: 1 1 auto !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    grid-column: unset !important;
    grid-row: unset !important;
    margin-right: 0 !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
  }

  header.gue-has-back .lang-row {
    order: 2 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    grid-column: unset !important;
    grid-row: unset !important;
    display: flex !important;
    gap: 8px !important;
    margin-left: auto !important;
  }

  header.gue-has-back .nav-cta {
    order: 3 !important;
    margin-left: 16px !important;
    grid-column: unset !important;
    grid-row: unset !important;
    flex: 0 0 auto !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap !important;
  }

  html[dir="rtl"] header.gue-has-back {
    direction: ltr !important;
    justify-content: space-between !important;
  }

  html[dir="rtl"] header.gue-has-back .logo {
    order: 1 !important;
    flex: 1 1 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html[dir="rtl"] header.gue-has-back .lang-row {
    order: 4 !important;
    margin-left: auto !important;
  }

  html[dir="rtl"] header.gue-has-back .nav-cta {
    order: 5 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
  }

  header.gue-has-back .lang-row a {
    flex: none !important;
    padding: 0 !important;
    font-size: 10px !important;
  }

  header {
    padding: 12px 16px !important;
  }

  .logo, .footer-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 16px !important;
    margin-right: 0 !important;
    order: unset !important;
    flex: none !important;
    min-width: 0;
  }

  .lang-row {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    gap: 12px !important;
    width: auto !important;
    flex: none !important;
    order: unset !important;
    justify-content: flex-end !important;
  }

  .lang-row a {
    flex: none !important;
    padding: 0 !important;
    text-align: center;
    font-size: 10px !important;
  }

  .nav-cta {
    grid-column: 3 !important;
    grid-row: 1 !important;
    order: unset !important;
    flex: none !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap !important;
    margin-left: 16px !important;
  }

  .nav-menu,
  .naomi-identity {
    display: none !important;
  }

  .upload-zone:not(.has-preview) {
    min-height: 140px !important;
    padding: 24px 16px !important;
    height: auto !important;
    max-height: none !important;
  }

  .tool {
    padding: 24px 16px 60px !important;
  }

  .chip, .opt-btn {
    font-size: 11px !important;
    padding: 7px 12px !important;
  }

  .btn-gen {
    font-size: 16px !important;
    padding: 18px 24px !important;
    width: 100% !important;
  }

  .hero {
    padding: 48px 20px 40px !important;
    min-height: auto !important;
  }

  .how, .why, .community, .quote-strip {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .chat-wrapper {
    padding: 0 16px !important;
  }

  .bubble {
    max-width: 88% !important;
  }

  .onboarding {
    padding: 32px 16px !important;
  }

  .onboarding-starters {
    max-width: 100% !important;
  }

  .scenarios {
    gap: 6px !important;
  }

  .btn-primary {
    padding: 10px 16px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr !important;
  }

  .steps-grid {
    grid-template-columns: 1fr !important;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 64px) !important;
  }

  .home-feature-cards {
    padding: 0 20px 40px !important;
  }
}

/* ── HABITS PAGES ── */
body.habits-page {
  background: #FAF0F0 !important;
  color: #2D1A1F !important;
  min-height: 100vh;
}

.habits-page .habits-grid {
  display: grid !important;
  visibility: visible !important;
}

.habits-page .habit-card,
.habits-page .ritual-card {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.habits-page .rituals-grid {
  display: flex !important;
  visibility: visible !important;
}

.home-feature-cards {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 48px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(196, 134, 154, 0.15);
  box-shadow: 0 4px 24px rgba(45, 26, 31, 0.06);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 26, 31, 0.12);
  border-color: rgba(196, 134, 154, 0.4);
}

.feature-card .habit-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D1A1F, #4A2535);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8C4CC;
  font-size: 18px;
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #2D1A1F;
  line-height: 1.2;
}

.feature-card p {
  font-size: 14px;
  color: #9A7A82;
  line-height: 1.5;
}

/* ── NO CONTACT ── */
.nc-page { background: #FAF0F0; min-height: 100vh; }
.nc-hero { max-width: 480px; margin: 0 auto; padding: 48px 24px 80px; text-align: center; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.nc-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: #C4869A; font-family: 'Inter', sans-serif; }
.nc-counter-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nc-counter { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, #FFFFFF, #FAF0F0); border: 2px solid rgba(196, 134, 154, 0.3); box-shadow: 0 8px 40px rgba(196, 134, 154, 0.2), 0 2px 8px rgba(45, 26, 31, 0.08), inset 0 2px 0 rgba(255,255,255,0.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nc-days { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 600; color: #2D1A1F; line-height: 1; }
.nc-unit { font-family: 'Inter', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: #9A7A82; }
.nc-sub { font-family: 'Caveat', cursive; font-size: 18px; color: #C4869A; font-style: italic; }
.nc-setup { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 320px; }
.nc-setup p { font-family: 'Inter', sans-serif; font-size: 14px; color: #9A7A82; }
.nc-setup input[type="date"] { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(196, 134, 154, 0.3); font-family: 'Inter', sans-serif; background: #FFFFFF; color: #2D1A1F; }
.nc-stats { display: flex; gap: 16px; }
.nc-stat-card { background: #FFFFFF; border-radius: 16px; border: 1px solid rgba(196, 134, 154, 0.15); padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px; }
.nc-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: #2D1A1F; }
.nc-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: #9A7A82; }
.nc-commitment { background: rgba(196, 134, 154, 0.08); border-radius: 16px; border-left: 3px solid #C4869A; padding: 16px 20px; max-width: 320px; }
html[dir="rtl"] .nc-commitment { border-left: none; border-right: 3px solid #C4869A; }
.nc-commitment p { font-family: 'Caveat', cursive; font-size: 20px; color: #2D1A1F; font-style: italic; margin: 0; }
.nc-milestones { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.milestone { padding: 6px 14px; border-radius: 50px; font-size: 11px; font-family: 'Inter', sans-serif; letter-spacing: 0.1em; }
.milestone.achieved { background: linear-gradient(135deg, #C4869A, #8B4A5E); color: #FAF0F0; }
.milestone.locked { background: rgba(196, 134, 154, 0.1); color: #9A7A82; border: 1px solid rgba(196, 134, 154, 0.2); }
.nc-reset-btn { background: none; border: none; font-size: 12px; color: #9A7A82; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: 'Inter', sans-serif; }
.nc-sos-banner { background: linear-gradient(135deg, #2D1A1F, #4A2535); border-radius: 20px; padding: 24px; max-width: 320px; width: 100%; color: #FAF0F0 !important; cursor: pointer; transition: transform 0.2s; border: none; text-align: center; }
.nc-sos-banner:hover { transform: translateY(-2px); }
.nc-sos-banner h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin-bottom: 8px; color: #FAF0F0 !important; font-weight: 600; }
.nc-sos-banner p { font-size: 13px; opacity: 0.92; font-family: 'Inter', sans-serif; color: #F5E8EC !important; }
html[dir="rtl"] .nc-sos-banner p { font-family: 'Heebo', sans-serif; }

/* ── SOS OVERLAY ── */
.sos-overlay { position: fixed; inset: 0; background: rgba(250, 240, 240, 0.97); backdrop-filter: blur(20px); z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.sos-step { max-width: 480px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sos-title { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; color: #2D1A1F; font-style: italic; }
.sos-text { font-family: 'Inter', sans-serif; font-size: 16px; color: #9A7A82; line-height: 1.6; }
.breathe-circle { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #E8C4CC, #C4869A); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 134, 154, 0.3); } 50% { transform: scale(1.3); box-shadow: 0 0 0 20px rgba(196, 134, 154, 0); } }
.sos-options { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.sos-option { background: #FFFFFF; border: 1.5px solid rgba(196, 134, 154, 0.2); border-radius: 16px; padding: 16px 20px; font-family: 'Inter', sans-serif; font-size: 14px; color: #2D1A1F; cursor: pointer; transition: all 0.2s; text-align: left; }
html[dir="rtl"] .sos-option { text-align: right; }
.sos-option:hover, .sos-option.active { border-color: #C4869A; background: rgba(196, 134, 154, 0.08); }
.naomi-sos-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #C4869A, #8B4A5E); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 24px; color: #FAF0F0; }
.naomi-sos-message { background: #FFFFFF; border-radius: 20px; border: 1px solid rgba(196, 134, 154, 0.15); padding: 24px; font-family: 'Caveat', cursive; font-size: 22px; color: #2D1A1F; line-height: 1.6; text-align: left; box-shadow: 0 4px 20px rgba(45, 26, 31, 0.06); width: 100%; }
html[dir="rtl"] .naomi-sos-message { text-align: right; }
.replacement-action { background: linear-gradient(135deg, rgba(196,134,154,0.1), rgba(139,74,94,0.06)); border-radius: 20px; border: 1px solid rgba(196, 134, 154, 0.2); padding: 28px; font-family: 'Caveat', cursive; font-size: 22px; color: #2D1A1F; line-height: 1.6; text-align: center; width: 100%; }
.draft-hint { font-size: 12px; color: #9A7A82; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.sos-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 20px; color: #9A7A82; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sos-loading { font-family: 'Inter', sans-serif; font-size: 14px; color: #9A7A82; }

/* ── DUAL FAB ── */
.gue-fab-stack {
  position: fixed;
  inset: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 999;
  pointer-events: none;
}

.gue-fab-stack .fab-row {
  position: fixed;
  right: 20px;
  z-index: 999;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gue-fab-stack .fab-label,
.gue-fab-stack .floating-label { display: none !important; }

.gue-fab-stack .fab-row:first-child { bottom: 140px; }
.gue-fab-stack .fab-row:last-child { bottom: 70px; }

html[dir="rtl"] .gue-fab-stack .fab-row {
  right: auto;
  left: 20px;
  align-items: flex-start;
}

.gue-fab-stack .fab-btn {
  opacity: 0.85;
  border: none !important;
  box-shadow: 0 4px 18px rgba(139, 74, 94, 0.22) !important;
  transition: opacity 0.25s, transform 0.2s, box-shadow 0.25s;
}
.gue-fab-stack .fab-btn:hover {
  opacity: 0.95;
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(139, 74, 94, 0.28) !important;
}
.gue-fab-stack .fab-btn svg {
  display: block;
}

.gue-fab-stack .fab-naomi-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: currentColor;
  display: block;
}

.fab-btn.sos-fab {
  background: linear-gradient(135deg, rgba(139, 74, 94, 0.85), rgba(45, 26, 31, 0.85)) !important;
  box-shadow: 0 4px 18px rgba(45, 26, 31, 0.2) !important;
  cursor: pointer;
}
.gue-fab-stack .fab-btn.sos-fab:hover {
  box-shadow: 0 6px 22px rgba(45, 26, 31, 0.26) !important;
}

@media (max-width: 768px) {
  .gue-fab-stack .fab-row:first-child { bottom: 200px; }
  .gue-fab-stack .fab-row:last-child { bottom: 120px; }

  .gue-fab-stack.gue-fab-stack--bottom-cta .fab-row:first-child { bottom: 260px; }
  .gue-fab-stack.gue-fab-stack--bottom-cta .fab-row:last-child { bottom: 180px; }

  body.nc-page .gue-fab-stack .fab-row:first-child { bottom: 260px; }
  body.nc-page .gue-fab-stack .fab-row:last-child { bottom: 180px; }

  .gue-fab-stack .fab-row {
    right: 16px;
  }

  html[dir="rtl"] .gue-fab-stack .fab-row {
    right: auto;
    left: 16px;
  }

  .gue-fab-stack .fab-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
  }

  .gue-fab-stack .fab-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .gue-fab-stack .fab-naomi-letter {
    font-size: 18px;
    display: block;
  }

  .floating-label,
  .gue-fab-stack .fab-label,
  .gue-fab-stack .floating-label,
  .fab-label,
  .naomi-fab-label {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .fab:hover .fab-label,
  .naomi-fab:hover .naomi-fab-label {
    opacity: 0 !important;
    display: none !important;
  }

  .gue-fab-stack .fab-btn svg,
  .gue-fab-stack .fab-naomi-letter {
    display: block !important;
  }
}
