/* ==========================================================================
   Cybergen — Vulnerability Management page (builds on ai.css components)
   ========================================================================== */
.vm-hero .svc-hero-grid { grid-template-columns: 1fr 1.05fr; }

/* dashboard extras */
.vm-top { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.vm-gauge { padding: 10px; border-radius: 10px; background: rgba(148,212,244,.06); border: 1px solid rgba(148,212,244,.14); text-align: center; }
.vm-gauge svg { width: 100%; height: auto; display: block; }
.vm-gauge small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.vm-sev { display: grid; gap: 7px; padding: 12px; border-radius: 10px; background: rgba(148,212,244,.04); border: 1px solid rgba(148,212,244,.12); }
.vm-sev div { display: grid; grid-template-columns: 62px 1fr 34px; gap: 8px; align-items: center; font-size: 11px; color: rgba(255,255,255,.7); }
.vm-sev i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.vm-sev i b { display: block; height: 100%; border-radius: 99px; }
.vm-sev span:last-child { text-align: right; color: #fff; font-weight: 600; }
.vm-list div { grid-template-columns: 1.1fr 1.5fr auto !important; }
.vm-list code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #fff; }

/* two ways */
.vm-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.vm-way { position: relative; overflow: hidden; padding: 38px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.vm-way.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.vm-way .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--blue-2); }
.vm-way.dark .tag { color: var(--accent); }
.vm-way h3 { font-size: 26px; line-height: 1.2; margin: 12px 0 12px; color: var(--navy); }
.vm-way.dark h3 { color: #fff; }
.vm-way p { color: var(--muted); line-height: 1.65; margin: 0 0 18px; }
.vm-way.dark p { color: rgba(255,255,255,.72); }
.vm-way ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.vm-way li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); }
.vm-way.dark li { color: rgba(255,255,255,.88); }
.vm-way li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-2); margin-top: 1px; }
.vm-way.dark li svg { color: var(--accent); }
.vm-way .glyph { position: absolute; right: -30px; top: -30px; width: 190px; height: 190px; opacity: .08; color: var(--blue-2); }
.vm-way.dark .glyph { color: var(--accent); opacity: .12; }

/* funnel */
.vm-funnel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-top: 50px; }
.vm-funnel svg { width: 100%; height: auto; display: block; }
.vm-funnel .why { display: grid; gap: 16px; }
.vm-funnel .why > div { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.vm-funnel .why .n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--accent); font-weight: 800; font-size: 13px; }
.vm-funnel .why h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.vm-funnel .why p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* stats band */
.vm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.vm-stat { padding: 28px; border-radius: 16px; background: rgba(148,212,244,.05); border: 1px solid var(--line-dark); }
.vm-stat strong { display: block; font-size: 46px; font-weight: 800; color: #fff; line-height: 1; }
.vm-stat strong em { font-style: normal; color: var(--accent); }
.vm-stat p { margin: 12px 0 0; color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.6; }
.vm-src { margin-top: 18px; text-align: center; font-size: 12px; color: rgba(255,255,255,.45); }

/* lifecycle + surface */
.vm-cycle { display: grid; grid-template-columns: 480px 1fr; gap: 56px; align-items: center; margin-top: 50px; }
.vm-cycle svg { width: 100%; height: auto; display: block; }
.vm-cycle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vm-cycle-list div { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.vm-cycle-list small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--blue-2); }
.vm-cycle-list h3 { margin: 4px 0 6px; font-size: 16px; color: var(--navy); }
.vm-cycle-list p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.vm-surface { margin-top: 46px; max-width: 980px; margin-left: auto; margin-right: auto; }
.vm-surface svg { width: 100%; height: auto; display: block; }

