/* ── Google Font: Plus Jakarta Sans (ui-ux-pro-max #1 pick for SaaS) ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: light;
}

/* Apply font globally */
html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Focus visible: accessible green ring ── */
:focus-visible {
  outline: 2px solid #22C55E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Reduced motion: respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -- Logo --------------------------------------- */

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Desktop: logo très présent */
@media (min-width: 640px) {
  .logo {
    height: 70px;
  }
  header .logo {
    height: 100px;
  }
}

/* Mobile: bien visible dans la navbar */
header .logo {
  height: 60px;
}

/* Dashboard header : logo réduit sur mobile pour éviter les chevauchements */
@media (max-width: 639px) {
  header .logo {
    height: 34px;
  }
}

/* Dark logo hidden by default; show only in dark theme */
.logo-wrap img:last-child {
  display: none;
}

body:not(.mesio-landing)[data-theme="dark"] .logo-wrap img:first-child,
html[data-theme="dark"] body:not(.mesio-landing) .logo-wrap img:first-child {
  display: none;
}

body:not(.mesio-landing)[data-theme="dark"] .logo-wrap img:last-child,
html[data-theme="dark"] body:not(.mesio-landing) .logo-wrap img:last-child {
  display: block;
}

html[data-theme="dark"]:has(body:not(.mesio-landing)) {
  color-scheme: dark;
  background: #071D14;
}

html[data-theme="dark"] body:not(.mesio-landing) {
  background: #071D14 !important;
  color: #f1f5f9 !important;
}

/* Cartes principales : navy profond comme la homepage dark */
html[data-theme="dark"] body:not(.mesio-landing) .bg-white,
html[data-theme="dark"] body:not(.mesio-landing) .bg-white\/95 {
  background-color: #0F2A20 !important;
}

/* Fonds secondaires */
html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-50,
html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-50\/60,
html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-100 {
  background-color: #0B1F17 !important;
}

/* Tailwind dark:bg-gray-800 / bg-gray-800 → cohérent avec les cartes */
html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-800 {
  background-color: #0F2A20 !important;
}

/* Tailwind dark:bg-gray-700 (inputs/sous-cartes) */
html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-700 {
  background-color: #0B1F17 !important;
}

/* Tailwind dark:bg-gray-900 / bg-gray-900 → cohérent avec le fond */
html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-900 {
  background-color: #071D14 !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .bg-gray-950 {
  background-color: #061710 !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .text-gray-950,
html[data-theme="dark"] body:not(.mesio-landing) .text-gray-900,
html[data-theme="dark"] body:not(.mesio-landing) .text-gray-800,
html[data-theme="dark"] body:not(.mesio-landing) .text-gray-700 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .text-gray-600,
html[data-theme="dark"] body:not(.mesio-landing) .text-gray-500,
html[data-theme="dark"] body:not(.mesio-landing) .text-gray-400,
html[data-theme="dark"] body:not(.mesio-landing) .text-gray-300 {
  color: #94a3b8 !important;
}

/* Bordures : subtiles blanches comme la homepage */
html[data-theme="dark"] body:not(.mesio-landing) .border-gray-100,
html[data-theme="dark"] body:not(.mesio-landing) .border-gray-200,
html[data-theme="dark"] body:not(.mesio-landing) .border-gray-300 {
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .border-gray-700,
html[data-theme="dark"] body:not(.mesio-landing) .border-gray-600 {
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-theme="dark"] body:not(.mesio-landing) input,
html[data-theme="dark"] body:not(.mesio-landing) select,
html[data-theme="dark"] body:not(.mesio-landing) textarea {
  background-color: #0B1F17 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] body:not(.mesio-landing) input::placeholder,
html[data-theme="dark"] body:not(.mesio-landing) textarea::placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .shadow-sm,
html[data-theme="dark"] body:not(.mesio-landing) .shadow,
html[data-theme="dark"] body:not(.mesio-landing) .shadow-lg,
html[data-theme="dark"] body:not(.mesio-landing) .shadow-xl {
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.32) !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .hover\:bg-gray-50:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .hover\:bg-gray-700:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
}

/* Accent vert cohérent avec la homepage */
html[data-theme="dark"] body:not(.mesio-landing) .bg-mesio-light {
  background-color: #10311d !important;
}

html[data-theme="dark"] body:not(.mesio-landing) .text-mesio-dark {
  color: #22C55E !important;
}

/* Header glass en dark pour login/signup/dashboard */
html[data-theme="dark"] body:not(.mesio-landing) header {
  background-color: rgba(7, 29, 20, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* Light mode header : léger glass aussi */
html[data-theme="light"] body:not(.mesio-landing) header {
  background-color: rgba(255, 255, 255, 0.88) !important;
}

/* Footer cohérence dark */
html[data-theme="dark"] body:not(.mesio-landing) footer {
  background-color: #071D14 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.theme-switcher {
  position: fixed;
  right: 0.85rem;
  top: calc(env(safe-area-inset-top, 0px) + 4.85rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #d8e1dc;
  background: rgb(255 255 255 / 0.92);
  color: #17211a;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font: 700 0.76rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.12);
  backdrop-filter: blur(10px);
}

.theme-switcher svg {
  width: 1rem;
  height: 1rem;
}

/* Inline navbar version · no fixed positioning */
.theme-switcher-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #d8e1dc;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  font: 700 0.76rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-switcher-nav svg {
  width: 0.95rem;
  height: 0.95rem;
}

html[data-theme="dark"] .theme-switcher-nav {
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

html[data-theme="dark"] .theme-switcher {
  background: rgb(7 29 20 / 0.92);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Mesio landing visual accents */
.mesio-hero-title span {
  color: #25D366 !important;
}

html[data-theme="dark"] body.mesio-landing,
html[data-theme="dark"] body.mesio-landing main,
html[data-theme="dark"] body.mesio-landing footer {
  background-color: #071D14 !important;
}

html[data-theme="dark"] body.mesio-landing main > section,
html[data-theme="dark"] body.mesio-landing footer {
  background-color: #071D14 !important;
}

html[data-theme="dark"] body.mesio-landing main > section:nth-of-type(even) {
  background-color: #0B1F17 !important;
}

html[data-theme="dark"] body.mesio-landing .mesio-main-header {
  background: rgba(7, 29, 20, 0.88) !important;
}

html[data-theme="dark"] body.mesio-landing article,
html[data-theme="dark"] body.mesio-landing .home-card {
  border-color: rgba(37, 211, 102, 0.16) !important;
}

@media (max-width: 640px) {
  .theme-switcher {
    top: auto;
    right: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
  }

  body:has(.mobile-quick-actions) .theme-switcher {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.7rem);
  }
}

.admin-return-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  z-index: 80;
  display: flex;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgb(34 197 94 / 0.25);
  border-radius: 999px;
  background: rgb(8 20 13 / 0.94);
  color: #f4fff7;
  padding: 0.45rem 0.55rem 0.45rem 0.9rem;
  font: 800 0.78rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 16px 44px rgb(0 0 0 / 0.25);
  backdrop-filter: blur(14px);
}

.admin-return-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-return-bar a {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #25d366;
  color: #06140b;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

html[data-theme="dark"] .admin-return-bar {
  border-color: rgb(37 211 102 / 0.36);
  background: rgb(4 9 7 / 0.95);
}

@media (max-width: 640px) {
  .admin-return-bar {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    transform: none;
    justify-content: space-between;
    border-radius: 1rem;
    padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  }
}

/* ────────────────────────────────────────────────────────────
   Earnings calculator (home.calc.*)
   ──────────────────────────────────────────────────────────── */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #22C55E 0%, #22C55E var(--val,50%), rgba(148,163,184,0.35) var(--val,50%), rgba(148,163,184,0.35) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
html[data-theme="dark"] .calc-slider {
  background: linear-gradient(to right, #22C55E 0%, #22C55E var(--val,50%), rgba(255,255,255,0.14) var(--val,50%), rgba(255,255,255,0.14) 100%);
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #22C55E;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #22C55E;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
  cursor: pointer;
}
.calc-slider:focus-visible {
  outline: 2px solid #22C55E;
  outline-offset: 4px;
}

/* ────────────────────────────────────────────────────────────
   Founder sticky banner
   ──────────────────────────────────────────────────────────── */
.mesio-founder-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
  color: #03130A;
  font: 600 0.82rem/1.25 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  box-shadow: 0 6px 20px rgba(34,197,94,0.18);
}
.mesio-founder-banner__bolt {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.mesio-founder-banner__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mesio-founder-banner__cta {
  flex: 0 0 auto;
  background: #03130A;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mesio-founder-banner__cta:hover { transform: translateY(-1px); background: #0b2615; }
.mesio-founder-banner__close {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: #03130A;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  opacity: 0.7;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.mesio-founder-banner__close:hover { opacity: 1; background: rgba(0,0,0,0.08); }

@media (max-width: 640px) {
  .mesio-founder-banner { font-size: 0.74rem; padding: 0.35rem 0.6rem; }
  .mesio-founder-banner__text {
    white-space: normal;
    line-height: 1.2;
  }
  .mesio-founder-banner__cta { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
}

/* Position the main header below the banner when it's present */
body.has-mesio-founder-banner .mesio-main-header { top: 40px; }
@media (max-width: 640px) {
  body.has-mesio-founder-banner .mesio-main-header { top: 56px; }
}

/* ────────────────────────────────────────────────────────────
   Mobile menu (hamburger) — used on public pages
   ──────────────────────────────────────────────────────────── */
.mesio-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.28);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mesio-burger:hover { background: rgba(148,163,184,0.10); }
html[data-theme="dark"] .mesio-burger { border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .mesio-burger:hover { background: rgba(255,255,255,0.08); }
.mesio-burger__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.mesio-burger__bars::before,
.mesio-burger__bars::after,
.mesio-burger__bars span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.mesio-burger__bars::before { top: 0; }
.mesio-burger__bars span    { top: 5px; }
.mesio-burger__bars::after  { top: 10px; }
body.mesio-mobile-open .mesio-burger__bars::before { top: 5px; transform: rotate(45deg); }
body.mesio-mobile-open .mesio-burger__bars span    { opacity: 0; }
body.mesio-mobile-open .mesio-burger__bars::after  { top: 5px; transform: rotate(-45deg); }
@media (min-width: 640px) {
  .mesio-burger { display: none !important; }
}

.mesio-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.4rem;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
}
html[data-theme="dark"] .mesio-mobile-menu {
  background: rgba(11, 31, 23, 0.985);
  color: #f1f5f9;
}
body.mesio-mobile-open .mesio-mobile-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
body.mesio-mobile-open { overflow: hidden; }
.mesio-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.mesio-mobile-menu__head img { height: 38px; width: auto; }
.mesio-mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.28);
  background: transparent;
  cursor: pointer;
  color: inherit;
}
html[data-theme="dark"] .mesio-mobile-menu__close { border-color: rgba(255,255,255,0.14); }
.mesio-mobile-menu__close svg { width: 18px; height: 18px; }
.mesio-mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mesio-mobile-menu__links a {
  display: flex;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.02rem;
  color: #0f172a;
  text-decoration: none;
  background: rgba(148,163,184,0.08);
  transition: background 0.15s ease;
}
.mesio-mobile-menu__links a:hover { background: rgba(34,197,94,0.10); }
html[data-theme="dark"] .mesio-mobile-menu__links a {
  color: #f1f5f9;
  background: rgba(255,255,255,0.05);
}
html[data-theme="dark"] .mesio-mobile-menu__links a:hover { background: rgba(34,197,94,0.14); }
.mesio-mobile-menu__cta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.2rem;
}
.mesio-mobile-menu__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mesio-mobile-menu__cta .login {
  border: 1px solid rgba(148,163,184,0.28);
  color: #0f172a;
  background: transparent;
}
html[data-theme="dark"] .mesio-mobile-menu__cta .login {
  border-color: rgba(255,255,255,0.18);
  color: #f1f5f9;
}
.mesio-mobile-menu__cta .signup {
  background: #22C55E;
  color: #03130A;
  box-shadow: 0 18px 36px rgba(34,197,94,0.20);
}
.mesio-mobile-menu__cta .signup:hover { background: #34d06b; transform: translateY(-1px); }

/* ────────────────────────────────────────────────────────────
   Founder rows (section)
   ──────────────────────────────────────────────────────────── */
.founder-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148,163,184,0.18);
}
.founder-row:last-child { border-bottom: none; }
html[data-theme="dark"] .founder-row { border-bottom-color: rgba(255,255,255,0.07); }

.founder-row__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: #03130A;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.founder-row__body { flex: 1; min-width: 0; }
.founder-row__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme="dark"] .founder-row__name { color: #f1f5f9; }
.founder-row__meta {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.1rem;
}
html[data-theme="dark"] .founder-row__meta { color: #94a3b8; }

.founder-row--skeleton .founder-row__avatar,
.founder-row--skeleton .founder-row__name,
.founder-row--skeleton .founder-row__meta {
  color: transparent;
  background-color: rgba(148,163,184,0.22);
  background-image: none;
  border-radius: 6px;
  animation: founder-skel-pulse 1.4s ease-in-out infinite;
}
.founder-row--skeleton .founder-row__avatar { background-image: none; }
@keyframes founder-skel-pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 0.95; } }

.founder-section--loading #founderRemaining,
.founder-section--loading #founderPercent,
.founder-section--loading #founderProgressLabel {
  opacity: 0.55;
}

/* ────────────────────────────────────────────────────────────
   Demo page extras
   ──────────────────────────────────────────────────────────── */
.demo-mode-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #1f1306;
  font: 700 0.85rem/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
  text-align: center;
  flex-wrap: wrap;
}
.demo-mode-banner a {
  background: #03130A;
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  font-size: 0.78rem;
  white-space: nowrap;
}
.demo-mode-banner a:hover { background: #0b2615; }

.demo-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 29, 20, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.demo-popup-backdrop.is-open { opacity: 1; pointer-events: auto; }
.demo-popup {
  background: #fff;
  color: #0f172a;
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.32);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  text-align: center;
}
html[data-theme="dark"] .demo-popup { background: #0F2A20; color: #f1f5f9; }
.demo-popup-backdrop.is-open .demo-popup { transform: scale(1); }
.demo-popup h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.demo-popup p { font-size: 0.92rem; line-height: 1.5; color: #475569; margin-bottom: 1.25rem; }
html[data-theme="dark"] .demo-popup p { color: #cbd5e1; }
.demo-popup__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22C55E;
  color: #03130A;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  width: 100%;
  margin-bottom: 0.5rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.demo-popup__primary:hover { background: #34d06b; transform: translateY(-1px); }
.demo-popup__dismiss {
  display: block;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0 auto;
  padding: 0.5rem;
}
.demo-popup__dismiss:hover { color: #0f172a; }
html[data-theme="dark"] .demo-popup__dismiss:hover { color: #fff; }

.demo-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  position: relative;
}
.demo-disabled:hover::after {
  content: attr(data-demo-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #03130A;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
