@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --void-start: #123127;
  --void-mid: #0b1f18;
  --void-end: #07110f;
  --ivy: #154031;
  --mint: #b8f4d2;
  --card-bg: rgba(16, 32, 25, .62);
  --card-border: rgba(184, 244, 210, .18);
  --card-shine: rgba(255, 255, 255, .12);
  --text: #f4fbf6;
  --text-muted: #a8c2b2;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", Menlo, Monaco, monospace;
  background: var(--void-end);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.void {
  background: radial-gradient(120% 90% at 50% 0%, var(--void-start) 0%, var(--void-mid) 46%, var(--void-end) 100%);
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  inset: 0;
  mix-blend-mode: overlay;
  opacity: .04;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.glass {
  background-color: var(--card-bg);
  background-image: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.01) 45%, rgba(0,0,0,.22));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(2,8,6,.4);
  position: relative;
  transition: border-color .3s ease, transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
}

.glass:hover {
  border-color: rgba(184, 244, 210, .36);
  box-shadow: 0 20px 48px rgba(2,8,6,.55), 0 0 24px rgba(184, 244, 210, .08);
}

.feature:focus-visible,
.social-icon:focus-visible,
.button:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.glass::before {
  background: var(--card-shine);
  content: "";
  height: 1px;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 0;
}

.drop {
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(2,10,7,.55));
  object-fit: contain;
  vertical-align: middle;
}

.drop--nav {
  height: 32px;
  transition: filter .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  width: auto;
}

.brand:hover .drop--nav {
  filter: drop-shadow(0 0 16px rgba(184,244,210,.65));
  transform: scale(1.08);
}

.hero-drop-wrap {
  align-items: center;
  display: flex;
  height: min(480px, 80vw);
  justify-content: center;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 35%;
  transform: translate(-50%, -50%);
  width: min(480px, 80vw);
  z-index: 0;
}

.hero-drop-glow {
  background: radial-gradient(circle, rgba(184,244,210,.38) 0%, rgba(21,64,49,.24) 40%, transparent 72%);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  filter: blur(80px);
  inset: 0;
  position: absolute;
  animation: organic-morph 16s ease-in-out infinite alternate;
}

