:root{
  --bg:#06171d;--bg2:#0d2a31;--teal:#47dec5;--teal2:#24ac94;--mint:#a7f7ea;--white:#f6fbfa;--muted:rgba(246,251,250,.66);--muted2:rgba(246,251,250,.72);--muted3:rgba(246,251,250,.52);--line:rgba(255,255,255,.18);--glass:rgba(8,35,42,.38);--glass2:rgba(255,255,255,.09);--shadow:0 30px 90px rgba(0,0,0,.34);--radius:30px;--danger:#ffb3b3;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--bg);color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}body.sidebar-open{overflow:hidden}.shell-pad{padding-left:clamp(18px,6vw,110px);padding-right:clamp(18px,6vw,110px)}
.screen{display:none;min-height:100vh;min-height:100dvh;position:relative;overflow:hidden}.screen.active{display:block}
.landing-screen{background:radial-gradient(circle at 60% 15%,rgba(71,222,197,.12),transparent 36%),linear-gradient(180deg,#0b3037 0%,#06171d 78%)}
/* UNIFIED LIVING AMBIENT ENVIRONMENT (ZERO VIDEO BLEED, 100% PURE LIQUID GLASS) */
.diavet-ambient-env{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;overflow:hidden;pointer-events:none;z-index:0}
.ambient-mesh-base{position:absolute;inset:0;background:linear-gradient(155deg,#02080c 0%,#051820 42%,#082730 78%,#031016 100%);background-size:200% 200%;animation:ambientMeshShift 28s ease-in-out infinite alternate}
.ambient-halo{position:absolute;border-radius:50%;filter:blur(85px);pointer-events:none;will-change:transform}
.halo-cyan{width:56vw;height:56vw;top:-12vw;right:-8vw;background:radial-gradient(circle,rgba(71,222,197,.28) 0%,rgba(71,222,197,.05) 52%,transparent 72%);animation:haloDriftA 26s ease-in-out infinite alternate}
.halo-emerald{width:62vw;height:62vw;bottom:-18vw;left:-12vw;background:radial-gradient(circle,rgba(16,185,129,.24) 0%,rgba(16,185,129,.04) 50%,transparent 72%);animation:haloDriftB 32s ease-in-out infinite alternate}
.halo-teal{width:46vw;height:46vw;top:32%;left:22%;background:radial-gradient(circle,rgba(2,132,199,.18) 0%,rgba(2,132,199,.03) 50%,transparent 72%);animation:haloDriftC 29s ease-in-out infinite alternate}
.ambient-bio-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.88}
.ambient-vignette-glass{position:absolute;inset:0;background:radial-gradient(ellipse 85% 75% at 50% 45%,transparent 40%,rgba(1,8,11,.76) 100%)}
.ambient-video,.ambient-fallback,.workspace-video,.workspace-fallback,.ambient-vignette,.workspace-overlay,.onboarding-backdrop{display:none!important}
.topbar,.onboarding-top,.workspace-top{position:relative;z-index:7;display:flex;align-items:center;justify-content:space-between;padding-top:24px;padding-bottom:16px}.brand{display:inline-flex;align-items:center;gap:9px;color:var(--white);font-weight:800;letter-spacing:-.04em}.brand-button{border:0;background:transparent;padding:0}.brand-mark,.hero-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;border:1px solid rgba(71,222,197,.55);background:linear-gradient(145deg,rgba(71,222,197,.65),rgba(10,46,54,.55));box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 9px 26px rgba(34,191,164,.15)}.brand-mark span,.hero-mark span{font-size:.58em;color:#17383d}.brand-name{font-size:26px}.brand-name span{font-weight:500}.paw-dot{font-size:17px;align-self:flex-start;margin-top:2px}.main-nav{display:flex;gap:clamp(18px,3.5vw,48px);align-items:center}.nav-link{border:0;background:transparent;color:rgba(255,255,255,.83);padding:10px 0;position:relative;font-size:14px}.nav-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:4px;background:var(--teal);transform:scaleX(0);transition:transform .25s ease}.nav-link:hover::after,.nav-link.active::after{transform:scaleX(1)}.circle-btn{width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.07);color:#fff;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:.25s}.circle-btn:hover{transform:translateY(-2px);border-color:rgba(71,222,197,.65)}
.hero-grid{position:relative;z-index:3;min-height:calc(100vh - 88px);min-height:calc(100dvh - 88px);display:grid;grid-template-columns:1.08fr 1.12fr .82fr;align-items:center;gap:clamp(20px,4vw,62px);padding-top:10px;padding-bottom:80px}.glass-panel,.glass-mini{border:1px solid var(--line);background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(4,27,34,.34));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:var(--shadow)}.glass-panel{border-radius:var(--radius)}.glass-mini{border-radius:22px}.hero-copy{padding:42px;max-width:590px}.eyebrow{font-size:12px;letter-spacing:.11em;color:var(--muted);margin:0 0 16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.eyebrow-dot,.eyebrow>span:first-child{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 18px var(--teal);flex-shrink:0}#onboardingRoleLabel{display:inline;width:auto;height:auto;background:transparent;box-shadow:none;border-radius:0;color:var(--teal);font-weight:700;letter-spacing:.12em}.hero-copy h1{font-size:clamp(42px,5vw,76px);line-height:.98;letter-spacing:-.055em;margin:0 0 24px}.hero-copy h1 em{font-style:normal;color:#c8fff5}.hero-text{max-width:520px;color:rgba(255,255,255,.77);font-size:16px;line-height:1.72;margin:0 0 28px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px}.primary-btn,.ghost-btn,.start-btn{border-radius:999px;padding:14px 21px;border:0;min-height:50px;transition:.25s ease;display:inline-flex;gap:10px;align-items:center;justify-content:center}.primary-btn{background:linear-gradient(100deg,#4ce2c7,#20ab91);color:#06211f;font-weight:800;box-shadow:0 14px 36px rgba(71,222,197,.2)}.ghost-btn{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);color:#fff}.primary-btn:hover,.ghost-btn:hover,.start-btn:hover{transform:translateY(-2px)}.primary-btn:active,.ghost-btn:active{transform:translateY(0) scale(.98)}.small{min-height:38px;padding:9px 14px;font-size:13px}.wide{width:100%}.trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:20px;color:var(--muted2);font-size:12px}

/* REFINED HERO STAGE & ORBIT (NO COLLISIONS) */
.hero-stage{position:relative;min-height:530px;display:grid;place-items:center;text-align:center}
.stage-ring{position:absolute;border-radius:50%;border:1px solid rgba(71,222,197,.2);box-shadow:inset 0 0 55px rgba(71,222,197,.05);animation:ringPulse 6s ease-in-out infinite;will-change:transform}
.ring-1{width:430px;height:430px}
.ring-2{width:570px;height:570px;animation-delay:-2s;opacity:.55}
.orbit-cards-wrap{position:absolute;inset:0;pointer-events:none}
.orbit-card{position:absolute;pointer-events:auto;padding:15px 18px;display:flex;flex-direction:column;gap:3px;text-align:left;min-width:160px;z-index:5;animation:floatCard 5s ease-in-out infinite;will-change:transform}
.orbit-card b{font-size:13px}
.orbit-card small{color:var(--muted2);font-size:11px}
.orbit-card-a{top:3%;right:0%;animation-delay:0s}
.orbit-card-b{bottom:7%;right:-2%;animation-delay:-1.6s}
.orbit-card-c{bottom:9%;left:-2%;animation-delay:-3.2s}
.mini-icon{color:var(--mint);font-size:24px;margin-bottom:4px}.hero-side{display:flex;flex-direction:column;gap:15px}.feature-tile{padding:23px 22px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;color:#fff;transition:.25s}.feature-tile:hover{transform:translateY(-3px);border-color:rgba(71,222,197,.6)}.feature-tile strong{font-size:18px}.feature-tile small{color:var(--muted2);line-height:1.5}.feature-tile.accent{background:linear-gradient(145deg,rgba(71,222,197,.2),rgba(4,32,37,.4))}.tile-icon{font-size:32px;color:var(--mint)}
.section-block{position:relative;z-index:3;padding-top:110px;padding-bottom:110px}.section-head{max-width:780px;margin-bottom:34px}.section-head h2{font-size:clamp(34px,4.3vw,58px);line-height:1.02;letter-spacing:-.045em;margin:0 0 14px}.section-head>p:last-child{max-width:680px;color:var(--muted);line-height:1.65}.ecosystem-grid,.steps-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ecosystem-card{padding:34px;min-height:270px;display:flex;flex-direction:column;justify-content:space-between}.ecosystem-card.accent{background:linear-gradient(145deg,rgba(71,222,197,.14),rgba(4,32,37,.38))}.section-kicker{font-size:11px;letter-spacing:.12em;color:var(--mint)}.ecosystem-card h3{font-size:31px;letter-spacing:-.04em;margin:20px 0 12px}.ecosystem-card p{color:var(--muted);line-height:1.6;max-width:610px}.steps-row{grid-template-columns:repeat(4,1fr)}.step{padding:24px}.step>span{font-size:11px;color:var(--teal);letter-spacing:.1em}.step strong{display:block;margin-top:35px;font-size:16px}.step small{display:block;color:var(--muted2);margin-top:6px;line-height:1.45}.vip-section{padding-top:20px}.vip-banner{padding:34px;display:flex;justify-content:space-between;align-items:center;gap:30px;background:linear-gradient(120deg,rgba(71,222,197,.16),rgba(7,31,38,.35))}.vip-banner h2{font-size:42px;margin:0 0 8px;letter-spacing:-.045em}.vip-banner p:last-child{color:var(--muted);max-width:660px;line-height:1.6}/* RICH LIQUID GLASS FOOTER & OFFICIAL DIAVET SOCIALS */
.site-footer {
  position: relative;
  z-index: 3;
  padding-top: 50px;
  padding-bottom: 70px;
}
.footer-glass-inner {
  padding: 44px 40px 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(8, 36, 44, 0.72) 0%, rgba(3, 16, 21, 0.88) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.1fr 1.4fr;
  gap: clamp(24px, 3.5vw, 48px);
  margin-bottom: 40px;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-tagline {
  color: var(--muted2);
  font-size: 13.5px;
  line-height: 1.68;
  max-width: 340px;
  margin: 0;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(71, 222, 197, 0.28);
  background: rgba(71, 222, 197, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.03em;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-link-btn:hover {
  color: var(--teal);
  transform: translateX(3px);
}
.footer-social-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-subtext {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}
.footer-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 48px;
}
.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 222, 197, 0.55);
  background: rgba(71, 222, 197, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(71, 222, 197, 0.18);
}
.social-icon {
  flex-shrink: 0;
  color: var(--mint);
}
.instagram-btn:hover .social-icon {
  color: #f472b6;
  filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.6));
}
.social-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.social-label strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.social-label small {
  font-size: 11px;
  color: var(--muted2);
}
.social-ext {
  font-size: 14px;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.social-btn:hover .social-ext {
  transform: translate(2px, -2px);
}
.whatsapp-badge {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.24);
  cursor: default;
}
.badge-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted3);
}
.footer-copyright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-sep {
  color: rgba(255, 255, 255, 0.2);
}
.footer-legal-links {
  display: flex;
  gap: 18px;
}
.legal-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted2);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.legal-link:hover {
  color: var(--teal);
}
/* onboarding */
.onboarding-screen{background:radial-gradient(circle at 70% 30%,rgba(71,222,197,.12),transparent 35%),linear-gradient(145deg,#06171d,#0b2930)}.onboarding-backdrop{position:absolute;inset:0;background:url('assets/IMG_6913_mid.jpg') center/cover;opacity:.12;filter:blur(1px)}.onboarding-top{padding-top:20px}.step-indicator{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}.progress-track{width:180px;height:5px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}.progress-track i{display:block;width:25%;height:100%;background:linear-gradient(90deg,var(--teal),#9af9ee);transition:width .35s}.onboarding-layout{position:relative;z-index:3;display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center;min-height:calc(100vh - 90px);min-height:calc(100dvh - 90px);padding-top:36px;padding-bottom:70px}.onboarding-side{max-width:520px}.onboarding-side h1{font-size:clamp(44px,5vw,72px);letter-spacing:-.055em;line-height:.98;margin:0 0 18px}.onboarding-side>p:not(.eyebrow){color:var(--muted);line-height:1.65}.kiro-quote{margin-top:30px;padding:16px 18px;color:#d8fff8}.onboarding-card{padding:34px;min-height:430px;display:flex;align-items:stretch}.form-layout{width:100%;display:flex;flex-direction:column;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:12px;color:var(--muted)}.field input,.field select,.search-row input,.message-compose input{width:100%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.05);border-radius:16px;padding:14px 15px;color:#fff;outline:0}.field select option{color:#111}.field input:focus,.field select:focus,.search-row input:focus,.message-compose input:focus{border-color:rgba(71,222,197,.8);box-shadow:0 0 0 3px rgba(71,222,197,.1);background:rgba(255,255,255,.08)}.field-error{min-height:15px;font-size:11px;color:var(--danger)}.invalid{border-color:#ff8e8e!important;animation:shake .24s}.consent-row{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:12px;line-height:1.5}.consent-row input{margin-top:4px;accent-color:var(--teal)}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:12px;color:var(--muted2);font-size:11px}.questionnaire{width:100%;display:flex;flex-direction:column}.question-intro{margin-bottom:14px}.question-intro p{color:var(--muted2);font-size:12px}.pill{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);font-size:10px;letter-spacing:.08em;color:#d7fbf4;text-transform:uppercase}.pill.success{background:rgba(71,222,197,.11);color:#b4fff1}.pill.vip{background:rgba(196,166,255,.12);color:#e6d7ff}.question-list{display:flex;flex-direction:column;gap:12px}.question-block{border:0;padding:0;margin:0}.question-block legend{font-size:15px;font-weight:700;margin-bottom:10px}.option-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.option-card{display:flex;cursor:pointer}.option-card input{position:absolute;opacity:0}.option-card span{display:flex;align-items:center;min-height:52px;width:100%;padding:13px 14px;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:rgba(255,255,255,.045);transition:.22s}.option-card:hover span{border-color:rgba(71,222,197,.4);background:rgba(71,222,197,.06)}.option-card input:checked+span,.option-card.selected span{border-color:rgba(71,222,197,.7);background:rgba(71,222,197,.12);box-shadow:inset 0 0 24px rgba(71,222,197,.05)}.question-error{display:block}.summary-card{width:100%;display:flex;flex-direction:column;gap:24px}.summary-visual{display:flex;gap:18px;align-items:center}.success-orb{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:rgba(71,222,197,.15);border:1px solid rgba(71,222,197,.55);color:var(--mint);font-size:28px;box-shadow:0 0 40px rgba(71,222,197,.16);animation:successPop .5s cubic-bezier(.175,.885,.32,1.275) both}.summary-card h2{font-size:34px;letter-spacing:-.04em;margin:9px 0}.summary-card p{color:var(--muted);line-height:1.6}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-grid>div{padding:15px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}.summary-grid small{display:block;color:var(--muted2);font-size:11px}.summary-grid strong{display:block;margin-top:6px}
/* workspace */
.workspace-screen{background:#071a21}.app-sidebar{position:fixed;z-index:20;left:0;top:0;bottom:0;width:272px;padding:24px 18px;background:linear-gradient(180deg,rgba(5,31,38,.91),rgba(4,20,26,.85));border-right:1px solid rgba(255,255,255,.12);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:0 10px 22px}.sidebar-close{display:none;border:0;background:transparent;color:#fff;font-size:25px}.profile-chip{display:flex;align-items:center;gap:12px;padding:13px 10px 23px}.avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,rgba(71,222,197,.32),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.25);font-weight:800}.avatar.mini{width:32px;height:32px;font-size:11px}.profile-chip small{display:block;color:var(--muted2);margin-top:4px}.side-nav{display:flex;flex-direction:column;gap:7px}.side-link{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:1px solid transparent;border-radius:17px;padding:13px 14px;background:transparent;color:rgba(255,255,255,.78);transition:.2s}.side-link:hover,.side-link.active{background:rgba(71,222,197,.12);border-color:rgba(71,222,197,.22);color:#eafff8}.side-icon{width:22px;color:#bff9ef;font-size:18px}.logout-btn{position:absolute;bottom:20px;left:18px;right:18px;padding:12px 14px;border-radius:15px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.05);color:#fff;text-align:left;transition:.2s}.logout-btn:hover{border-color:rgba(71,222,197,.3);background:rgba(71,222,197,.06)}.sidebar-scrim{display:none}.workspace-main{position:relative;min-height:100vh;min-height:100dvh;margin-left:272px;overflow:hidden}.workspace-video{opacity:.12;filter:blur(.5px) saturate(.7)}.workspace-fallback{background:url('assets/IMG_6913_mid.jpg') center/cover;opacity:.11}.workspace-overlay{background:linear-gradient(90deg,rgba(4,18,24,.76),rgba(3,20,25,.45)),linear-gradient(180deg,rgba(3,20,25,.25),rgba(3,20,25,.84))}.workspace-top{position:relative;z-index:5;padding-top:20px;padding-bottom:10px}.top-left,.crumb,.top-actions{display:flex;align-items:center;gap:10px}.crumb button{border:0;background:none;color:#fff;font-weight:800;padding:0}.crumb span{color:var(--muted2);font-size:13px}.menu-btn{display:none;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.06);border-radius:14px;width:42px;height:42px;color:#fff}.top-actions{gap:8px}.top-icon{height:42px;min-width:42px;padding:0 12px;border-radius:14px;border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.06);color:#fff}.top-avatar{width:42px;height:42px}.workspace-content{position:relative;z-index:4;max-width:1280px;padding-top:16px;padding-bottom:90px}.page-enter{animation:pageIn .35s ease}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:18px 0 20px}.page-heading h1{font-size:clamp(38px,4.6vw,64px);line-height:.98;letter-spacing:-.05em;margin:0 0 10px}.page-heading p:last-child{max-width:780px;color:var(--muted);line-height:1.6;margin:0}.dashboard-grid{display:grid;grid-template-columns:1.28fr 1fr;gap:16px;margin-top:16px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.panel,.stat-card{border:1px solid rgba(255,255,255,.16);background:rgba(5,28,35,.45);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-radius:24px;padding:22px}.panel h3{font-size:18px;margin:0 0 12px}.panel p{color:var(--muted);line-height:1.6}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.stat-card small{display:block;color:var(--muted2);font-size:12px}.stat-card strong{display:block;font-size:31px;margin-top:11px;letter-spacing:-.03em}.stat-card span{display:block;color:var(--muted2);font-size:11px;margin-top:6px}.welcome-panel{display:grid;grid-template-columns:1.5fr .5fr;min-height:300px;align-items:center}.welcome-panel h2{font-size:38px;letter-spacing:-.04em;margin:15px 0 10px}.welcome-panel p{max-width:700px}.welcome-orb{width:160px;height:160px;border-radius:46px;justify-self:end;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.23),rgba(71,222,197,.13));border:1px solid rgba(71,222,197,.32);box-shadow:inset 0 0 40px rgba(71,222,197,.08)}.welcome-orb span{font-size:66px;filter:drop-shadow(0 15px 20px rgba(0,0,0,.25));animation:floatCard 4.5s ease-in-out infinite}.welcome-orb.medical span{font-size:52px;color:var(--mint)}.inline-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);font-size:11px;color:#e8fbf7}.badge.success{background:rgba(71,222,197,.12);color:#b7fff1;border-color:rgba(71,222,197,.22)}.hero-dashboard{display:flex;flex-direction:column}.panel.large-panel{margin-top:16px}.compact-form{margin-top:10px}.compact-form .form-footer.full{grid-column:1/-1;justify-content:flex-end}.pet-hero{display:flex;align-items:center;gap:20px;min-height:200px}.pet-avatar,.patient-avatar{width:90px;height:90px;border-radius:28px;display:grid;place-items:center;background:rgba(71,222,197,.08);border:1px solid rgba(71,222,197,.23);font-size:44px}.pet-hero h3{font-size:35px;margin:10px 0 3px}.appointment-card{display:flex;gap:16px;padding:17px 0;border-top:1px solid rgba(255,255,255,.1);margin-top:5px;margin-bottom:17px}.date-block{width:72px;height:72px;display:grid;place-items:center;align-content:center;border-radius:22px;background:rgba(71,222,197,.11);border:1px solid rgba(71,222,197,.19)}.date-block strong{font-size:28px}.date-block small{font-size:9px;letter-spacing:.1em}.appointment-card p{margin:5px 0 0;font-size:12px}.list-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid rgba(255,255,255,.09)}.list-item:first-of-type{border-top:0}.list-item>div{flex:1}.list-item small,.request-row small{display:block;color:var(--muted2);margin-top:4px;font-size:11px}.list-icon,.feature-dot,.doc-icon{width:36px;height:36px;border-radius:13px;display:grid;place-items:center;border:1px solid rgba(71,222,197,.22);background:rgba(71,222,197,.08);color:var(--mint);font-size:12px}.doc-icon{font-weight:800}.text-btn{border:0;background:transparent;color:#b9fff3}.timeline{display:flex;flex-direction:column;gap:18px}.timeline>div{display:flex;gap:12px;align-items:flex-start}.timeline>div>span{width:10px;height:10px;margin-top:4px;border-radius:50%;background:var(--teal);box-shadow:0 0 16px rgba(71,222,197,.55)}.timeline strong,.timeline small{display:block}.timeline small{color:var(--muted2);margin-top:4px}.messages-layout{display:grid;grid-template-columns:1.3fr .8fr;gap:16px}.message-row{display:flex;gap:10px;max-width:85%;margin-bottom:14px}.message-row>div:last-child{padding:13px 15px;border-radius:17px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}.message-row span,.message-row small{color:var(--muted2);font-size:11px}.message-row p{margin:6px 0;font-size:13px}.message-row.sent{margin-left:auto;justify-content:flex-end}.message-row.sent>div:last-child{background:rgba(71,222,197,.09);border-color:rgba(71,222,197,.18)}.message-compose{display:flex;gap:8px;margin-top:16px}.kiro-context{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:270px}.kiro-mini-avatar{width:72px;height:72px;border-radius:24px;display:grid;place-items:center;border:1px solid rgba(71,222,197,.35);color:var(--mint);background:radial-gradient(circle,rgba(71,222,197,.12),rgba(255,255,255,.04));font-size:28px}.search-row{display:flex;gap:10px;align-items:center;margin:0 0 16px}.search-row input{flex:1}.patient-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.patient-card{display:grid;gap:14px}.patient-card h3{margin:7px 0 0;font-size:24px}.patient-card p{margin:5px 0}.patient-avatar{width:66px;height:66px;border-radius:22px;font-size:34px}.agenda-grid{display:grid;grid-template-columns:1.3fr .8fr;gap:16px}.agenda-item{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;padding:15px 0;border-top:1px solid rgba(255,255,255,.08)}.agenda-item time{color:var(--mint);font-weight:800}.agenda-item strong,.agenda-item small{display:block}.agenda-item small{color:var(--muted2);margin-top:4px;font-size:11px}.request-list{padding-top:8px}.request-row{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;padding:16px 0;border-top:1px solid rgba(255,255,255,.08)}.request-row:first-child{border-top:0}.request-row span{display:block;color:var(--muted2);font-size:10px;margin-top:4px}.request-actions{display:flex;gap:7px}.chart-panel{margin-top:16px}.bars{height:260px;display:grid;grid-template-columns:repeat(8,1fr);gap:10px;align-items:end;margin-top:20px}.bar-wrap{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.bar{width:100%;max-width:42px;border-radius:13px 13px 6px 6px;background:linear-gradient(180deg,#77ecda,#1ca68d);box-shadow:0 8px 20px rgba(71,222,197,.15);min-height:20px;animation:barIn .7s both}.bar-wrap small{color:var(--muted2);font-size:10px}.vip-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.vip-hero{padding:32px;min-height:280px;display:flex;flex-direction:column;justify-content:center}.vip-hero h3{font-size:36px;letter-spacing:-.04em;margin:18px 0 10px}.feature-dot{font-weight:800}.top-avatar{cursor:pointer}
/* ==========================================================================
   KIROU : COMPAGNON VIVANT DIAVET (LIVING ACTOR & CONTEXTUAL SCENES)
   ========================================================================== */

.kiro-living-companion {
  position: fixed;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  transition: top 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              right 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              bottom 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: top, right, bottom, left, transform;
}

/* Spatial Scenes (Glide organically between areas) */
.kiro-living-companion.kiro-scene-landing {
  bottom: 36px;
  right: 44px;
}
.kiro-living-companion.kiro-scene-onboarding {
  top: 130px;
  right: 56px;
}
.kiro-living-companion.kiro-scene-questionnaire {
  top: 110px;
  right: 42px;
}
.kiro-living-companion.kiro-scene-summary {
  bottom: 54px;
  right: 50px;
}
.kiro-living-companion.kiro-scene-workspace {
  bottom: 24px;
  right: 32px;
}

/* Kirou Living Perch (Physical presence on screen) */
.kiro-living-perch {
  position: relative;
  width: 96px;
  height: 118px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kiro-living-perch:hover {
  transform: translateY(-4px) scale(1.04);
}
.kiro-living-perch:active {
  transform: translateY(0) scale(0.98);
}

/* Volumetric Lighting Halo */
.kiro-halo {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 222, 197, 0.25) 0%, rgba(71, 222, 197, 0.05) 55%, transparent 75%);
  filter: blur(22px);
  pointer-events: none;
  animation: diavetKirouHaloBreathe 4.8s ease-in-out infinite alternate;
  transition: background 0.4s ease, filter 0.4s ease;
  will-change: transform, opacity;
}
.kiro-living-companion.speaking .kiro-halo {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.42) 0%, rgba(52, 211, 153, 0.12) 55%, transparent 75%);
  filter: blur(28px);
  animation: diavetKirouHaloSpeak 0.4s infinite alternate;
}
.kiro-living-companion.celebrating .kiro-halo {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.58) 0%, rgba(245, 158, 11, 0.25) 50%, transparent 75%);
  filter: blur(34px);
  animation: diavetKirouHaloCelebrate 0.8s infinite alternate;
}

