:root{
  --wowhub-accent:#7c5cff;
  --wowhub-bg:#0b0b0f;
  --wowhub-panel:#11111a;
  --wowhub-text:#f2f2f7;
  --wowhub-muted:#a1a1b2;
  --wowhub-border: rgba(255,255,255,.10);
  --wowhub-shadow: 0 30px 80px rgba(0,0,0,.55);
  --wowhub-radius: 18px;
  --wowhub-ease: cubic-bezier(.2,.8,.2,1);

  /* layout vars */
  --wowhub-topbar-h: 72px;
  --wowhub-footer-h: 56px;
}
.wowhub-theme-light{
  --wowhub-bg:#f6f7fb;
  --wowhub-panel:#ffffff;
  --wowhub-text:#14151a;
  --wowhub-muted:#5a5f6d;
  --wowhub-border: rgba(20,21,26,.10);
  --wowhub-shadow: 0 30px 80px rgba(20,21,26,.15);
}

.wowhub-launcher{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 999px;
  border:1px solid var(--wowhub-border);
  background: color-mix(in oklab, var(--wowhub-panel) 85%, #000 15%);
  color: var(--wowhub-text);
  cursor:pointer;
  transition: transform .18s var(--wowhub-ease), background .18s var(--wowhub-ease), border-color .18s var(--wowhub-ease);
}
.wowhub-launcher:hover{ transform: translateY(-1px); border-color: color-mix(in oklab, var(--wowhub-accent) 60%, var(--wowhub-border)); }
.wowhub-launcher:active{ transform: translateY(0); }

.wowhub-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid var(--wowhub-border);
  background: color-mix(in oklab, var(--wowhub-panel) 92%, #000 8%);
  color: var(--wowhub-text);
  box-shadow: var(--wowhub-shadow);
  cursor:pointer;
  transition: transform .18s var(--wowhub-ease), border-color .18s var(--wowhub-ease), opacity .2s;
}
.wowhub-fab:hover{ transform: translateY(-2px); border-color: color-mix(in oklab, var(--wowhub-accent) 60%, var(--wowhub-border)); }
.wowhub-fab__dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--wowhub-accent);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--wowhub-accent) 18%, transparent);
}
.wowhub-fab__label{ font-size: 14px; font-weight: 600; }

.wowhub-overlay{
  position: fixed;
  inset:0;
  z-index: 99999;
  display:none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
}
.wowhub-overlay.is-open{ display:block; }

.wowhub-overlay__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(10px);
  opacity:0;
  transition: opacity .22s var(--wowhub-ease);
}
.wowhub-overlay.is-open .wowhub-overlay__backdrop{ opacity:1; }

/* Bigger window (desktop) */
.wowhub-overlay__panel{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-48%) scale(.98);
  width: min(1200px, calc(100vw - 20px));
  height: min(820px, calc(100vh - 20px));
  background: var(--wowhub-panel);
  color: var(--wowhub-text);
  border:1px solid var(--wowhub-border);
  border-radius: var(--wowhub-radius);
  box-shadow: var(--wowhub-shadow);
  overflow:hidden;
  opacity:0;
  transition: transform .26s var(--wowhub-ease), opacity .18s var(--wowhub-ease);
}
.wowhub-overlay.is-open .wowhub-overlay__panel{
  opacity:1;
  transform: translate(-50%,-50%) scale(1);
}

