/* ══════════════════════════════════════
   WOW SAMIACC — Tab 5: WOW Workflows
   Orbital ring diagram — Sprint 14.1
   Clean rings, no arrows, fixed 900px
   ══════════════════════════════════════ */

/* ── Board wrapper ── */
.wf-board {
  padding: var(--sp-2xl) var(--sp-lg);
  max-width: 960px;
  margin: 0 auto;
}

/* ── Header ── */
.wf-bh { text-align: center; margin-bottom: var(--sp-xl); }

.wf-badge {
  display: inline-block;
  font-size: var(--fs-xxs);
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 14px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md);
}

.wf-title {
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.wf-sub {
  font-size: var(--fs-sm);
  color: var(--text3);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Level selector tabs — inline with Reset + L4 badge ── */
.wf-ltabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
}

.wf-lt {
  padding: 7px 15px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  color: var(--text3);
  font-size: var(--fs-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.wf-lt:hover { color: var(--text2); border-color: var(--gold-border); }
.wf-lta {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(198,162,86,0.08);
}

/* ── Controls (now inside .wf-ltabs — kept for backwards compat) ── */
.wf-ctrl { display: none; }

.wf-rst {
  padding: 6px 16px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  color: var(--text3);
  font-size: var(--fs-xxs);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.wf-rst:hover { border-color: var(--gold-border); color: var(--gold); }

/* ── Hint — now inline inside CI panel ── */
.wf-hint { display: none; } /* legacy, hidden — replaced by .wf-ci-hint */
.wf-ci-hint {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--gold);
  opacity: 0.65;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: opacity 0.5s ease;
  flex-shrink: 0;
}
.wf-hint-gone { opacity: 0 !important; pointer-events: none; }

/* ── Scroll wrapper ── */
.wf-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible; /* JS overrides per view: fit=hidden, explore=visible, inspect=auto */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom; /* enable native pinch-zoom */
  margin: 0 auto var(--sp-xl);
  scrollbar-width: thin;
  scrollbar-color: rgba(198,162,86,0.15) transparent;
}
.wf-scroll-wrap::-webkit-scrollbar { height: 4px; }
.wf-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(198,162,86,0.15); border-radius: 4px; }
.wf-scroll-wrap::-webkit-scrollbar-track { background: transparent; }

/* ── Orbital container — JS sets width/height dynamically ── */
.wf-orbital {
  position: relative;
  flex-shrink: 0;
  margin: 0 auto;
  overflow: hidden;
}

.wf-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* ══════════════════════════════════════
   NODE ELEMENTS
══════════════════════════════════════ */

.wf-nw {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.wf-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pulse ring (sibling of disc) */
.wf-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: border-color 0.35s ease, opacity 0.35s ease;
}

/* Disc */
.wf-disc {
  border-radius: 50%;
  background: var(--bg2);
  border: 1.5px solid rgba(198,162,86,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  z-index: 1;
}

/* Lucide icon inside disc */
.wf-licon {
  width: 50%;
  height: 50%;
  color: rgba(198,162,86,0.35);
  transition: color 0.35s ease;
  flex-shrink: 0;
}

/* Platform logo inside disc — fills circle, clips white padding */
.wf-pimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.35;
  transition: opacity 0.35s ease;
  flex-shrink: 0;
  display: block;
}

/* Label below disc */
.wf-nl {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  line-height: 1.35;
  white-space: pre-wrap;
  max-width: 82px;
  transition: color 0.35s ease;
  pointer-events: none;
}

/* Level badge */
.wf-lbadge {
  position: absolute;
  top: -6px; right: -6px;
  font-size: 0.52rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  z-index: 4;
  pointer-events: none;
}
.wf-b2 { background: #1a73e8; color: #fff; }
.wf-b3 { background: #7c3aed; color: #fff; }
.wf-b4 { background: var(--gold); color: var(--bg); }
.wf-bx { background: #e67e22; color: #fff; }

/* ══════════════════════════════════════
   NODE STATES
══════════════════════════════════════ */

/* LOCKED */
[data-state="locked"] .wf-disc {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}
[data-state="locked"] .wf-licon { color: rgba(255,255,255,0.12); }
[data-state="locked"] .wf-pimg  { opacity: 0.1; filter: grayscale(1); }
[data-state="locked"] .wf-nl    { color: rgba(255,255,255,0.14); }

/* READY — pulsing */
[data-state="ready"] .wf-disc {
  border-color: rgba(198,162,86,0.55);
  box-shadow: 0 0 16px rgba(198,162,86,0.25);
}
[data-state="ready"] .wf-pulse {
  border-color: rgba(198,162,86,0.45);
  opacity: 1;
  animation: wfPulse 1.5s ease-in-out infinite;
}
[data-state="ready"] .wf-licon { color: rgba(198,162,86,0.7); }
[data-state="ready"] .wf-pimg  { opacity: 0.7; filter: none; }
[data-state="ready"] .wf-nl    { color: rgba(255,255,255,0.55); }

/* ACTIVE */
[data-state="active"] .wf-disc {
  background: rgba(198,162,86,0.10);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(198,162,86,0.35), 0 0 6px rgba(198,162,86,0.2);
}
[data-state="active"] .wf-pulse {
  border-color: rgba(198,162,86,0.28);
  opacity: 1;
  animation: wfExpand 0.55s ease-out forwards;
}
[data-state="active"] .wf-licon { color: var(--gold); }
[data-state="active"] .wf-pimg  { opacity: 1; filter: none; }
[data-state="active"] .wf-nl    { color: rgba(255,255,255,0.75); }

/* ══════════════════════════════════════
   SPECIAL NODES
══════════════════════════════════════ */

.wf-nw-center .wf-disc {
  background: linear-gradient(135deg, rgba(198,162,86,0.18), rgba(198,162,86,0.06));
  border: 2px solid rgba(198,162,86,0.3);
}
.wf-nw-center[data-state="active"] .wf-disc {
  background: linear-gradient(135deg, rgba(198,162,86,0.32), rgba(198,162,86,0.10));
  box-shadow: 0 0 32px rgba(198,162,86,0.5), 0 0 60px rgba(198,162,86,0.18);
  border-color: var(--gold);
}
.wf-nw-center .wf-nl { max-width: 100px; font-size: 0.68rem; }

.wf-nw-sat .wf-disc { border-color: rgba(198,162,86,0.22); }
.wf-nw-sat .wf-nl { font-size: 0.58rem; }

/* WOW brand nodes — same disc size as ring peers, logo scaled up inside */
.wf-nw-brand .wf-disc { overflow: hidden; }
.wf-nw-brand .wf-pimg { transform: scale(1.38); object-fit: cover; }

.wf-ns .wf-disc {
  background: rgba(198,162,86,0.08);
  border-style: dashed;
  border-color: rgba(198,162,86,0.4);
}

.wf-ne .wf-disc {
  border-style: dashed;
  border-color: rgba(230,126,34,0.45);
}

/* ── New Quarter auto-play button ── */
.wf-nq-btn {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.5);
  color: #c9a84c;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.wf-nq-btn:hover {
  background: rgba(201,168,76,0.28);
  border-color: rgba(201,168,76,0.75);
}

/* ── L4 simultaneous campaigns badge ── */
.wf-l4badge {
  display: inline-flex;
  align-items: center;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.32);
  color: #c9a84c;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── New Quarter node state ── */
[data-state="new-quarter"] .wf-disc {
  background: rgba(201,168,76,0.16);
  border-color: var(--gold);
  border-style: dashed;
  box-shadow: 0 0 18px rgba(198,162,86,0.30);
}
[data-state="new-quarter"] .wf-licon { color: var(--gold); }
[data-state="new-quarter"] .wf-nl    { color: var(--gold); }

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */

@keyframes wfPulse {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%      { transform: scale(1.6); opacity: 0.12; }
}

@keyframes wfExpand {
  from { transform: scale(1);   opacity: 0.6; }
  to   { transform: scale(2.4); opacity: 0; }
}

@keyframes wfPt {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--pdx),var(--pdy)) scale(0.1); opacity: 0; }
}