/* Realistic Ground Contact Shadow */
.kiro-shadow-layer {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(1, 4, 14, 0.94) 0%, rgba(2, 6, 23, 0.42) 48%, transparent 76%);
  filter: blur(1.5px);
  pointer-events: none;
  animation: diavetKirouShadowBreathe 4.8s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Living Actor Body */
.kiro-actor-body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 700px;
  transform-style: preserve-3d;
  animation: diavetKirouBreathe 4.8s ease-in-out infinite;
  will-change: transform;
}
.kiro-pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 18px rgba(71, 222, 197, 0.12));
}
.kiro-pose.active {
  opacity: 1;
  z-index: 2;
}

/* Micro-blinking, Ear twitching and Looking */
.kiro-living-companion:not(.speaking) .kiro-actor-body {
  animation: diavetKirouBreathe 4.8s ease-in-out infinite,
             kirouEarTwitch 11s ease-in-out infinite,
             kirouHeadLook 7.5s ease-in-out infinite;
}
.kiro-living-companion.speaking .kiro-actor-body {
  animation: diavetKirouTalkingCadence 0.24s ease-in-out infinite alternate;
}
.kiro-living-companion.celebrating .kiro-actor-body {
  animation: diavetKirouCelebrateBounce 0.9s ease-in-out infinite alternate;
}
.kiro-living-companion.reacting .kiro-actor-body {
  animation: diavetKirouReactionPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* Presence Pulse Dot */
.kiro-pulse {
  position: absolute;
  right: 6px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
  animation: pulse 1.8s infinite;
  z-index: 5;
  pointer-events: none;
}

/* Micro-Bubble (Quick Reassurance / Reaction) */
.kiro-micro-bubble {
  position: absolute;
  bottom: 124px;
  right: 0;
  max-width: 240px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(7, 31, 38, 0.94);
  border: 1px solid rgba(71, 222, 197, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(71, 222, 197, 0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.kiro-micro-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Interactive Liquid Glass Guidance Panel */
.kiro-panel {
  position: absolute;
  right: 0;
  bottom: 126px;
  width: min(340px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(155deg, rgba(11, 35, 42, 0.92), rgba(4, 18, 23, 0.96));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), 0 0 35px rgba(71, 222, 197, 0.14);
  transform-origin: bottom right;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
  pointer-events: auto;
}
.kiro-living-companion.minimized .kiro-panel {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(14px);
}
.kiro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.kiro-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kiro-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(71, 222, 197, 0.4);
  background: rgba(71, 222, 197, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.kiro-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.kiro-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kiro-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.kiro-name-row strong {
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.02em;
}
.kiro-badge-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mint);
  background: rgba(71, 222, 197, 0.14);
  border: 1px solid rgba(71, 222, 197, 0.3);
  padding: 2px 6px;
  border-radius: 999px;
}
.kiro-info small {
  color: var(--muted2);
  font-size: 11px;
}
.kiro-bubble {
  margin: 14px 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  font-size: 13px;
  position: relative;
}
.kiro-bubble::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: rgba(11, 35, 42, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  transform: rotate(45deg);
}
.kiro-actions {
  display: flex;
  gap: 8px;
}
.kiro-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted2);
  font-size: 11px;
}
.kiro-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

/* Keyframes for Kirou Emotion, Motion & Cadence */
@keyframes diavetKirouHaloBreathe {
  0% { transform: translate(-50%, -46%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -46%) scale(1.15); opacity: 1; }
}
@keyframes diavetKirouHaloSpeak {
  0% { transform: translate(-50%, -46%) scale(1.05); opacity: 0.85; }
  100% { transform: translate(-50%, -46%) scale(1.28); opacity: 1; }
}
@keyframes diavetKirouHaloCelebrate {
  0% { transform: translate(-50%, -46%) scale(1.15); opacity: 0.9; }
  100% { transform: translate(-50%, -46%) scale(1.45); opacity: 1; }
}
@keyframes kirouEarTwitch {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-2.2deg) scale(1.015); }
  94% { transform: rotate(1.8deg) scale(1.01); }
  96% { transform: rotate(-1deg); }
}
@keyframes kirouHeadLook {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  30% { transform: rotate(1.2deg) translateX(1px); }
  70% { transform: rotate(-1.5deg) translateX(-1px); }
}
@keyframes diavetKirouCelebrateBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-7px) scale(1.05) rotate(1.5deg); }
}
@keyframes diavetKirouReactionPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08) translateY(-3px); }
  100% { transform: scale(1); }
}
/* modal/toast */
.modal-root{position:fixed;inset:0;z-index:80;pointer-events:none}.modal-backdrop{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:rgba(1,10,14,.7);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);opacity:0;transition:.2s;pointer-events:auto}.modal-backdrop.open{opacity:1}.modal{position:relative;width:min(600px,100%);padding:30px;max-height:min(760px,90vh);max-height:min(760px,90dvh);overflow:auto}.modal-close{position:absolute;right:17px;top:12px;border:0;background:transparent;color:#fff;font-size:28px}.vip-modal-content h2,.profile-modal h2{font-size:38px;letter-spacing:-.045em;margin:15px 0 8px}.vip-modal-content>p,.profile-modal>p{color:var(--muted);line-height:1.6}.vip-code-card{display:flex;flex-direction:column;gap:5px;padding:18px;border-radius:20px;border:1px solid rgba(71,222,197,.18);background:rgba(71,222,197,.07);margin:18px 0}.vip-code-card small{color:var(--muted2)}.vip-code-card code{margin-top:7px;color:var(--mint);font-size:18px}.profile-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.profile-meta>div{padding:15px;border-radius:16px;background:rgba(255,255,255,.05)}.profile-meta small,.profile-meta strong{display:block}.profile-meta small{color:var(--muted2)}.profile-meta strong{margin-top:4px}.toast-region{position:fixed;top:86px;right:24px;z-index:1000;display:flex;flex-direction:column;gap:8px}.toast{padding:11px 14px;border-radius:14px;background:rgba(7,31,38,.96);border:1px solid rgba(255,255,255,.12);box-shadow:0 15px 40px rgba(0,0,0,.24);display:flex;align-items:center;gap:8px;color:#fff;font-size:12px;transform:translateY(-8px);opacity:0;transition:.22s}.toast.show{transform:translateY(0);opacity:1}.toast.success span{color:var(--mint)}.toast.error span{color:var(--danger)}
/* motion */
.reveal-up{animation:revealUp .8s both}.delay-1{animation-delay:.08s}.delay-2{animation-delay:.16s}.page-enter{will-change:transform,opacity}@keyframes revealUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes pageIn{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}@keyframes floatCard{0%,100%{transform:translateY(0) rotate(-.8deg)}50%{transform:translateY(-8px) rotate(.8deg)}}@keyframes ringPulse{0%,100%{transform:scale(1);opacity:.65}50%{transform:scale(1.03);opacity:.9}}@keyframes orbFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(20px,-18px,0)}}@keyframes pulse{0%,100%{transform:scale(.9);opacity:.7}50%{transform:scale(1.15);opacity:1}}@keyframes halo{0%,100%{transform:scale(.98);opacity:.5}50%{transform:scale(1.05);opacity:.9}}@keyframes blink{0%,42%,47%,100%{transform:scaleY(1)}44%,45%{transform:scaleY(.12)}}@keyframes talkPulse{to{transform:scale(1.03);box-shadow:0 22px 50px rgba(0,0,0,.32),0 0 60px rgba(71,222,197,.35)}}@keyframes kiroBreath{0%,100%{transform:translateY(0)}30%{transform:translateY(-2px)}60%{transform:translateY(-3px)}80%{transform:translateY(-1px)}}@keyframes tailSwish{0%,100%{transform:rotate(-19deg)}50%{transform:rotate(8deg)}}@keyframes kiroBreath{0%,100%{transform:translateY(0)}30%{transform:translateY(-2px)}60%{transform:translateY(-3px)}80%{transform:translateY(-1px)}}@keyframes tailSwish{0%,100%{transform:rotate(-19deg)}50%{transform:rotate(8deg)}}@keyframes panelPop{0%{transform:translateY(6px);opacity:.6}100%{transform:none;opacity:1}}@keyframes barIn{from{height:0!important}}@keyframes shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}}
@media (max-width:1150px){.hero-grid{grid-template-columns:1fr 1fr}.hero-copy{order:2;max-width:none}.hero-stage{order:1;grid-column:1/-1;min-height:470px}.hero-side{order:3;align-self:start}.orbit-card-c{left:4%}.orbit-card-b{right:4%}.onboarding-layout{grid-template-columns:1fr;gap:28px}.onboarding-side{max-width:760px}.patient-grid,.steps-row{grid-template-columns:repeat(2,1fr)}}
@media (max-width:820px){.main-nav{display:none}.hero-grid{grid-template-columns:1fr;padding-top:20px}.hero-stage{min-height:420px}.hero-side{display:grid;grid-template-columns:1fr 1fr}.feature-tile{min-height:175px}.ecosystem-grid,.dashboard-grid,.messages-layout,.agenda-grid,.vip-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}.steps-row{grid-template-columns:1fr 1fr}.site-footer{flex-direction:column;gap:7px}.app-sidebar{width:min(300px,84vw);transform:translateX(-102%);transition:transform .28s ease}.sidebar-scrim{position:fixed;inset:0;background:rgba(1,10,14,.62);z-index:19;display:block;opacity:0;pointer-events:none;transition:.28s}.menu-btn{display:inline-block}.workspace-main{margin-left:0}.sidebar-close{display:block}.sidebar-open .app-sidebar{transform:translateX(0)}.sidebar-open .sidebar-scrim{opacity:1;pointer-events:auto}.onboarding-card{padding:25px}.welcome-panel{grid-template-columns:1fr}.welcome-orb{justify-self:start;width:100px;height:100px}.hero-copy{padding:30px}.workspace-content{padding-top:5px}.page-heading{align-items:flex-start;flex-direction:column}.request-row{grid-template-columns:46px 1fr}.request-actions{grid-column:2}.hero-stage .brand-hero strong{font-size:70px}}
@media (max-width:560px){.topbar{padding-top:16px}.circle-btn{width:44px;height:44px}.hero-grid{padding-bottom:64px}.hero-copy h1{font-size:42px}.hero-actions{display:grid}.hero-actions>*{width:100%}.hero-stage{min-height:400px}.hero-stage .brand-hero{gap:7px}.hero-stage .brand-hero strong{font-size:56px}.hero-mark{width:54px;height:54px;font-size:36px}.hero-sub{font-size:15px;padding:0 25px}.orbit-card{min-width:135px;padding:12px}.orbit-card-a{top:3%;right:0}.orbit-card-b{bottom:5%;right:0}.orbit-card-c{bottom:15%;left:0}.stage-ring.ring-1{width:285px;height:285px}.stage-ring.ring-2{width:355px;height:355px}.hero-side{grid-template-columns:1fr}.feature-tile{min-height:auto}.section-block{padding-top:75px;padding-bottom:75px}.section-head h2{font-size:38px}.ecosystem-card{padding:25px;min-height:240px}.steps-row{grid-template-columns:1fr}.vip-banner{flex-direction:column;align-items:flex-start}.site-footer{padding-bottom:95px}.form-grid,.option-grid,.summary-grid{grid-template-columns:1fr}.onboarding-top{gap:8px}.step-indicator{display:none}.onboarding-layout{min-height:auto;padding-top:30px}.onboarding-side h1{font-size:44px}.onboarding-card{min-height:0}.form-footer{align-items:stretch;flex-direction:column}.form-footer>*{width:100%}.workspace-top{padding-top:14px}.top-actions .top-icon:first-child{display:none}.page-heading h1{font-size:42px}.stats-grid{grid-template-columns:1fr}.bars{height:210px}.kiro-panel{bottom:84px}.toast-region{left:12px;right:12px}.toast{width:100%}}