.wowhub-topbar{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--wowhub-border);
  gap: 12px;
  min-height: var(--wowhub-topbar-h);
  box-sizing: border-box;
}
.wowhub-topbar__left{
  display:flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wowhub-brand{
  font-weight: 800;
  letter-spacing: .2px;
}
.wowhub-crumbs{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.wowhub-crumb{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  max-width: 280px;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--wowhub-border);
  background: color-mix(in oklab, var(--wowhub-panel) 85%, #000 15%);
  color: var(--wowhub-muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wowhub-crumb:hover{
  border-color: color-mix(in oklab, var(--wowhub-accent) 55%, var(--wowhub-border));
  color: var(--wowhub-text);
}
.wowhub-crumb.is-current{
  color: var(--wowhub-text);
  border-color: color-mix(in oklab, var(--wowhub-accent) 65%, var(--wowhub-border));
  background: color-mix(in oklab, var(--wowhub-accent) 10%, var(--wowhub-panel));
}
.wowhub-crumb.is-ellipsis{
  cursor: pointer;
  opacity: .9;
}
.wowhub-crumb.is-ellipsis:hover{
  opacity: 1;
}

.wowhub-topbar__actions{ display:flex; gap:8px; }
.wowhub-iconbtn{
  width:38px;height:38px;
  border-radius: 12px;
  border:1px solid var(--wowhub-border);
  background: transparent;
  color: var(--wowhub-text);
  cursor:pointer;
  transition: transform .15s var(--wowhub-ease), border-color .15s var(--wowhub-ease), background .15s var(--wowhub-ease);
}
.wowhub-iconbtn:hover{ border-color: color-mix(in oklab, var(--wowhub-accent) 55%, var(--wowhub-border)); background: color-mix(in oklab, var(--wowhub-accent) 10%, transparent); }
.wowhub-iconbtn:active{ transform: scale(.98); }

.wowhub-body{
  height: calc(100% - var(--wowhub-topbar-h) - var(--wowhub-footer-h));
  overflow:auto;
  padding: 18px;
  box-sizing: border-box;
}
.wowhub-footer{
  min-height: var(--wowhub-footer-h);
  display:flex;
  align-items:center;
  justify-content:center;
  border-top:1px solid var(--wowhub-border);
  padding: 0 14px;
  color: var(--wowhub-muted);
  font-size: 12px;
  box-sizing: border-box;
}
.wowhub-footer code{ color: var(--wowhub-text); }

.wowhub-step{
  max-width: 920px;
  margin: 0 auto;
  animation: wowhubIn .26s var(--wowhub-ease);
}
@keyframes wowhubIn{
  from{ transform: translateY(8px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}
.wowhub-step h1,.wowhub-step h2,.wowhub-step h3{ color: var(--wowhub-text); }
.wowhub-step p, .wowhub-step li{ color: color-mix(in oklab, var(--wowhub-text) 92%, var(--wowhub-muted)); }
.wowhub-step img{ max-width: 100%; height:auto; border-radius: 14px; border:1px solid var(--wowhub-border); }

.wowhub-choices{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.wowhub-choice{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--wowhub-border);
  background: color-mix(in oklab, var(--wowhub-panel) 88%, #000 12%);
  color: var(--wowhub-text);
  cursor:pointer;
  transition: transform .16s var(--wowhub-ease), border-color .16s var(--wowhub-ease), background .16s var(--wowhub-ease);
  text-decoration: none;
}
.wowhub-choice:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--wowhub-accent) 65%, var(--wowhub-border));
  background: color-mix(in oklab, var(--wowhub-accent) 10%, var(--wowhub-panel));
}
.wowhub-choice:active{ transform: translateY(0); }
.wowhub-choice__arrow{ opacity: .9; }

.wowhub-skel__line{
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: wowhubShimmer 1.2s infinite linear;
  margin: 10px 0;
}
.wowhub-skel__line--short{ width: 60%; }
@keyframes wowhubShimmer{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 200% 50%; }
}

/* Mobile fixes: use dynamic viewport height */
@media (max-width: 600px){
  :root{
    --wowhub-topbar-h: 64px;
    --wowhub-footer-h: 44px;
  }

  .wowhub-overlay__panel{
    width: calc(100vw - 32px);
    height: calc(100dvh - 32px); /* IMPORTANT: iOS dynamic viewport */
    border-radius: 16px;
  }

  .wowhub-topbar{ padding: 10px 10px; }
  .wowhub-body{ padding: 12px; }
  .wowhub-footer{ font-size: 11px; padding: 0 10px; }
  .wowhub-choice{ width: 100%; justify-content: space-between; }
  .wowhub-crumb{ max-width: 160px; }
}