/* ExposureIndex - Custom Styles */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

navbar-logo {
    width:40px;
}

/* Hero section */
.hero {
    background: linear-gradient(160deg, var(--ei-dark) 0%, var(--ei-dark2) 55%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 4rem 0;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero .lead {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Service cards */
.service-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .service-icon {
    font-size: 2.5rem;
    color: #0f3460;
    margin-bottom: 1rem;
}

.text-left {
    text-align: left;
}

/* Form containers */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container-md {
    max-width: 700px;
    margin: 0 auto;
}

.form-container-lg {
    max-width: 800px;
    margin: 0 auto;
}

/* Content containers (non-form pages) */
.content-md {
    max-width: 800px;
    margin: 0 auto;
}

.content-lg {
    max-width: 960px;
    margin: 0 auto;
}

/* Admin dashboard */
.admin-table th {
    white-space: nowrap;
}

.admin-table .btn {
    white-space: nowrap;
}

/* Dashboard sort / filter bar */
.dashboard-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bs-dark, #212529);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

.dashboard-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dashboard-filter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.dashboard-filter-select {
    min-width: 130px;
}

.sort-btn .sort-icon {
    font-size: 0.75rem;
    opacity: 0.6;
}

.sort-btn.active .sort-icon {
    opacity: 1;
}

/* Login pages */
.login-container {
    max-width: 440px;
    margin: 2rem auto;
}

.login-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.admin-login-card {
    border-top: 4px solid #dc3545;
}

/* Pricing cards */
.pricing-card {
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    border-color: #0f3460;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.pricing-card.selected,
.pricing-card.border-primary {
    border-color: #0066FF !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Plan selector on order page */
.plan-card {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.plan-card:hover {
    border-color: #0f3460;
}

.plan-card.selected {
    border-color: #0066FF;
    background-color: rgba(13, 110, 253, 0.05);
}

/* ============================================================
   2026 Design System — Homepage
   ============================================================ */

:root {
    --ei-dark:    #0a1628;
    --ei-dark2:   #1e3a5f;
    --ei-blue:    #0057ff;
    --ei-purple:  #7c3aed;
}

/* --- Hero gradient background --- */
.hero-gradient {
    background: linear-gradient(160deg, var(--ei-dark) 0%, var(--ei-dark2) 55%, #2d1b69 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 40%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 75%, rgba(0, 87, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
}

.hero-dashboard-img {
    width: 100%;
    max-width: 340px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45), 0 0 80px rgba(0, 87, 255, 0.12);
}

/* --- Gradient text (key headline words) --- */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Hero section label (eyebrow) --- */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ei-blue);
    margin-bottom: 0.5rem;
}

/* --- Frosted-glass checkmark chips --- */
.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.92rem;
    color: #e2e8f0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.check-chip .bi {
    color: #4ade80;
    font-size: 1rem;
}

.attack-surface {
    position: relative;
    width: 100%;
    background: url('/static/images/dc_left.jpg') center/cover no-repeat;
    padding: 80px 10%;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 24px;
}

.attack-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10,15,30,0.75);
    z-index: 0;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@keyframes rn-glow {
    0%, 100% { box-shadow: 0 0 0px 0px rgba(255,255,255,0.0); }
    50%       { box-shadow: 0 0 10px 3px rgba(255,255,255,0.08); }
}

.risk-node {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    transition: background 0.3s, border-color 0.3s;
    animation: rn-glow 4s ease-in-out infinite;
    white-space: nowrap;
    z-index: 2;
}

.rn-1 { transform: translateY(-24px); animation-delay: 0s;   }
.rn-2 { transform: translateY(16px);  animation-delay: 0.7s; }
.rn-3 { transform: translateY(-10px); animation-delay: 1.3s; }
.rn-4 { transform: translateY(22px);  animation-delay: 0.4s; }
.rn-5 { transform: translateY(-18px); animation-delay: 1.9s; }
.rn-6 { transform: translateY(10px);  animation-delay: 1.1s; }

@media (max-width: 992px) {
    .rn-1 { transform: translateY(-12px); }
    .rn-2 { transform: translateY(8px);   }
    .rn-3 { transform: translateY(-5px);  }
    .rn-4 { transform: translateY(11px);  }
    .rn-5 { transform: translateY(-9px);  }
    .rn-6 { transform: translateY(5px);   }
}

@media (max-width: 576px) {
    .rn-1 { transform: translateY(-6px); }
    .rn-2 { transform: translateY(4px);  }
    .rn-3 { transform: translateY(-2px); }
    .rn-4 { transform: translateY(5px);  }
    .rn-5 { transform: translateY(-3px); }
    .rn-6 { transform: translateY(2px);  }
}

.risk-node:hover {
    background: rgba(255,80,80,0.15);
    border-color: rgba(255,80,80,0.5);
}

/* --- Numbered step circle --- */
.step-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ei-blue), var(--ei-purple));
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 87, 255, 0.35);
}