@media (max-width:375px){.hero-copy h1{font-size:36px}.hero-stage .brand-hero strong{font-size:44px}.stage-ring.ring-1{width:230px;height:230px}.stage-ring.ring-2{width:290px;height:290px}.onboarding-side h1{font-size:34px}.page-heading h1{font-size:32px}.kiro-toggle{width:64px;height:64px}.shell-pad{padding-left:16px;padding-right:16px}}

/* LIQUID GLASS MEDICAL-VETERINARY EMBLEM */
.welcome-emblem-glass{position:relative;width:86px;height:86px;border-radius:24px;border:1px solid rgba(71,222,197,.38);background:linear-gradient(145deg,rgba(71,222,197,.16),rgba(6,27,33,.65));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:grid;place-items:center;box-shadow:0 14px 34px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.24);transition:.28s}
.welcome-emblem-glass:hover{transform:translateY(-2px) scale(1.02);border-color:rgba(71,222,197,.65);box-shadow:0 18px 44px rgba(0,0,0,.42),0 0 28px rgba(71,222,197,.22)}
.welcome-emblem-glass .emblem-glow{position:absolute;inset:-6px;border-radius:28px;background:radial-gradient(circle,rgba(71,222,197,.22) 0%,transparent 70%);pointer-events:none;animation:halo 3s ease-in-out infinite}
.welcome-emblem-glass .emblem-inner{position:relative;z-index:2;display:grid;place-items:center}
.welcome-emblem-glass .emblem-icon{width:46px;height:46px;filter:drop-shadow(0 2px 10px rgba(71,222,197,.45))}
.welcome-orb{display:none!important}

