.qsec-page .qsec-wide-lead{max-width:860px}

/* =========================================================
   HERO ACCESS PREVIEW
   ========================================================= */
.qsec-page .qsec-access-card{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid rgba(129,159,200,.13);
  border-radius:26px;
  background:linear-gradient(160deg,#121d31,#091524);
  box-shadow:0 35px 80px rgba(0,0,0,.32);
  color-scheme:dark;
}
.qsec-page .qsec-access-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 82% 0,rgba(31,201,188,.13),transparent 37%),
    radial-gradient(circle at 18% 86%,rgba(123,104,248,.14),transparent 39%);
}
.qsec-page .qsec-card-head,
.qsec-page .qsec-context-row,
.qsec-page .qsec-access-stack,
.qsec-page .qsec-foot{position:relative;z-index:1}

.qsec-page .qsec-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:15px;
  border-bottom:1px solid rgba(129,159,200,.09);
}
.qsec-page .qsec-card-head>div{display:flex;align-items:center;gap:8px}
.qsec-page .qsec-card-head i{
  width:8px;height:8px;border-radius:50%;
  background:#32d6c7;
  box-shadow:0 0 12px rgba(50,214,199,.6);
}
.qsec-page .qsec-card-head strong{color:#eef5ff;font-size:14px}
.qsec-page .qsec-card-head>span{color:#6e829c;font-size:9px;letter-spacing:.13em}

.qsec-page .qsec-context-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin:17px 0;
  padding:13px 14px;
  border:1px solid rgba(129,159,200,.10);
  border-radius:13px;
  background:#0a1728;
}
.qsec-page .qsec-context-row small,
.qsec-page .qsec-context-row strong{display:block}
.qsec-page .qsec-context-row small{color:#657a95;font-size:8px;letter-spacing:.12em}
.qsec-page .qsec-context-row strong{color:#e3ecf7;font-size:12px;margin-top:2px}
.qsec-page .qsec-context-row>span{
  padding:6px 9px;
  border:1px solid rgba(54,218,203,.18);
  border-radius:999px;
  background:rgba(54,218,203,.055);
  color:#60ddd1;
  font-size:9px;
}

.qsec-page .qsec-access-stack{display:grid;gap:8px}
.qsec-page .qsec-access-row{
  display:grid;
  grid-template-columns:36px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px 11px;
  border:1px solid rgba(129,159,200,.085);
  border-radius:12px;
  background:rgba(255,255,255,.018);
}
.qsec-page .qsec-access-row>span{
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:10px;
  color:#a99cff;
  background:rgba(142,124,255,.08);
}
.qsec-page .qsec-access-row.owner>span,
.qsec-page .qsec-access-row.member>span{
  color:#5edbcf;
  background:rgba(54,218,203,.055);
}
.qsec-page .qsec-access-row strong,
.qsec-page .qsec-access-row small{display:block}
.qsec-page .qsec-access-row strong{color:#dbe6f2;font-size:11px}
.qsec-page .qsec-access-row small{color:#657a93;font-size:9px;margin-top:2px}
.qsec-page .qsec-access-row>b{color:#7489a4;font-size:8px;letter-spacing:.1em}

.qsec-page .qsec-foot{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:14px;
  padding:12px;
  border:1px solid rgba(142,124,255,.12);
  border-radius:12px;
  background:rgba(142,124,255,.055);
}
.qsec-page .qsec-foot>span{color:#9d91f3}
.qsec-page .qsec-foot small,
.qsec-page .qsec-foot strong{display:block}
.qsec-page .qsec-foot small{color:#687c96;font-size:8px;letter-spacing:.1em}
.qsec-page .qsec-foot strong{color:#c9d6e5;font-size:10px;margin-top:2px}

/* =========================================================
   ACCESS MODEL
   ========================================================= */
.qsec-page .qsec-model-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:38px;
}
.qsec-page .qsec-model-card{
  min-height:240px;
  padding:22px;
  border:1px solid rgba(129,159,200,.10);
  border-radius:18px;
  background:rgba(255,255,255,.025);
}
.qsec-page .qsec-model-icon{
  width:44px;height:44px;
  display:grid;place-items:center;
  margin-bottom:24px;
  border-radius:13px;
  color:#a99cff;
  background:rgba(142,124,255,.08);
}
.qsec-page .qsec-model-card.teal .qsec-model-icon{color:#57d9ce;background:rgba(54,218,203,.07)}
.qsec-page .qsec-model-card.blue .qsec-model-icon{color:#90a6ff;background:rgba(91,106,245,.08)}
.qsec-page .qsec-model-card>small{color:#697e98;font-size:9px;letter-spacing:.11em}
.qsec-page .qsec-model-card h3{
  margin:6px 0 10px;
  color:#edf4fc;
  font-family:Georgia,serif;
  font-size:20px;
}
.qsec-page .qsec-model-card p{margin:0;color:#8093aa;font-size:12px;line-height:1.75}

.qsec-page .qsec-project-types{
  margin-top:18px;
  overflow:hidden;
  border:1px solid rgba(129,159,200,.10);
  border-radius:20px;
  background:rgba(255,255,255,.018);
}
.qsec-page .qsec-project-types-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  padding:18px 20px;
  border-bottom:1px solid rgba(129,159,200,.08);
}
.qsec-page .qsec-project-types-head small,
.qsec-page .qsec-project-types-head strong{display:block}
.qsec-page .qsec-project-types-head small{color:#667b95;font-size:8px;letter-spacing:.11em}
.qsec-page .qsec-project-types-head strong{color:#dfe8f3;font-size:13px;margin-top:3px}
.qsec-page .qsec-project-types-head>span{color:#71859e;font-size:10px}
.qsec-page .qsec-project-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.qsec-page .qsec-project-type-grid article{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:12px;
  padding:20px;
  border-right:1px solid rgba(129,159,200,.08);
}
.qsec-page .qsec-project-type-grid article:last-child{border-right:0}
.qsec-page .qsec-project-type-grid article>span{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:11px;
  color:#9f93f7;
  background:rgba(142,124,255,.07);
}
.qsec-page .qsec-project-type-grid small{display:block;color:#697e98;font-size:8px;letter-spacing:.11em}
.qsec-page .qsec-project-type-grid strong{display:block;color:#dce6f2;font-size:12px;margin:3px 0 6px}
.qsec-page .qsec-project-type-grid p{margin:0;color:#7388a1;font-size:10px;line-height:1.65}

/* =========================================================
   LIGHT / SOFT SECTIONS
   ========================================================= */
.qsec-page .qsec-soft-section{
  background:linear-gradient(180deg,rgba(13,27,45,.32),rgba(8,19,33,.56));
}
.qsec-page .feature-icon{color:#9e91f7}
.qsec-page .fi-teal{color:#58d8cd}

/* =========================================================
   SMART AGENT EXECUTION
   ========================================================= */
.qsec-page .qsec-dark-section{
  background:linear-gradient(180deg,rgba(8,18,31,.95),rgba(5,13,24,.99));
}
.qsec-page .qsec-execution-shell{
  display:grid;
  grid-template-columns:1fr 80px 1fr 80px 1fr;
  align-items:stretch;
  margin-top:42px;
}
.qsec-page .qsec-exec-node{
  position:relative;
  padding:22px;
  border:1px solid rgba(129,159,200,.10);
  border-radius:18px;
  background:#0e1b2d;
  color-scheme:dark;
}
.qsec-page .qsec-exec-node.gate{
  border-color:rgba(54,218,203,.22);
  background:linear-gradient(155deg,rgba(54,218,203,.05),#0e1b2d 60%);
}
.qsec-page .qsec-node-number{position:absolute;top:16px;right:16px;color:#435a73;font-size:10px}
.qsec-page .qsec-node-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  margin-bottom:20px;
  border-radius:12px;
  color:#a79aff;
  background:rgba(142,124,255,.08);
}
.qsec-page .qsec-exec-node.gate .qsec-node-icon{color:#57d9ce;background:rgba(54,218,203,.07)}
.qsec-page .qsec-exec-node small{color:#5f748e;font-size:9px;letter-spacing:.11em}
.qsec-page .qsec-exec-node h3{margin:5px 0 10px;color:#eef4fb;font-family:Georgia,serif;font-size:19px}
.qsec-page .qsec-exec-node p{margin:0;color:#7e91aa;font-size:11px;line-height:1.7}
.qsec-page .qsec-exec-node>b{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:15px;
  padding:6px 9px;
  border:1px solid rgba(54,218,203,.18);
  border-radius:999px;
  background:rgba(54,218,203,.07);
  color:#58d9ce;
  font-size:9px;
}
.qsec-page .qsec-route{display:grid;place-items:center;align-content:center;gap:7px}
.qsec-page .qsec-route>span{
  position:relative;
  width:100%;height:1px;
  background:linear-gradient(90deg,rgba(142,124,255,.15),#776ae8,rgba(54,218,203,.20));
}
.qsec-page .qsec-route>span:after{
  content:"";
  position:absolute;
  top:50%;left:50%;
  width:7px;height:7px;
  border-radius:50%;
  transform:translate(-50%,-50%);
  background:#59d8cd;
  box-shadow:0 0 12px rgba(89,216,205,.6);
}
.qsec-page .qsec-route small{color:#61758e;font-size:8px;text-transform:uppercase;text-align:center}
.qsec-page .qsec-result-rail{
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:16px;
  padding:13px 15px;
  border:1px solid rgba(142,124,255,.13);
  border-radius:13px;
  background:#0b1728;
  color-scheme:dark;
}
.qsec-page .qsec-result-rail>span{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:10px;
  background:rgba(142,124,255,.08);
  color:#a79aff;
}
.qsec-page .qsec-result-rail small,
.qsec-page .qsec-result-rail strong{display:block}
.qsec-page .qsec-result-rail small{color:#5d718b;font-size:8px;letter-spacing:.1em}
.qsec-page .qsec-result-rail strong{color:#d2deeb;font-size:11px;margin-top:2px}

/* =========================================================
   SHARED ACCESS
   ========================================================= */
.qsec-page .qsec-share-shell{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:28px;
  align-items:stretch;
  margin-top:38px;
  padding:26px;
  border:1px solid rgba(129,159,200,.10);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(142,124,255,.045),rgba(54,218,203,.025));
}
.qsec-page .qsec-share-copy{padding:8px 6px}
.qsec-page .qsec-share-kicker{display:inline-flex;align-items:center;gap:7px;color:#8275ea;font-size:9px;letter-spacing:.1em}
.qsec-page .qsec-share-copy h3{margin:12px 0 10px;color:#edf3fb;font-family:Georgia,serif;font-size:25px;line-height:1.25}
.qsec-page .qsec-share-copy p{margin:0;color:#8194ab;font-size:12px;line-height:1.75}
.qsec-page .qsec-share-points{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qsec-page .qsec-share-points article{
  display:flex;
  gap:11px;
  align-items:flex-start;
  min-height:112px;
  padding:15px;
  border:1px solid rgba(129,159,200,.09);
  border-radius:14px;
  background:rgba(255,255,255,.018);
}
.qsec-page .qsec-share-points article>i{
  width:34px;height:34px;
  flex:0 0 34px;
  display:grid;place-items:center;
  border-radius:10px;
  color:#9f93f7;
  background:rgba(142,124,255,.08);
}
.qsec-page .qsec-share-points strong,
.qsec-page .qsec-share-points small{display:block}
.qsec-page .qsec-share-points strong{color:#dce6f2;font-size:11px;margin:2px 0 4px}
.qsec-page .qsec-share-points small{color:#71859e;font-size:9px;line-height:1.55}

/* =========================================================
   SECURITY VISIBILITY
   ========================================================= */
.qsec-page .qsec-visibility-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:38px;
}
.qsec-page .qsec-visibility-grid article{
  min-height:225px;
  padding:20px;
  border:1px solid rgba(129,159,200,.10);
  border-radius:17px;
  background:rgba(255,255,255,.025);
}
.qsec-page .qsec-visibility-grid article>span{
  width:40px;height:40px;
  display:grid;place-items:center;
  margin-bottom:24px;
  border-radius:12px;
  color:#a79aff;
  background:rgba(142,124,255,.08);
}
.qsec-page .qsec-visibility-grid small{color:#667b95;font-size:8px;letter-spacing:.11em}
.qsec-page .qsec-visibility-grid h3{margin:5px 0 9px;color:#eaf1fa;font-size:15px}
.qsec-page .qsec-visibility-grid p{margin:0;color:#788ba3;font-size:10px;line-height:1.7}

/* =========================================================
   FINAL CTA
   ========================================================= */
.qsec-page .qsec-final-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:28px;
  align-items:center;
  margin-top:46px;
  padding:30px;
  border:1px solid rgba(129,159,200,.10);
  border-radius:22px;
  background:linear-gradient(135deg,#101c30,#071423);
  color-scheme:dark;
}
.qsec-page .qsec-final-card h2{
  margin:0 0 10px;
  color:#edf4fc;
  font-family:Georgia,serif;
  font-size:28px;
  line-height:1.25;
}
.qsec-page .qsec-final-card h2 em{color:#a99cff}
.qsec-page .qsec-final-card p{max-width:680px;margin:0;color:#8396ad}
.qsec-page .qsec-final-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.qsec-page .qsec-final-card .btn-ghost{
  color:#aeb6ff!important;
  background:rgba(91,106,245,.08)!important;
  border-color:rgba(123,135,255,.34)!important;
}
.qsec-page .qsec-final-card .btn-ghost:hover{
  color:#fff!important;
  background:rgba(91,106,245,.18)!important;
  border-color:rgba(139,148,255,.58)!important;
}

/* =========================================================
   LIGHT MODE
   ========================================================= */
html[data-theme="light"] .qsec-page .qsec-model-card,
html[data-theme="light"] .qsec-page .qsec-project-types,
html[data-theme="light"] .qsec-page .qsec-share-shell,
html[data-theme="light"] .qsec-page .qsec-visibility-grid article{
  background:#fff;
  border-color:rgba(65,81,108,.12);
}
html[data-theme="light"] .qsec-page .qsec-model-card h3,
html[data-theme="light"] .qsec-page .qsec-project-types-head strong,
html[data-theme="light"] .qsec-page .qsec-project-type-grid strong,
html[data-theme="light"] .qsec-page .qsec-share-copy h3,
html[data-theme="light"] .qsec-page .qsec-share-points strong,
html[data-theme="light"] .qsec-page .qsec-visibility-grid h3{
  color:#1f2b40;
}
html[data-theme="light"] .qsec-page .qsec-model-card p,
html[data-theme="light"] .qsec-page .qsec-project-type-grid p,
html[data-theme="light"] .qsec-page .qsec-share-copy p,
html[data-theme="light"] .qsec-page .qsec-share-points small,
html[data-theme="light"] .qsec-page .qsec-visibility-grid p{
  color:#66758b;
}
html[data-theme="light"] .qsec-page .qsec-project-types-head,
html[data-theme="light"] .qsec-page .qsec-project-type-grid article{
  border-color:rgba(65,81,108,.10);
}
html[data-theme="light"] .qsec-page .qsec-soft-section{
  background:#ffffff!important;
}

html[data-theme="light"] .qsec-page .qsec-dark-section{
  background:
    radial-gradient(
      circle at 16% 18%,
      rgba(98,82,222,.055) 0,
      rgba(98,82,222,0) 30%
    ),
    radial-gradient(
      circle at 84% 76%,
      rgba(31,201,188,.045) 0,
      rgba(31,201,188,0) 32%
    ),
    linear-gradient(
      180deg,
      #eef2f7 0%,
      #e7edf5 48%,
      #edf2f7 100%
    ) !important;

  border-top:
    1px solid rgba(65,81,108,.10) !important;

  border-bottom:
    1px solid rgba(65,81,108,.10) !important;
}

html[data-theme="light"] .qsec-page .qsec-dark-section .section-heading{
  color:#172033!important;
}

html[data-theme="light"] .qsec-page .qsec-dark-section .section-lead{
  color:#66758b!important;
}


/* =========================================================
   TECHNICAL SURFACES STAY DARK IN LIGHT MODE
   ========================================================= */

html[data-theme="light"] .qsec-page .qsec-access-card,
html[data-theme="light"] .qsec-page .qsec-exec-node,
html[data-theme="light"] .qsec-page .qsec-result-rail,
html[data-theme="light"] .qsec-page .qsec-final-card,
html[data-theme="light"] .qsec-page .qsec-security-sim{
  color-scheme:dark;
}


/* Smart Agent execution cards */

html[data-theme="light"] .qsec-page .qsec-exec-node{
  background:#0e1b2d!important;
  border-color:rgba(129,159,200,.10)!important;
}


/* Decision card keeps the subtle security accent,
   but must remain dark. */

html[data-theme="light"] .qsec-page .qsec-exec-node.gate{
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(54,218,203,.08) 0%,
      rgba(54,218,203,.035) 12%,
      rgba(54,218,203,0) 26%
    ),
    #0e1b2d !important;

  border-color:rgba(54,218,203,.22)!important;
}

/* Titles inside dark cards */

html[data-theme="light"] .qsec-page .qsec-exec-node h3{
  color:#ffffff!important;
}


/* Supporting copy inside dark cards */

html[data-theme="light"] .qsec-page .qsec-exec-node p{
  color:#a9b9cc!important;
}

html[data-theme="light"] .qsec-page .qsec-exec-node small{
  color:#7f94ad!important;
}

html[data-theme="light"] .qsec-page .qsec-node-number{
  color:#556d87!important;
}


/* Route between cards */

html[data-theme="light"] .qsec-page .qsec-route small{
  color:#667b94!important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:991px){
  .qsec-page .qsec-model-grid{grid-template-columns:1fr}
  .qsec-page .qsec-project-type-grid{grid-template-columns:1fr}
  .qsec-page .qsec-project-type-grid article{border-right:0;border-bottom:1px solid rgba(129,159,200,.08)}
  .qsec-page .qsec-project-type-grid article:last-child{border-bottom:0}
  .qsec-page .qsec-execution-shell{grid-template-columns:1fr}
  .qsec-page .qsec-route{min-height:46px}
  .qsec-page .qsec-route>span{width:1px;height:30px}
  .qsec-page .qsec-share-shell{grid-template-columns:1fr}
  .qsec-page .qsec-visibility-grid{grid-template-columns:1fr 1fr}
  .qsec-page .qsec-final-card{grid-template-columns:1fr}
  .qsec-page .qsec-final-actions{justify-content:flex-start}
}
@media(max-width:760px){
  .qsec-page .qsec-project-types-head{align-items:flex-start;flex-direction:column}
  .qsec-page .qsec-share-points{grid-template-columns:1fr}
  .qsec-page .qsec-visibility-grid{grid-template-columns:1fr}
  .qsec-page .qsec-final-actions{display:grid}
  .qsec-page .qsec-final-actions a{justify-content:center}
}

/* =========================================================
   INTERACTIVE SECURITY FLOW
   Public-safe conceptual animation only.
   ========================================================= */
.qsec-page .qsec-security-sim{
  margin-top:24px;
  padding:22px;
  overflow:hidden;
  border:1px solid rgba(129,159,200,.12);
  border-radius:20px;
  background:linear-gradient(145deg,#0e1b2d,#091523 70%);
  color-scheme:dark;
}

.qsec-page .qsec-sim-head{
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:flex-start;
}

.qsec-page .qsec-sim-head>div:first-child{max-width:650px}
.qsec-page .qsec-sim-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#7fded4;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}
.qsec-page .qsec-sim-head h3{
  margin:8px 0 7px;
  color:#eef5ff;
  font-family:Georgia,serif;
  font-size:22px;
  line-height:1.25;
}
.qsec-page .qsec-sim-head p{
  margin:0;
  color:#7d91aa;
  font-size:11px;
  line-height:1.7;
}

.qsec-page .qsec-sim-controls{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.qsec-page .qsec-scenario-btn,
.qsec-page .qsec-sim-run{
  appearance:none;
  border:1px solid rgba(129,159,200,.16);
  border-radius:999px;
  background:#111f32;
  color:#8da0b7;
  font:inherit;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,opacity .2s ease;
}
.qsec-page .qsec-scenario-btn{
  min-height:38px;
  padding:0 13px;
}
.qsec-page .qsec-scenario-btn i{margin-right:6px}
.qsec-page .qsec-scenario-btn.active{
  color:#dffbf7;
  border-color:rgba(54,218,203,.34);
  background:rgba(54,218,203,.09);
}
.qsec-page .qsec-scenario-btn[data-security-scenario="block"].active{
  color:#ffdce2;
  border-color:rgba(255,92,116,.30);
  background:rgba(255,92,116,.08);
}
.qsec-page .qsec-scenario-btn:hover,
.qsec-page .qsec-sim-run:hover{transform:translateY(-1px)}
.qsec-page .qsec-scenario-btn:disabled,
.qsec-page .qsec-sim-run:disabled{
  cursor:wait;
  opacity:.52;
  transform:none;
}

.qsec-page .qsec-sim-stage{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
  padding-top:22px;
}

.qsec-page .qsec-sim-track{
  position:absolute;
  top:10px;
  left:7.5%;
  right:7.5%;
  height:2px;
  overflow:visible;
  border-radius:999px;
  background:#1b3046;
}
.qsec-page .qsec-sim-progress{
  position:absolute;
  inset:0 auto 0 0;
  width:0;
  border-radius:inherit;
  background:linear-gradient(90deg,#776ae8,#57d9ce);
  transition:width .48s ease;
}
.qsec-page .qsec-sim-packet{
  position:absolute;
  top:50%;
  left:0;
  width:14px;
  height:14px;
  display:grid;
  place-items:center;
  transform:translate(-50%,-50%);
  color:#76e6dc;
  font-size:8px;
  filter:drop-shadow(0 0 8px rgba(87,217,206,.65));
  transition:left .48s ease,color .2s ease,filter .2s ease;
}

.qsec-page .qsec-sim-node{
  position:relative;
  min-height:166px;
  padding:18px;
  border:1px solid rgba(129,159,200,.09);
  border-radius:15px;
  background:#0b1727;
  transition:border-color .25s ease,background .25s ease,transform .25s ease,box-shadow .25s ease;
}
.qsec-page .qsec-sim-node.active{
  transform:translateY(-2px);
  border-color:rgba(142,124,255,.32);
  background:linear-gradient(145deg,rgba(142,124,255,.08),#0b1727 64%);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}
.qsec-page .qsec-sim-node.complete{
  border-color:rgba(54,218,203,.22);
}
.qsec-page .qsec-sim-node.blocked{
  border-color:rgba(255,92,116,.28);
  background:linear-gradient(145deg,rgba(255,92,116,.055),#0b1727 65%);
}
.qsec-page .qsec-sim-node-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  margin-bottom:22px;
  border-radius:11px;
  background:rgba(142,124,255,.08);
  color:#a79aff;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}
.qsec-page .qsec-sim-node.active .qsec-sim-node-icon{
  color:#d4ceff;
  background:rgba(142,124,255,.15);
  box-shadow:0 0 0 5px rgba(142,124,255,.035);
}
.qsec-page .qsec-sim-node.complete .qsec-sim-node-icon{
  color:#67ddd2;
  background:rgba(54,218,203,.08);
}
.qsec-page .qsec-sim-node.blocked .qsec-sim-node-icon{
  color:#ff8799;
  background:rgba(255,92,116,.08);
}
.qsec-page .qsec-sim-node small{
  display:block;
  color:#62778f;
  font-size:8px;
  letter-spacing:.11em;
}
.qsec-page .qsec-sim-node strong{
  display:block;
  margin:5px 0 7px;
  color:#dfe8f3;
  font-size:12px;
}
.qsec-page .qsec-sim-node p{
  margin:0;
  color:#71859e;
  font-size:9px;
  line-height:1.65;
}

.qsec-page .qsec-sim-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(129,159,200,.08);
}
.qsec-page .qsec-sim-result{
  display:flex;
  align-items:center;
  gap:10px;
}
.qsec-page .qsec-sim-result>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#8799ae;
  background:#111f32;
  transition:color .2s ease,background .2s ease;
}
.qsec-page .qsec-sim-result small,
.qsec-page .qsec-sim-result strong{display:block}
.qsec-page .qsec-sim-result small{color:#5f748d;font-size:8px;letter-spacing:.1em}
.qsec-page .qsec-sim-result strong{margin-top:2px;color:#cdd9e7;font-size:11px}
.qsec-page .qsec-sim-result[data-state="running"]>span i{animation:qsec-spin .85s linear infinite}
.qsec-page .qsec-sim-result[data-state="allowed"]>span{color:#5fe0d4;background:rgba(54,218,203,.08)}
.qsec-page .qsec-sim-result[data-state="allowed"] strong{color:#71e6dc}
.qsec-page .qsec-sim-result[data-state="blocked"]>span{color:#ff7c91;background:rgba(255,92,116,.08)}
.qsec-page .qsec-sim-result[data-state="blocked"] strong{color:#ff96a6}

.qsec-page .qsec-sim-run{
  min-height:42px;
  padding:0 16px;
  color:#fff;
  border-color:rgba(91,106,245,.55);
  background:linear-gradient(135deg,#5b6af5,#715ce8);
}
.qsec-page .qsec-sim-run i{margin-right:7px}

@keyframes qsec-spin{to{transform:rotate(360deg)}}

/* Small ambient motion in the hero, deliberately decorative. */
.qsec-page .qsec-context-row>span i{animation:qsec-heartbeat 2.4s ease-in-out infinite}
.qsec-page .qsec-foot>span i{animation:qsec-soft-pulse 2.8s ease-in-out infinite}
@keyframes qsec-heartbeat{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
@keyframes qsec-soft-pulse{0%,100%{opacity:.65}50%{opacity:1}}

html[data-theme="light"] .qsec-page .qsec-security-sim{
  color-scheme:dark;
}

@media(max-width:991px){
  .qsec-page .qsec-sim-head{flex-direction:column}
  .qsec-page .qsec-sim-controls{justify-content:flex-start}
  .qsec-page .qsec-sim-stage{grid-template-columns:1fr 1fr}
  .qsec-page .qsec-sim-track{display:none}
}

@media(max-width:620px){
  .qsec-page .qsec-security-sim{padding:16px}
  .qsec-page .qsec-sim-controls{display:grid;width:100%}
  .qsec-page .qsec-scenario-btn{width:100%}
  .qsec-page .qsec-sim-stage{grid-template-columns:1fr}
  .qsec-page .qsec-sim-node{min-height:0}
  .qsec-page .qsec-sim-footer{align-items:stretch;flex-direction:column}
  .qsec-page .qsec-sim-run{width:100%}
}

@media(prefers-reduced-motion:reduce){
  .qsec-page .qsec-context-row>span i,
  .qsec-page .qsec-foot>span i,
  .qsec-page .qsec-sim-result[data-state="running"]>span i{
    animation:none!important;
  }
  .qsec-page .qsec-sim-progress,
  .qsec-page .qsec-sim-packet,
  .qsec-page .qsec-sim-node,
  .qsec-page .qsec-scenario-btn,
  .qsec-page .qsec-sim-run{
    transition:none!important;
  }
}
