/* Cyberblog Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --cb-primary: #E31C23;
    /* Intedya Red */
    --cb-dark: #1E1E2E;
    /* Dark Background */
    --cb-surface: #FFFFFF;
    /* White Surface */
    --cb-text: #2D3748;
    /* Dark Grey Text */
    --cb-text-light: #718096;
    /* Light Grey Text */
    --cb-border: #E2E8F0;
    /* Light Border */
    --cb-success: #38A169;
    --cb-warning: #D69E2E;
    --cb-danger: #E53E3E;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--cb-text);
    background-color: #F7FAFC;
    line-height: 1.6;
}

/* Swiper Slide / Card Styling */
.swiper-slide {
    background: var(--cb-surface);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Soft modern shadow */
    padding: 1rem 1rem 3rem 1rem;
    /* Compact padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Better vertical alignment */
    height: 100vh;
    /* Full viewport height */
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--cb-primary), #FF6B6B);
}

.poc-step-title {
    font-size: 1.5rem;
    /* Reduced size */
    font-weight: 700;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    color: var(--cb-dark);
    text-align: center;
}

.poc-step-content {
    font-size: 1.125rem;
    color: var(--cb-text-light);
    max-width: 800px;
    text-align: center;
}

/* Visual Stage - Tech Grid Background */
.poc-visual-stage {
    width: 100%;
    height: 350px;
    background-color: #F8F9FA;
    background-image:
        linear-gradient(rgba(227, 28, 35, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 28, 35, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    border: 1px solid var(--cb-border);
    border-radius: 16px;
    position: relative;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    overflow: hidden;
}

/* Network Nodes (Server/Attacker) */
.network-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--cb-border);
    z-index: 10;
}

.network-node i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.network-node.attacker {
    border-color: var(--cb-danger);
    color: var(--cb-danger);
}