/* AUTHENTIC KIROU & LIVING ENVIRONMENT KEYFRAMES */
@keyframes ambientMeshShift{0%{background-position:0% 20%}50%{background-position:100% 80%}100%{background-position:0% 20%}}
@keyframes haloDriftA{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-28px,24px,0) scale(1.08)}}
@keyframes haloDriftB{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(32px,-26px,0) scale(1.06)}}
@keyframes haloDriftC{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(20px,28px,0) scale(1.1)}}
@keyframes diavetKirouBreathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2.2px) scale(1.018)}}
@keyframes diavetKirouShadowBreathe{0%,100%{transform:translateX(-50%) scale(1);opacity:.88}50%{transform:translateX(-50%) scale(.93);opacity:.72}}
@keyframes diavetKirouTalkingCadence{0%{transform:translateY(-1px) rotate(-1.5deg) scale(1.01)}100%{transform:translateY(-3.5px) rotate(1.8deg) scale(1.035)}}

/* RESPONSIVE FLUID OVERRIDES (TABLET & MOBILE) */
@media (max-width: 900px) {
  .hero-stage{min-height:460px}
  .ring-1{width:360px;height:360px}
  .ring-2{width:470px;height:470px}
  .orbit-card{padding:12px 14px;min-width:140px}
  .orbit-card-a{top:2%;right:0%}
  .orbit-card-b{bottom:5%;right:0%}
  .orbit-card-c{bottom:5%;left:0%}
}
@media (max-width: 767px) {
  .hero-stage{min-height:auto;padding:24px 0;display:flex;flex-direction:column;align-items:center;gap:16px}
  .stage-ring{display:none}
  .brand-hero strong{font-size:52px}
  .start-btn{margin-top:14px;width:100%;max-width:280px}
  .orbit-cards-wrap{position:static;display:flex;flex-direction:column;gap:10px;width:100%;max-width:320px;margin-top:14px;pointer-events:auto}
  .orbit-card{position:static;width:100%;min-width:auto;transform:none!important;animation:none!important;padding:13px 16px}

  /* Kiro Mobile Adaptive Bottom Sheet */
  .kiro-living-companion {
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }
  .kiro-living-perch {
    width: 60px;
    height: 74px;
  }
  .kiro-halo {
    width: 90px;
    height: 90px;
  }
  .kiro-shadow-layer {
    width: 54px;
    height: 10px;
  }
  .kiro-micro-bubble {
    bottom: 84px;
    right: 0;
    max-width: 200px;
  }
  .kiro-living-companion:not(.minimized) .kiro-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 54vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.65) !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-glass-inner {
    padding: 30px 22px 24px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .toast-region{top:12px;left:14px;right:14px}
  .toast{width:auto;margin:0 auto}
}