@keyframes organic-morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: scale(0.9) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: scale(1.1) rotate(120deg);
  }
  66% {
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    transform: scale(0.95) rotate(240deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: scale(1.05) rotate(360deg);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

main {
  margin: auto;
  max-width: 1220px;
  padding: 28px 44px 0;
  position: relative;
}

nav, footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: -apple-system, "SF Pro Display", "Plus Jakarta Sans", BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}

.nav-links a:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.eyebrow {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

em {
  color: var(--mint);
  font-style: normal;
}

.hero {
  margin: auto;
  max-width: 820px;
  min-height: 540px;
  padding: clamp(72px, 12vh, 130px) 0 clamp(90px, 12vh, 130px);
  position: relative;
  text-align: center;
}

.hero h1 {
  font-size: clamp(48px, 7.5vw, 88px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.intro {
  color: var(--text-muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  margin: 28px auto 0;
  max-width: 580px;
  font-weight: 400;
}

.button {
  align-items: center;
  backdrop-filter: blur(12px);
  background: var(--mint);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(2,10,7,.35), 0 0 20px rgba(184,244,210,.25);
  color: #07110f;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 16px;
  margin-top: 36px;
  padding: 16px 24px 16px 28px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  background: #c8f5dc;
  box-shadow: 0 18px 44px rgba(2,10,7,.5), 0 0 30px rgba(184,244,210,.4);
  transform: translateY(-2px);
}

.button span {
  font-size: 16px;
  line-height: .75;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-link {
  align-items: flex-start;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(184,244,210,.22);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 18px 10px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.store-link:hover {
  background: rgba(184,244,210,.08);
  border-color: rgba(184,244,210,.4);
  transform: translateY(-2px);
}

.store-link-label {
  color: var(--text-muted);
  font-size: 10px;
}

.store-link-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.vision {
  border-top: 1px solid rgba(184,244,210,.14);
  display: grid;
  gap: 32px;
  grid-template-columns: .6fr 1.4fr;
  padding: 12px 0 120px;
}

.vision-label {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  margin: 0;
  max-width: 190px;
  text-transform: uppercase;
}

.glass--quote {
  padding: 36px;
}

.glass--quote p {
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin: 0;
  max-width: 740px;
}

.glass--quote span {
  color: var(--text-muted);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  margin-top: 24px;
  text-transform: uppercase;
}

.features {
  padding: 0 0 130px;
}

.features h2 {
  font-size: clamp(36px, 4.8vw, 62px);
  margin: 8px 0 46px;
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  padding: 30px 24px;
  cursor: pointer;
}

.feature h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.manifesto {
  border-top: 1px solid rgba(184,244,210,.14);
  padding: 12px 0 130px;
}

.manifesto h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  margin: 8px 0 22px;
}

.manifesto-lead {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 48px;
  max-width: 660px;
}

.principles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  padding: 30px 26px;
}

.principle h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.principle p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.os-section {
  border-top: 1px solid rgba(184,244,210,.14);
  padding: 12px 0 130px;
}

.os-section h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  margin: 8px 0 46px;
}

.pillars-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.pillar-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pillar-step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: .16em;
  margin-bottom: 14px;
  font-weight: 600;
  opacity: .9;
}

.pillar-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.app-tease {
  align-items: center;
  display: grid;
  gap: 9vw;
  grid-template-columns: 1.1fr .9fr;
  padding: 40px 0 140px;
}

.tease-copy h2 {
  font-size: clamp(38px, 5.2vw, 66px);
}

.tease-copy > p:last-child {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 380px;
}

.phone {
  border-radius: 40px;
  margin: auto;
  min-height: 490px;
  overflow: hidden;
  padding: 20px;
  width: min(290px, 78vw);
  border: 1px solid rgba(184,244,210,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 30px rgba(184,244,210,.1);
}

.phone-top {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 600;
  justify-content: center;
  opacity: .7;
}

.phone-top i {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  height: 5px;
  width: 60px;
}

.phone-top span {
  display: none;
}

.phone-drop {
  animation: hero-float 7s ease-in-out infinite;
  height: 96px;
  margin: 40px auto 26px;
  width: auto;
  display: block;
}

.phone > p {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 20px;
  text-align: center;
}

.mini-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(184,244,210,.16);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.mini-card b {
  font-size: 13px;
  font-weight: 700;
}

.mini-card span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.phone-nav {
  bottom: 18px;
  display: flex;
  gap: 20px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}

.phone-nav i {
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.phone-nav i:nth-child(2) {
  background: var(--mint);
}

.phone--splash {
  background: #f5f4ee;
  display: flex;
  flex-direction: column;
}

.phone--splash .phone-top i {
  background: rgba(21, 64, 49, .18);
}

.phone-splash {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.phone-drop--splash {
  animation: none;
  height: 84px;
  margin: 0 0 18px;
}

.phone-splash-wordmark {
  color: var(--ivy);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.closing {
  border-top: 1px solid rgba(184,244,210,.14);
  padding: 110px 0 140px;
  text-align: center;
}

.closing .eyebrow {
  margin-bottom: 24px;
}

.closing h2 {
  font-size: clamp(38px, 5.4vw, 66px);
}

.text-link {
  border-bottom: 2px solid var(--mint);
  color: var(--mint);
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 18px;
  margin-top: 34px;
  padding-bottom: 6px;
  transition: transform .2s ease, filter .2s ease;
}

.text-link:hover {
  transform: translateX(4px);
  filter: drop-shadow(0 0 10px rgba(184,244,210,.5));
}

.text-link span {
  font-size: 18px;
  line-height: .7;
}

footer {
  border-top: 1px solid rgba(184,244,210,.12);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 44px;
  padding: 32px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-tagline {
  color: var(--mint);
  opacity: .85;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.follow-us {
  color: var(--mint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(184, 244, 210, .14);
  color: var(--text-muted);
  transition: all .25s ease;
}

.social-icon:hover {
  background: rgba(184, 244, 210, .12);
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184, 244, 210, .25);
}

.footer-contact {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(244,251,246,.3);
  transition: color .2s ease, border-color .2s ease;
}

.footer-contact:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* Feature Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility .3s ease;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  max-width: 480px;
  width: 100%;
  padding: 40px 32px 36px;
  background-color: rgba(16, 32, 25, .92);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .7), 0 0 40px var(--halo-color, rgba(184, 244, 210, .2));
  transform: scale(1) translateY(0);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
  position: relative;
}

.modal.hidden .modal-content {
  transform: scale(0.95) translateY(12px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color .2s, transform .2s;
}

.modal-close:hover {
  color: var(--mint);
  transform: scale(1.1);
}

.modal-title {
  color: var(--mint);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.modal-desc {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-drop-glow { animation: none !important; }
  .phone-drop { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

html.no-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
html.no-motion .hero-drop-glow { animation: none; }
html.no-motion .phone-drop { animation: none; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  main { padding: 22px 22px 0; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
  .hero { padding: 100px 0 90px; text-align: left; }
  .hero-drop-wrap { left: auto; right: 0; top: 26%; transform: translate(10%, -50%); }
  .intro { margin-left: 0; }
  .vision { display: block; padding-bottom: 90px; }
  .vision-label { margin-bottom: 16px; max-width: 250px; }
  .glass--quote { padding: 24px 20px; }
  .features { padding-bottom: 90px; }
  .feature-grid { grid-template-columns: 1fr; }
  .manifesto { padding-bottom: 90px; }
  .os-section { padding-bottom: 90px; }
  .app-tease { display: block; padding: 20px 0 100px; }
  .phone { margin-top: 50px; }
  .closing { padding: 90px 0 110px; text-align: left; }
  footer { flex-direction: column; align-items: flex-start; gap: 20px; margin: 0 22px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ==========================================================================
   KlearViz Pro — Enterprise SaaS Design System & Command Center
   ========================================================================== */

:root {
  --pro-bg: #060d0a;
  --pro-sidebar-bg: #08120e;
  --pro-card-bg: rgba(10, 24, 18, 0.75);
  --pro-card-border: rgba(184, 244, 210, 0.12);
  --pro-card-hover: rgba(184, 244, 210, 0.22);
  --pro-text: #ecf5ef;
  --pro-text-muted: #8aa395;
  --pro-text-subtle: #6d8a77; /* contraste 5.19:1 sur --pro-bg, WCAG AA (était #577364, 3.78:1) */
  --pro-mint: #b8f4d2;
  --pro-mint-glow: rgba(184, 244, 210, 0.18);
  --pro-red: #e94b55; /* aligné sur accentRed de l'appli mobile (ThemeContext.tsx) */
  --pro-amber: #e4ad38; /* aligné sur accentAmber de l'appli mobile (ThemeContext.tsx) */
}

/* Navbar Link on Landing */
.nav-pro-link {
  color: var(--mint) !important;
  border-bottom: 2px solid transparent !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}
.nav-pro-link:hover {
  border-color: var(--mint) !important;
  text-shadow: 0 0 12px rgba(184, 244, 210, 0.4);
}

/* Body & Page */
.pro-page-body {
  background: var(--pro-bg);
  color: var(--pro-text);
  font-family: var(--sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ==========================================================================
   1. Écran de Connexion Pro (Auth Screen)
   ========================================================================== */

.pro-auth-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(184, 244, 210, 0.06), transparent 60%), #060d0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
  overflow-y: auto;
}

.pro-auth-screen.hidden {
  display: none !important;
}

.pro-auth-container {
  max-width: 440px;
  width: 100%;
  padding: 40px 36px 36px;
  background: rgba(10, 22, 17, 0.85);
  border: 1px solid var(--pro-card-border);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(184, 244, 210, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.pro-auth-brand {
  display: inline-block;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}
.pro-auth-brand:hover {
  transform: scale(1.05);
}
.pro-auth-brand .drop--auth {
  height: 44px;
  width: auto;
}

.pro-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(184, 244, 210, 0.1);
  border: 1px solid rgba(184, 244, 210, 0.2);
  color: var(--pro-mint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.pro-auth-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--pro-text);
}

.pro-auth-subtitle {
  font-size: 14px;
  color: var(--pro-text-muted);
  line-height: 1.5;
  margin: 0 0 28px;
}

.pro-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--pro-text-muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link-btn {
  background: none;
  border: none;
  color: var(--pro-text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.form-link-btn:hover {
  color: var(--pro-mint);
}

.pro-form input[type="text"],
.pro-form input[type="password"],
.pro-input {
  background: rgba(4, 10, 8, 0.7);
  border: 1px solid var(--pro-card-border);
  border-radius: 10px;
  color: var(--pro-text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.pro-form input:focus,
.pro-input:focus {
  border-color: var(--pro-mint);
  box-shadow: 0 0 0 3px rgba(184, 244, 210, 0.15);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--pro-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.pwd-toggle:hover {
  color: var(--pro-mint);
}

.pro-form-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  padding: 10px 14px;
  line-height: 1.4;
}

.button--full {
  width: 100%;
  justify-content: center;
}

.pro-auth-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(184, 244, 210, 0.08);
  padding-top: 18px;
  font-size: 12px;
  color: var(--pro-text-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   2. Shell & Dashboard Pro Layout
   ========================================================================== */

.pro-app-container {
  position: fixed;
  inset: 0;
  background: var(--pro-bg);
  z-index: 1000;
  display: flex;
  overflow: hidden;
}

.pro-app-container.hidden {
  display: none !important;
}

.pro-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Sidebar */
.pro-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--pro-sidebar-bg);
  border-right: 1px solid var(--pro-card-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 14px;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-sidebar-brand {
  padding: 4px 8px 20px;
  border-bottom: 1px solid rgba(184, 244, 210, 0.08);
}

.pro-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.pro-brand-link .drop--nav {
  height: 28px;
  width: auto;
}

.pro-brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pro-text);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pro-mint);
  opacity: 0.9;
}

.nav-section-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--pro-text-subtle);
  letter-spacing: 0.12em;
  padding: 16px 12px 6px;
  text-transform: uppercase;
}

.pro-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  flex: 1;
}

.pro-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--pro-text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.pro-nav-item svg {
  color: var(--pro-text-subtle);
  transition: color 0.15s;
  flex-shrink: 0;
}

.pro-nav-item:hover {
  background: rgba(184, 244, 210, 0.04);
  color: var(--pro-text);
}
.pro-nav-item:hover svg {
  color: var(--pro-text);
}

.pro-nav-item.active {
  background: rgba(184, 244, 210, 0.08);
  border-color: rgba(184, 244, 210, 0.18);
  color: var(--pro-mint);
  font-weight: 600;
}
.pro-nav-item.active svg {
  color: var(--pro-mint);
}

.pro-sidebar-footer {
  border-top: 1px solid rgba(184, 244, 210, 0.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pro-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.pro-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(184, 244, 210, 0.2), rgba(184, 244, 210, 0.05));
  border: 1px solid rgba(184, 244, 210, 0.25);
  color: var(--pro-mint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pro-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--pro-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-user-handle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pro-text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-logout-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--pro-text-subtle);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pro-logout-btn:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--pro-red);
}

/* Main Area */
.pro-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--pro-bg);
}

/* Topbar */
.pro-topbar {
  height: 56px;
  border-bottom: 1px solid var(--pro-card-border);
  background: rgba(8, 18, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
}

.pro-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pro-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pro-text);
  cursor: pointer;
  padding: 4px;
}

.pro-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pro-view-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--pro-text);
}

.pro-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pro-text-subtle);
  padding: 2px 8px;
  background: rgba(184, 244, 210, 0.05);
  border: 1px solid rgba(184, 244, 210, 0.1);
  border-radius: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pro-mint);
  box-shadow: 0 0 8px var(--pro-mint);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.pro-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-period-group {
  display: flex;
  background: rgba(4, 10, 8, 0.8);
  border: 1px solid var(--pro-card-border);
  border-radius: 8px;
  padding: 2px;
}

.period-btn {
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--pro-text-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.period-btn:hover {
  color: var(--pro-text);
}
.period-btn.active {
  background: rgba(184, 244, 210, 0.15);
  color: var(--pro-mint);
}

.pro-btn-secondary,
.pro-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pro-btn-secondary {
  background: rgba(184, 244, 210, 0.08);
  border: 1px solid rgba(184, 244, 210, 0.2);
  color: var(--pro-mint);
}
.pro-btn-secondary:hover {
  background: rgba(184, 244, 210, 0.16);
  border-color: var(--pro-mint);
}

.pro-btn-ghost {
  background: none;
  border: 1px solid rgba(184, 244, 210, 0.1);
  color: var(--pro-text-muted);
}
.pro-btn-ghost:hover {
  background: rgba(184, 244, 210, 0.05);
  color: var(--pro-text);
}

/* Content View Root */
.pro-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   3. Composants SaaS : KPI Cards, Grids & Data Viz
   ========================================================================== */

.view-header {
  margin-bottom: 4px;
}

.view-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--pro-text);
}

.view-header h2 em {
  font-style: normal;
  color: var(--pro-mint);
}

.view-subtitle {
  font-size: 13px;
  color: var(--pro-text-muted);
  margin: 0;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kpi-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}
.kpi-card:hover {
  border-color: var(--pro-card-hover);
}

.kpi-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--pro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.kpi-number {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--pro-text);
  letter-spacing: -0.03em;
}

.delta-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.delta-pos {
  background: rgba(184, 244, 210, 0.12);
  color: var(--pro-mint);
}

.delta-neg {
  background: rgba(248, 113, 113, 0.12);
  color: var(--pro-red);
}

.kpi-subtext {
  font-size: 12px;
  color: var(--pro-text-subtle);
}

/* Chart Card */
.chart-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 14px;
  padding: 20px 22px;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--pro-text);
}

.chart-subtitle {
  font-size: 12px;
  color: var(--pro-text-subtle);
  margin: 0;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pro-text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pro-mint);
}
.legend-dot.wishlist-dot {
  background: #60a5fa;
}

/* SVG Chart Container */
.svg-chart-container {
  position: relative;
  width: 100%;
  height: 240px;
}

.pro-svg-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-point {
  transition: r 0.2s ease, fill 0.2s ease;
  cursor: pointer;
}
.chart-point:hover {
  r: 6;
  fill: #ffffff;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(4, 10, 8, 0.95);
  border: 1px solid var(--pro-mint);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  z-index: 100;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.15s ease;
}

.chart-tooltip.hidden {
  opacity: 0;
}

.tooltip-date {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pro-mint);
  border-bottom: 1px solid rgba(184, 244, 210, 0.15);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--pro-text-muted);
}