@keyframes wfCoin {
  0%   { transform: translate(0, 0) scale(1);   opacity: 1; }
  60%  { opacity: 0.85; }
  100% { transform: translate(var(--coin-tx, 0px), var(--coin-ty, 140px)) scale(0.3); opacity: 0; }
}

/* ══════════════════════════════════════
   COMPLETE BANNER
══════════════════════════════════════ */

.wf-complete {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-xl);
  background: linear-gradient(135deg, rgba(198,162,86,0.07), rgba(198,162,86,0.02));
  border: 1px solid rgba(198,162,86,0.18);
  border-radius: var(--r-xl);
  margin-top: var(--sp-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(16px);
}
.wf-complete.wf-done {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wf-cico { font-size: 2.4rem; margin-bottom: var(--sp-sm); }

.wf-ctitle {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
}

.wf-csub {
  font-size: var(--fs-sm);
  color: var(--text3);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
}

.wf-cbtn {
  margin-top: var(--sp-lg);
  padding: 8px 24px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.40);
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--r-full);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background var(--t-fast), border-color var(--t-fast);
  display: inline-block;
}
.wf-cbtn:hover {
  background: rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.65);
}

/* ══════════════════════════════════════
   DETAIL POPUP
══════════════════════════════════════ */

.wf-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  background: rgba(5,7,14,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.wf-popen {
  opacity: 1;
  pointer-events: auto;
}

.wf-pi {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg2);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl) var(--sp-xl);
  box-shadow: var(--sh-gold);
  text-align: center;
  animation: wfPopIn 0.28s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes wfPopIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.wf-pc {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--t-fast);
}
.wf-pc:hover { color: var(--gold); }