/* ========================================================
   LIGHT MODE & COMPLETE THEME ADAPTATION SYSTEM
   ======================================================== */
html[data-theme="light"] {
  --bg: #f6faf9;
  --bg2: #eaf3f2;
  --teal: #0d9488;
  --teal2: #0f766e;
  --mint: #14b8a6;
  --white: #0a252b;
  --muted: rgba(10, 37, 43, 0.78);
  --muted2: rgba(10, 37, 43, 0.65);
  --muted3: rgba(10, 37, 43, 0.48);
  --line: rgba(13, 148, 136, 0.18);
  --glass: rgba(255, 255, 255, 0.85);
  --glass2: rgba(255, 255, 255, 0.65);
  --shadow: 0 16px 45px rgba(10, 42, 48, 0.08);
  --danger: #dc2626;
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--white);
}

html[data-theme="light"] .landing-screen {
  background: radial-gradient(circle at 60% 15%, rgba(13, 148, 136, 0.10), transparent 45%), linear-gradient(180deg, #eef9f8 0%, #f6faf9 78%);
}

html[data-theme="light"] .ambient-mesh-base {
  background: linear-gradient(155deg, #f0fdfa 0%, #e6f6f4 42%, #edf9f7 78%, #f8fafc 100%);
}

html[data-theme="light"] .ambient-halo.halo-cyan {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 72%);
}

html[data-theme="light"] .ambient-halo.halo-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 72%);
}