.tooltip-row b {
  font-family: var(--mono);
  color: var(--pro-text);
}

/* Funnel Visualizer (Entonnoir d’achat) */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.funnel-label-col {
  width: 180px;
  display: flex;
  flex-direction: column;
}

.funnel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pro-text);
}

.funnel-desc {
  font-size: 11px;
  color: var(--pro-text-subtle);
}

.funnel-bar-wrap {
  flex: 1;
  background: rgba(4, 10, 8, 0.6);
  border: 1px solid var(--pro-card-border);
  height: 36px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.funnel-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(184, 244, 210, 0.25), rgba(184, 244, 210, 0.15));
  border-right: 2px solid var(--pro-mint);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-bar-stat {
  position: absolute;
  left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--pro-text);
}

.funnel-rate-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  width: 60px;
  text-align: right;
  color: var(--pro-mint);
}

/* Two Column Layout */
.pro-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.pro-col-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-header-clean h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--pro-text);
}

/* Top Content List */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(4, 10, 8, 0.4);
  border: 1px solid rgba(184, 244, 210, 0.06);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.top-list-item:hover {
  border-color: rgba(184, 244, 210, 0.2);
}

.top-item-img-wrap {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #0d1a14;
  flex-shrink: 0;
}

.top-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pro-text-subtle);
  background: rgba(184, 244, 210, 0.05);
}