.wf-pico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(198,162,86,0.08);
  border: 1px solid var(--gold-border);
  margin: 0 auto var(--sp-md);
}
.wf-pico .wf-licon { color: var(--gold); width: 52%; height: 52%; }
.wf-pico .wf-pimg  { width: 100%; height: 100%; opacity: 1; }

.wf-ptitle {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}

.wf-pdesc {
  font-size: var(--fs-sm);
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
}

.wf-ptags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.wf-ptag {
  font-size: var(--fs-xxs);
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
}

/* ══════════════════════════════════════
   PARTICLES + COINS
══════════════════════════════════════ */

.wf-pt, .wf-coin {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 900px) {
  /* Base mobile label size (explore = default) */
  .wf-nl { max-width: 64px; font-size: 0.55rem; letter-spacing: 0.04em; }
  .wf-nw-center .wf-nl { max-width: 80px; }

  /* Fit: compact orbital — slightly smaller text */
  #wfScrollWrap[data-wfview="fit"] .wf-nl { max-width: 58px !important; font-size: 0.48rem !important; }
  #wfScrollWrap[data-wfview="fit"] .wf-nw-center .wf-nl { max-width: 72px !important; }

  /* Inspect: zoomed-in view — bigger, readable text */
  #wfScrollWrap[data-wfview="inspect"] .wf-nl { max-width: 82px !important; font-size: 0.65rem !important; }
  #wfScrollWrap[data-wfview="inspect"] .wf-nw-center .wf-nl { max-width: 100px !important; font-size: 0.72rem !important; }
}

/* Inspect: cap height so it stays on screen and scrolls inside */
#wfScrollWrap[data-wfview="inspect"] {
  max-height: 82vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(198,162,86,0.2) transparent;
}
}

@media (max-width: 600px) {
  .wf-board { padding: var(--sp-xl) var(--sp-sm); }
  .wf-title { font-size: var(--fs-h2); }
  .wf-ltabs { gap: 4px; }
  .wf-lt    { padding: 5px 10px; font-size: 0.6rem; }
}

/* ══════════════════════════════════════
   COMMISSION SATELLITE SPAWN
══════════════════════════════════════ */

/* Hidden above Revenue In until it activates */
.wf-nw-sat:not(.wf-sat-live) {
  transform: translate(-50%, var(--sat-dy, -420px)) scale(0.05);
  opacity: 0;
  pointer-events: none !important;
}

/* Drops in with spring overshoot when Revenue In activates */
.wf-nw-sat.wf-sat-live {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   0.5s ease 0.1s;
}

/* ══════════════════════════════════════
   CLIENT INPUT PANEL
══════════════════════════════════════ */

.wf-ci-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-md);
}

.wf-ci-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(201,168,76,0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-right: 2px;
}

.wf-ci-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: 20px;
  color: rgba(255,255,255,0.38);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: border-color 0.28s ease, color 0.28s ease,
              background 0.28s ease, box-shadow 0.28s ease;
}
.wf-ci-btn:hover {
  border-color: rgba(201,168,76,0.42);
  color: rgba(255,255,255,0.72);
  background: rgba(201,168,76,0.05);
}
.wf-ci-btn.wf-ci-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.09);
  box-shadow: 0 0 14px rgba(201,168,76,0.16);
}

.wf-ci-wow-btn {
  border-color: rgba(201,168,76,0.28);
  color: rgba(201,168,76,0.55);
}
.wf-ci-wow-btn:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,0.55);
}
.wf-ci-wow-btn.wf-ci-active {
  color: var(--gold);
  background: rgba(201,168,76,0.11);
  box-shadow: 0 0 18px rgba(201,168,76,0.22);
}

.wf-ci-sep {
  width: 1px;
  height: 18px;
  background: rgba(201,168,76,0.18);
  flex-shrink: 0;
  margin: 0 2px;
}

/* Ring preview icons inside panel buttons */
.wf-ci-rp {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  flex-shrink: 0;
  opacity: 0.7;
}
.wf-ci-rp2::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.5;
}
.wf-ci-rp3::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.5;
}
.wf-ci-rp3::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.28;
}