html[data-theme="light"] .ambient-halo.halo-teal {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 72%);
}

html[data-theme="light"] .ambient-vignette-glass {
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 45%, rgba(240, 248, 248, 0.75) 100%);
}

html[data-theme="light"] .glass-panel,
html[data-theme="light"] .glass-mini {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 250, 0.82));
  border: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: 0 16px 40px rgba(10, 42, 50, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .hero-copy h1 em {
  color: #0f766e;
}

html[data-theme="light"] .hero-text {
  color: rgba(10, 37, 43, 0.82);
}

html[data-theme="light"] .primary-btn {
  background: linear-gradient(100deg, #14b8a6, #0d9488);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.28);
}

html[data-theme="light"] .ghost-btn {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: #0b454d;
}

html[data-theme="light"] .nav-link {
  color: rgba(10, 37, 43, 0.82);
}

html[data-theme="light"] .feature-tile {
  color: #0a252b;
}

html[data-theme="light"] .feature-tile.accent {
  background: linear-gradient(145deg, rgba(204, 251, 241, 0.8), rgba(255, 255, 255, 0.9));
}

html[data-theme="light"] .footer-glass-inner {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 247, 0.96) 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 25px 70px rgba(10, 42, 50, 0.08);
}

html[data-theme="light"] .footer-link-btn,
html[data-theme="light"] .footer-links a {
  color: rgba(10, 37, 43, 0.75);
}

html[data-theme="light"] .footer-link-btn:hover,
html[data-theme="light"] .footer-links a:hover {
  color: #0d9488;
}

html[data-theme="light"] .social-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 148, 136, 0.2);
  color: #0a252b;
}

html[data-theme="light"] .app-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-right: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: 10px 0 35px rgba(10, 42, 50, 0.05);
}

html[data-theme="light"] .side-btn {
  color: rgba(10, 37, 43, 0.8);
}

html[data-theme="light"] .side-btn:hover,
html[data-theme="light"] .side-btn.active {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

html[data-theme="light"] .modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 249, 0.98) 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: #0a252b;
  box-shadow: 0 30px 90px rgba(10, 42, 50, 0.18);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff !important;
  color: #0a252b !important;
  border-color: rgba(13, 148, 136, 0.25) !important;
}

html[data-theme="light"] .kiro-halo {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, rgba(20, 184, 166, 0.12) 48%, transparent 72%) !important;
}

html[data-theme="light"] .kiro-shadow-layer {
  background: radial-gradient(ellipse at 50% 50%, rgba(10, 37, 43, 0.32) 0%, rgba(10, 37, 43, 0.08) 55%, transparent 74%) !important;
}

/* Smooth Theme Transitions */
body, .glass-panel, .glass-mini, .site-footer, .app-sidebar, .modal-card, .onboarding-card {
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ========================================================
   OFFICIAL LOGO & BRAND INTEGRATION
   ======================================================== */
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(71, 222, 197, 0.28);
  border: 1px solid rgba(71, 222, 197, 0.4);
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
}

/* FULLSCREEN OFFICIAL VIDEO BACKGROUND (100% COVER, ZERO CARD/FRAME) */
.landing-bg-video-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, #092c33 0%, #06171d 100%);
}

.landing-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.landing-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 35%, rgba(6, 23, 29, 0.38) 0%, rgba(6, 23, 29, 0.72) 100%);
  pointer-events: none;
}

html[data-theme="light"] .landing-bg-overlay {
  background: radial-gradient(circle at 50% 35%, rgba(246, 250, 249, 0.45) 0%, rgba(246, 250, 249, 0.78) 100%);
}

/* ========================================================
   ONBOARDING CINEMATIC LIVING VISUALS (REFERENCE/FUTUR)
   ======================================================== */
.onboarding-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.onboarding-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s ease-out;
  pointer-events: none;
  will-change: transform, opacity;
}

.onboarding-bg-slide.active {
  opacity: 0.32;
  animation: cinematicCameraDrift 28s ease-in-out infinite alternate;
}

html[data-theme="light"] .onboarding-bg-slide.active {
  opacity: 0.22;
}

@keyframes cinematicCameraDrift {
  0% {
    transform: scale(1.02) translate(0%, 0%);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05) translate(-1.2%, -0.8%);
    filter: brightness(1.03) contrast(1.01);
  }
  100% {
    transform: scale(1.03) translate(0.8%, -1.2%);
    filter: brightness(0.98);
  }
}

.onboarding-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 65% 45%, rgba(6, 23, 29, 0.42) 0%, rgba(6, 23, 29, 0.85) 100%);
  pointer-events: none;
}

html[data-theme="light"] .onboarding-bg-overlay {
  background: radial-gradient(circle at 65% 45%, rgba(246, 250, 249, 0.48) 0%, rgba(246, 250, 249, 0.86) 100%);
}

/* ========================================================
   ESPACE PROPRIÉTAIRE : BACKGROUND VIDÉO (REFERENCE/FUTUR)
   ======================================================== */
.workspace-bg-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: linear-gradient(180deg, #07232b 0%, #041419 100%);
}

.workspace-screen.role-owner .workspace-bg-video-layer {
  opacity: 1;
}

.workspace-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
}

.workspace-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 35%, rgba(6, 23, 29, 0.46) 0%, rgba(4, 18, 24, 0.84) 100%);
  pointer-events: none;
}

html[data-theme="light"] .workspace-bg-overlay {
  background: radial-gradient(circle at 50% 35%, rgba(246, 250, 249, 0.52) 0%, rgba(240, 248, 246, 0.88) 100%);
}

/* ========================================================
   UNIVERSAL RESPONSIVE MEDIA & FOCAL POINT FRAMEWORK
   ======================================================== */
.responsive-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.responsive-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: object-position 0.4s ease, opacity 0.4s ease;
}

/* Intelligent Focal Points by Context */
.slide-owner-1 { background-position: 40% 40%; }
.slide-owner-2 { background-position: 30% 45%; }
.slide-vet { background-position: 50% 35%; }

/* Tablet Landscape & Portrait Breakpoints */
@media (max-width: 1024px) {
  .landing-bg-video {
    object-position: center 22%;
  }
  .workspace-bg-video {
    object-position: 30% 36%;
  }
  .slide-owner-1 { background-position: 34% 45%; }
  .slide-owner-2 { background-position: 25% 48%; }
  .slide-vet { background-position: 52% 38%; }
}

@media (max-width: 820px) {
  .landing-bg-video {
    object-position: center 20%;
  }
  .workspace-bg-video {
    object-position: 26% 35%;
  }
  .slide-owner-1 { background-position: 28% 45%; }
  .slide-owner-2 { background-position: 20% 50%; }
  .slide-vet { background-position: 58% 38%; }
}