/* --- Feature cards with coloured accent border --- */
.feature-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1.75rem;
    border-top: 3px solid var(--ei-blue);
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/images/dc_left.jpg") center/cover no-repeat;
    z-index: -1;
}

.feature-card-mirrored::before {
    transform: scaleX(-1);
}

.feature-card-accent {
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--ei-blue);
    border-radius: 0.85rem;
    padding: 1.75rem;
    background: #fff;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}

.feature-card-accent .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card-blue   { border-top-color: #0057ff; }
.feature-card-blue   .feature-icon { color: #0057ff; }

.feature-card-purple { border-top-color: #7c3aed; }
.feature-card-purple .feature-icon { color: #7c3aed; }

.feature-card-cyan   { border-top-color: #06b6d4; }
.feature-card-cyan   .feature-icon { color: #06b6d4; }

.feature-card-green  { border-top-color: #10b981; }
.feature-card-green  .feature-icon { color: #10b981; }

.feature-card-red    { border-top-color: #ef4444; }
.feature-card-red    .feature-icon { color: #ef4444; }

.feature-card-orange    { border-top-color: #f8bc30; }
.feature-card-orange    .feature-icon { color: #f8bc30; }

.feature-card-teal     { border-top-color: #20c997; }
.feature-card-teal     .feature-icon { color: #20c997; }

.feature-card-pink     { border-top-color:  #d63384; }
.feature-card-pink     .feature-icon { color: #d63384; }

/* --- Score glass card --- */
.score-glass {
    background: linear-gradient(160deg, #0f2044 0%, #1a3461 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1rem;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.score-glass-wide {
    max-width: 100%;
}

.score-glass::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.score-glass::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 87, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Score number risk-colour variants — use background-image (not the
   background shorthand) so background-clip:text from the base class
   is not reset by the cascade override */
.score-number-low      { background-image: linear-gradient(135deg, #34d399 0%, #10b981 100%); }
.score-number-medium   { background-image: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); }
.score-number-high     { background-image: linear-gradient(135deg, #fb923c 0%, #f97316 100%); }
.score-number-critical { background-image: linear-gradient(135deg, #f87171 0%, #ef4444 100%); }

/* --- Risk level badges --- */
.risk-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.6;
}

.risk-high {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.risk-critical {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.risk-medium {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.risk-low {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.trend-icon {
    font-size: 2rem;
}

/* --- Scroll-reveal fade-up --- */
.fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Problem list items --- */
/* Background image */
.problem-section {
    position: relative;
    /*background: url("/static/images/datacenter.jpg") center/cover no-repeat;*/
}

/* Dark overlay for readability */
.problem-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.75);
}

/* Ensure content sits above overlay */
.problem-section .container {
    position: relative;
    z-index: 2;
}


/* Glass cards instead of grey bootstrap boxes */
.problem-item {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 12px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);

    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;

    gap: 14px;
}

/* icon color adjustment */
.problem-item i {
    color: #7aa2ff;
}

/* paragraph text color */
.problem-section p {
    color: rgba(255,255,255,0.75);
}

/* --- Risk badges on light backgrounds (card / feature-card) --- */
.card .risk-badge.risk-critical,
.feature-card-accent .risk-badge.risk-critical { background: rgba(239,68,68,0.10); color: #c53030; border-color: rgba(239,68,68,0.20); }
.card .risk-badge.risk-high,
.feature-card-accent .risk-badge.risk-high   { background: rgba(249,115,22,0.10); color: #c2410c; border-color: rgba(249,115,22,0.20); }
.card .risk-badge.risk-medium,
.feature-card-accent .risk-badge.risk-medium { background: rgba(245,158,11,0.10); color: #b45309; border-color: rgba(245,158,11,0.20); }
.card .risk-badge.risk-low,
.feature-card-accent .risk-badge.risk-low    { background: rgba(16,185,129,0.10); color: #065f46; border-color: rgba(16,185,129,0.20); }

/* --- ROI Anchor section --- */
.roi-section {
    background: linear-gradient(180deg, #0a1628 0%, #0f1f3d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.roi-eyebrow {
    color: #f87171;
}

.roi-title {
    max-width: 720px;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.roi-subtitle {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

.roi-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    height: 100%;
}

.roi-stat-card--highlight {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 12px;
    height: 100%;
}

.roi-stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-stat-number--blue {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-stat-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.roi-stat-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin-bottom: 0;
}

.roi-source {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 0;
}

/* ============================================================
   CSP unsafe-inline removal — new utility classes
   ============================================================ */

/* Dark theme accent colours */
.text-accent-blue  { color: #93c5fd; }
.text-white-55     { color: rgba(255, 255, 255, 0.55); }
.text-white-70     { color: rgba(255, 255, 255, 0.70); }
.text-cyan         { color: #67e8f9; }
.text-ei-blue      { color: #0057ff; }
.text-ei-orange    { color: #f8bc30; }

/* Dynamic status badges inside dark glass cards */
.badge-running {
    background: rgba(0, 87, 255, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(0, 87, 255, 0.4);
}
.badge-pending {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Score-glass right panel divider */
.score-panel-divider {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

/* Sub-score row separator */
.border-white-faint { border-color: rgba(255, 255, 255, 0.08) !important; }

/* Tiny uppercase label (stat boxes and score panel) */
.label-xs {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Stat box (campaign summary boxes) */
.stat-box {
    background: rgba(0, 87, 255, 0.06);
    border: 1px solid rgba(0, 87, 255, 0.12);
}

/* Click-rate progress bar (thin) */
.progress-xs { height: 5px; }

/* Empty-state gradient icon circle */
.gradient-circle-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057ff, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Constrained-width containers */
.mw-480 { max-width: 480px; }
.mw-540 { max-width: 540px; }
.mw-750 { max-width: 750px; margin: 0 auto; }

/* Score-panel meta text */
.score-panel-meta {
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

/* ============================================================
   CSP unsafe-inline removal — batch 2 (remaining templates)
   ============================================================ */

/* Light section background (#f8fafc) */
.bg-section { background-color: #f8fafc; }

/* Gradient icon circles — auth/setup pages */
.gradient-circle-icon-sm {
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: linear-gradient(135deg, #0057ff, #7c3aed);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.gradient-circle-icon-green {
    width: 4rem; height: 4rem; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.gradient-circle-icon-green-lg {
    width: 5rem; height: 5rem; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Extra colour utilities */
.text-white-75  { color: rgba(255, 255, 255, 0.75); }
.text-ei-purple { color: #7c3aed; }
.text-ei-cyan   { color: #06b6d4; }
.text-ei-green  { color: #10b981; }

/* Responsive hero / CTA typography */
.fs-hero     { font-size: clamp(2rem, 5vw, 3.2rem); }
.fs-seo-hero { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.fs-cta      { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.lh-115      { line-height: 1.15; }
.lh-120      { line-height: 1.2; }
.fs-95       { font-size: 0.95rem; }

/* Width caps */
.mw-520 { max-width: 520px; }
.mw-580 { max-width: 580px; }
.mw-600 { max-width: 600px; }
.mw-700 { max-width: 700px; margin: 0 auto; }
.mw-780 { max-width: 780px; }
.mw-980 { max-width: 980px; }

/* Border utilities */
.border-top-white-soft { border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* Letter-spacing */
.ls-xs { letter-spacing: 0.4px; }

/* Fade-up animation delays */
.fade-delay-1  { transition-delay: 0.10s; }
.fade-delay-12 { transition-delay: 0.12s; }
.fade-delay-15 { transition-delay: 0.15s; }
.fade-delay-2  { transition-delay: 0.20s; }
.fade-delay-24 { transition-delay: 0.24s; }
.fade-delay-3  { transition-delay: 0.30s; }

/* Table column widths (scan detail / setup) */
.col-w-50  { width:  50px; }
.col-w-90  { width:  90px; }
.col-w-100 { width: 100px; }
.col-w-120 { width: 120px; }
.col-w-220 { width: 220px; }
.col-w-280 { width: 280px; }

/* Report iframe (client view) */
.report-iframe {
    width: 100%;
    min-height: 900px;
    border: none;
    border-radius: 0.85rem;
    display: block;
}

/* Background watermark number for each step */
.step-watermark {
    position: absolute;
    top: 0;
    left: 20%;
    transform: translateX(-50%) translateY(-20%);
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    color: #6f42c1;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    user-select: none;
}

/* Optional: center more aggressively on mobile, or alternate sides */
@media (max-width: 767.98px) {
    .step-watermark {
        font-size: 8rem;
        left: 20%;                                  /* offset left on mobile to avoid center overlap */
        transform: translateX(-50%) translateY(-10%);
        opacity: 0.30;                              /* slightly stronger on smaller screens if needed */
    }

    /* Optional alternation for visual interest on stacked mobile */
    .step-item:nth-child(2) .step-watermark { left: 80%; }
    .step-item:nth-child(3) .step-watermark { left: 20%; }
}

/* Optional gradient version (more premium feel) */
.step-watermark.gradient {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.10;
}

/* Optional subtle hover lift on whole step */
@media (min-width: 768px) {
    .step-item:hover {
        transform: translateY(-8px);
        transition: transform 0.3s ease;
    }
}

/* ── Clickjacking Demo Page ──────────────────────────────────────────────── */
.clickjack-banner {
    background: #dc2626;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 100;
}

.clickjack-stage {
    position: relative;
    width: 100vw;
    height: calc(100vh - 40px);
    overflow: hidden;
}

.clickjack-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 10;
    border: none;
    pointer-events: all;
}

.clickjack-fake-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
}

.clickjack-fake-ui h1 {
    color: #fff;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.clickjack-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
}

.clickjack-fine-print {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.clickjack-fake-btn {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.5);
    animation: clickjack-pulse 2s infinite;
}

@keyframes clickjack-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.04); }
}

.clickjack-slider-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.clickjack-slider-bar input[type="range"] {
    width: 120px;
}

/* ── Blog post body ──────────────────────────────────────────────────────── */
.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: .375rem;
}

/* ── Admin Demo Toolkit ──────────────────────────────────────────────────── */
.demo-payload {
    font-size: 0.85rem;
    overflow-x: auto;
}

/* ── Report Content ──────────────────────────────────────────────────────── */

/* Table column widths */
.report-label-col         { width: 140px; }
.report-value-col         { width: 90px; }
.report-port-col          { width: 100px; }
.report-header-name-col   { width: 200px; }
.report-header-status-col { width: 110px; }
.report-type-col          { width: 120px; }
.report-severity-col      { width: 80px; }
.report-phishing-col      { width: 180px; }
.report-identity-col      { width: 200px; }
.report-stealer-col       { width: 130px; }
.report-breach-col        { width: 90px; }
.report-awareness-table        { table-layout: fixed; }
.report-awareness-email-col    { width: 220px; word-break: break-all; }
.report-awareness-lesson-col   { width: 80px; min-width: 70px; }
.report-awareness-lesson-date  { font-size: 0.72em; }

/* Score progress bars */
.report-progress            { height: 6px; }
.progress-bar-identity      { background-color: #8b5cf6; }

/* Business Impact Assessment box */
.business-impact-box {
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}
.business-impact-success { border-left-color: #198754; background-color: rgba(25, 135, 84, 0.05); }
.business-impact-warning  { border-left-color: #ffc107; background-color: rgba(255, 193, 7, 0.05); }
.business-impact-orange   { border-left-color: #fd7e14; background-color: rgba(253, 126, 20, 0.05); }
.business-impact-danger   { border-left-color: #dc3545; background-color: rgba(220, 53, 69, 0.05); }

/* Attacker Perspective block */
.attacker-perspective-border  { border-color: #fde68a !important; }
.attacker-perspective-heading { color: #92400e; }
.attacker-perspective-text    { color: #78350f; }

/* Risk-level card left border */
.report-risk-card-success  { border-left: 4px solid #198754 !important; }
.report-risk-card-warning  { border-left: 4px solid #ffc107 !important; }
.report-risk-card-orange   { border-left: 4px solid #fd7e14 !important; }
.report-risk-card-danger   { border-left: 4px solid #dc3545 !important; }
.report-risk-card-primary  { border-left: 4px solid #0d6efd !important; }
.report-risk-card-purple   { border-left: 4px solid #8b5cf6 !important; }
.report-risk-card-teal     { border-left: 4px solid #20c997 !important; }
.report-risk-card-pink     { border-left: 4px solid #d63384 !important; }

/* Group section header dot indicator */
.report-group-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.report-group-dot-primary { background-color: #0d6efd; }
.report-group-dot-warning  { background-color: #ffc107; }
.report-group-dot-danger   { background-color: #dc3545; }
.report-group-dot-purple   { background-color: #8b5cf6; }
.report-group-dot-orange   { background-color: #fd7e14; }

/* Supply Chain section */
.supply-chain-summary-box { min-width: 110px; }
.supply-chain-cve-label   { font-size: .75em; }

/* Risk-level badge background */
.report-risk-badge-success { background-color: #198754 !important; }
.report-risk-badge-warning { background-color: #ffc107 !important; }
.report-risk-badge-orange  { background-color: #fd7e14 !important; }
.report-risk-badge-danger  { background-color: #dc3545 !important; }

/* ── Report: status indicator badges (Protected / Action needed) ─────── */
.report-status-ok       { background-color: #198754 !important; color: #fff !important; }
.report-status-action   { background-color: #ffc107 !important; color: #212529 !important; }
.report-status-critical { background-color: #dc3545 !important; color: #fff !important; }

/* ── Report: score column description text ──────────────────────────── */
.score-col-desc {
    font-size: 0.68rem;
    line-height: 1.3;
    color: #6c757d;
    margin-top: 0.3rem;
}

/* ── Report: CEO / Technical section separator ──────────────────────── */
.report-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.report-section-divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}
.report-section-divider-label {
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dee2e6;
    background: #0d6efd;
    border: 3px solid #dee2e6;
    border-radius: 20px;
    padding: 0.4rem 1rem;
}

/* ── Blog ──────────────────────────────────────────────────────────────── */

/* Thumbnail on the blog index card */
.blog-card-thumb {
    height: 180px;
    object-fit: cover;
}

/* Images inside a blog post body stay within the text column */
.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Blog tag toggle */
.tag-toggle .tag-chevron {
    transition: transform 0.2s ease;
}

.tag-toggle[aria-expanded="true"] .tag-chevron {
    transform: rotate(180deg);
}

/* Background canvas */
.hero-particles {
    background: linear-gradient(160deg, var(--ei-dark) 0%, var(--ei-dark2) 55%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
}

.hero-particles::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 40%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 75%, rgba(0, 87, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.particles-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 250px;   /* adjust */
    height: 250px;

    z-index: 0;
    pointer-events: none; /* 🔥 allows clicks through */
    opacity: 0.5; /* 🔥 subtle background feel */
}

.content-layer {
    position: relative;
    z-index: 2;
}

/* Print / Save as PDF */
/* @page sets browser page margins — must live outside @media print to take effect */
@page { margin: 10mm; }

@media print {
    /* Hide all chrome */
    nav.navbar, .sidebar, footer { display: none !important; }
    body { background: white !important; }

    /* Collapse Bootstrap container so content fills the full page width */
    .container, .container-fluid {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .mw-980 { max-width: 100% !important; }

    /* Admin layout wrapper */
    .content-lg { padding: 0 !important; margin: 0 !important; }

    /* The gradient hero is replaced by .print-report-header */
    .hero-gradient { display: none !important; }

    /* Clean up cards — remove shadow; only prevent page-breaks on top-level report group cards */
    .card { box-shadow: none !important; }
    .card > .card { break-inside: avoid; }

    /* Collapse the large vertical padding the screen layout uses */
    .py-5 { padding-top: 0.5rem !important; padding-bottom: 0 !important; }

    /* Print-only report header */
    .print-report-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #000;
    }
    .print-report-header h2 { font-size: 1.4rem; }
}

/* ── Honeypot /admin login — orange theme ───────────────────────────────── */
.honeypot-login-card {
    border-top: 4px solid #e07b00;
}
.honeypot-login-heading {
    color: #c46c00;
}
.honeypot-input:focus {
    border-color: #e07b00;
    box-shadow: 0 0 0 0.2rem rgba(224, 123, 0, 0.25);
}
.honeypot-btn {
    background-color: #e07b00;
    border-color: #e07b00;
    color: #fff;
}
.honeypot-btn:hover,
.honeypot-btn:focus {
    background-color: #c46c00;
    border-color: #c46c00;
    color: #fff;
}

/* Risk thermometer SVG */
.risk-thermometer {
    display: block;
    margin: 0 auto;
    max-width: 520px;
    font-family: Inter, system-ui, sans-serif;
}

/* ── Documentation sidebar ─────────────────────────────────────────────────── */
.docs-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.docs-sidebar-nav {
    background: var(--bs-body-bg, #fff);
}

.docs-sidebar-section {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ei-blue, #0057ff);
    margin-top: 1.25rem;
    margin-bottom: 0.2rem;
    padding-left: 0.75rem;
}

.docs-sidebar-section:first-child {
    margin-top: 0;
}

.docs-tree-link {
    display: block;
    padding: 0.3rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}

.docs-tree-link:hover {
    background: rgba(0, 87, 255, 0.07);
    color: var(--ei-blue, #0057ff);
}

.docs-tree-link.active {
    background: rgba(0, 87, 255, 0.12);
    color: var(--ei-blue, #0057ff);
    font-weight: 600;
}

.docs-tree-empty {
    display: block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
    font-style: italic;
}

/* Docs content area */
.docs-content {
    font-size: 1rem;
    line-height: 1.7;
}

.docs-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: .375rem;
    margin: 1.5rem 0;
}

.docs-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.docs-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-content pre {
    background: #1e2b3c;
    color: #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.875rem;
}

.docs-content code {
    font-size: 0.875em;
    background: rgba(0, 87, 255, 0.07);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Mobile sidebar chevron toggle */
.docs-sidebar-chevron {
    transition: transform 0.2s ease;
}
[aria-expanded="true"] .docs-sidebar-chevron {
    transform: rotate(180deg);
}

/* Docs overview section cards */
.docs-section-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-top: 3px solid var(--ei-blue, #0057ff);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.docs-section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.docs-section-card-icon {
    color: var(--ei-blue, #0057ff);
}

.docs-section-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ei-blue, #0057ff);
    text-decoration: none;
}

.docs-section-card-link:hover {
    text-decoration: underline;
}

/* ── Hero gradient: sticky + dropdown escape ─────────────────────────────── */
.hero-gradient-sticky {
    position: sticky;
    top: 0;
    z-index: 200;
}

.hero-gradient .dropdown-menu {
    z-index: 1100;
}

/* ── Dashboard rebuild ───────────────────────────────────────────────────── */

/* Overview card tweak */
.dashboard-overview-card {
    border-radius: 1.25rem;
}

/* Scrollable tab bar on small screens */
.dashboard-tab-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard-tabs {
    flex-wrap: nowrap;
    min-width: max-content;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dashboard-tabs .nav-link {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    border-color: transparent;
    font-size: 0.875rem;
}
.dashboard-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: transparent;
}
.dashboard-tabs .nav-link.active {
    color: #fff;
    background: transparent;
    border-color: transparent transparent #fff;
    border-bottom-width: 2px;
}

/* Sparkline */
.dashboard-sparkline {
    width: 100%;
}
.dashboard-sparkline-label {
    font-size: 0.7rem;
}

/* Responsive test report row */
.dashboard-report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.dashboard-report-meta {
    flex: 1 1 0;
    min-width: 0;
}
.dashboard-report-score {
    flex-shrink: 0;
    text-align: right;
    min-width: 80px;
}

/* Unscored card light background */
.dashboard-report-unscored {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Recommendation list */
.dashboard-rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-rec-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.75rem;
}
.dashboard-rec-item:last-child {
    border-bottom: none;
}
.dashboard-rec-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(0, 87, 255, 0.12);
    color: var(--ei-blue, #0057ff);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Empty state */
.dashboard-section-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

/* Last test run label */
.dashboard-last-run-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