.top-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pro-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-item-meta {
  font-size: 11px;
  color: var(--pro-text-subtle);
}

.top-item-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.stat-main {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--pro-text);
}

.stat-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pro-mint);
}

/* Overlap & Insights Stack */
.insights-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-block {
  padding: 12px 14px;
  background: rgba(4, 10, 8, 0.5);
  border: 1px solid rgba(184, 244, 210, 0.08);
  border-radius: 8px;
}

.insight-body b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pro-text);
  margin-bottom: 3px;
}

.insight-body p {
  font-size: 12px;
  color: var(--pro-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Hours Activity Histogram */
.hours-histogram {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding: 10px 0 20px;
}

.hour-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 6px;
}

.hour-bar-track {
  flex: 1;
  width: 100%;
  background: rgba(4, 10, 8, 0.6);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hour-bar-fill {
  width: 100%;
  background: rgba(184, 244, 210, 0.35);
  border-radius: 4px;
  transition: height 0.4s ease;
}

.hour-bar-col.is-best-hour .hour-bar-fill {
  background: var(--pro-mint);
  box-shadow: 0 0 10px rgba(184, 244, 210, 0.5);
}

.hour-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--pro-text-subtle);
}

/* ==========================================================================
   4. Tableaux de Données (Content Data Table)
   ========================================================================== */