/* Mobile Standard & Small Phones (390x844, 375x812, etc.) */
@media (max-width: 560px) {
  .landing-bg-video {
    object-position: center 18%;
  }
  .workspace-bg-video {
    object-position: 22% 34%;
  }
  .slide-owner-1 { background-position: 24% 45%; }
  .slide-owner-2 { background-position: 16% 50%; }
  .slide-vet { background-position: 62% 40%; }

  /* Soften cinematic motion on mobile screens for buttery smooth 60fps & zero edge clipping */
  .onboarding-bg-slide.active {
    animation-name: cinematicCameraDriftMobile;
    animation-duration: 22s;
  }
}

@keyframes cinematicCameraDriftMobile {
  0% {
    transform: scale(1.015) translate(0%, 0%);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03) translate(-0.6%, -0.4%);
    filter: brightness(1.02);
  }
  100% {
    transform: scale(1.02) translate(0.4%, -0.6%);
    filter: brightness(0.99);
  }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .onboarding-bg-slide.active,
  .stage-ring,
  .orbit-card,
  .ambient-mesh-base,
  .ambient-halo {
    animation: none !important;
  }
}

.footer-brand-lockup .brand-logo-img {
  width: 44px;
  height: 44px;
}

/* ========================================================
   TOP CONTROLS (MULTILINGUAL & THEME TOGGLE)
   ======================================================== */
.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lang-switcher.compact {
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s ease;
  line-height: 1;
}
.lang-switcher.compact .lang-btn {
  padding: 4px 7px;
  font-size: 10.5px;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  background: var(--teal);
  color: #041f1c;
  box-shadow: 0 2px 8px rgba(71, 222, 197, 0.35);
}
html[data-theme="light"] .lang-btn.active {
  color: #ffffff;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: grid;
  place-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.theme-toggle-btn.compact {
  width: 36px;
  height: 36px;
}
.theme-toggle-btn:hover {
  transform: rotate(18deg) scale(1.05);
  border-color: var(--teal);
}

html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ========================================================
   MODERN VECTOR ICONS & CLOSE BUTTONS (ZERO EMOJIS)
   ======================================================== */
.trust-check {
  color: var(--teal);
  vertical-align: middle;
  flex-shrink: 0;
}
.mini-icon-svg {
  color: var(--mint);
  margin-bottom: 6px;
}
.tile-icon-svg {
  color: var(--mint);
  margin-bottom: 2px;
}
.badge-icon-svg {
  color: var(--teal);
  margin-right: 2px;
  vertical-align: middle;
}

.circle-btn, .btn-close, .sidebar-close, .icon-btn {
  display: grid;
  place-items: center;
}
.btn-close svg, .sidebar-close svg, .icon-btn svg, .circle-btn svg {
  pointer-events: none;
}

/* ========================================================
   KIRO VOCAL SPEAKING CADENCE & ANIMATION
   ======================================================== */
.kiro-vocal-speaking .kiro-actor-body {
  animation: diavetKirouVocalPulse 0.42s ease-in-out infinite alternate !important;
}

.kiro-vocal-speaking .kiro-halo {
  animation: diavetKirouHaloSpeak 0.65s ease-in-out infinite alternate !important;
  opacity: 0.95 !important;
  transform: scale(1.25) !important;
}

@keyframes diavetKirouVocalPulse {
  0% { transform: scale(1) translateY(0) rotate(0deg); }
  50% { transform: scale(1.025) translateY(-3px) rotate(1.2deg); }
  100% { transform: scale(1.01) translateY(-1px) rotate(-0.8deg); }
}

/* ========================================================
   DEDICATED FORMULAIRE DIAVET (CONTACT & CLINICAL SUPPORT)
   ======================================================== */
.diavet-form-modal {
  max-width: 620px;
  width: 90vw;
  padding: 36px 38px;
}
.diavet-form-header {
  margin-bottom: 24px;
}
.diavet-form-header h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.diavet-form-header p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}
.diavet-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.diavet-form-full {
  grid-column: span 2;
}
.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field-wrap label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-field-wrap input,
.form-field-wrap select,
.form-field-wrap textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}
.form-field-wrap input:focus,
.form-field-wrap select:focus,
.form-field-wrap textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(71, 222, 197, 0.2);
}
.form-field-wrap input.is-invalid,
.form-field-wrap select.is-invalid,
.form-field-wrap textarea.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.form-field-error {
  color: #ef4444;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.diavet-form-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.form-success-box {
  padding: 24px;
  text-align: center;
  border-radius: 18px;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid var(--teal);
}
.form-success-box h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}
.form-success-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}

@media (max-width: 640px) {
  .diavet-form-grid {
    grid-template-columns: 1fr;
  }
  .diavet-form-full {
    grid-column: span 1;
  }
  .diavet-form-modal {
    padding: 24px 20px;
  }
  .top-controls {
    gap: 6px;
  }
  .lang-switcher .lang-btn {
    padding: 4px 6px;
    font-size: 10px;
  }
}


/* Light Mode Workspace & Panel Adaptations */
html[data-theme="light"] .workspace-screen {
  background: var(--bg) !important;
}
html[data-theme="light"] .workspace-main {
  background: transparent !important;
}
html[data-theme="light"] .panel,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .welcome-panel,
html[data-theme="light"] .appointment-card,
html[data-theme="light"] .patient-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 249, 0.9)) !important;
  border: 1px solid rgba(13, 148, 136, 0.18) !important;
  color: #0a252b !important;
  box-shadow: 0 16px 40px rgba(10, 42, 50, 0.06) !important;
}
html[data-theme="light"] .page-heading h1,
html[data-theme="light"] .welcome-panel h2,
html[data-theme="light"] .panel h3,
html[data-theme="light"] .stat-card strong,
html[data-theme="light"] .patient-card h3,
html[data-theme="light"] .date-block strong {
  color: #0a252b !important;
}
html[data-theme="light"] .crumb button,
html[data-theme="light"] .top-actions .top-icon,
html[data-theme="light"] .menu-btn {
  color: #0a252b !important;
  border-color: rgba(13, 148, 136, 0.22) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}
html[data-theme="light"] .side-link {
  color: rgba(10, 37, 43, 0.78) !important;
}
html[data-theme="light"] .side-link:hover,
html[data-theme="light"] .side-link.active {
  background: rgba(13, 148, 136, 0.12) !important;
  color: #0d9488 !important;
  border-color: rgba(13, 148, 136, 0.22) !important;
}
html[data-theme="light"] .logout-btn {
  background: rgba(13, 148, 136, 0.06) !important;
  border-color: rgba(13, 148, 136, 0.18) !important;
  color: #0a252b !important;
}
html[data-theme="light"] .date-block {
  background: rgba(13, 148, 136, 0.12) !important;
  border-color: rgba(13, 148, 136, 0.24) !important;
}
html[data-theme="light"] .list-icon,
html[data-theme="light"] .feature-dot,
html[data-theme="light"] .doc-icon {
  background: rgba(13, 148, 136, 0.12) !important;
  border-color: rgba(13, 148, 136, 0.25) !important;
  color: #0d9488 !important;
}
html[data-theme="light"] .patient-avatar,
html[data-theme="light"] .pet-avatar {
  background: rgba(13, 148, 136, 0.1) !important;
  border-color: rgba(13, 148, 136, 0.25) !important;
  color: #0d9488 !important;
}
html[data-theme="light"] .message-row > div:last-child {
  background: #ffffff !important;
  border-color: rgba(13, 148, 136, 0.18) !important;
  color: #0a252b !important;
}
html[data-theme="light"] .message-row.sent > div:last-child {
  background: rgba(13, 148, 136, 0.12) !important;
  border-color: rgba(13, 148, 136, 0.25) !important;
}


