/* Smart Door Manuals Hub · premium presentation layer · v3 */
body[data-hub-theme="premium-v3"] {
  --hub-blue:#1838c6;
  --hub-sky:#4fa3e3;
  --hub-gold:#ffcc33;
  --hub-line:rgba(255,255,255,.09);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    radial-gradient(900px 540px at 85% -8%,rgba(24,56,198,.25),transparent 62%),
    radial-gradient(650px 430px at -5% 20%,rgba(79,163,227,.08),transparent 66%),
    #090b10;
  background-size:42px 42px,42px 42px,auto,auto,auto;
  background-attachment:fixed;
}

body[data-hub-theme="premium-v3"] header {
  background:rgba(9,11,16,.76);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  backdrop-filter:blur(22px) saturate(150%);
  box-shadow:0 12px 34px rgba(0,0,0,.16);
}

body[data-hub-theme="premium-v3"] .hero {
  isolation:isolate;
  background:
    radial-gradient(640px 330px at var(--sd-glow-x,86%) var(--sd-glow-y,4%),rgba(79,163,227,.3),transparent 62%),
    linear-gradient(145deg,#223fd0,#192966 54%,#151a25);
  box-shadow:0 30px 80px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.1);
}

body[data-hub-theme="premium-v3"] .hero::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.06),transparent 34%);
}

body[data-hub-theme="premium-v3"] .hero h1 { text-wrap:balance;letter-spacing:-.045em; }
body[data-hub-theme="premium-v3"] .hero p { text-wrap:pretty; }

body[data-hub-theme="premium-v3"] .toolbar {
  position:sticky;
  top:82px;
  z-index:12;
  padding:12px;
  border:1px solid var(--hub-line);
  border-radius:17px;
  background:rgba(15,18,27,.78);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 18px 44px rgba(0,0,0,.22);
}

body[data-hub-theme="premium-v3"] .manual-card {
  position:relative;
  overflow:hidden;
  border-color:var(--hub-line);
  box-shadow:0 18px 50px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .25s cubic-bezier(.22,.61,.36,1),border-color .25s ease,box-shadow .25s ease;
}

body[data-hub-theme="premium-v3"] .manual-card::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.55;
  background:radial-gradient(360px circle at var(--sd-glow-x,50%) var(--sd-glow-y,20%),rgba(79,163,227,.13),transparent 66%);
}

body[data-hub-theme="premium-v3"] .manual-card > * { position:relative;z-index:1; }
body[data-hub-theme="premium-v3"] .visual { border-bottom-color:var(--hub-line); }
body[data-hub-theme="premium-v3"] .visual img { transition:transform .5s cubic-bezier(.22,.61,.36,1),filter .35s ease; }
body[data-hub-theme="premium-v3"] .content h3 { text-wrap:balance; }
body[data-hub-theme="premium-v3"] .content p { text-wrap:pretty; }

body[data-hub-theme="premium-v3"] .filter,
body[data-hub-theme="premium-v3"] .search {
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

body[data-hub-theme="premium-v3"] .filter.active {
  box-shadow:0 10px 28px rgba(24,56,198,.22),inset 0 1px 0 rgba(255,255,255,.12);
}

body[data-hub-theme="premium-v3"] .how {
  border-color:var(--hub-line);
  box-shadow:0 20px 58px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.045);
}

@media (hover:hover) and (pointer:fine) {
  body[data-hub-theme="premium-v3"] .manual-card:hover {
    transform:translateY(-5px);
    border-color:rgba(143,178,255,.27);
    box-shadow:0 28px 72px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.07);
  }
  body[data-hub-theme="premium-v3"] .manual-card:hover .visual img { transform:scale(1.025);filter:saturate(1.05); }
}

@media (max-width:820px) {
  body[data-hub-theme="premium-v3"] { background-size:30px 30px,30px 30px,auto,auto,auto; }
  body[data-hub-theme="premium-v3"] .toolbar { top:72px; }
}

@media (max-width:520px) {
  body[data-hub-theme="premium-v3"] .toolbar { top:65px;margin-inline:-2px;padding:9px; }
  body[data-hub-theme="premium-v3"] .hero h1 { font-size:clamp(26px,7.6vw,30px);line-height:1.18;letter-spacing:-.055em;overflow-wrap:anywhere; }
}

@media (prefers-reduced-motion:reduce) {
  body[data-hub-theme="premium-v3"] *,
  body[data-hub-theme="premium-v3"] *::before,
  body[data-hub-theme="premium-v3"] *::after {
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
  }
}

@media print {
  body[data-hub-theme="premium-v3"] { background:#fff!important;color:#111!important; }
  body[data-hub-theme="premium-v3"] .toolbar { position:static; }
}
