/* Qlumy Phase 9.2 Professional UI + Flow */
:root{
  --q-navy:#101832;
  --q-ink:#17244a;
  --q-muted:#647394;
  --q-cyan:#24b6c9;
  --q-blue:#35aef5;
  --q-mint:#e8fbff;
  --q-bg:#f7fbff;
  --q-line:#dbe8f4;
  --q-gold:#ffd466;
  --q-danger:#e84962;
  --q-good:#13aa74;
  --q-radius:22px;
  --q-radius-lg:26px;
  --q-shadow:0 18px 55px rgba(15,31,66,.10);
  --q-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --q-display:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.phase9-shell{
  font-family:var(--q-font);
  background:linear-gradient(135deg,#effcff 0%,#fffef7 48%,#f8fbff 100%);
  color:var(--q-ink);
}
.phase9-shell h1,.phase9-shell h2,.phase9-shell h3{
  font-family:var(--q-display);
  color:var(--q-navy);
  letter-spacing:-.045em;
}
.phase9-shell h1{font-size:clamp(2.8rem,5.2vw,5.6rem);line-height:.98;margin:0 0 20px;}
.phase9-shell h2{font-size:clamp(2rem,3.4vw,3.4rem);line-height:1.02;margin:0 0 16px;}
.phase9-shell h3{font-size:1.25rem;line-height:1.2;margin:0 0 10px;}
.phase9-shell p{font-size:1rem;line-height:1.75;color:var(--q-muted);}
.phase9-shell .section{padding:70px 0;}
.q-container,.phase9-shell .container{max-width:1180px;margin:0 auto;padding-left:22px;padding-right:22px;}
.q-card{background:#fff;border:1px solid var(--q-line);border-radius:var(--q-radius-lg);padding:28px;box-shadow:var(--q-shadow);}
.q-hero-card{padding:42px;border-radius:var(--q-radius-lg);}
.q-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;}
.q-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.q-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;background:var(--q-mint);color:#007b91;font-weight:900;font-size:.82rem;margin-bottom:16px;}
.q-lead{color:var(--q-muted);line-height:1.75;font-size:1.05rem;}
.q-actions,.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
.q-card .btn,.phase9-shell .btn{border-radius:999px;padding:13px 22px;font-weight:900;border:1px solid var(--q-line);box-shadow:0 14px 30px rgba(18,44,92,.08);}
.q-card .btn:not(.secondary),.phase9-shell .btn:not(.secondary){background:linear-gradient(135deg,var(--q-cyan),var(--q-blue));color:#fff;border-color:transparent;}
.q-card .btn.secondary,.phase9-shell .btn.secondary{background:#fff;color:var(--q-navy);}
.q-stat{border:1px solid var(--q-line);border-radius:18px;padding:16px;background:#f9fdff;}
.q-stat span{display:block;color:var(--q-muted);font-weight:900;font-size:.82rem;margin-bottom:7px;}
.q-stat strong{display:block;color:var(--q-navy);font-size:1.05rem;word-break:break-word;}
.q-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px;}
.q-progress{height:12px;border-radius:999px;overflow:hidden;background:#e6edf7;}
.q-progress>div{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,var(--q-cyan),var(--q-blue));transition:width .25s ease;}
.q-alert{padding:14px 16px;border-radius:16px;background:#eaf8ff;border:1px solid #ccefff;color:#24526b;font-weight:800;margin:16px 0;}
.q-alert.danger{background:#fff0f2;border-color:#ffc9d1;color:#9b1025;}
.q-alert.gold{background:#fff8df;border-color:#ffe9a6;color:#7a5200;}
.q-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.q-form-full{display:grid;gap:15px;}
.q-form-grid label,.q-form-full label,.q-check{display:grid;gap:7px;color:var(--q-navy);font-weight:850;}
.q-form-grid input,.q-form-grid select,.q-form-full input,.q-form-full select,.q-form-full textarea,.q-card textarea{width:100%;border:1px solid var(--q-line);border-radius:16px;padding:13px 15px;font:inherit;font-weight:750;background:#fff;color:var(--q-navy);}
.q-form-full textarea,.q-card textarea{min-height:112px;}
.q-check{grid-template-columns:auto 1fr;align-items:flex-start;padding:13px;border:1px solid var(--q-line);border-radius:16px;background:#f9fdff;margin:8px 0;}
.q-check input{margin-top:4px;}
.q-demo-stage{display:grid;place-items:center;min-height:520px;border-radius:var(--q-radius-lg);background:linear-gradient(135deg,#f8feff,#eafcff);border:1px solid var(--q-line);position:relative;overflow:hidden;}
.q-demo-stage img,.q-character-img{width:min(460px,88%);max-height:470px;object-fit:contain;display:block;}
.q-status-pill{position:absolute;top:18px;left:18px;display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:999px;background:#effbff;color:#007f98;font-weight:900;font-size:.82rem;z-index:2;}
.q-dot{width:10px;height:10px;background:#43d6a5;border-radius:50%;}
.q-popup{display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;padding:24px;background:rgba(9,16,38,.62);backdrop-filter:blur(10px);}
.q-popup.open{display:flex;}
.q-popup-card{width:min(860px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:26px;padding:28px;box-shadow:0 30px 90px rgba(9,16,38,.35);}
.q-popup-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;}
.q-popup-stage{position:relative;min-height:450px;border:1px solid var(--q-line);border-radius:22px;background:linear-gradient(135deg,#f8fdff,#e9fbff);overflow:hidden;display:flex;align-items:center;justify-content:center;}
.q-popup-stage img{max-width:min(430px,75vw);max-height:410px;object-fit:contain;}
.q-timer-red{color:var(--q-danger);font-weight:950;font-size:1.25rem;}
.q-sticky-talk{position:fixed;right:20px;bottom:20px;z-index:9000;display:flex;align-items:center;gap:10px;background:#fff;color:var(--q-navy);border:1px solid var(--q-line);border-radius:999px;padding:10px 15px 10px 10px;box-shadow:0 18px 50px rgba(15,31,66,.18);font-weight:900;text-decoration:none;animation:q-bounce 2.8s infinite;}
.q-sticky-talk img{width:46px;height:46px;border-radius:50%;object-fit:contain;background:#e9fbff;}
.q-sticky-talk .paid-text{display:none;}
body.qlumy-paid-user .q-sticky-talk .guest-text{display:none;}
body.qlumy-paid-user .q-sticky-talk .paid-text{display:inline;}
@keyframes q-bounce{0%,20%,55%,100%{transform:translateY(0)}35%{transform:translateY(-8px)}45%{transform:translateY(-4px)}}
.q-account-menu{position:relative;display:inline-block;}
.q-account-menu button{cursor:pointer;}
.q-menu-panel{display:none;position:absolute;top:calc(100% + 10px);right:0;min-width:245px;background:#fff;border:1px solid var(--q-line);border-radius:18px;box-shadow:var(--q-shadow);padding:10px;z-index:50;}
.q-account-menu.open .q-menu-panel{display:grid;gap:6px;}
.q-menu-panel a,.q-menu-panel button{display:block;text-align:left;width:100%;border:0;background:transparent;padding:11px 12px;border-radius:12px;color:var(--q-navy);font-weight:900;text-decoration:none;}
.q-menu-panel a:hover,.q-menu-panel button:hover{background:#effbff;}
[data-auth-only],[data-paid-only]{display:none!important;}
body.qlumy-authenticated [data-auth-only],body.qlumy-paid-user [data-paid-only]{display:initial!important;}
body.qlumy-paid-user [data-demo-only]{display:none!important;}
body.qlumy-authenticated .main-choose-plan{display:none!important;}
body.qlumy-paid-user .main-live-demo{display:none!important;}
.q-dev-box{background:#f0f4fa;border:1px solid var(--q-line);border-radius:18px;padding:14px;overflow:auto;max-height:360px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.84rem;}
.pricing-wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:stretch;}
.price-card{background:#fff;border:1px solid var(--q-line);border-radius:24px;padding:30px;box-shadow:var(--q-shadow);display:flex;flex-direction:column;min-height:500px;}
.price-card.featured{border:2px solid #8edbe5;background:linear-gradient(180deg,#f3fdff,#fff);}
.price-card .badge{display:inline-flex;width:max-content;border-radius:999px;background:#e9fbff;color:#007b91;padding:8px 12px;font-weight:900;margin-bottom:15px;font-size:.85rem;}
.price-card h3{margin:0 0 10px;color:var(--q-navy);font-size:1.4rem;}
.money{font-size:3.5rem;line-height:.95;font-weight:950;color:#23aec4;margin:12px 0;}
.money span{font-size:1rem;color:var(--q-muted);}
.price-card p{color:var(--q-muted);line-height:1.65;font-size:1rem;}
.price-card ul{padding:0;margin:18px 0;list-style:none;display:grid;gap:10px;}
.price-card li{color:#536589;font-weight:800;line-height:1.35;}
.price-card li:before{content:"✓";color:#16b278;font-weight:950;margin-right:10px;}
.price-card .btn{margin-top:auto;align-self:flex-start;}
.account-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px;}
.pretty-list{margin:0;display:grid;gap:10px;}
.pretty-list div{display:grid;grid-template-columns:155px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid rgba(16,30,61,.08);}
.pretty-list dt{color:var(--q-muted);font-weight:900;}
.pretty-list dd{margin:0;color:var(--q-navy);font-weight:800;word-break:break-word;}
.topic-chip{display:inline-flex;align-items:center;border-radius:999px;padding:9px 12px;background:#eaf7ff;color:#186f85;font-weight:850;text-transform:capitalize;margin:4px;}
.topic-chip.blocked{background:#fff0f0;color:#9a1d2a;}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.status-pill-soft{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eaf7ff;color:#1b7890;font-size:.78rem;font-weight:900;white-space:nowrap;}
.status-pill-soft.danger{background:#fff0f0;color:#a3202c;}
.status-pill-soft.good{background:#e9fbf3;color:#08794d;}
.wizard-steps{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap;}
.wizard-step{padding:9px 13px;border-radius:999px;background:#eef6fb;color:var(--q-muted);font-weight:900;}
.wizard-step.active{background:#e9fbff;color:#007b91;}
[data-wizard-panel]{display:none;}
[data-wizard-panel].active{display:block;}
@media(max-width:1000px){.q-grid-2,.q-grid-3,.q-form-grid,.pricing-wrap,.account-section-grid{grid-template-columns:1fr}.price-card{min-height:auto}.q-demo-stage{min-height:420px}.q-demo-stage img{max-height:390px}.q-mini-stats{grid-template-columns:1fr}}
@media(max-width:900px){.q-popup-card{padding:18px;border-radius:22px}.q-popup-stage{min-height:360px}.q-popup-stage img{max-height:300px}.q-hero-card{padding:28px}.phase9-shell h1{font-size:3rem}}


/* =========================================================
   Qlumy Phase 9.3 Professional Final Overrides
   ========================================================= */
:root{
  --q-navy:#111936;
  --q-ink:#1b274f;
  --q-muted:#5f6f92;
  --q-cyan:#22b6c9;
  --q-blue:#37aef5;
  --q-mint:#e8fbff;
  --q-line:#dbe8f4;
  --q-danger:#e84962;
  --q-radius:20px;
  --q-radius-lg:24px;
  --q-shadow:0 16px 48px rgba(15,31,66,.10);
  --q-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.phase9-shell{font-family:var(--q-font);color:var(--q-ink);}
.phase9-shell h1,.phase9-shell h2,.phase9-shell h3{font-family:var(--q-font);letter-spacing:-.038em;color:var(--q-navy);}
.phase9-shell h1{font-size:clamp(2.55rem,4.8vw,4.75rem)!important;line-height:1.02!important;font-weight:900!important;}
.phase9-shell h2{font-size:clamp(1.8rem,3vw,3rem)!important;line-height:1.05!important;font-weight:880!important;}
.phase9-shell p{font-size:1rem;line-height:1.72;color:var(--q-muted);}
.q-card{border-radius:var(--q-radius-lg)!important;padding:26px;box-shadow:var(--q-shadow);}
.q-hero-card{padding:38px!important;border-radius:var(--q-radius-lg)!important;}
.q-demo-stage{min-height:500px!important;border-radius:var(--q-radius-lg)!important;}
.q-demo-stage img,.q-character-img{width:min(470px,88%)!important;max-height:460px!important;object-fit:contain!important;display:block!important;}
.q-popup-card{border-radius:24px!important;}
.q-popup-stage{border-radius:20px!important;min-height:440px!important;}
.q-popup-stage img{max-width:min(430px,75vw)!important;max-height:400px!important;object-fit:contain!important;display:block!important;}
.phase9-shell .btn{border-radius:999px!important;color:inherit;}
.phase9-shell .btn:not(.secondary){background:linear-gradient(135deg,var(--q-cyan),var(--q-blue))!important;color:#fff!important;border-color:transparent!important;}
.phase9-shell .btn:not(.secondary):hover{filter:brightness(.96);color:#fff!important;}
.phase9-shell .btn.secondary:hover{background:#f4fbff!important;color:var(--q-navy)!important;}
.q-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px;}
.pricing-wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:stretch;}
.price-card{border-radius:22px!important;min-height:500px;background:#fff;border:1px solid var(--q-line);box-shadow:var(--q-shadow);padding:30px;display:flex;flex-direction:column;}
.price-card.featured{border:2px solid #8edbe5;background:linear-gradient(180deg,#f3fdff,#fff);}
.price-card .badge{display:inline-flex;width:max-content;border-radius:999px;background:#e9fbff;color:#007b91;padding:8px 12px;font-weight:900;margin-bottom:15px;font-size:.85rem;}
.price-card h3{font-size:1.35rem!important;margin:0 0 10px;}
.money{font-size:3.35rem!important;line-height:.95;font-weight:950;color:#23aec4;margin:12px 0;}
.money span{font-size:1rem;color:var(--q-muted);}
.price-card ul{padding:0;margin:18px 0;list-style:none;display:grid;gap:10px;}
.price-card li{color:#536589;font-weight:800;line-height:1.35;}
.price-card li:before{content:"✓";color:#16b278;font-weight:950;margin-right:10px;}
.price-card .btn{margin-top:auto;align-self:flex-start;}
.q-alert.good{background:#eafbf3;border-color:#c8f1df;color:#0a684a;}
.q-demo-offer{display:none;margin-top:18px;}
.q-demo-offer.show{display:block;}
.q-sticky-talk{position:fixed;right:20px;bottom:20px;z-index:9000;display:flex;align-items:center;gap:10px;background:#fff;color:var(--q-navy);border:1px solid var(--q-line);border-radius:999px;padding:10px 16px 10px 10px;box-shadow:0 18px 50px rgba(15,31,66,.18);font-weight:900;text-decoration:none;animation:q-bounce 2.8s infinite;max-width:260px;}
.q-sticky-talk img{width:48px;height:48px;border-radius:50%;object-fit:contain;background:#e9fbff;}
.q-sticky-talk .paid-text{display:none;}
body.qlumy-paid-user .q-sticky-talk .guest-text{display:none;}
body.qlumy-paid-user .q-sticky-talk .paid-text{display:inline;}
@keyframes q-bounce{0%,20%,55%,100%{transform:translateY(0)}35%{transform:translateY(-8px)}45%{transform:translateY(-4px)}}
body.qlumy-authenticated .main-choose-plan{display:none!important;}
body.qlumy-paid-user .main-live-demo{display:none!important;}
.q-modal-overlay{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;background:rgba(9,16,38,.58);backdrop-filter:blur(8px);padding:22px;}
.q-modal-overlay.open{display:flex;}
.q-modal-card{width:min(460px,94vw);background:#fff;border-radius:22px;padding:24px;border:1px solid var(--q-line);box-shadow:0 30px 90px rgba(9,16,38,.35);}
.account-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px;}
.pretty-list{margin:0;display:grid;gap:10px;}
.pretty-list div{display:grid;grid-template-columns:155px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid rgba(16,30,61,.08);}
.pretty-list dt{color:var(--q-muted);font-weight:900;}
.pretty-list dd{margin:0;color:var(--q-navy);font-weight:800;word-break:break-word;}
.topic-chip{display:inline-flex;align-items:center;border-radius:999px;padding:9px 12px;background:#eaf7ff;color:#186f85;font-weight:850;text-transform:capitalize;margin:4px;}
.topic-chip.blocked{background:#fff0f0;color:#9a1d2a;}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.status-pill-soft{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eaf7ff;color:#1b7890;font-size:.78rem;font-weight:900;white-space:nowrap;}
.status-pill-soft.good{background:#e9fbf3;color:#08794d;}
.status-pill-soft.danger{background:#fff0f0;color:#a3202c;}
.wizard-steps{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap;}
.wizard-step{padding:9px 13px;border-radius:999px;background:#eef6fb;color:var(--q-muted);font-weight:900;}
.wizard-step.active{background:#e9fbff;color:#007b91;}
[data-wizard-panel]{display:none;}
[data-wizard-panel].active{display:block;}
@media(max-width:1000px){
  .q-grid-2,.q-grid-3,.q-form-grid,.pricing-wrap,.account-section-grid{grid-template-columns:1fr!important}
  .q-demo-stage{min-height:420px!important}
  .q-demo-stage img{max-height:390px!important}
  .q-mini-stats{grid-template-columns:1fr}
  .price-card{min-height:auto}
}
@media(max-width:900px){
  .q-popup{padding:14px;align-items:center}
  .q-popup-card{padding:18px!important;border-radius:20px!important;width:min(440px,96vw)}
  .q-popup-stage{min-height:330px!important}
  .q-popup-stage img{max-height:270px!important;max-width:82%!important}
  .q-hero-card{padding:26px!important}
  .phase9-shell h1{font-size:2.65rem!important}
  .nav{position:relative}
  .nav-links{position:absolute;left:16px;right:16px;top:calc(100% + 10px);width:auto!important;max-width:calc(100vw - 32px);background:#fff;border:1px solid var(--q-line);border-radius:20px;box-shadow:var(--q-shadow);padding:14px;z-index:40;display:none;grid-template-columns:1fr;gap:8px}
  .nav-links.open{display:grid!important}
  .q-account-menu,.q-account-menu button{width:100%}
  .q-menu-panel{position:static!important;min-width:0!important;width:100%!important;margin-top:8px;box-shadow:none!important}
  .q-sticky-talk{right:12px;bottom:12px;font-size:.9rem}
}

/* Phase 9.4 additions */
.q-step-card{position:relative;overflow:hidden}
.q-step-num{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:15px;background:#e9fbff;color:#007b91;font-weight:950;margin-bottom:16px}
.q-cta-band{display:flex;align-items:center;justify-content:space-between;gap:22px}
.q-pricing-full .price-card{min-height:520px}
.q-demo-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.q-mini-plan{display:grid;gap:4px;text-decoration:none;border:1px solid var(--q-line);border-radius:18px;padding:16px;background:#fff;color:var(--q-navy);box-shadow:0 12px 26px rgba(18,44,92,.07)}
.q-mini-plan strong{font-size:1.05rem}
.q-mini-plan span{color:#22a9bf;font-weight:950}
.q-mini-plan small{color:var(--q-muted);font-weight:800}
.q-demo-offer.show{display:block!important}
@media(max-width:900px){
  .q-cta-band{display:grid}
  .q-demo-plan-grid{grid-template-columns:1fr}
  .q-pricing-full .price-card{min-height:auto}
}


/* =========================================================
   Qlumy Phase 10 — Content + Policy Alignment
   Keeps current flow; updates text/legal/FAQ/policy UI.
   ========================================================= */
.qlumy-policy-note{
  margin:18px 0;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #ccefff;
  background:#eaf8ff;
  color:#234d66;
  font-weight:800;
  line-height:1.65;
}
.qlumy-policy-note.warning{
  background:#fff8df;
  border-color:#ffe5a0;
  color:#745200;
}
.qlumy-policy-note.danger{
  background:#fff0f2;
  border-color:#ffc8d2;
  color:#8d1730;
}
.qlumy-legal-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  margin-top:24px;
}
.qlumy-legal-card{
  background:#fff;
  border:1px solid var(--q-line,#dbe8f4);
  border-radius:22px;
  padding:24px;
  box-shadow:var(--q-shadow,0 16px 48px rgba(15,31,66,.10));
}
.qlumy-legal-card h3{margin-top:0}
.qlumy-legal-list{
  display:grid;
  gap:12px;
  padding-left:20px;
  line-height:1.7;
  color:var(--q-muted,#5f6f92);
}
.qlumy-faq-section{
  margin-top:34px;
}
.qlumy-faq{
  display:grid;
  gap:12px;
}
.qlumy-faq details{
  background:#fff;
  border:1px solid var(--q-line,#dbe8f4);
  border-radius:18px;
  padding:0;
  box-shadow:0 10px 28px rgba(15,31,66,.06);
  overflow:hidden;
}
.qlumy-faq summary{
  cursor:pointer;
  padding:18px 20px;
  font-weight:900;
  color:var(--q-navy,#111936);
  list-style:none;
}
.qlumy-faq summary::-webkit-details-marker{display:none}
.qlumy-faq summary:after{
  content:"+";
  float:right;
  color:#22b6c9;
  font-weight:950;
}
.qlumy-faq details[open] summary:after{content:"−"}
.qlumy-faq p{
  padding:0 20px 18px;
  margin:0;
  color:var(--q-muted,#5f6f92);
  line-height:1.75;
}
.qlumy-ack-box{
  border:1px solid var(--q-line,#dbe8f4);
  border-radius:18px;
  background:#f9fdff;
  padding:16px;
  display:grid;
  gap:12px;
}
.qlumy-ack-box label{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:start;
  font-weight:800;
  color:var(--q-navy,#111936);
}
.qlumy-ack-box input{margin-top:5px}
.qlumy-page-narrow{
  max-width:980px;
  margin:0 auto;
}
.qlumy-effective{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  color:var(--q-muted,#5f6f92);
  font-weight:800;
  margin:12px 0 22px;
}
.qlumy-effective span{
  background:#f3fbff;
  border:1px solid var(--q-line,#dbe8f4);
  border-radius:999px;
  padding:8px 12px;
}
@media(max-width:900px){
  .qlumy-legal-grid{grid-template-columns:1fr}
}


/* =========================================================
   Qlumy Phase 10.2 — Enzuzo Policy Integration
   ========================================================= */
.qlumy-enzuzo-card{
  margin-top:22px;
  min-height:420px;
  overflow-x:auto;
}
.qlumy-enzuzo-card #__enzuzo-root{
  width:100%;
}
.qlumy-enzuzo-card iframe{
  max-width:100%;
}
.footer-links a{
  line-height:1.45;
}
@media(max-width:900px){
  .qlumy-enzuzo-card{
    padding:16px;
    border-radius:18px;
    min-height:360px;
  }
}


/* =========================================================
   Qlumy Phase 10.3 — Final Logo + Home Hero Video Patch
   ========================================================= */
.brand{display:inline-flex;align-items:center;gap:10px}
.brand .logo,.brand > span.logo{display:none!important}
.brand-logo-img{display:block;width:auto;height:46px;max-width:190px;object-fit:contain}
.footer .brand-logo-img{height:58px;max-width:230px}
.brand-text-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.q-hero-video-card{min-height:560px!important;display:flex;flex-direction:column;justify-content:center;overflow:hidden;position:relative}
.q-hero-video-frame{width:100%;min-height:500px;border-radius:22px;overflow:hidden;background:radial-gradient(circle at 50% 38%,rgba(64,205,224,.20),transparent 45%),linear-gradient(135deg,#effdff,#fff 58%,#fff8db);border:1px solid var(--q-line,#dbe8f4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);display:flex;align-items:center;justify-content:center}
.q-hero-video{width:100%;height:100%;min-height:500px;display:block;object-fit:contain;object-position:center;background:transparent}
.q-hero-video-card .q-status-pill{position:absolute;top:26px;left:26px;z-index:2}
@media(max-width:1000px){.q-hero-video-card{min-height:460px!important}.q-hero-video-frame,.q-hero-video{min-height:420px}}
@media(max-width:700px){.brand-logo-img{height:38px;max-width:150px}.footer .brand-logo-img{height:48px;max-width:180px}.q-hero-video-card{min-height:390px!important}.q-hero-video-frame,.q-hero-video{min-height:340px}.q-hero-video-card .q-status-pill{top:18px;left:18px}}


/* =========================================================
   Qlumy Phase 10.4 — Hero Video Sound Button Fix
   Browser autoplay sound requires user interaction.
   ========================================================= */
.q-hero-video-frame{
  position:relative;
}

.q-hero-sound-button{
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:5;
  border:0;
  border-radius:999px;
  padding:14px 22px;
  background:linear-gradient(135deg,#22b6c9,#37aef5);
  color:#ffffff;
  font-weight:950;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 16px 38px rgba(15,31,66,.20);
  transition:transform .18s ease, opacity .18s ease, filter .18s ease;
}

.q-hero-sound-button:hover{
  transform:translateX(-50%) translateY(-2px);
  filter:brightness(.98);
}

.q-hero-sound-button.hidden{
  display:none!important;
}

.q-hero-sound-button.sound-on{
  background:linear-gradient(135deg,#17b978,#22b6c9);
}

@media(max-width:700px){
  .q-hero-sound-button{
    bottom:16px;
    padding:12px 16px;
    font-size:13px;
    width:calc(100% - 48px);
    max-width:260px;
  }
}


/* =========================================================
   Qlumy Phase 10.5 — Hero Video 50% Audio Attempt
   ========================================================= */
.q-hero-sound-button{
  opacity:.96;
}
.q-hero-sound-button::after{
  content:"";
}


/* =========================================================
   Qlumy Phase 11.2 — Parent PIN Reset UI
   ========================================================= */
.q-alert.warning{
  background:#fff8df;
  border-color:#ffe5a0;
  color:#745200;
}


/* =========================================================
   Qlumy Phase 14.0 — Home Hero Video Audio Controls
   ========================================================= */
.q-hero-video-frame{
  position:relative;
}

.q-hero-audio-controls{
  position:absolute;
  left:50%;
  bottom:78px;
  transform:translateX(-50%);
  z-index:6;
  display:flex;
  align-items:center;
  gap:12px;
  width:min(360px, calc(100% - 48px));
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(219,232,244,.95);
  box-shadow:0 14px 34px rgba(15,31,66,.16);
  backdrop-filter:blur(10px);
}

.q-hero-audio-btn{
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:linear-gradient(135deg,#22b6c9,#37aef5);
  color:#fff;
  font-size:18px;
  box-shadow:0 10px 22px rgba(15,31,66,.16);
}

.q-hero-volume-label{
  flex:1;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:10px;
  color:#111936;
  font-size:13px;
  font-weight:900;
}

.q-hero-volume-slider{
  width:100%;
  accent-color:#22b6c9;
  cursor:pointer;
}

.q-hero-audio-controls.is-muted .q-hero-audio-btn{
  background:linear-gradient(135deg,#9aa7bd,#667085);
}

@media(max-width:700px){
  .q-hero-audio-controls{
    bottom:66px;
    width:calc(100% - 34px);
    padding:9px 10px;
    gap:9px;
  }

  .q-hero-audio-btn{
    width:38px;
    height:38px;
    font-size:16px;
  }

  .q-hero-volume-label{
    font-size:12px;
  }
}


/* =========================================================
   Qlumy Phase 14.1 — Logo Size Lock + Video Audio Controls Fix
   ========================================================= */
.header .brand,.footer .brand,.brand{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  line-height:1!important;
  min-width:0!important;
  max-width:220px!important;
  overflow:hidden!important;
  text-decoration:none!important;
}
.header .brand .logo,.footer .brand .logo,.brand .logo,.brand>span.logo{display:none!important}
.header .brand img,.footer .brand img,.brand-logo-img{
  display:block!important;
  width:auto!important;
  object-fit:contain!important;
  object-position:left center!important;
  flex:0 0 auto!important;
}
.header .brand img,.header .brand-logo-img{
  height:38px!important;
  max-height:38px!important;
  max-width:155px!important;
}
.footer .brand img,.footer .brand-logo-img{
  height:46px!important;
  max-height:46px!important;
  max-width:185px!important;
}
.brand-text-visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.header .nav,.nav{align-items:center!important}
.header .nav .brand{flex-shrink:1!important}
.q-hero-video-card{
  min-height:560px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  overflow:hidden!important;
  position:relative!important;
}
.q-hero-video-frame{
  width:100%!important;
  min-height:500px!important;
  border-radius:22px!important;
  overflow:hidden!important;
  position:relative!important;
  background:radial-gradient(circle at 50% 38%,rgba(64,205,224,.20),transparent 45%),linear-gradient(135deg,#effdff,#fff 58%,#fff8db)!important;
  border:1px solid var(--q-line,#dbe8f4)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.q-hero-video{
  width:100%!important;
  height:100%!important;
  min-height:500px!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}
.q-hero-sound-button{
  position:absolute!important;
  left:50%!important;
  bottom:24px!important;
  transform:translateX(-50%)!important;
  z-index:7!important;
  border:0!important;
  border-radius:999px!important;
  padding:13px 20px!important;
  background:linear-gradient(135deg,#22b6c9,#37aef5)!important;
  color:#fff!important;
  font-weight:950!important;
  font-size:14px!important;
  cursor:pointer!important;
  box-shadow:0 16px 38px rgba(15,31,66,.20)!important;
  white-space:nowrap!important;
}
.q-hero-sound-button.hidden{display:none!important}
.q-hero-sound-button.sound-on{background:linear-gradient(135deg,#17b978,#22b6c9)!important}
.q-hero-audio-controls{
  position:absolute!important;
  left:50%!important;
  bottom:76px!important;
  transform:translateX(-50%)!important;
  z-index:8!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:min(360px,calc(100% - 48px))!important;
  padding:10px 12px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.90)!important;
  border:1px solid rgba(219,232,244,.95)!important;
  box-shadow:0 14px 34px rgba(15,31,66,.16)!important;
  backdrop-filter:blur(10px)!important;
}
.q-hero-audio-btn{
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  background:linear-gradient(135deg,#22b6c9,#37aef5)!important;
  color:#fff!important;
  font-size:18px!important;
  box-shadow:0 10px 22px rgba(15,31,66,.16)!important;
}
.q-hero-volume-label{
  flex:1!important;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  align-items:center!important;
  gap:10px!important;
  color:#111936!important;
  font-size:13px!important;
  font-weight:900!important;
  margin:0!important;
}
.q-hero-volume-slider{
  width:100%!important;
  accent-color:#22b6c9!important;
  cursor:pointer!important;
}
.q-hero-audio-controls.is-muted .q-hero-audio-btn{background:linear-gradient(135deg,#9aa7bd,#667085)!important}
@media(max-width:900px){
  .header .brand,.brand{max-width:150px!important}
  .header .brand img,.header .brand-logo-img,.brand-logo-img{
    height:32px!important;
    max-height:32px!important;
    max-width:135px!important;
  }
  .footer .brand img,.footer .brand-logo-img{
    height:40px!important;
    max-height:40px!important;
    max-width:160px!important;
  }
  .q-hero-video-card{min-height:440px!important}
  .q-hero-video-frame,.q-hero-video{min-height:390px!important}
}
@media(max-width:520px){
  .header .brand,.brand{max-width:125px!important}
  .header .brand img,.header .brand-logo-img,.brand-logo-img{
    height:28px!important;
    max-height:28px!important;
    max-width:118px!important;
  }
  .footer .brand img,.footer .brand-logo-img{
    height:36px!important;
    max-height:36px!important;
    max-width:145px!important;
  }
  .q-hero-video-card{min-height:390px!important}
  .q-hero-video-frame,.q-hero-video{min-height:340px!important}
  .q-hero-audio-controls{
    bottom:64px!important;
    width:calc(100% - 34px)!important;
    padding:8px 10px!important;
    gap:8px!important;
  }
  .q-hero-audio-btn{
    width:36px!important;
    height:36px!important;
    font-size:15px!important;
  }
  .q-hero-volume-label{
    font-size:12px!important;
    gap:7px!important;
  }
  .q-hero-sound-button{
    bottom:15px!important;
    width:calc(100% - 48px)!important;
    max-width:270px!important;
    font-size:13px!important;
    padding:11px 14px!important;
  }
}


/* =========================================================
   Qlumy Build 15.2 — Goals Panel + Client Tools UI
   ========================================================= */
.qlumy-goals{margin-top:22px;transition:box-shadow .25s ease,transform .25s ease}
.qlumy-goals-highlight{box-shadow:0 0 0 4px rgba(34,182,201,.20),0 20px 70px rgba(15,31,66,.16)!important;transform:translateY(-2px)}
.qlumy-goals-empty{border:1px dashed var(--q-line,#dbe8f4);border-radius:18px;padding:18px;background:#f9fdff}
.qlumy-goals .small,.qlumy-goal-card .small{color:var(--q-muted,#5f6f92);font-size:.88rem;font-weight:800}
.qlumy-goal-card{border:1px solid var(--q-line,#dbe8f4);border-radius:20px;padding:18px;background:linear-gradient(135deg,#f8fdff,#fff)}
.qlumy-goal-status{display:inline-flex;border-radius:999px;padding:7px 11px;background:#e9fbff;color:#007b91;font-weight:950;font-size:.8rem;text-transform:capitalize}
.qlumy-goal-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.qlumy-goal-meta span{display:inline-flex;border-radius:999px;padding:7px 10px;background:#eef6fb;color:#536589;font-weight:850;font-size:.82rem}
.qlumy-checkin-item{margin-top:8px;padding:9px 11px;border-radius:12px;background:#f3fbff;color:#344767;font-weight:800}
@media(max-width:700px){.qlumy-goals{padding:18px!important}.qlumy-goal-meta{display:grid}}
