:root {
    --text-muted: #8b949e;
    --surface: rgba(13, 17, 23, 0.72);
    --surface-2: rgba(18, 23, 30, 0.85);
    --surface-3: rgba(255, 255, 255, 0.04);
    --radius-md: 8px;
    --radius-lg: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --accent-hover: #18f0ae;

    /* Fond très profond, presque noir, avec une teinte bleutée */
    --bg-base: #030508;
    
    /* Couleur d'accentuation calquée sur ton logo "cyberreflex" */
    --accent: #00e59b;
    --accent-glow: rgba(0, 229, 155, 0.15);
    --accent-soft: #00a870;
    
    /* Panneaux translucides (Effet verre fumé) */
    --panel: rgba(13, 17, 23, 0.65);
    --panel-hover: rgba(20, 25, 33, 0.8);
    
    /* Bordures chirurgicales */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 229, 155, 0.3);
    
    /* Typographie */
    --text: #f0f2f5;
    --muted: #8b949e;
    
    --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-base);
    /* Le secret : Une grille cyber ultra-subtile + un halo lumineux en haut */
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(0, 229, 155, 0.08), transparent 400px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-position: center top;
    background-attachment: fixed;
    
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

/* --- NAVIGATION (Full-width, frosted glass) --- */
.navbar {
    background: rgba(3, 5, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    width: 100%;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand span {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-alert-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-alert-link span {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 82, 82, 0.14);
    color: #ff7b7b;
    font-size: 10px;
    font-weight: 900;
}

/* --- MISE EN PAGE --- */
.container {
    width: min(1200px, calc(100% - 48px));
    margin: 48px auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    /* Dégradé métallique sur le titre principal */
    background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    margin: 0 0 40px;
    color: var(--muted);
    font-size: 15px;
}

/* --- GRILLES --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 0;
    margin-bottom: 40px;
}

.form-page .grid-3,
.form-card .grid-3 {
    gap: 24px;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.grid-2 .card .list-item {
    margin-bottom: 10px;
}

/* --- CARTES & KPI (L'effet "Extraordinaire") --- */
/* --- ترقية الـ Background لعمق سيبراني مع شبكة ذكية --- */
body {
    background-color: #030508;
    background-image: 
        radial-gradient(circle at 50% -20%, rgba(0, 229, 155, 0.12), transparent 600px),
        radial-gradient(circle at 10% 30%, rgba(0, 229, 155, 0.03), transparent 400px),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* --- تحويل الكروت إلى زجاج فاخر متوهج (Soft Glass + Border Gradient) --- */
.kpi, .card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi {
    padding: 16px 24px;
    position: relative;
}

.grid-3 > .kpi:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* التوهج التفاعلي الفخم عند الحرك بالماوس (Hover Effect) */
.kpi:hover, .card:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* إزالة الخط العلوي القديم لاستبداله بالتأثير الزجاجي الموحد */
.kpi::before, .card::before {
    display: none !important;
}

/* --- بث النبض النيوني في مؤشر الحماية (Neon Circular Pulse) --- */
.score-circle-container {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 50%;
    animation: neon-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    box-shadow: 0 0 15px rgba(0, 229, 155, 0.4);
}

@keyframes neon-pulse {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 10px rgba(0, 229, 155, 0.2); }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 20px rgba(0, 229, 155, 0.6); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 10px rgba(0, 229, 155, 0.2); }
}

/* --- تصميم الخط الزمني الاستخباراتي الفاخر (Cyber Timeline Component) --- */
.cyber-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
}

.cyber-timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(255,255,255,0.05) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #030508;
    border: 2px solid var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.timeline-dot.active {
    background: var(--accent);
    animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 155, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 229, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 155, 0); }
}

/* Style pour les listes dans "Derniers targets/assets" */
.list-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Badges de statuts (Pour tes "Status: active") */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 229, 155, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 155, 0.2);
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

th,
td {
    text-align: left;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    background: transparent;
    white-space: nowrap;
}

td:nth-child(4) { /* colonne Value */
    white-space: normal;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 16px;
        overflow-x: auto; /* Permet de scroller les liens sur mobile */
    }
    
    .container {
        width: calc(100% - 32px);
        margin: 24px auto;
    }
    
    .kpi-value {
        font-size: 36px;
    }
}


.form-page {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 8px;
}

.form-intro {
    margin-bottom: 20px;
}

.form-intro h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
}

.form-intro p {
    margin: 0;
    color: var(--text-muted);
}

.form-card,
.setup-panel {
    background: rgba(10, 15, 24, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 24px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(53, 194, 161, 0.15);
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(0, 229, 155, 0.16);
    border-radius: 999px;
    background: rgba(0, 229, 155, 0.07);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    border-color: rgba(0, 229, 155, 0.34);
    background: rgba(0, 229, 155, 0.12);
    outline: none;
}

.cyber-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 0;
    transition: border-color 0.3s ease;
}

.cyber-input-group:focus-within {
    border-color: var(--accent);
}

.cyber-input-group input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0;
    font-family: monospace;
    font-size: 15px;
    color: #fff;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.btn-primary {
    background: var(--accent);
    color: #08110f;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.add-choice-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.add-choice-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.add-choice-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}


.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border: none;
    border-radius: 0;
}

.table-wrap table {
    min-width: 1400px;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    white-space: nowrap;
}

.title-cell {
    max-width: 260px;
    min-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================
   TABLE IMPROVEMENTS
========================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    white-space: nowrap;
    vertical-align: top;
}

