/* ══════════════════════════════════════
   WOW Operations — Visual Workflow CSS
   Phase-based diagram, glow-ripple hover
   ══════════════════════════════════════ */

/* ── Overlay shell ─────────────────────── */
#opsSimulation {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 900;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#opsSimulation.open {
  display: block;
  animation: opsOverlayIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes opsOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Inner container ──────────────────── */
.wow-ops-inner {
  min-height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Header ───────────────────────────── */
.wow-ops-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.wow-ops-header-left {
  flex: 1;
}

.wow-ops-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wow-ops-header-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.wow-ops-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.03em;
  line-height: 1;
}

.wow-ops-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.wow-ops-level-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ops-close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ops-close-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* ── Body ─────────────────────────────── */
.wow-ops-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Phase block ──────────────────────── */
.wow-op-phase {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  padding: 16px 18px 18px;
  transition: border-color 0.3s;
}
.wow-op-phase:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.wow-op-phase.phase-locked {
  opacity: 0.45;
}

/* Phase header row */
.wow-op-phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wow-op-phase-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wow-op-phase-icon {
  width: 26px;
  height: 26px;
  background: var(--phase-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070a15;
  flex-shrink: 0;
}

.wow-op-phase-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--phase-color);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.wow-op-phase-timing {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 2px 9px;
  white-space: nowrap;
}

.wow-op-phase-level {
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
  border: 1px solid;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.wow-op-phase-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--phase-color), transparent);
  opacity: 0.25;
}

/* ── Nodes row ────────────────────────── */
.wow-op-nodes-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* ── Individual node card ─────────────── */
.wow-op-node {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(16px);
}

.wow-op-node.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s, border-color 0.25s;
}

.wow-op-node.locked {
  cursor: default;
  opacity: 0.4;
}

.wow-op-node:not(.locked):hover {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--node-color);
  box-shadow: 0 0 18px -4px var(--node-color),
              0 8px 24px rgba(0,0,0,0.4);
}

/* Glow ripple on hover */
.wow-op-ripple {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--node-color) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  transform: scale(0.5);
}

.wow-op-node:not(.locked):hover .wow-op-ripple {
  opacity: 0.08;
  transform: scale(1);
  animation: wowRipplePulse 1.5s ease-in-out infinite;
}

@keyframes wowRipplePulse {
  0%, 100% { opacity: 0.06; transform: scale(0.9); }
  50%       { opacity: 0.12; transform: scale(1.05); }
}

/* Gold sheen sweep on hover */
.wow-op-node:not(.locked)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.06) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s;
}
.wow-op-node:not(.locked):hover::after {
  opacity: 1;
}

/* Expanded detail reveal */
.wow-op-detail {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
}

.wow-op-node.expanded .wow-op-detail {
  max-height: 200px;
  opacity: 1;
}

/* Node inner layout */
.wow-op-node-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wow-op-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--node-color), transparent);
  border: 1px solid var(--node-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--node-color);
  flex-shrink: 0;
}

.wow-op-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  align-self: center;
  flex-shrink: 0;
}

.wow-op-text {
  flex: 1;
  min-width: 0;
}

.wow-op-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.wow-op-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  line-height: 1.4;
}

.wow-op-lock-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 2px 8px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ── Confetti particles ───────────────── */
.wow-confetti-particle {
  position: absolute;
  width: var(--sz);
  height: var(--sz);
  background: var(--col);
  border-radius: var(--br);
  transform-origin: center;
  animation: wowConfettiBurst var(--dur) cubic-bezier(0.22, 1, 0.36, 1) var(--delay) both;
}

@keyframes wowConfettiBurst {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.3); opacity: 0; }
}

/* ── Proposal ops overview ────────────── */
.ops-overview-wrap {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 10px;
  padding: 16px;
}

.ops-overview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 12px;
}

.ops-overview-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.ops-overview-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.ops-overview-num {
  font-size: 10px;
  font-weight: 700;
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ops-overview-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.08));
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #c9a84c;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.ops-overview-btn:hover {
  background: rgba(201, 168, 76, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2);
}

/* ── Proposal CTA button ──────────────── */
.prop-ops-cta {
  text-align: center;
}

.prop-ops-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.4);
  color: #c9a84c;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  margin: 0 auto;
}
.prop-ops-launch-btn:hover {
  background: rgba(201,168,76,0.28);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 600px) {
  .wow-ops-inner { padding: 16px 12px 30px; }
  .wow-op-nodes-row { grid-template-columns: 1fr; }
  .wow-ops-title { font-size: 20px; }
}

/* ── Super Campaign Engine (L4) ──────── */
.super-campaigns-intro {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.14);
  border-radius: 8px;
}

.super-campaigns-intro strong {
  color: #c9a84c;
}

.super-campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.super-campaign-card {
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 10px;
  padding: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.25s;
}

.super-campaign-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.super-campaign-card:hover {
  border-color: rgba(201, 168, 76, 0.38);
  background: rgba(201, 168, 76, 0.07);
}

.super-campaign-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.super-campaign-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.7);
  flex-shrink: 0;
  animation: superDotPulse 2.4s ease-in-out infinite;
}

.super-campaign-dot.done {
  background: #c9a84c;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.55);
  animation: none;
}

@keyframes superDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.super-campaign-quarter {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.6);
  background: rgba(201, 168, 76, 0.1);
  border-radius: 10px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
  margin-left: auto;
}

.super-campaign-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.super-campaign-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9c7c39, #c9a84c, #f0d080);
  border-radius: 2px;
}

.super-campaign-pct {
  font-size: 10px;
  color: rgba(201, 168, 76, 0.5);
  margin-bottom: 10px;
  text-align: right;
  letter-spacing: 0.02em;
}

.super-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}

.super-tasks-list::-webkit-scrollbar { width: 2px; }
.super-tasks-list::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.2); border-radius: 2px; }

.super-task {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.28);
  padding: 2.5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: color 0.2s;
}

.super-task:last-child { border-bottom: none; }
.super-task.done  { color: rgba(255, 255, 255, 0.58); }
.super-task.active {
  color: #c9a84c;
  font-weight: 600;
}

.super-task-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.super-task-dot.done {
  background: rgba(201, 168, 76, 0.55);
  border-color: rgba(201, 168, 76, 0.75);
}

.super-task-dot.active {
  background: #c9a84c;
  border-color: #c9a84c;
  box-shadow: 0 0 5px rgba(201, 168, 76, 0.55);
}

.super-campaigns-scale-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(201, 168, 76, 0.55);
  padding: 10px 14px;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
}

@media (max-width: 750px) {
  .super-campaigns-grid { grid-template-columns: 1fr; }
}