/* prioritisation compare */
.vm-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; margin-top: 48px; }
.vm-card { padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(7,28,66,.06); }
.vm-card.hot { border: 2px solid #ef4444; }
.vm-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.vm-card code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 700; color: var(--navy); }
.vm-card .cvss { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.vm-card .cvss strong { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.vm-card .cvss span { font-size: 12px; color: var(--muted); }
.vm-card .ctx { display: grid; gap: 8px; margin-bottom: 18px; }
.vm-card .ctx div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--light); font-size: 13.5px; color: var(--ink); }
.vm-card .ctx b { font-weight: 600; }
.vm-card .verdict { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.vm-card .verdict svg { width: 20px; height: 20px; flex-shrink: 0; }
.vm-card .verdict.later { background: #eef6fb; color: var(--blue); }
.vm-card .verdict.now { background: #fdecec; color: #a11d1d; }
.vm-vs { display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 14px; letter-spacing: .1em; }
.vm-factors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.vm-factors div { text-align: center; padding: 18px 12px; border-radius: 14px; background: var(--navy); color: #fff; }
.vm-factors svg { width: 26px; height: 26px; color: var(--accent); }
.vm-factors b { display: block; margin-top: 8px; font-size: 14px; }
.vm-factors span { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.45; display: block; margin-top: 4px; }

/* selection steps */
.vm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 50px; counter-reset: v; }
.vm-steps div { position: relative; padding: 24px 18px; border-radius: 16px; background: rgba(148,212,244,.05); border: 1px solid var(--line-dark); counter-increment: v; }
.vm-steps div::before { content: counter(v, decimal-leading-zero); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 800; font-size: 13px; }
.vm-steps div:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -12px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.vm-steps h3 { color: #fff; font-size: 16px; margin: 14px 0 6px; }
.vm-steps p { margin: 0; color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.55; }
.vm-neutral { margin: 30px auto 0; max-width: 820px; text-align: center; padding: 18px 24px; border-radius: 14px; border: 1px dashed rgba(148,212,244,.4); color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.6; }
.vm-neutral b { color: var(--accent); }

/* SLA tracker panel */
.vm-sla { display: grid; gap: 10px; }
.vm-sla div { display: grid; grid-template-columns: 70px 1fr 40px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink); }
.vm-sla i { display: block; height: 10px; border-radius: 99px; background: var(--light); overflow: hidden; }
.vm-sla i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-2), var(--accent)); }
.vm-sla span:last-child { text-align: right; font-weight: 700; }
.vm-mini { width: 100%; height: 90px; display: block; }

/* tiers */
.vm-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.vm-tier { display: flex; flex-direction: column; padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.vm-tier.pop { border: 2px solid var(--blue-2); box-shadow: 0 24px 48px rgba(7,28,66,.12); position: relative; }
.vm-tier .flag { position: absolute; top: -13px; left: 30px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--blue-2); padding: 5px 12px; border-radius: 99px; }
.vm-tier small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--blue-2); }
.vm-tier h3 { margin: 8px 0 8px; font-size: 22px; color: var(--navy); }
.vm-tier p { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.vm-tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.vm-tier li { display: flex; gap: 9px; font-size: 14px; color: var(--ink); }
.vm-tier li svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--blue-2); margin-top: 2px; }
.vm-tier .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 1180px) {
  .vm-cycle { grid-template-columns: 1fr; }
  .vm-cycle svg { max-width: 480px; margin: 0 auto; }
  .vm-steps { grid-template-columns: repeat(3, 1fr); }
  .vm-steps div:nth-child(3)::after { display: none; }
  .vm-factors { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .vm-hero .svc-hero-grid { grid-template-columns: 1fr; }
  .vm-ways, .vm-funnel, .vm-tiers { grid-template-columns: 1fr; }
  .vm-compare { grid-template-columns: 1fr; }
  .vm-vs { padding: 4px 0; }
}
@media (max-width: 760px) {
  .vm-stats, .vm-cycle-list, .vm-steps { grid-template-columns: 1fr; }
  .vm-steps div::after { display: none; }
  .vm-factors { grid-template-columns: 1fr 1fr; }
  .vm-top { grid-template-columns: 1fr; }
  .vm-way { padding: 28px 22px; }
  .vm-stat strong { font-size: 38px; }
}

.ai-table a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ai-table a:hover { color: var(--blue-2); }
.vm-list em { justify-self: end; }
@media (max-width: 760px) { .vm-surface { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 24px; } .vm-surface svg { min-width: 760px; } }