/* ══════════════════════════════════════
   CLIENT INPUT RING OVERLAYS
══════════════════════════════════════ */

.wf-ci-rings {
  position: absolute;
  /* sized to the largest ring so child left:50%/top:50% resolves correctly */
  width: calc(var(--disc-sz, 56px) + 70px);
  height: calc(var(--disc-sz, 56px) + 70px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.wf-ci-sheen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--disc-sz, 56px) + 60px);
  height: calc(var(--disc-sz, 56px) + 60px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,168,76,0.14) 0%, transparent 68%);
  filter: blur(7px);
  border-radius: 50%;
  animation: wf-sheen-pulse 3s ease-in-out infinite;
}

.wf-ci-ring {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: wf-ring-enter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             wf-ring-pulse  3s ease-in-out infinite;
}

.wf-ci-r1 {
  width: calc(var(--disc-sz, 56px) + 22px);
  height: calc(var(--disc-sz, 56px) + 22px);
  border: 1.5px solid rgba(201,168,76,0.7);
  animation-delay: 0s, 0.55s;
}
.wf-ci-r2 {
  width: calc(var(--disc-sz, 56px) + 40px);
  height: calc(var(--disc-sz, 56px) + 40px);
  border: 1.5px solid rgba(201,168,76,0.42);
  animation-delay: 0.09s, 0.64s;
}
.wf-ci-r3 {
  width: calc(var(--disc-sz, 56px) + 60px);
  height: calc(var(--disc-sz, 56px) + 60px);
  border: 1.5px solid rgba(201,168,76,0.22);
  animation-delay: 0.18s, 0.73s;
}

@keyframes wf-ring-enter {
  to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes wf-ring-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes wf-sheen-pulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.38; transform: translate(-50%, -50%) scale(0.9); }
}

/* ── Node dim/glow states ── */
.wf-nw.wf-ci-dim {
  opacity: 0.3;
  transition: opacity 0.38s ease;
}

.wf-nw.wf-ci-dim-client {
  opacity: 0.2;
  transition: opacity 0.38s ease;
}

/* WOW-exclusive node: breathing gold disc glow */
.wf-nw.wf-ci-glow-wow .wf-disc {
  border-color: rgba(201,168,76,0.88) !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.18),
              0 0 18px rgba(201,168,76,0.55),
              0 0 42px rgba(201,168,76,0.22) !important;
  animation: wf-wow-glow 2.4s ease-in-out infinite !important;
}

/* Dual expanding ripple rings on .wf-node (no overflow:hidden — rings escape the disc) */
.wf-nw.wf-ci-glow-wow .wf-node::before,
.wf-nw.wf-ci-glow-wow .wf-node::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.65);
  pointer-events: none;
  z-index: 0;
}
/* First ripple — starts immediately */
.wf-nw.wf-ci-glow-wow .wf-node::before {
  animation: wf-wow-ripple 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
/* Second ripple — offset by half a cycle for continuous wave */
.wf-nw.wf-ci-glow-wow .wf-node::after {
  animation: wf-wow-ripple 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) 1.2s infinite;
}

@keyframes wf-wow-glow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(201,168,76,0.14),
                0 0 14px rgba(201,168,76,0.46),
                0 0 36px rgba(201,168,76,0.18);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(201,168,76,0.30),
                0 0 28px rgba(201,168,76,0.70),
                0 0 58px rgba(201,168,76,0.30);
  }
}
@keyframes wf-wow-ripple {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.70; }
  70%  { opacity: 0.18; }
  100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
}

/* ══════════════════════════════════════
   VIEW MODE BUTTONS (Fit / Explore / Inspect)
══════════════════════════════════════ */

/* View-mode button group — always on one row, never wraps */
.wf-vtabs {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.wf-vw {
  padding: 5px 13px;
  background: none;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.25);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.wf-vw:hover {
  color: rgba(255,255,255,0.58);
  border-color: rgba(201,168,76,0.32);
}
.wf-vwa {
  color: rgba(201,168,76,0.88);
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.06);
}

/* ══════════════════════════════════════
   AKOMIC BRAND BLOCK
══════════════════════════════════════ */

.wf-akomic-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 0 8px;
  margin-top: -4px;
}

.wf-ak-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(201,168,76,0.30);
  box-shadow: 0 0 18px rgba(201,168,76,0.14), 0 0 6px rgba(201,168,76,0.08);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.wf-akomic-brand:hover .wf-ak-logo {
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 0 26px rgba(201,168,76,0.28), 0 0 10px rgba(201,168,76,0.14);
}

.wf-ak-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.wf-ak-powered {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.42);
}

.wf-ak-name {
  font-family: var(--font-body, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(201,168,76,0.78);
}