.network-node.server {
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Interaction Button */
button.wp-block-button__link {
    background: var(--cb-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(227, 28, 35, 0.2);
}

button.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(227, 28, 35, 0.3);
}

/* Swiper Navigation Customization */
.swiper-pagination-bullet-active {
    background: var(--cb-primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--cb-primary) !important;
}

/* --- XSS POC Specific Styles --- */

/* 1. Fake Browser Window */
.fake-browser {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
}

.browser-toolbar {
    background: #f1f3f4;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-dots {
    display: flex;
    gap: 4px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.browser-dot.red {
    background: #ff5f56;
}

.browser-dot.yellow {
    background: #ffbd2e;
}

.browser-dot.green {
    background: #27c93f;
}

.browser-address {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 99px;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    flex-grow: 1;
    color: #666;
    text-align: left;
}

.browser-content {
    padding: 2rem;
    min-height: 200px;
    position: relative;
    background: #fff;
}

/* 2. Code Editor */
.code-editor-ui {
    width: 100%;
    max-width: 600px;
    background: #282a36;
    /* Dracula bg */
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    margin: 1rem auto;
    font-family: 'Consolas', 'Monaco', monospace;
    position: relative;
}

.code-line {
    color: #f8f8f2;
    margin-bottom: 0.5rem;
}

.code-keyword {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-tag {
    color: #8be9fd;
}

.payload-select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 1rem;
    background: #44475a;
    border: 1px solid #6272a4;
    color: #f8f8f2;
    border-radius: 4px;
    font-family: monospace;
    cursor: pointer;
}

/* 3. Simulation Elements */
.victim-screen,
.attacker-screen {
    width: 200px;
    height: 150px;
    border: 4px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: absolute;
}

.victim-screen {
    left: 50px;
    top: 50px;
    border-color: var(--cb-success);
}

.attacker-screen {
    right: 50px;
    top: 150px;
    border-color: var(--cb-danger);
}

.cookie-packet {
    width: 40px;
    height: 40px;
    background: #D69E2E;
    /* Cookie color */
    border-radius: 50%;
    position: absolute;
    display: none;
    /* Hidden by default */
    z-index: 20;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive fixes from before */
/* Responsive fixes from before */
.cyberblog-poc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #ffffff;
    /* Seamless integration */
}

.runner-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.cyber-poc-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background: var(--cb-surface);
    border-radius: 0;
    box-shadow: none;
    padding: 0.5rem 1rem 3rem 1rem;
    /* Reduced padding for more space, but increased bottom for nav controls */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;

    /* --- Phase 1 Split Layout --- */
    .split-console-layout {
        display: flex;
        width: 100%;
        max-width: 95%;
        /* Maximized width */
        height: 80vh;
        /* Maximized height */
        gap: 0;
        /* Seamless */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        margin-top: 0.5rem;
    }

    .console-pane {
        flex: 1;
        background: #1e1e1e;
        /* VS Code Dark */
        color: #d4d4d4;
        padding: 1.5rem;
        font-family: 'Consolas', 'Monaco', monospace;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .preview-pane {
        flex: 1;
        background: #ffffff;
        position: relative;
        border-left: 1px solid #ddd;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Console Elements */
    .console-header {
        color: #888;
        font-size: 0.8rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .console-output {
        flex-grow: 1;
        overflow-y: auto;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        color: #4ec9b0;
        /* VS Code Cyan */
    }

    .console-input-wrapper {
        display: flex;
        align-items: center;
        border-top: 1px solid #333;
        padding-top: 0.5rem;
    }

    .prompt-char {
        color: #007acc;
        margin-right: 0.5rem;
        font-weight: bold;
    }

    .console-input {
        background: transparent;
        border: none;
        color: #fff;
        font-family: inherit;
        font-size: 1rem;
        width: 100%;
        outline: none;
    }

    .payload-suggestions {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .suggestion-chip {
        background: #2d2d2d;
        color: #ce9178;
        /* String color */
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
        font-size: 0.8rem;
        cursor: pointer;
        border: 1px solid #444;
        transition: all 0.2s;
    }

    .suggestion-chip:hover {
        background: #3e3e3e;
        border-color: #ce9178;
        font-size: 0.8rem;
        cursor: pointer;
        border: 1px solid #444;
        transition: all 0.2s;
    }

    .suggestion-chip:hover {
        background: #3e3e3e;
        border-color: #ce9178;
    }

    /* Preview Elements */
    .fake-url-bar {
        background: #f1f3f4;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #ddd;
        font-size: 0.8rem;
        color: #555;
        display: flex;
        align-items: center;
    }

    .preview-content {
        padding: 2rem;
        flex-grow: 1;
        position: relative;
        overflow: hidden;
    }

    /* Simulated Effects */
    .custom-alert-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }

    .custom-alert-box {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        text-align: center;
        width: 300px;
    }

    .google-redirect {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .google-logo {
        font-size: 3rem;
        font-weight: bold;
        color: #4285F4;
        letter-spacing: -2px;
    }

    .google-logo span:nth-child(2) {
        color: #EA4335;
    }

    .google-logo span:nth-child(3) {
        color: #FBBC05;
    }

    .google-logo span:nth-child(4) {
        color: #4285F4;
    }

    .google-logo span:nth-child(5) {
        color: #34A853;
    }

    .google-logo span:nth-child(6) {
        color: #EA4335;
    }

    /* Payload Buttons */
    .payload-btn {
        background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
        color: #e0e0e0;
        border: 1px solid #444;
        padding: 0.6rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.85rem;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 500;
    }

    .payload-btn:hover {
        background: linear-gradient(135deg, #3e3e3e 0%, #2e2e2e 100%);
        border-color: #666;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .payload-btn.active {
        background: linear-gradient(135deg, #00d4ff 0%, #00a3cc 100%);
        color: #1a1a2e;
        border-color: #00d4ff;
        font-weight: bold;
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }

    .payload-explanation {
        background: rgba(0, 212, 255, 0.1);
        border-left: 3px solid #00d4ff;
        padding: 0.8rem;
        border-radius: 0 4px 4px 0;
        margin-top: 1rem;
        font-size: 0.9rem;
        color: #ccc;
        line-height: 1.4;
    }

    /* --- Phase 2: Advanced Attack Simulation --- */

    .phase2-container {
        width: 100%;
        max-width: 95%;
        height: 80vh;
        /* Reduced height */
        margin-top: 0.5rem;
        position: relative;
        background: #1e1e1e;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        perspective: 1000px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    /* Panes */
    .pane-payload,
    .pane-listener,
    .pane-victim {
        height: 100%;
        position: absolute;
        top: 0;
        transition: all 0.8s ease-in-out;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* 1. Payload Pane (Initial Left) */
    .pane-payload {
        width: 50%;
        left: 0;
        background: #2d2d2d;
        border-right: 1px solid #444;
        font-family: 'Consolas', monospace;
        color: #fff;
        z-index: 20;
    }

    /* 2. Listener Pane (Initial Right, Moves to Left) */
    .pane-listener {
        width: 50%;
        right: 0;
        background: #000;
        color: #0f0;
        font-family: 'Consolas', monospace;
        border-left: 1px solid #333;
        z-index: 20;
    }

    /* 3. Victim Pane (Initially Hidden/Off-screen Right) */
    .pane-victim {
        width: 50%;
        right: -50%;
        background: #f0f0f0;
        z-index: 10;
        /* Flex content fix */
    }

    /* Layout Helpers */
    .phase2-header {
        flex-shrink: 0;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .terminal-header {
        display: flex;
        gap: 5px;
        opacity: 0.6;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
    }

    .phase2-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 10px 15px;
        word-break: break-all;
        box-sizing: border-box;
    }

    .phase2-footer {
        flex-shrink: 0;
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
        font-weight: bold;
        padding: 8px 0;
    }

    .footer-attacker {
        background: #333;
        color: #fff;
        border-top: 1px solid #444;
    }

    .footer-victim {
        background: #e0e0e0;
        color: #666;
        border-top: 1px solid #ccc;
    }

    /* Internal Elements */
    .terminal-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #555;
    }

    .terminal-dot.red {
        background: #ff5f56;
    }

    .terminal-dot.yellow {
        background: #ffbd2e;
    }

    .terminal-dot.green {
        background: #27c93f;
    }

    .typewriter-text {
        color: #4ec9b0;
        font-size: 0.9rem;
        white-space: pre-wrap;
        line-height: 1.5;
    }

    .listener-cursor {
        display: inline-block;
        width: 8px;
        height: 14px;
        background: #0f0;
        animation: blink 1s infinite;
        vertical-align: sub;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }

    /* Email Client UI - Fixed Nested Flex */
    .email-client {
        width: 100%;
        flex: 1;
        /* Take all available vertical space */
        min-height: 0;
        /* Allow flex shrinking */
        background: white;
        display: flex;
        flex-direction: column;
    }

    .email-header {
        background: #4285f4;
        color: white;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
        /* Prevent header shrinking */
    }

    .email-body {
        padding: 20px;
        flex-grow: 1;
        /* Fill remaining space */
        overflow-y: auto;
        /* Scroll internally if needed */
        color: #333;
    }

    .email-from {
        font-weight: bold;
        margin-bottom: 5px;
        display: block;
    }

    .email-subject {
        font-size: 1.1rem;
        margin-bottom: 20px;
        display: block;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .phishing-link {
        background: #007bff;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 4px;
        display: inline-block;
        margin-top: 10px;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Fake Mouse Cursor */
    .fake-mouse-cursor {
        position: absolute;
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2l12 11.2-5.8.5 3.3 7.3-2.2.9-3.2-7.4-4.4 4V2z'/%3E%3C/svg%3E");
        z-index: 100;
        pointer-events: none;
        top: 100%;
        left: 100%;
        transition: top 1s, left 1s;
    }

    /* LOGS */
    .log-entry {
        color: #0f0;
        margin-top: 2px;
        /* Close the gap */
        opacity: 0;
        transition: opacity 0.5s;
    }

    .log-success {
        color: #00ff00;
        font-weight: bold;
        margin-top: 10px;
        opacity: 0;
        transition: opacity 0.5s;
        text-shadow: 0 0 5px #00ff00;
    }

    /* TRANSITIONS & STATE */
    .phase2-container.zoomed-out .pane-payload {
        transform: translateX(-100%);
        opacity: 0.5;
    }

    .phase2-container.zoomed-out .pane-listener {
        width: 50%;
        right: 50%;
        /* Move to Left side */
        border-right: 1px solid #333;
        border-left: none;
    }

    .phase2-container.zoomed-out .pane-victim {
        right: 0;
        /* Move in from right */
    }

    /* --- RESPONSIVE MOBILE (<900px) --- */
    @media (max-width: 900px) {
        .phase2-container {
            flex-direction: column;
        }

        /* Stack vertical */
        .pane-payload,
        .pane-listener,
        .pane-victim {
            width: 100% !important;
            height: 50% !important;
            left: 0 !important;
            right: 0 !important;
            border: none !important;
        }

        /* Initial State: Payload Top, Listener Bottom */
        .pane-payload {
            top: 0;
            border-bottom: 1px solid #444;
        }

        .pane-listener {
            top: 50%;
            border-top: 1px solid #333;
        }

        .pane-victim {
            top: 100%;
            /* Hidden below */
            border-top: 1px solid #ccc;
        }

        /* Transition for Mobile */
        .phase2-container.zoomed-out .pane-payload {
            transform: translateY(-100%);
            /* Slide UP out */
        }

        .phase2-container.zoomed-out .pane-listener {
            top: 0;
            /* Slide UP to Top */
            border-bottom: 1px solid #333;
        }

        .phase2-container.zoomed-out .pane-victim {
            top: 50%;
            /* Slide UP to Bottom half */
        }
    }
}

/* ============================================
   XSS EXPLAINER FLOW (Slide 1)
   ============================================ */

.xss-explainer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 24px 16px 16px;
    width: 100%;
    max-width: 750px;
}

.explainer-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.explainer-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.explainer-ok {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.explainer-danger {
    background: linear-gradient(135deg, #fc8181, #e53e3e);
    color: white;
}

.explainer-victim {
    background: linear-gradient(135deg, #f6ad55, #dd6b20);
    color: white;
}

.explainer-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 3px;
}

.explainer-sublabel {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.3;
}

.explainer-arrow {
    font-size: 1.3rem;
    color: #cbd5e0;
    flex-shrink: 0;
    padding-top: 22px;
}

/* Demo Browser (Slide 1) */
.explainer-demo-browser {
    width: 100%;
    max-width: 620px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.demo-browser-bar {
    background: #f1f3f4;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.demo-url-bar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    color: #666;
    flex-grow: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-injected {
    color: #e53e3e;
    font-weight: bold;
}

.demo-browser-body {
    padding: 16px 20px;
    background: white;
}

.demo-legit-content {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.demo-injected-highlight {
    background: #fed7d7;
    color: #c53030;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 4px;
}

.demo-warning-badge {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* Info Note (Slide 1) */
.explainer-bottom-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4299e1;
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 620px;
    width: 100%;
    margin-top: 14px;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    box-sizing: border-box;
}

.explainer-bottom-note i {
    color: #4299e1;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   RISK GRID MODERN (Slide 2)
   ============================================ */

.risk-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 780px;
    padding: 10px 0;
}

.risk-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.risk-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.risk-card-modern .risk-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.risk-card-modern h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 6px 0;
}

.risk-card-modern p {
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.5;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.risk-impact {
    width: 100%;
}

.risk-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.risk-critical {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.risk-high {
    background: #fffff0;
    color: #b7791f;
    border: 1px solid #fefcbf;
}

.risk-medium {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

/* ============================================
   PHISHING WARNING OVERLAY (Easter Egg Fix)
   ============================================ */

.phishing-warning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 46, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.phishing-warning-overlay.visible {
    opacity: 1;
}

.phishing-warning-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    max-width: 400px;
    width: 85%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phishing-warning-overlay.visible .phishing-warning-card {
    transform: scale(1);
}

.phishing-warning-card img {
    max-width: 90px;
    margin-bottom: 0.75rem;
}

.phishing-warning-card h2 {
    color: #c53030;
    margin: 0 0 0.6rem 0;
    font-size: 1.2rem;
}

.phishing-warning-card p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
}

/* ============================================
   ATTACK CHAIN (Slide 4 - SQLi & Phishing)
   ============================================ */

.attack-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 700px;
    padding: 10px 0;
}

.chain-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chain-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chain-step-danger {
    border-color: #feb2b2;
    background: #fff5f5;
}

.chain-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #3182ce;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.chain-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #2d3748;
}

.chain-content h4 i {
    margin-right: 6px;
    color: #718096;
}

.chain-content p {
    margin: 0;
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.5;
}

.chain-connector {
    width: 2px;
    height: 16px;
    background: #e2e8f0;
    margin-left: 33px;
    flex-shrink: 0;
}

/* SQLi query inline display */
.sqli-query-inline {
    display: block;
    background: #1a202c;
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    line-height: 1.5;
}

/* Pulse animation for destructive actions */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   UTILITY: Spinner animation
   ============================================ */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE: Risk grid + Explainer
   ============================================ */

@media (max-width: 600px) {
    .xss-explainer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 8px;
    }

    .explainer-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .explainer-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .risk-grid-modern {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .demo-url-bar {
        font-size: 0.65rem;
    }

    .phishing-warning-card {
        padding: 1.2rem 1.5rem;
        max-width: 320px;
    }

    .phishing-warning-card img {
        max-width: 70px;
    }

    .attack-chain {
        padding: 5px 0;
    }

    .chain-step {
        padding: 10px 12px;
        gap: 10px;
    }

    .chain-number {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.85rem;
    }

    .chain-connector {
        margin-left: 26px;
        height: 10px;
    }
}