/* ========================================================
   REFINED TOPBAR, OFFICIAL LOGO & RESPONSIVE NAVIGATION
   ======================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 clamp(18px, 5vw, 72px) !important;
  background: rgba(6, 23, 29, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.3s ease, border-color 0.3s ease, height 0.25s ease;
}

html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: 0 4px 20px rgba(10, 42, 50, 0.05);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.brand-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.brand-button:active {
  transform: translateY(0) scale(0.98);
}

.brand-emblem-wrap {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(71, 222, 197, 0.4);
  background: #04161c;
  box-shadow: 0 4px 14px rgba(71, 222, 197, 0.25);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
html[data-theme="light"] .brand-emblem-wrap {
  border-color: rgba(13, 148, 136, 0.35);
  background: #072b33;
  box-shadow: 0 3px 12px rgba(10, 42, 50, 0.12);
}
.brand-button:hover .brand-emblem-wrap {
  transform: scale(1.05);
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(71, 222, 197, 0.4);
}
.brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}
.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
html[data-theme="light"] .brand-title {
  color: #062329;
}
.brand-title-accent {
  color: var(--teal);
  font-weight: 800;
}
html[data-theme="light"] .brand-title-accent {
  color: #0d9488;
}
.brand-badge-dz {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  background: rgba(71, 222, 197, 0.15);
  color: #a7f7ea;
  border: 1px solid rgba(71, 222, 197, 0.3);
}
html[data-theme="light"] .brand-badge-dz {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.25);
}

.brand-logo-header {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(71, 222, 197, 0.25));
  transition: transform 0.25s ease;
}

html[data-theme="dark"] .logo-dark { display: block !important; }
html[data-theme="dark"] .logo-light { display: none !important; }
html[data-theme="light"] .logo-dark { display: none !important; }
html[data-theme="light"] .logo-light { display: block !important; }

/* Navigation links */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}
.nav-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.22s ease;
  cursor: pointer;
}
.nav-link::after { display: none !important; }
.nav-link:hover {
  color: var(--teal);
  background: rgba(71, 222, 197, 0.08);
}
.nav-link.active {
  color: var(--teal);
  background: rgba(71, 222, 197, 0.12);
  font-weight: 600;
}
html[data-theme="light"] .nav-link {
  color: rgba(10, 37, 43, 0.82);
}
html[data-theme="light"] .nav-link:hover {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
}
html[data-theme="light"] .nav-link.active {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.12);
}

/* Harmonized Top Controls (Exact 38px height) */
.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
html[data-theme="light"] .lang-switcher {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.2);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  height: 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active {
  background: var(--teal);
  color: #06211f;
}
html[data-theme="light"] .lang-btn.active {
  background: #0d9488;
  color: #ffffff;
}

.theme-toggle-btn, .circle-btn, .mobile-nav-toggle {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--white) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  padding: 0 !important;
}
html[data-theme="light"] .theme-toggle-btn,
html[data-theme="light"] .circle-btn,
html[data-theme="light"] .mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(13, 148, 136, 0.22) !important;
  color: #0a252b !important;
}
.theme-toggle-btn:hover, .circle-btn:hover, .mobile-nav-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--teal) !important;
}
.mobile-nav-toggle {
  display: none !important;
  border-radius: 12px !important;
}

/* Mobile Nav Drawer */
.landing-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(6, 23, 29, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideDownMenu 0.28s ease;
}
html[data-theme="light"] .landing-mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: 0 20px 50px rgba(10, 42, 50, 0.1);
}
.landing-mobile-menu.open {
  display: block;
}
@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu-link {
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
html[data-theme="light"] .mobile-menu-link {
  color: #0a252b;
}
.mobile-menu-link:hover, .mobile-menu-link.active {
  background: rgba(71, 222, 197, 0.12);
  color: var(--teal);
}
.mobile-menu-link.auth-highlight {
  background: linear-gradient(100deg, #4ce2c7, #20ab91);
  color: #06211f !important;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

/* Workspace Crumb & Logos */
.crumb-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
html[data-theme="light"] .crumb-brand-btn {
  color: #0a252b;
}
.crumb-logo-emblem {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(71, 222, 197, 0.35);
}
.footer-logo-header {
  height: 44px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
}

/* Hero Stage Layout Refinement */
.hero-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0;
}
.brand-hero {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}
.hero-sub {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin: 14px auto 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.start-btn {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}
.orbit-card-a { top: 6%; right: -2%; }
.orbit-card-b { bottom: 6%; right: -6%; }
.orbit-card-c { bottom: 6%; left: -6%; }

/* Modal Close Button Perfection */
.modal-close {
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
  padding: 0 !important;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.06) !important;
  border-color: var(--teal) !important;
}
html[data-theme="light"] .modal-close {
  border-color: rgba(13, 148, 136, 0.22) !important;
  background: rgba(13, 148, 136, 0.08) !important;
  color: #0a252b !important;
}

/* Responsive Topbar Overrides */
@media (max-width: 820px) {
  .main-nav { display: none !important; }
  .mobile-nav-toggle { display: flex !important; }
  .topbar { height: 66px !important; padding: 0 20px !important; }
  .brand-logo-header { height: 36px !important; max-width: 180px !important; }
  .brand-emblem-wrap { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
  .brand-title { font-size: 20px !important; }
  .welcome-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .welcome-emblem-glass {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .topbar { height: 60px !important; padding: 0 14px !important; }
  .brand-button { gap: 8px !important; }
  .brand-logo-header { height: 32px !important; max-width: 150px !important; }
  .brand-emblem-wrap { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
  .brand-title { font-size: 18px !important; }
  .brand-badge-dz { font-size: 9px !important; padding: 1px 4px !important; }
  .top-controls { gap: 6px !important; }
  .lang-switcher { height: 34px !important; }
  .lang-btn { height: 28px !important; padding: 0 6px !important; font-size: 11px !important; }
  .theme-toggle-btn, .circle-btn, .mobile-nav-toggle {
    width: 34px !important;
    height: 34px !important;
  }
  .toast-region {
    top: auto !important;
    bottom: 24px !important;
    left: 14px !important;
    right: 14px !important;
  }
}


/* ========================================================
   SEAMLESS ZERO-OVERFLOW & CONTRAST REFINEMENT
   ======================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}
.diavet-ambient-env {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
html[data-theme="light"] .hero-sub {
  color: rgba(10, 37, 43, 0.78) !important;
  font-weight: 500;
}
html[data-theme="light"] .eyebrow {
  color: #0d9488 !important;
  font-weight: 600;
}
.hero-stage {
  padding: 32px 0 !important;
}
.orbit-card-a { top: 4% !important; right: -10% !important; }
.orbit-card-b { bottom: 4% !important; right: -12% !important; }
.orbit-card-c { bottom: 4% !important; left: -12% !important; }

/* Mobile Menu Z-Index & Contrast */
.landing-mobile-menu {
  z-index: 105 !important;
}

/* ========================================================
   MOBILE ACCESSIBLE TOUCH TARGETS (~44x44px TAP AREA)
   Preserves 100% visual styling while expanding hit area
   ======================================================== */
@media (max-width: 768px) {
  .theme-toggle-btn,
  .circle-btn,
  .mobile-nav-toggle,
  .modal-close,
  .sidebar-close,
  .kiro-panel .icon-btn {
    position: relative;
  }

  .theme-toggle-btn::after,
  .circle-btn::after,
  .mobile-nav-toggle::after,
  .modal-close::after,
  .sidebar-close::after,
  .kiro-panel .icon-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    pointer-events: auto;
  }
}


/* ==========================================================================
   RTL SUPPORT & EXTENDED VETERINARY FORM STYLING (AUDIT PRODUCTION FIX)
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .topbar,
[dir="rtl"] .top-controls,
[dir="rtl"] .main-nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .form-footer,
[dir="rtl"] .consent-row,
[dir="rtl"] .crumb,
[dir="rtl"] .toast-item {
  flex-direction: row-reverse;
}
[dir="rtl"] .field label,
[dir="rtl"] .field-error,
[dir="rtl"] .hero-copy,
[dir="rtl"] .hero-text,
[dir="rtl"] .eyebrow,
[dir="rtl"] .section-head,
[dir="rtl"] .footer-brand-col,
[dir="rtl"] .footer-nav-col,
[dir="rtl"] .footer-contact-col {
  text-align: right;
}
[dir="rtl"] .kiro-living-companion {
  right: auto;
  left: 24px;
}
[dir="rtl"] .kiro-micro-bubble {
  right: auto;
  left: 0;
}
[dir="rtl"] .side-nav .side-link {
  text-align: right;
  flex-direction: row-reverse;
}
[dir="rtl"] .top-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .app-sidebar {
  right: 0;
  left: auto;
  transform: translateX(102%);
}
[dir="rtl"].sidebar-open .app-sidebar {
  transform: translateX(0);
}

/* Extended Veterinary Form Section Title & Badges */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--teal, #47dec5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 22px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(71, 222, 197, 0.2);
}
.checkbox-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.86rem;
  color: var(--white, #ffffff);
  user-select: none;
}
.checkbox-card:hover {
  background: rgba(71, 222, 197, 0.08);
  border-color: rgba(71, 222, 197, 0.4);
}
.checkbox-card.selected,
.checkbox-card:has(input:checked) {
  background: rgba(71, 222, 197, 0.16);
  border-color: rgba(71, 222, 197, 0.65);
  box-shadow: 0 0 16px rgba(71, 222, 197, 0.2);
}
.checkbox-card input[type="checkbox"] {
  accent-color: #47dec5;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