/* Celles longues */
.title-cell {
    max-width: 260px;
    min-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.description-cell {
    max-width: 420px;
    min-width: 320px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
    color: var(--muted);
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-success {
    background: rgba(0, 229, 155, 0.12);
    color: var(--accent);
    border-color: rgba(0, 229, 155, 0.25);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.08);
}

.badge-warning {
    background: rgba(255, 184, 0, 0.12);
    color: #ffcc66;
    border-color: rgba(255, 184, 0, 0.22);
}

.badge-danger {
    background: rgba(255, 82, 82, 0.12);
    color: #ff7b7b;
    border-color: rgba(255, 82, 82, 0.22);
}

.badge-low {
    background: rgba(80, 170, 255, 0.12);
    color: #8bc2ff;
    border-color: rgba(80, 170, 255, 0.22);
}

.badge-info {
    background: rgba(163, 132, 255, 0.12);
    color: #c3adff;
    border-color: rgba(163, 132, 255, 0.24);
}

/* =========================
   FORMS IN CARDS
========================= */

.card form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.card form label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.card form input,
.card form select,
.card form textarea {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.card form input:focus,
.card form select:focus,
.card form textarea:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(0, 229, 155, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.card form button,
.card form .btn-primary,
button {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.card form button:hover,
.card form .btn-primary:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 229, 155, 0.18);
}

/* =========================
   FINDINGS TABLE VISUAL TUNING
========================= */

table tr:hover td {
    background: transparent;
    color: #fff;
}

td, th {
    font-size: 14px;
}

th {
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

td {
    color: var(--text);
}

@media (max-width: 768px) {
    .description-cell {
        min-width: 260px;
        max-width: 280px;
    }

    .title-cell {
        min-width: 220px;
        max-width: 220px;
    }

    .table-wrap table {
        min-width: 1200px;
    }

    .card form {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================
   PUBLIC NAVBAR
========================= */

.public-navbar {
    background: rgba(3, 5, 8, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.public-navbar .nav-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.public-nav-links a {
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.public-nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 1px solid rgba(0, 229, 155, 0.22);
    box-shadow: 0 10px 24px rgba(0, 229, 155, 0.14);
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-nav-primary:hover {
    color: #03110b;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 229, 155, 0.2);
}

.btn-nav-primary:focus-visible {
    outline: 2px solid rgba(0, 229, 155, 0.55);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .public-navbar .nav-inner {
        width: calc(100% - 32px);
        height: auto;
        min-height: 72px;
        padding: 14px 0;
        flex-wrap: wrap;
        gap: 14px;
    }

    .public-nav-links {
        order: 3;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .public-nav-links a {
        font-size: 13px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .btn-nav-primary {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }
}


/* =========================
   HOMEPAGE / LANDING PAGE
========================= */

main {
    display: block;
}

.hero-section {
    position: relative;
    padding: 64px 0 34px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 229, 155, 0.08), transparent 34%, rgba(66, 153, 225, 0.05) 72%, transparent),
        linear-gradient(180deg, rgba(0, 229, 155, 0.045), transparent 58%);
    opacity: 0.72;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1.08fr);
    gap: 44px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 229, 155, 0.08);
    border: 1px solid rgba(0, 229, 155, 0.16);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(48px, 7.4vw, 92px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    color: #ffffff;
    max-width: 12ch;
}

.hero-subtitle {
    margin: 0 0 28px;
    max-width: 58ch;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.hero-speed-line {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-speed-line span {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(0, 229, 155, 0.3);
}

.quick-result-title {
    max-width: 12ch;
}

.quick-conversion-card {
    max-width: 760px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 229, 155, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(0, 229, 155, 0.18);
    box-shadow: 0 22px 70px rgba(0, 229, 155, 0.08);
}

.quick-conversion-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.quick-conversion-metrics span {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(5, 8, 7, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 700;
}

.quick-conversion-metrics strong {
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
}

.quick-unlock-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(0, 229, 155, 0.2);
}

.quick-conversion-card p {
    margin: 12px 4px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.hero-scan-form {
    margin-bottom: 22px;
}

.hero-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 560px;
    margin: 0 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-proof-row div {
    min-width: 0;
    padding: 13px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-proof-row div:last-child {
    border-right: none;
}

.hero-proof-row strong,
.hero-proof-row span {
    display: block;
}

.hero-proof-row strong {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.hero-proof-row span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-input-wrap {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

.hero-input-wrap input::placeholder {
    color: rgba(240, 242, 245, 0.42);
}

.hero-input-wrap input:focus {
    border-color: rgba(0, 229, 155, 0.24);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 229, 155, 0.08);
}

.hero-input-wrap button {
    flex-shrink: 0;
    min-width: 180px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    border: 1px solid rgba(0, 229, 155, 0.22);
    box-shadow: 0 10px 24px rgba(0, 229, 155, 0.16);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.hero-input-wrap button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 229, 155, 0.22);
}

.hero-microcopy {
    margin: 12px 4px 0;
    color: var(--muted);
    font-size: 13px;
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-points span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.intelligence-console {
    position: relative;
    width: 100%;
    max-width: 720px;
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
        rgba(5, 9, 13, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.52),
        0 0 70px rgba(0, 229, 155, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.intelligence-console::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 82%);
}

.console-topbar,
.console-grid,
.console-metrics,
.console-decision,
.console-pipeline,
.console-code,
.console-footer {
    position: relative;
    z-index: 1;
}

.console-topbar {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(0, 229, 155, 0.75);
}

.console-topbar strong {
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.console-topbar em {
    color: var(--accent);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.console-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0;
    min-height: 188px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 18px 22px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.console-score span,
.console-summary .preview-label,
.console-metrics span,
.console-decision span,
.console-pipeline span,
.code-head span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.console-score strong {
    color: #fff;
    font-size: 78px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.console-score em {
    color: var(--accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.console-summary {
    padding: 24px 0 20px 22px;
}

.console-summary h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.console-summary p {
    max-width: 38ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.console-metrics,
.console-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-metrics div,
.console-pipeline div {
    min-width: 0;
    padding: 14px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.console-metrics div:last-child,
.console-pipeline div:last-child {
    border-right: none;
}

.console-metrics strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.metric-danger {
    color: #ff6262 !important;
}

.metric-warn {
    color: #ffb800 !important;
}

.console-decision {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-decision strong,
.console-pipeline strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.console-decision em {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.console-pipeline {
    grid-template-columns: 0.7fr 1fr 0.75fr;
}

.console-code {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.code-head strong {
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
}

.console-code code {
    display: block;
    padding: 13px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.26);
    color: #d9fff3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.console-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 14px;
}

.console-footer span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.console-footer a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.engineering-section {
    position: relative;
    padding: 42px 0 36px;
}

.engineering-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 155, 0.22), transparent);
}

.engineering-intro {
    margin-bottom: 26px;
}

.engineering-intro .section-title {
    max-width: 16ch;
}

.engineering-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.engine-panel,
.topology-panel,
.patch-panel,
.scan-delta-showcase {
    position: relative;
    min-width: 0;
    min-height: 360px;
    padding: 24px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(5, 9, 13, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.engine-panel::before,
.topology-panel::before,
.patch-panel::before,
.scan-delta-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.55;
}

.bento-span-7 {
    grid-column: span 7;
}

.bento-span-5 {
    grid-column: span 5;
}

.bento-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-bottom: 22px;
}

.bento-copy span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bento-copy h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.05;
}

.bento-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.cyber-terminal-window {
    position: relative;
    z-index: 1;
    min-height: 210px;
    padding: 46px 18px 18px;
    border-radius: 12px;
    background: #070b0f;
    border: 1px solid rgba(0, 180, 216, 0.2);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow: hidden;
}

.terminal-dots::before {
    content: "...";
    position: absolute;
    top: 13px;
    left: 18px;
    color: #ff5f56;
    letter-spacing: 4px;
    font-size: 20px;
    line-height: 1;
    opacity: 0.86;
}

.terminal-title {
    position: absolute;
    top: 17px;
    right: 18px;
    color: var(--muted);
    font-size: 11px;
}

.terminal-lines {
    display: grid;
    gap: 10px;
}

.terminal-lines p {
    margin: 0;
    color: #d7e5e0;
    font-size: 12px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    transform: translateY(6px);
    animation: terminal-line-in 0.5s ease forwards;
}

.terminal-lines p:nth-child(1) { animation-delay: 0.1s; }
.terminal-lines p:nth-child(2) { animation-delay: 0.45s; }
.terminal-lines p:nth-child(3) { animation-delay: 0.8s; }
.terminal-lines p:nth-child(4) { animation-delay: 1.15s; }
.terminal-lines p:nth-child(5) { animation-delay: 1.5s; }

.code-success {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.code-warn {
    color: #ffb800;
}

.code-muted {
    color: var(--muted);
}

@keyframes terminal-line-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topology-map {
    position: relative;
    z-index: 1;
    min-height: 250px;
    margin-top: 18px;
    border-radius: 14px;
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 155, 0.12), transparent 26%),
        radial-gradient(circle at center, rgba(0, 180, 216, 0.08), transparent 46%),
        radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: auto, auto, 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    overflow: hidden;
    isolation: isolate;
}

.topology-map::before {
    content: "";
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 155, 0.08);
    box-shadow:
        inset 0 0 24px rgba(0, 229, 155, 0.035),
        0 0 35px rgba(0, 229, 155, 0.03);
    pointer-events: none;
}

.topology-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.topology-edge {
    stroke: rgba(0, 229, 155, 0.48);
    stroke-width: 1.4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(0, 229, 155, 0.22));
}

.edge-blue {
    stroke: rgba(66, 153, 225, 0.46);
    filter: drop-shadow(0 0 6px rgba(66, 153, 225, 0.2));
}

.edge-risk {
    stroke: rgba(255, 82, 82, 0.74);
    stroke-width: 1.7;
    stroke-dasharray: 7 5;
    filter: drop-shadow(0 0 9px rgba(255, 82, 82, 0.38));
    animation: topology-risk-flow 1.8s linear infinite;
}

.topology-node {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    z-index: 2;
    translate: -50% -50%;
    display: inline-grid;
    place-items: center;
    gap: 2px;
    min-width: 82px;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 229, 155, 0.08);
    border: 1px solid rgba(0, 229, 155, 0.24);
    color: #fff;
    box-shadow: 0 0 22px rgba(0, 229, 155, 0.12);
    cursor: grab;
    touch-action: none;
    user-select: none;
    scale: 1;
    animation: topology-float 4.8s ease-in-out infinite;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), scale var(--transition);
}

.topology-node:hover,
.topology-node.is-dragging {
    scale: 1.04;
    border-color: rgba(0, 229, 155, 0.44);
    background: rgba(0, 229, 155, 0.12);
    box-shadow: 0 0 34px rgba(0, 229, 155, 0.2);
}

.topology-node.is-dragging {
    cursor: grabbing;
    animation: none;
}

.topology-node strong {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
}

.topology-node span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.node-root {
    min-width: 158px;
    color: var(--accent);
}

.node-root strong {
    color: var(--accent);
}

.node-one {
    animation-delay: 0.35s;
}

.node-two {
    animation-delay: 0.72s;
}

.node-risk {
    color: #ff7373;
    background: rgba(255, 82, 82, 0.08);
    border-color: rgba(255, 82, 82, 0.24);
    box-shadow: 0 0 24px rgba(255, 82, 82, 0.14);
    animation-delay: 1.1s;
}

.node-risk:hover,
.node-risk.is-dragging {
    border-color: rgba(255, 82, 82, 0.45);
    background: rgba(255, 82, 82, 0.12);
    box-shadow: 0 0 34px rgba(255, 82, 82, 0.22);
}

.node-risk strong {
    color: #ff7373;
}

.topology-cursor-hint {
    position: absolute;
    left: 59%;
    top: 58%;
    z-index: 3;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    transform: rotate(-38deg);
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.32));
    animation: topology-cursor-demo 4.8s ease-in-out 0.8s infinite;
    pointer-events: none;
}

.topology-hint {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes topology-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -5px, 0);
    }
}

@keyframes topology-risk-flow {
    to {
        stroke-dashoffset: -24;
    }
}

@keyframes topology-cursor-demo {
    0%, 72%, 100% {
        opacity: 0;
        translate: 0 0;
    }

    12% {
        opacity: 0.75;
    }

    34% {
        opacity: 0.75;
        translate: 38px 28px;
    }

    48% {
        opacity: 0.35;
        translate: 38px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topology-node,
    .edge-risk,
    .topology-cursor-hint {
        animation: none;
    }
}

.patch-lab {
    position: relative;
    z-index: 1;
}

.patch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.patch-tabs button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.patch-tabs button.is-active {
    color: #06100c;
    background: var(--accent);
    border-color: rgba(0, 229, 155, 0.7);
}

.patch-snippet {
    display: none;
    min-height: 190px;
    margin: 0;
    padding: 18px;
    border-radius: 12px;
    background: #070b0f;
    border: 1px solid rgba(0, 229, 155, 0.12);
    color: #d9fff3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.65;
    overflow: auto;
    white-space: pre-wrap;
}

.patch-snippet.is-active {
    display: block;
}

.delta-timeline-mini {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.delta-event {
    position: relative;
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.delta-event::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 82, 82, 0.95);
    box-shadow: 0 0 18px rgba(255, 82, 82, 0.4);
}

.delta-event.is-current::before {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(0, 229, 155, 0.7);
}

.delta-event span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delta-event strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 17px;
}

.delta-event em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.scan-preview-card,
.preview-demo-card,
.feature-card,
.step-card,
.pricing-card,
.faq-item,
.final-cta-box,
.value-item {
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.scan-preview-card {
    width: 100%;
    max-width: 500px;
    padding: 26px;
}

.scan-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.scan-preview-top h2 {
    margin: 6px 0 0;
    font-size: 24px;
    color: #fff;
}

.preview-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 229, 155, 0.12);
    border: 1px solid rgba(0, 229, 155, 0.22);
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
}

.preview-summary {
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.preview-finding-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.preview-finding-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-finding-item strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 14px;
}

.preview-finding-item span {
    color: var(--muted);
    font-size: 13px;
}

.quick-locked-line {
    display: block;
    color: rgba(0, 229, 155, 0.78) !important;
    font-weight: 700;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 700;
}

.value-strip-section {
    padding: 8px 0 18px;
}

.value-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 0;
    margin-bottom: 0;
}

.value-item {
    padding: 22px;
}

.value-item h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
}

.value-item p {
    margin: 0;
    color: var(--muted);
}

.section-block {
    padding: 34px 0;
}

.alt-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.section-intro {
    margin-top: 0;
    margin-bottom: 26px;
}

.section-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #fff;
    max-width: 14ch;
}

.section-text {
    margin: 0;
    max-width: 64ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.feature-grid,
.steps-grid,
.pricing-grid {
    display: grid;
    gap: 20px;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.feature-card,
.step-card,
.pricing-card,
.faq-item {
    padding: 24px;
}

.feature-card h3,
.step-card h3,
.pricing-card h3,
.faq-item h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.feature-card p,
.step-card p,
.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.step-number {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preview-showcase {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
}

.preview-points {
    margin: 20px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.preview-points li {
    margin-bottom: 10px;
}

.preview-demo-card {
    padding: 26px;
}

.demo-head,
.demo-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.demo-head {
    margin-bottom: 24px;
}

.demo-domain {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.demo-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 229, 155, 0.1);
    border: 1px solid rgba(0, 229, 155, 0.2);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.demo-score {
    margin-top: 6px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 140%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-score-note {
    color: var(--muted);
    font-weight: 600;
}

.demo-divider {
    height: 1px;
    margin: 22px 0;
    background: rgba(255, 255, 255, 0.06);
}

.demo-findings {
    display: grid;
    gap: 14px;
}

.demo-finding {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-finding strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.demo-finding p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.pricing-intro {
    text-align: center;
}

.pricing-intro .section-title,
.pricing-intro .section-text {
    max-width: none;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-card-featured {
    border-color: rgba(0, 229, 155, 0.22);
    box-shadow: 0 16px 40px rgba(0, 229, 155, 0.08);
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 229, 155, 0.1);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 229, 155, 0.2);
}

.pricing-plan {
    margin-bottom: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.pricing-price {
    margin-bottom: 8px;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.pricing-price span {
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

.pricing-target {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.pricing-list {
    margin: 0 0 24px;
    padding-left: 18px;
    color: var(--text);
    flex-grow: 1; /* التعديل 1: ليدفع الأزرار نحو الأسفل دائماً */
}

.pricing-list li {
    margin-bottom: 10px;
}

.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: auto;
    border-radius: 12px;
    font-weight: 800;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    width: 100%; /* التعديل 2: ليأخذ العرض كاملاً */
}

.pricing-btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    box-shadow: 0 12px 26px rgba(0, 229, 155, 0.14);
}

.pricing-btn-primary:hover {
    color: #03110b;
    transform: translateY(-1px);
}

.pricing-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
}

.pricing-btn-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

/* التعديل 3: ضبط الروابط الجانبية (مثل Try free) لتظهر بشكل منتصف أسفل الزر الرئيسي */
.pricing-card > a:not(.pricing-btn) {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.pricing-card > a:not(.pricing-btn):hover {
    color: var(--accent);
}

.pricing-page-hero {
    padding: 58px 0 18px;
}

.pricing-page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 32px;
    align-items: end;
}

.pricing-page-title {
    margin: 0 0 16px;
    max-width: 13ch;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.pricing-page-subtitle {
    margin: 0;
    max-width: 68ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.pricing-page-note {
    padding: 0 0 0 18px;
    border-left: 1px solid rgba(0, 229, 155, 0.34);
}

.pricing-page-note strong,
.pricing-page-note span {
    display: block;
}

.pricing-page-note strong {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-page-note span {
    color: var(--muted);
    line-height: 1.65;
}

.pricing-comparison-section {
    padding: 22px 0 70px;
}

.pricing-plan-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.pricing-plan-summary {
    position: relative;
    min-width: 0;
    padding: 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-plan-summary.is-featured {
    border-color: rgba(0, 229, 155, 0.28);
    box-shadow: 0 18px 58px rgba(0, 229, 155, 0.08);
}

.pricing-plan-summary span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-plan-summary h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.pricing-plan-summary strong {
    display: block;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 18px;
}

.pricing-plan-summary p {
    min-height: 70px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.pricing-plan-summary a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(0, 229, 155, 0.12);
    border: 1px solid rgba(0, 229, 155, 0.22);
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.pricing-matrix-wrap {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.pricing-matrix {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.pricing-matrix th,
.pricing-matrix td {
    padding: 18px 18px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055) !important;
    color: var(--text);
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pricing-matrix thead th {
    color: #ffffff !important;
    font-size: 13px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-matrix tbody th {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-matrix tbody td {
    color: #f6f8fb;
    line-height: 1.55;
}

.pricing-matrix th:not(:last-child),
.pricing-matrix td:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-matrix tbody tr:hover td,
.pricing-matrix tbody tr:hover th {
    background: rgba(0, 229, 155, 0.035) !important;
}

.pricing-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.contact-page-section {
    padding: 58px 0 72px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
    gap: 42px;
    align-items: start;
}

.contact-title {
    margin: 0 0 16px;
    max-width: 11ch;
    color: #fff;
    font-size: clamp(40px, 5.8vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.contact-subtitle {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.contact-proof-line {
    margin-top: 34px;
    padding-left: 18px;
    border-left: 1px solid rgba(0, 229, 155, 0.34);
}

.contact-proof-line strong,
.contact-proof-line span {
    display: block;
}

.contact-proof-line strong {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-proof-line span {
    color: var(--muted);
    line-height: 1.65;
}

.contact-card {
    max-width: none;
}

.contact-alert {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 8px;
    line-height: 1.55;
}

.contact-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 160px;
}

.contact-submit {
    width: 100%;
}

.contact-hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-command-section {
    position: relative;
    overflow: hidden;
}

.faq-command-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.22), rgba(0, 229, 155, 0.2), transparent);
}

.faq-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    gap: 18px;
    align-items: stretch;
}

.faq-command-left,
.faq-terminal-card {
    position: relative;
    min-width: 0;
}

.faq-persona-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-persona-tabs button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.faq-persona-tabs button.is-active {
    color: #06100c;
    background: var(--accent);
    border-color: rgba(0, 229, 155, 0.7);
}

.faq-question-stack {
    display: grid;
    gap: 10px;
}

.faq-command-question {
    position: relative;
    display: grid;
    gap: 7px;
    width: 100%;
    min-height: 86px;
    padding: 18px 18px 18px 22px;
    text-align: left;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(7, 11, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.065);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.faq-command-question::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.faq-command-question:hover,
.faq-command-question.is-active {
    transform: translateX(4px);
    border-color: rgba(0, 229, 155, 0.2);
    background:
        linear-gradient(135deg, rgba(0, 229, 155, 0.08), rgba(66, 153, 225, 0.035)),
        rgba(7, 11, 15, 0.82);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.faq-command-question.is-active::before {
    background: var(--accent);
    box-shadow: 0 0 18px rgba(0, 229, 155, 0.5);
}

.faq-question-title {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.faq-question-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.faq-terminal-card {
    min-height: 384px;
    padding: 52px 20px 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 12%, rgba(66, 153, 225, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
        #070b0f;
    border: 1px solid rgba(0, 180, 216, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.faq-terminal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.48;
}

.faq-terminal-card.terminal-dots::before {
    z-index: 2;
}

.faq-terminal-top,
.faq-terminal-body {
    position: relative;
    z-index: 1;
}

.faq-terminal-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-terminal-top strong {
    color: var(--accent);
}

.faq-terminal-body {
    min-height: 250px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.045);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.faq-prompt {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.faq-terminal-answer {
    display: grid;
    gap: 12px;
}

.faq-terminal-answer p {
    margin: 0;
    min-height: 19px;
    color: #d7e5e0;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.faq-terminal-answer p:last-child::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 14px;
    margin-left: 4px;
    vertical-align: -2px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 155, 0.46);
    animation: terminal-cursor-blink 0.9s steps(1) infinite;
}

@keyframes terminal-cursor-blink {
    50% {
        opacity: 0;
    }
}

.final-cta-section {
    padding: 24px 0 56px;
}

.final-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px;
}

.final-cta-actions {
    flex-shrink: 0;
}

.final-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 229, 155, 0.14);
}

.final-cta-btn:hover {
    color: #03110b;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .hero-grid,
    .pricing-page-hero-inner,
    .contact-grid,
    .preview-showcase,
    .feature-grid,
    .engineering-bento,
    .faq-command-grid,
    .pricing-plan-row,
    .pricing-grid,
    .steps-grid,
    .value-strip {
        grid-template-columns: 1fr;
    }

    .hero-title,
    .section-title,
    .contact-title {
        max-width: none;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .scan-preview-card {
        max-width: none;
    }

    .intelligence-console {
        max-width: none;
    }

    .bento-span-7,
    .bento-span-5 {
        grid-column: 1 / -1;
    }

    .final-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 24px 0 8px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 46px);
    }

    .hero-subtitle,
    .section-text {
        font-size: 15px;
    }

    .hero-proof-row,
    .console-grid,
    .console-metrics,
    .console-pipeline {
        grid-template-columns: 1fr;
    }

    .hero-proof-row div,
    .console-score,
    .console-metrics div,
    .console-pipeline div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero-proof-row div:last-child,
    .console-metrics div:last-child,
    .console-pipeline div:last-child {
        border-bottom: none;
    }

    .console-score {
        padding: 20px 0;
    }

    .console-summary {
        padding: 20px 0;
    }

    .console-score strong {
        font-size: 58px;
    }

    .console-decision,
    .console-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .engineering-section {
        padding: 30px 0;
    }

    .engine-panel,
    .topology-panel,
    .patch-panel,
    .scan-delta-showcase {
        min-height: auto;
        padding: 18px;
        border-radius: 12px;
    }

    .bento-copy h3 {
        font-size: 24px;
    }

    .topology-map {
        min-height: 220px;
    }

    .node-root {
        min-width: 132px;
    }

    .patch-snippet {
        min-height: 160px;
        font-size: 11px;
    }

    .faq-terminal-card {
        min-height: 330px;
    }

    .hero-input-wrap {
        flex-direction: column;
        padding: 12px;
    }

    .hero-input-wrap input,
    .hero-input-wrap button {
        width: 100%;
        min-width: 0;
    }

    .quick-result-title {
        max-width: none;
    }

    .quick-conversion-card {
        padding: 14px;
    }

    .quick-conversion-metrics {
        grid-template-columns: 1fr;
    }

    .quick-unlock-main {
        min-height: 52px;
        font-size: 15px;
    }

    .section-block {
        padding: 28px 0;
    }

    .feature-card,
    .step-card,
    .pricing-card,
    .faq-item,
    .faq-terminal-card,
    .scan-preview-card,
    .preview-demo-card,
    .value-item,
    .final-cta-box {
        padding: 20px;
    }

    .faq-persona-tabs {
        width: 100%;
        border-radius: 14px;
    }

    .faq-persona-tabs button {
        flex: 1 1 160px;
    }

    .faq-command-question {
        min-height: auto;
        padding: 16px 16px 16px 18px;
    }

    .faq-terminal-body {
        min-height: 230px;
        padding: 14px;
    }

    .faq-terminal-card {
        padding-top: 52px;
    }

    .pricing-price {
        font-size: 30px;
    }

    .pricing-page-hero {
        padding: 32px 0 12px;
    }

    .pricing-page-title {
        max-width: none;
        font-size: clamp(32px, 10vw, 46px);
    }

    .pricing-page-note {
        padding-left: 14px;
    }

    .pricing-plan-summary p {
        min-height: 0;
    }

    .pricing-matrix-wrap {
        border: none;
        border-radius: 10px;
        background: transparent;
    }

    .pricing-matrix,
    .pricing-matrix thead,
    .pricing-matrix tbody,
    .pricing-matrix tr,
    .pricing-matrix th,
    .pricing-matrix td {
        display: block;
        width: 100%;
    }

    .pricing-matrix thead {
        display: none;
    }

    .pricing-matrix tr {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .pricing-matrix tbody th {
        padding: 0 0 12px !important;
        border: none !important;
        color: #ffffff !important;
    }

    .pricing-matrix tbody td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 10px 0 !important;
        border: none !important;
    }

    .pricing-matrix tbody td::before {
        content: attr(data-plan);
        color: var(--accent);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pricing-matrix th:not(:last-child),
    .pricing-matrix td:not(:last-child) {
        border-right: none;
    }

    .pricing-final-actions .pricing-btn {
        width: 100%;
    }
}



/* =========================
   FOOTER
========================= */

.site-footer {
    padding: 12px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
    gap: 24px;
    align-items: start;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 28px;
}

.footer-brand-block,
.footer-links-block {
    min-width: 0;
}

.footer-links-block h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.footer-links-block a {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links-block a:hover {
    color: var(--text);
}

.footer-text {
    margin: 16px 0 10px;
    max-width: 38ch;
    color: var(--muted);
    line-height: 1.7;
}

.footer-note {
    margin: 0;
    max-width: 42ch;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.85;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.unlock-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    max-width: 680px;
}

.unlock-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.unlock-field label {
    font-weight: 600;
    color: #f5f7fb;
}

.unlock-field input {
    width: 100%;
}

.unlock-actions {
    display: flex;
    width: 100%;
}

.unlock-actions button {
    width: 100%;
}

.unlock-note {
    max-width: 60ch;
}

.free-report-capture-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-top: 24px;
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 229, 155, 0.08), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(0, 229, 155, 0.18);
}

.free-report-capture-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.free-report-capture-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
}

.free-report-capture-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.free-report-capture-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-weight: 900;
    text-decoration: none;
}

.free-tier-lock-card {
    border-color: rgba(0, 229, 155, 0.16);
}

.free-pro-lock-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.free-pro-lock-strip span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.free-pro-lock-strip strong {
    color: #fff;
    font-size: 13px;
}

.feedback-section {
    padding: 8px 0 54px;
}

.feedback-card {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feedback-copy h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.feedback-copy p {
    margin: 0;
    max-width: 48ch;
    color: var(--muted);
    line-height: 1.65;
}

.feedback-form {
    display: grid;
    gap: 12px;
}

.feedback-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.feedback-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-stars label {
    color: rgba(255, 255, 255, 0.22);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.16s ease, text-shadow 0.16s ease, transform 0.16s ease;
}

.feedback-stars label:hover,
.feedback-stars label:hover ~ label,
.feedback-stars input:checked ~ label {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(0, 229, 155, 0.4);
}

.feedback-stars label:hover {
    transform: translateY(-1px);
}

.feedback-fields {
    display: grid;
    gap: 10px;
}

.feedback-fields input,
.feedback-fields textarea {
    width: 100%;
}

.feedback-fields textarea {
    resize: vertical;
    min-height: 92px;
}

.feedback-submit {
    min-height: 44px;
    border: 1px solid rgba(0, 229, 155, 0.24);
    border-radius: 10px;
    background: rgba(0, 229, 155, 0.12);
    color: var(--accent);
    font-weight: 900;
    cursor: pointer;
}

.feedback-status {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.feedback-status.is-success {
    color: var(--accent);
}

.feedback-status.is-error {
    color: #ff7b7b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
}

.assets-table-wrapper {
    margin-top: 1.5rem;
    overflow-x: auto;
    background: rgba(10, 14, 22, 0.68);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}

.assets-table {
    width: 100%;
    border-collapse: collapse;
}

.assets-table th,
.assets-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.assets-table th {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    font-weight: 600;
}

.findings-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.finding-card {
    background: rgba(10, 14, 22, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.25rem;
}

.finding-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.finding-asset {
    color: rgba(255,255,255,0.78);
    margin-bottom: 0.6rem;
}

.finding-description {
    color: rgba(255,255,255,0.86);
    line-height: 1.7;
    max-width: 90ch;
}

.masked-asset-cell {
    color: rgba(0, 229, 155, 0.82);
    font-family: monospace;
    font-weight: 800;
    letter-spacing: 0;
}

.locked-proof-wrap {
    position: relative;
    min-height: 158px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 155, 0.12);
    background: linear-gradient(135deg, rgba(0, 229, 155, 0.05), rgba(255, 255, 255, 0.02));
}

.blurred-proof {
    padding: 1.35rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.proof-lock-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(0, 229, 155, 0.16), rgba(5, 8, 7, 0.88) 62%);
}

.proof-lock-panel strong {
    color: #ffffff;
    font-size: 16px;
}

.proof-lock-panel span {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.55;
}

.unlock-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 229, 155, 0.18);
}

.finding-severity {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}

.finding-severity-informational {
    background: rgba(87, 179, 255, 0.14);
    color: #8fd0ff;
}

.finding-severity-low {
    background: rgba(31, 199, 125, 0.14);
    color: #7af0b3;
}

.finding-severity-medium {
    background: rgba(255, 184, 77, 0.14);
    color: #ffc66d;
}

.finding-severity-high,
.finding-severity-critical {
    background: rgba(255, 92, 92, 0.14);
    color: #ff8f8f;
}

@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .free-report-capture-card {
        flex-direction: column;
        align-items: stretch;
    }

    .free-report-capture-card a {
        width: 100%;
    }

    .feedback-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRODUCTION UPGRADES — CYBERREFLEX SAAS EXTENSIONS
   ========================================================================== */

/* 1. الفئات المخصصة للجداول لتعويض الـ Inline Styles وحماية أبعاد العرض */
.td-domain {
    font-weight: 600;
    color: var(--text);
}

.td-muted {
    color: var(--muted);
    font-size: 13px;
}

/* 2. دعم رتبة الخطورة الحرجة (Critical Severity Badge) */
.badge-critical {
    background: rgba(180, 0, 0, 0.15);
    color: #ff1744;
    border-color: rgba(180, 0, 0, 0.3);
}

/* 3. هيكلة شبكة توزيع المخاطر الجديدة في ملف التقرير (Severity Overview) */
.severity-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.severity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: background var(--transition), border-color var(--transition);
}

.severity-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.severity-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* 4. دعم توزيع الشبكة الرباعي لمؤشرات الأداء (Grid-4 KPIs Breakdown) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* التجاوب السلس مع الشاشات الصغيرة للمؤشرات الرباعية */
@media (max-width: 980px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DASHBOARD EXPERIENCE
   ========================================================================== */

.dashboard-shell {
    margin-top: 64px;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.dashboard-kicker {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dashboard-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 229, 155, 0.18);
    border-radius: 999px;
    background: rgba(0, 229, 155, 0.06);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-live-pill span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
    animation: dot-pulse 1.5s infinite;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.8fr) minmax(260px, 0.65fr);
    gap: 22px;
    margin-bottom: 44px;
}

.score-hero-panel,
.dashboard-panel,
.dashboard-section {
    position: relative;
    overflow: hidden;
}

.score-hero-panel,
.dashboard-panel {
    min-height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background:
        radial-gradient(circle at 72% 30%, rgba(0, 229, 155, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(12, 18, 28, 0.78), rgba(5, 9, 15, 0.5));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.score-hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
}

.score-copy {
    max-width: 340px;
}

.score-status {
    margin: 10px 0 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.score-context {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.score-orbit {
    --score-deg: calc(var(--score) * 3.6deg);
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 178px;
    width: 178px;
    height: 178px;
    border-radius: 50%;
    background:
        conic-gradient(var(--score-color) var(--score-deg), rgba(255, 255, 255, 0.07) 0),
        radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    box-shadow: 0 0 34px color-mix(in srgb, var(--score-color), transparent 62%);
}

.score-orbit::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    background: rgba(3, 5, 8, 0.92);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.55);
}

.score-orbit-ring {
    position: absolute;
    inset: -8px;
    border: 1px solid color-mix(in srgb, var(--score-color), transparent 55%);
    border-radius: inherit;
    filter: drop-shadow(0 0 14px var(--score-color));
    animation: slow-spin 9s linear infinite;
}

.score-core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #fff;
}

.score-core strong {
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.score-core span {
    color: var(--score-color);
    font-size: 18px;
    font-weight: 900;
}

.dashboard-panel {
    padding: 24px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-heading span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.threat-bars {
    display: grid;
    gap: 18px;
}

.threat-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.threat-row-top span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.threat-row-top strong {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.threat-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.threat-track span {
    display: block;
    width: var(--bar-width);
    height: 100%;
    border-radius: inherit;
    transform-origin: left;
    animation: bar-grow 0.8s ease-out both;
}

.threat-critical .threat-track span {
    background: #ff1744;
    box-shadow: 0 0 16px rgba(255, 23, 68, 0.45);
}

.threat-high .threat-track span {
    background: #ff5252;
    box-shadow: 0 0 16px rgba(255, 82, 82, 0.4);
}

.threat-medium .threat-track span {
    background: #ffb800;
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.34);
}

.threat-low .threat-track span {
    background: #50aaff;
    box-shadow: 0 0 16px rgba(80, 170, 255, 0.34);
}

.surface-panel {
    display: flex;
    flex-direction: column;
}

.surface-map {
    position: relative;
    flex: 1;
    min-height: 142px;
    margin-top: 8px;
}

.surface-map::before,
.surface-map::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 155, 0.26), transparent);
    transform: translate(-50%, -50%) rotate(24deg);
}

.surface-map::after {
    transform: translate(-50%, -50%) rotate(-31deg);
}

.surface-node {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 155, 0.26);
    background: rgba(0, 229, 155, 0.08);
    box-shadow: 0 0 24px rgba(0, 229, 155, 0.14);
}

.node-main {
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
}

.node-main strong {
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.node-main span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.node-small {
    width: 34px;
    height: 34px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.node-a {
    left: 10%;
    top: 18%;
}

.node-b {
    right: 8%;
    top: 24%;
}

.node-c {
    left: 18%;
    bottom: 8%;
}

.surface-caption {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.8fr);
    gap: 48px;
    align-items: start;
}

.dashboard-main-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dashboard-section {
    padding: 0;
}

.perimeter-panel {
    position: relative;
    padding: 0;
    overflow: visible;
}

.perimeter-panel::before {
    content: none;
}

.perimeter-panel > * {
    position: relative;
    z-index: 1;
}

.empty-state {
    margin: 0;
    padding: 24px 0;
    color: var(--muted);
    font-size: 13px;
}

.mono-muted {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 13px;
}

.risk-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.risk-hot {
    color: #ff5252;
    text-shadow: 0 0 14px rgba(255, 82, 82, 0.2);
}

.risk-calm {
    color: var(--accent);
}

.perimeter-delta {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.perimeter-delta em {
    display: block;
    color: rgba(255, 255, 255, 0.42);
    font-style: normal;
    font-weight: 600;
}

.perimeter-delta.delta-improved {
    color: var(--accent);
}

.perimeter-delta.delta-worse {
    color: #ff6262;
}

.perimeter-delta.delta-stable,
.perimeter-delta.delta-baseline {
    color: var(--text-muted);
}

.dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.perimeter-list {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.perimeter-head,
.perimeter-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.15fr) minmax(105px, 0.62fr) minmax(150px, 0.95fr) minmax(86px, 0.5fr) minmax(98px, 0.48fr);
    gap: 22px;
    align-items: center;
}

.perimeter-head {
    min-height: 58px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.perimeter-row {
    min-height: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.perimeter-row:last-child {
    border-bottom: none;
}

.perimeter-cell {
    min-width: 0;
}

.perimeter-cell > span {
    display: none;
}

.perimeter-cell strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.perimeter-domain strong {
    font-size: 17px;
}

.perimeter-surface strong {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: var(--text-muted);
    font-family: monospace;
}

.perimeter-surface b {
    color: var(--accent);
    font-size: 16px;
}

.simple-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(0, 229, 155, 0.08);
    border: 1px solid rgba(0, 229, 155, 0.2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.simple-status.is-running {
    color: #c3adff;
    background: rgba(163, 132, 255, 0.08);
    border-color: rgba(163, 132, 255, 0.22);
}

.perimeter-analysis {
    display: flex;
    justify-content: flex-end;
}

.deploy-form {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.deploy-input {
    flex: 1;
}

.deploy-input input {
    width: 100%;
}

.upgrade-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffb800;
    color: #000;
    text-decoration: none;
}

.operations-panel {
    position: sticky;
    top: 96px;
}

.delta-panel {
    padding: 0;
}

.dashboard-delta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-delta-strip > div {
    min-width: 0;
    padding: 16px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard-delta-strip > div:last-child {
    border-right: none;
}

.dashboard-delta-strip span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-delta-strip strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.dashboard-delta-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.dashboard-timeline {
    --timeline-axis: 10px;
    padding-left: 0;
    margin-top: 2px;
}

.dashboard-timeline::before {
    left: var(--timeline-axis);
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(0, 229, 155, 0.95) 0%,
        rgba(0, 229, 155, 0.55) 52%,
        rgba(255, 255, 255, 0.06) 100%
    );
    box-shadow: 0 0 14px rgba(0, 229, 155, 0.28);
}

.dashboard-timeline .timeline-item {
    padding-left: 52px;
    padding-bottom: 28px;
}

.dashboard-timeline .timeline-dot {
    left: calc(var(--timeline-axis) - 6px);
    top: 4px;
    width: 12px;
    height: 12px;
    background: #030508;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 229, 155, 0.08), 0 0 14px rgba(0, 229, 155, 0.75);
}

.dashboard-timeline .timeline-dot.active {
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(0, 229, 155, 0.14), 0 0 18px rgba(0, 229, 155, 0.95);
    animation: dashboard-dot-pulse 1.6s infinite;
}

.dashboard-timeline .timeline-title {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-timeline .timeline-note {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.score-hero-panel,
.dashboard-panel,
.dashboard-section {
    animation: dashboard-fade-up 0.65s ease both;
}

.dashboard-panel:hover,
.score-hero-panel:hover {
    border-color: rgba(0, 229, 155, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 32px rgba(0, 229, 155, 0.07);
    transform: translateY(-2px);
}

@keyframes dashboard-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bar-grow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

@keyframes dashboard-dot-pulse {
    0% {
        box-shadow: 0 0 0 4px rgba(0, 229, 155, 0.16), 0 0 14px rgba(0, 229, 155, 0.75);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 229, 155, 0), 0 0 20px rgba(0, 229, 155, 0.9);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(0, 229, 155, 0), 0 0 14px rgba(0, 229, 155, 0.75);
    }
}

@keyframes perimeter-live-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

@media (max-width: 1180px) {
    .dashboard-hero-grid,
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .operations-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .perimeter-head {
        display: none;
    }

    .perimeter-row {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
        gap: 16px 18px;
        align-items: start;
        padding: 18px 0;
    }

    .perimeter-cell > span {
        display: block;
        margin-bottom: 6px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .perimeter-domain {
        grid-column: 1 / -1;
    }

    .perimeter-analysis {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .dashboard-shell {
        margin-top: 32px;
    }

    .dashboard-header,
    .score-hero-panel,
    .deploy-form {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-title {
        font-size: 34px;
    }

    .score-orbit {
        align-self: center;
        width: 154px;
        height: 154px;
        flex-basis: 154px;
    }

    .score-core strong {
        font-size: 46px;
    }

    .perimeter-row {
        grid-template-columns: 1fr;
    }

    .perimeter-analysis,
    .dashboard-action {
        width: 100%;
    }

    .dashboard-action {
        min-height: 42px;
    }
}

/* ==========================================================================
   PRO REPORT EXPERIENCE
   ========================================================================== */

.report-shell {
    margin-top: 42px;
    overflow-x: clip;
}

.report-back-link {
    display: inline-flex;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.report-back-link::before {
    content: "<";
    margin-right: 8px;
    color: var(--accent);
}

.report-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.report-export-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    color: var(--accent);
    border-bottom: 1px solid rgba(0, 229, 155, 0.35);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
}

.report-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.report-subtitle {
    max-width: 68ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.report-score-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 76px;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 10px 18px;
    min-height: 154px;
    padding: 22px;
    border: 1px solid rgba(0, 229, 155, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 50%, rgba(0, 229, 155, 0.16), transparent 34%),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36), 0 0 34px rgba(0, 229, 155, 0.08);
}

.report-score-card::before {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 76px;
    height: 76px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--score) * 3.6deg), rgba(255, 255, 255, 0.07) 0);
    box-shadow: 0 0 22px rgba(0, 229, 155, 0.16);
}

.report-score-card::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 50%;
    width: 60px;
    height: 60px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #030508;
}

.report-score-card span,
.report-score-value {
    position: relative;
    z-index: 1;
}

.report-score-card span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-score-value {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.report-score-value strong {
    color: #fff;
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.report-score-value em {
    color: var(--accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin-bottom: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.report-metric {
    padding: 18px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.report-metric:last-child {
    border-right: none;
}

.report-metric span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-metric strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: clamp(21px, 2.2vw, 32px);
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.report-metric em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.metric-hot strong {
    color: #ff5252;
    text-shadow: 0 0 18px rgba(255, 82, 82, 0.22);
}

.scan-delta-panel {
    margin-bottom: 42px;
    padding: 0;
}

.scan-delta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scan-delta-grid > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.scan-delta-grid > div:last-child {
    border-right: none;
}

.scan-delta-grid span,
.scan-delta-lists h3 {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scan-delta-grid strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.scan-delta-grid em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.delta-new {
    color: #ff6262 !important;
    text-shadow: 0 0 18px rgba(255, 82, 82, 0.24);
}

.delta-resolved {
    color: var(--accent) !important;
    text-shadow: 0 0 18px rgba(0, 229, 155, 0.2);
}

.scan-delta-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.scan-delta-lists > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.scan-delta-lists > div:last-child {
    border-right: none;
}

.scan-delta-lists p,
.scan-delta-calm {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.scan-delta-lists p strong {
    display: block;
    color: #fff;
    overflow-wrap: anywhere;
}

.scan-delta-lists p span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-family: monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.scan-delta-more {
    color: var(--accent) !important;
    font-weight: 800;
}

.scan-delta-calm {
    padding: 18px 20px;
    color: var(--muted);
}

.decision-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr) minmax(260px, 0.7fr);
    gap: 0;
    margin-bottom: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.decision-block {
    min-height: 270px;
    padding: 24px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.decision-block:last-child {
    border-right: none;
}

.decision-line {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.decision-line:last-child {
    border-bottom: none;
}

.decision-line span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.decision-line strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.55;
}

.simulation-list,
.impact-list,
.action-plan-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.simulation-list {
    counter-reset: sim;
    display: grid;
    gap: 14px;
}

.simulation-list li {
    counter-increment: sim;
    position: relative;
    padding-left: 34px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

.simulation-list li::before {
    content: counter(sim);
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 229, 155, 0.1);
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
}

.impact-list {
    display: grid;
    gap: 13px;
}

.impact-list li {
    padding-left: 18px;
    border-left: 2px solid rgba(255, 82, 82, 0.5);
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

.report-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.report-main-column,
.report-side-column {
    display: grid;
    gap: 38px;
    min-width: 0;
}

.report-section {
    padding: 0;
}

.decision-card-list {
    display: grid;
    gap: 16px;
}

.finding-decision-card {
    position: relative;
    padding: 22px 0 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.finding-decision-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 14px rgba(0, 229, 155, 0.28);
}

.finding-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.finding-card-head > div {
    min-width: 0;
}

.finding-card-head h3 {
    margin: 10px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}

.confidence-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    border: 1px solid rgba(0, 229, 155, 0.18);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.finding-asset-line {
    margin: 10px 0 16px;
    color: var(--accent);
    font-family: monospace;
    font-size: 13px;
}

.decision-mini-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(120px, 0.55fr) minmax(260px, 1.65fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.decision-mini-grid div {
    padding: 14px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    min-width: 0;
}

.decision-mini-grid div:last-child {
    border-right: none;
}

.decision-mini-grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.decision-mini-grid strong {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fix-patch-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fix-patch-trigger,
.patch-copy-button,
.patch-modal-close {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.fix-patch-trigger {
    padding: 0 0 4px;
    background: transparent;
    color: var(--accent);
    border-bottom: 1px solid rgba(0, 229, 155, 0.45);
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fix-patch-trigger:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(0, 229, 155, 0.08);
    color: #fff;
}

.fix-patch-row span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.patch-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.patch-modal.is-open {
    display: flex;
}

.patch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.patch-modal-panel {
    position: relative;
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    background: rgba(5, 9, 13, 0.94);
    border: 1px solid rgba(0, 229, 155, 0.18);
    border-radius: 10px;
    box-shadow: 0 0 70px rgba(0, 229, 155, 0.12);
    overflow: hidden;
}

.patch-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.patch-modal-head span {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.patch-modal-head h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}

.patch-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
    box-shadow: none;
}

.patch-modal-close:hover {
    transform: none;
    color: #fff;
    box-shadow: none;
}

.patch-code {
    margin: 0;
    padding: 24px;
    overflow: auto;
    color: #d9fff3;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.patch-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px 22px;
}

.patch-copy-button {
    min-height: 38px;
    padding: 0 14px;
    background: var(--accent);
    color: #03110b;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0, 229, 155, 0.16);
}

.patch-copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 229, 155, 0.22);
}

.patch-modal-actions span {
    color: var(--muted);
    font-size: 12px;
}

/* ==========================================================================
   BILLING / PLAN MATRIX
   ========================================================================== */

.billing-shell {
    margin-top: 42px;
}

.billing-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.billing-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
}

.billing-subtitle {
    max-width: 62ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.billing-plan-mark {
    color: var(--accent);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(0, 229, 155, 0.2);
    white-space: nowrap;
}

.billing-notice,
.billing-error {
    margin-bottom: 24px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 800;
}

.billing-notice {
    color: var(--accent);
}

.billing-error {
    color: #ff7b7b;
}

.billing-current,
.billing-matrix {
    margin-bottom: 44px;
}

.billing-current-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.billing-current-grid > div {
    min-width: 0;
    padding: 20px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.billing-current-grid > div:last-child {
    border-right: none;
}

.billing-current-grid span,
.billing-plan-head span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.billing-current-grid strong {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.billing-current-grid .billing-accent {
    color: var(--accent);
    text-shadow: 0 0 16px rgba(0, 229, 155, 0.2);
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.billing-plan {
    padding: 22px;
    background: rgba(255, 255, 255, 0.012);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.billing-plan:hover,
.billing-plan.is-current {
    background: rgba(0, 229, 155, 0.025);
    border-color: rgba(0, 229, 155, 0.18);
}

.billing-plan:hover {
    transform: translateY(-2px);
}

.billing-plan-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.billing-plan-head h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
}

.billing-plan-head strong {
    color: var(--accent);
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.billing-positioning {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 9px;
    color: var(--accent);
    background: rgba(0, 229, 155, 0.07);
    border: 1px solid rgba(0, 229, 155, 0.16);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.billing-plan p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.billing-plan .billing-outcome {
    color: #fff;
    font-size: 14px;
    line-height: 1.65;
}

.billing-plan ul {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.billing-plan li {
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
}

.billing-plan li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 229, 155, 0.35);
    vertical-align: middle;
}

.billing-plan form {
    display: block;
}

.billing-plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #03110b;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.billing-plan-button.is-disabled {
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: default;
}

.billing-plan-button.is-muted-link {
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.billing-cancel-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 60px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 82, 82, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.billing-cancel-zone h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.billing-cancel-zone p {
    max-width: 76ch;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.billing-cancel-button {
    min-width: 180px;
    min-height: 42px;
    border-radius: 8px;
    background: rgba(255, 82, 82, 0.1);
    color: #ff7b7b;
    border: 1px solid rgba(255, 82, 82, 0.24);
    font-size: 12px;
    font-weight: 900;
}

.billing-canceled-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    color: #ffb4b4;
    background: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.signup-plan-picker {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.signup-plan-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.signup-plan-option input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.signup-plan-option strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.signup-plan-option em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
}

.signup-plan-option.is-selected {
    border-color: rgba(0, 229, 155, 0.22);
}

.signup-plan-option.is-selected strong {
    color: var(--accent);
}

.checkout-shell {
    margin-top: 42px;
}

.checkout-panel {
    max-width: 880px;
}

.checkout-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
}

.checkout-subtitle {
    max-width: 58ch;
    margin: 14px 0 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0;
    margin: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-summary > div {
    min-width: 0;
    padding: 18px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.checkout-summary > div:last-child {
    border-right: none;
}

.checkout-summary span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-summary strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.checkout-actions {
    max-width: 360px;
}

.checkout-actions p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.paypal-subscribe-box {
    min-height: 150px;
}

.checkout-paypal-error {
    color: #ff7b7b !important;
    font-weight: 800;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alerts-shell {
    margin-top: 42px;
}

.alerts-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.alerts-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
}

.alerts-subtitle {
    max-width: 62ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.alerts-mark-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.alerts-list {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.alert-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.alert-row.is-unread {
    box-shadow: inset 3px 0 0 rgba(255, 82, 82, 0.55);
    padding-left: 16px;
}

.alert-row-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.alert-row-head strong {
    color: #fff;
    font-size: 16px;
}

.alert-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.alert-meta {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
}

.alert-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-actions a,
.alert-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 760px) {
    .billing-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .billing-cancel-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-cancel-button {
        width: 100%;
    }

    .billing-current-grid > div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .billing-current-grid > div:last-child {
        border-bottom: none;
    }

    .checkout-summary > div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .checkout-summary > div:last-child {
        border-bottom: none;
    }

    .alerts-hero,
    .alert-row,
    .alert-actions {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

.evidence-list {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.evidence-row {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.evidence-row:last-child {
    border-bottom: none;
}

.evidence-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.evidence-row-head h3 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.evidence-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.evidence-meta span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.evidence-meta strong {
    color: var(--accent);
    font-family: monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.evidence-row p {
    max-width: 92ch;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    white-space: normal;
    overflow-wrap: anywhere;
}

.action-plan-panel {
    position: static;
}

.action-plan-wide {
    margin-bottom: 42px;
    padding-top: 4px;
}

.action-plan-list {
    counter-reset: action;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-plan-list li {
    counter-increment: action;
    position: relative;
    min-height: 150px;
    padding: 22px 22px 22px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.action-plan-list li:last-child {
    border-right: none;
}

.action-plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}

.action-plan-list li span {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.action-plan-list li strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.asset-list {
    display: grid;
    gap: 12px;
}

.asset-list-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.asset-list-item:last-child {
    border-bottom: none;
}

.asset-list-item strong {
    display: block;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.asset-list-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.clean-report-state,
.report-failed-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.clean-report-state strong {
    color: #fff;
    font-size: 22px;
}

.clean-report-state p,
.report-failed-state p {
    max-width: 62ch;
    margin: 10px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.processing-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.processing-loader {
    margin: 0 auto 32px;
    width: 90px;
    height: 90px;
}

.processing-loader .score-pulse-ring {
    border-width: 4px;
    box-shadow: 0 0 20px var(--accent);
}

.processing-loader span {
    position: relative;
    z-index: 1;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    animation: scan-text-pulse 1.5s infinite;
}

.processing-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.processing-line {
    min-height: 24px;
    margin: 0;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.processing-meter {
    width: min(420px, 80vw);
    height: 1px;
    margin-top: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.processing-meter::before {
    content: "";
    display: block;
    width: 42%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
    animation: scan-sweep 1.8s infinite ease-in-out;
}

@keyframes scan-text-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@keyframes scan-sweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

@media (max-width: 1100px) {
    .report-hero,
    .decision-hero-grid,
    .report-content-grid {
        grid-template-columns: 1fr;
    }

    .decision-block {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .decision-block:last-child {
        border-bottom: none;
    }

    .decision-mini-grid {
        grid-template-columns: 1fr;
    }

    .decision-mini-grid div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .decision-mini-grid div:last-child {
        border-bottom: none;
    }
}

@media (max-width: 760px) {
    .report-metrics-grid,
    .action-plan-list,
    .scan-delta-grid,
    .scan-delta-lists {
        grid-template-columns: 1fr;
    }

    .report-metric {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .action-plan-list li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .action-plan-list li:last-child {
        border-bottom: none;
    }

    .scan-delta-grid > div,
    .scan-delta-lists > div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .scan-delta-grid > div:last-child,
    .scan-delta-lists > div:last-child {
        border-bottom: none;
    }

    .evidence-row-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-score-card {
        width: min(100%, 260px);
        margin: 0 auto;
    }
}