.table-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.table-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 10, 8, 0.7);
  border: 1px solid var(--pro-card-border);
  border-radius: 8px;
  padding: 6px 12px;
  width: 260px;
}

.table-search-wrap svg {
  color: var(--pro-text-subtle);
}

.table-search-wrap input {
  background: none;
  border: none;
  color: var(--pro-text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.table-count-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--pro-text-subtle);
}

.data-table-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 12px;
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pro-table th {
  background: rgba(4, 10, 8, 0.8);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--pro-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pro-card-border);
}

.th-sortable {
  cursor: pointer;
  user-select: none;
}
.th-sortable:hover {
  color: var(--pro-mint);
}

.pro-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(184, 244, 210, 0.05);
}

.table-row:hover {
  background: rgba(184, 244, 210, 0.02);
}

.table-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-item-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #0c1813;
  flex-shrink: 0;
}
.table-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-item-desc {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: 600;
  color: var(--pro-text);
}

.item-id-mono {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--pro-text-subtle);
}

.table-tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.table-tag.review {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.table-tag.inspiration {
  background: rgba(184, 244, 210, 0.12);
  color: var(--pro-mint);
}

.td-mono {
  font-family: var(--mono);
}
.font-bold {
  font-weight: 700;
}
.text-mint {
  color: var(--pro-mint);
}
.td-date-subtle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pro-text-subtle);
}

.td-empty {
  text-align: center;
  padding: 40px 16px !important;
  color: var(--pro-text-subtle);
}

/* Settings View */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.settings-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-card-border);
  border-radius: 12px;
  padding: 20px;
}

.settings-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--pro-text);
}

.settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-item label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--pro-text-muted);
}

.settings-note {
  font-size: 13px;
  color: var(--pro-text-muted);
  margin-bottom: 16px;
}

/* Skeleton Loading */
.skeleton-card {
  height: 90px;
  border-radius: 12px;
}

.skeleton-pulse {
  background: linear-gradient(90deg, rgba(184, 244, 210, 0.03) 25%, rgba(184, 244, 210, 0.08) 50%, rgba(184, 244, 210, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 960px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pro-two-col { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .pro-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
  }
  .pro-sidebar.open {
    transform: translateX(0);
  }
  .pro-menu-toggle { display: block; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .pro-topbar { padding: 0 16px; }
  .pro-period-group .period-btn:not(.active) { display: none; }
  .pro-content { padding: 16px; }
}
