/* HTTP/3 QUIC Scanner Styles */
:root {
    --primary-color: #0091ea;
    --secondary-color: #00e676;
    --danger-color: #d32f2f;
    --success-color: #00c853;
    --warning-color: #ff6f00;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;
}

/* Custom Quantum-Themed Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    border-left: 1px solid rgba(98, 0, 234, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6200ea, #00bfa5);
    border-radius: 6px;
    border: 2px solid #0a0a0a;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c4dff, #1de9b6);
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.5), 0 0 20px rgba(0, 191, 165, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #9575cd, #4dd0e1);
}

::-webkit-scrollbar-corner {
    background: #0a0a0a;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #6200ea #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Three.js Canvas Container */
#three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0033 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
}

.scanner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.header-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo-section {
    flex-shrink: 0;
}

.logo-image {
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(98, 0, 234, 0.3);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.scanner-header {
    text-align: left;
    flex: 1;
    min-width: 300px;
}

.scanner-header h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.scan-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(98, 0, 234, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-row-main {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.input-row-main .input-group {
    margin-bottom: 0;
}

.input-row-main .input-url {
    flex: 3;
}

.input-row-main .input-path {
    flex: 1.5;
}

.input-row-main .input-port {
    flex: 1;
}

/* Optional fields red outline card */
.optional-fields-card {
    position: relative;
    border: 2px solid #ff4444;
    border-radius: 12px;
    padding: 16px 12px 12px;
    background: rgba(255, 68, 68, 0.05);
    flex: 2.5;
}

.optional-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff4444;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.optional-fields-row {
    display: flex;
    gap: 12px;
}

.optional-fields-row .input-path {
    flex: 1.5;
}

.optional-fields-row .input-port {
    flex: 1;
}

.optional-fields-row .input-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .input-row-main {
        flex-wrap: wrap;
    }

    .input-row-main .input-url {
        flex: 1 1 100%;
    }

    .optional-fields-card {
        flex: 1 1 100%;
        margin-top: 8px;
    }

    .optional-fields-row .input-path {
        flex: 2;
    }

    .optional-fields-row .input-port {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .input-row-main {
        flex-direction: column;
        gap: 0;
    }

    .input-row-main .input-group {
        margin-bottom: 16px;
    }

    .input-row-main .input-url {
        flex: 1 1 100%;
    }

    .optional-fields-card {
        margin-top: 8px;
    }

    .optional-fields-row {
        flex-direction: column;
        gap: 0;
    }

    .optional-fields-row .input-group {
        margin-bottom: 12px;
    }

    .optional-fields-row .input-group:last-child {
        margin-bottom: 0;
    }

    .optional-fields-row .input-path,
    .optional-fields-row .input-port {
        flex: 1 1 100%;
    }
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

#url-input {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
}

#wt-port-input,
#wt-path-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#wt-port-input:focus,
#wt-path-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.scan-button {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(98, 0, 234, 0.3);
}

.scan-button:active {
    transform: translateY(0);
}

.scan-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.scan-button.loading .button-text {
    display: none;
}

.scan-button.loading .button-loader {
    display: inline-block;
}

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

.examples {
    text-align: center;
    margin-top: 20px;
}

.examples p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.example-btn {
    padding: 8px 16px;
    margin: 0 5px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    border-color: var(--primary-color);
    background: rgba(98, 0, 234, 0.1);
}

/* How to Use Card */
.how-to-use-card {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.05), rgba(0, 191, 165, 0.05));
    border: 1px solid rgba(98, 0, 234, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 25px 0;
}

.how-to-use-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.how-to-use-methods {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.use-method {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(98, 0, 234, 0.2);
}

.method-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.use-method code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .how-to-use-methods {
        flex-direction: column;
        gap: 10px;
    }

    .use-method {
        width: 100%;
        justify-content: center;
    }
}

.scan-status {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.scan-results {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    overflow-x: hidden;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
}

.quantum-shield-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    scroll-margin-top: 20px;
}

/* Add drop shadows to SVG shapes (paths, circles, ellipses) */
.quantum-shield-svg path:not([filter]),
.quantum-shield-svg circle:not([filter]),
.quantum-shield-svg ellipse:not([filter]) {
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

/* For elements that already have filters, we need to add the drop shadow to their filter definition */
#grade-badge circle {
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

/* Domain text at top */
.domain-text {
    font-size: 22px;
    font-weight: 700;
    fill: #ffffff;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', sans-serif;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

/* Branding text at bottom (curved) */
.branding-bottom-text {
    font-size: 14px;
    font-weight: 600;
    fill: rgba(255, 255, 255, 0.85);
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', sans-serif;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

/* Grade text */
.shield-grade-text {
    font-size: 70px;
    font-weight: 900;
    fill: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

/* Result text */
.shield-result-text {
    font-size: 28px;
    font-weight: 700;
    fill: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
}

/* Ultimate grade (A++) - Gold/Purple text - smaller for longer content */
.shield-grade-ultimate .shield-grade-text {
    fill: #ffd700;
    font-size: 52px;
}

.shield-grade-ultimate .shield-result-text {
    fill: #ffd700;
    font-size: 16px;
}

.shield-grade-ultimate .shield-result-line2 {
    fill: #e0b0ff;
    font-size: 13px;
}

/* Success grade (A+) - Green text */
.shield-grade-success .shield-grade-text {
    fill: #00ff88;
}

.shield-grade-success .shield-result-text {
    fill: #00ff88;
}

/* Warning grade (A) - Orange text */
.shield-grade-warning .shield-grade-text {
    fill: #ffb300;
}

.shield-grade-warning .shield-result-text {
    fill: #ffb300;
}

/* Danger grade (F) - Red text */
.shield-grade-danger .shield-grade-text {
    fill: #ff5555;
}

.shield-grade-danger .shield-result-text {
    fill: #ff5555;
}

.shield-result-line2 {
    font-size: 28px;
}

.shield-grade-warning .shield-result-line2 {
    font-size: 16px;
    opacity: 0.95;
}

/* Misconfigured text (C) - smaller font for longer text "HTTP/3 Misconfigured" */
.shield-misconfigured-text .shield-result-text {
    font-size: 17px;  /* Much smaller than default 28px to fit "HTTP/3 Misconfigured" */
}

.shield-misconfigured-text .shield-result-line2 {
    font-size: 15px;  /* Smaller for "Alt-Svc Missing" */
}

/* Danger grade - smaller font for vulnerability text */
.shield-grade-danger .shield-result-text {
    font-size: 22px;
}

.shield-grade-danger .shield-result-line2 {
    font-size: 18px;
}


/* Highlight gradient stops */
.highlight-stop-1 {
    stop-color: #ffffff;
    stop-opacity: 0.4;
}

.highlight-stop-2 {
    stop-color: #ffffff;
    stop-opacity: 0;
}

/* Ultimate gradients (A++) - Gold/Purple */
.shield-grade-ultimate .gradient-main-1 {
    stop-color: #ffd700;
}

.shield-grade-ultimate .gradient-main-2 {
    stop-color: #9b59b6;
}

.shield-grade-ultimate .gradient-main-3 {
    stop-color: #6a0dad;
}

.shield-grade-ultimate .gradient-glow-1 {
    stop-color: rgba(155, 89, 182, 0.7);
}

.shield-grade-ultimate .gradient-glow-2 {
    stop-color: rgba(106, 13, 173, 0);
}

/* Success gradients (A+) - Green */
.gradient-main-1 {
    stop-color: #00ff88;
}

.gradient-main-2 {
    stop-color: #00c853;
}

.gradient-main-3 {
    stop-color: #00853a;
}

.gradient-glow-1 {
    stop-color: rgba(0, 255, 136, 0.6);
}

.gradient-glow-2 {
    stop-color: rgba(0, 200, 83, 0);
}

/* Warning gradients (A) - Orange */
.shield-grade-warning .gradient-main-1 {
    stop-color: #ffb300;
}

.shield-grade-warning .gradient-main-2 {
    stop-color: #ff8f00;
}

.shield-grade-warning .gradient-main-3 {
    stop-color: #ff6f00;
}

.shield-grade-warning .gradient-glow-1 {
    stop-color: rgba(255, 179, 0, 0.6);
}

.shield-grade-warning .gradient-glow-2 {
    stop-color: rgba(255, 143, 0, 0);
}

/* Danger gradients (F) - Red */
.shield-grade-danger .gradient-main-1 {
    stop-color: #ff5555;
}

.shield-grade-danger .gradient-main-2 {
    stop-color: #d32f2f;
}

.shield-grade-danger .gradient-main-3 {
    stop-color: #b71c1c;
}

.shield-grade-danger .gradient-glow-1 {
    stop-color: rgba(255, 85, 85, 0.6);
}

.shield-grade-danger .gradient-glow-2 {
    stop-color: rgba(211, 47, 47, 0);
}

/* Unscannable grade (U) - Gray for WAF/protected sites */
.shield-grade-unscannable .shield-grade-text {
    fill: #9e9e9e;
}

.shield-grade-unscannable .shield-result-text {
    fill: #9e9e9e;
}

.shield-grade-unscannable .shield-result-line2 {
    font-size: 15px;
}

.shield-grade-unscannable .gradient-main-1 {
    stop-color: #78909c;
}

.shield-grade-unscannable .gradient-main-2 {
    stop-color: #607d8b;
}

.shield-grade-unscannable .gradient-main-3 {
    stop-color: #455a64;
}

.shield-grade-unscannable .gradient-glow-1 {
    stop-color: rgba(96, 125, 139, 0.6);
}

.shield-grade-unscannable .gradient-glow-2 {
    stop-color: rgba(69, 90, 100, 0);
}

/* ========================================
   COMPACT DASHBOARD LAYOUT - Cutting Edge
   ======================================== */

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(98, 0, 234, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: rgba(98, 0, 234, 0.4);
    box-shadow: 0 4px 20px rgba(98, 0, 234, 0.15);
}

.card-header {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.15), rgba(0, 191, 165, 0.1));
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    opacity: 0.9;
}

.card-body {
    padding: 10px 12px;
}

/* Compact Performance Grid */
.performance-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border-left: 2px solid rgba(98, 0, 234, 0.4);
    transition: all 0.15s ease;
}

.performance-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--secondary-color);
}

.perf-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.8;
}

.perf-value {
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.perf-value.status-success {
    color: var(--success-color);
}

.perf-value.status-warning {
    color: var(--warning-color);
}

.perf-value.status-error,
.perf-value.status-danger {
    color: var(--danger-color);
}

.perf-value.status-info {
    color: var(--text-secondary);
}

/* Compact Status Items */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    gap: 8px;
}

.status-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-item:first-child {
    padding-top: 0;
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.status-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.8rem;
    text-align: right;
    word-break: break-word;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.status-value.success,
.status-value.status-success {
    color: var(--success-color);
}

.status-value.warning,
.status-value.status-warning {
    color: var(--warning-color);
}

.status-value.danger,
.status-value.status-danger,
.status-value.status-error {
    color: var(--danger-color);
}

.status-value.status-muted {
    color: var(--text-secondary);
    opacity: 0.7;
}

.status-value.status-info {
    color: var(--primary-color);
}

.recommendations-section {
    background: linear-gradient(135deg, rgba(0, 201, 83, 0.1), rgba(98, 0, 234, 0.1));
    border: 1px solid var(--success-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.recommendations-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.recommendations-list {
    list-style: none;
}

.recommendations-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.recommendations-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.scan-another-btn,
.download-shield-btn {
    padding: 12px 32px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.scan-another-btn:hover,
.download-shield-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.3);
}

.download-shield-btn {
    border-color: var(--secondary-color);
}

.download-shield-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.export-json-btn,
.export-pdf-btn {
    padding: 12px 32px;
    background: var(--bg-dark);
    border: 2px solid #ff9800;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.export-json-btn:hover,
.export-pdf-btn:hover {
    background: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.export-pdf-btn {
    border-color: #4caf50;
}

.export-pdf-btn:hover {
    background: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.error-message {
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--danger-color);
    border-radius: 16px;
    padding: 40px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-message h3 {
    color: var(--danger-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.error-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.try-again-btn {
    padding: 12px 32px;
    background: var(--danger-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.try-again-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.info-section {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.info-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.info-section > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(98, 0, 234, 0.2);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Statistics Section */
.statistics-section {
    margin: 60px 0;
    padding: 40px 0;
}

.stats-heading {
    text-align: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: 600;
}

.stats-container {
    margin-bottom: 40px;
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(98, 0, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(98, 0, 234, 0.2);
}

.stats-card-title {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grade-count {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
    margin-left: auto;
}

.grade-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 6px;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--border-color);
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.grade-a-plus-plus-title {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.grade-a-plus-plus-title + .grade-description {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(255, 215, 0, 0.05));
}

.grade-a-plus-title {
    color: var(--success-color);
}

.grade-a-plus-title + .grade-description {
    border-left-color: var(--success-color);
}

.grade-a-title {
    color: var(--warning-color);
}

.grade-a-title + .grade-description {
    border-left-color: var(--warning-color);
}

.grade-c-title {
    color: #ff9800; /* Orange for misconfiguration */
}

.grade-c-title + .grade-description {
    border-left-color: #ff9800;
}

.grade-f-title {
    color: var(--danger-color);
}

.grade-f-title + .grade-description {
    border-left-color: var(--danger-color);
}

/* Totals Card */
.totals-card {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.1), rgba(0, 191, 165, 0.1));
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.total-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.total-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.total-a-plus {
    border-color: rgba(0, 200, 83, 0.3);
}

.total-a {
    border-color: rgba(255, 111, 0, 0.3);
}

.total-f {
    border-color: rgba(211, 47, 47, 0.3);
}

.total-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.total-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total-a-plus .total-value {
    background: linear-gradient(135deg, #00c853, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total-a .total-value {
    background: linear-gradient(135deg, #ff6f00, #ffab00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total-f .total-value {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Recent Scans Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Force grade cards to display in one row (5 cards: A++, A+, A, C, F) */
.stats-grid.grade-cards-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.scan-list {
    padding-right: 8px;
}

.scan-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scan-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
}

/* Simple list item for grade-specific lists (A+, A, F) */
.scan-list-item {
    padding: 6px 8px;
    background: transparent;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.scan-list-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.scan-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--primary-color);
}

/* New scan highlight animation */
.scan-list-item-new {
    animation: scanHighlight 2s ease-out;
    background: rgba(0, 255, 136, 0.15);
    border-left-color: #00ff88;
}

@keyframes scanHighlight {
    0% {
        background: rgba(0, 255, 136, 0.3);
        transform: translateX(-10px);
        opacity: 0;
    }
    20% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        background: rgba(0, 255, 136, 0.15);
    }
}

.scan-list-item .scan-domain {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Legacy simple style - kept for compatibility */
.scan-item.simple {
    padding: 10px 12px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scan-item.simple:last-child {
    border-bottom: none;
}

.scan-item.simple:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

.scan-item.simple .scan-domain {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Table format for Recent Scans list */
.scan-table {
    width: 100%;
    border-collapse: collapse;
}

.scan-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

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

.scan-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.scan-domain-cell {
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.scan-grade-cell {
    padding: 10px 12px;
    text-align: right;
    white-space: nowrap;
    width: 60px;
}

.scan-grade-cell .grade-badge {
    font-size: 0.85rem;
    padding: 4px 10px;
}

.scan-domain {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    word-break: break-all;
    flex: 1;
}

.scan-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.scan-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.grade-badge,
.scan-grade {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* 3D Effect */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: perspective(500px) rotateX(5deg);
    transition: all 0.3s ease;
}

.grade-badge:hover,
.scan-grade:hover {
    transform: perspective(500px) rotateX(0deg) translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.grade-a-plus-plus {
    background: linear-gradient(145deg, #ffd700, #9b59b6);
    color: #fff;
    border: 1px solid #6a0dad;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
}

.grade-a-plus {
    background: linear-gradient(145deg, #00e676, #00c853);
    color: #000;
    border: 1px solid #00c853;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.grade-a {
    background: linear-gradient(145deg, #ffab00, #ff8f00);
    color: #000;
    border: 1px solid #ff6f00;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.grade-c {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: #000;
    border: 1px solid #ef6c00;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.grade-f {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    color: #fff;
    border: 1px solid #c62828;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scan-list-loading,
.scan-list-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stats-error {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--danger-color);
    border-radius: 16px;
}

.stats-error p {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.scanner-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.scanner-footer p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-with-logo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .scanner-header {
        text-align: center;
    }

    .scanner-header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo-image {
        max-width: 120px;
    }

    .scan-form-container {
        padding: 24px;
    }

    .scan-results {
        padding: 20px;
    }

    .quantum-shield-svg {
        max-width: 100%;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .domain-text {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .branding-bottom-text {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .shield-grade-text {
        font-size: 50px;
    }

    .shield-result-text {
        font-size: 18px;
    }

    .shield-result-line2 {
        font-size: 18px;
    }

    .shield-grade-warning .shield-result-line2 {
        font-size: 14px;
    }

    /* Misconfigured text - smaller font for mobile */
    .shield-misconfigured-text .shield-result-text {
        font-size: 14px;  /* Even smaller on mobile for "HTTP/3 Misconfigured" */
    }

    .shield-misconfigured-text .shield-result-line2 {
        font-size: 13px;  /* Smaller for "Alt-Svc Missing" on mobile */
    }

    .stats-heading {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Grade cards: 3 columns on tablet */
    .stats-grid.grade-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .totals-grid {
        grid-template-columns: 1fr;
    }

    .stats-card {
        padding: 12px;
    }
}

/* Mobile optimizations for very small screens */
@media (max-width: 480px) {
    /* Shield SVG - prevent overflow on small screens */
    .quantum-shield-svg {
        max-width: 90vw;
        height: auto;
    }

    /* Increase minimum text size for readability */
    .domain-text {
        font-size: 16px !important;
        letter-spacing: 0.2px;
    }

    /* Increase touch targets for better mobile UX */
    .action-buttons button {
        padding: 16px 24px;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .scan-another-btn,
    .download-shield-btn,
    .export-json-btn,
    .export-pdf-btn {
        padding: 16px 24px;
        min-height: 48px;
        width: 100%;
        margin: 8px 0;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    /* Grade cards: 2 columns on mobile */
    .stats-grid.grade-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Improve form inputs on mobile */
    .url-input {
        padding: 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .scan-button {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Better spacing for cards */
    .result-card {
        padding: 16px;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    /* Status items more readable */
    .status-item {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    /* Shield text adjustments */
    .shield-grade-text {
        font-size: 42px;
    }

    .shield-result-text {
        font-size: 16px;
    }

    .shield-result-line2 {
        font-size: 16px;
    }

    /* Misconfigured text - smaller font for very small screens */
    .shield-misconfigured-text .shield-result-text {
        font-size: 12px;  /* Very small for "HTTP/3 Misconfigured" on tiny screens */
    }

    .shield-misconfigured-text .shield-result-line2 {
        font-size: 11px;  /* Very small for "Alt-Svc Missing" on tiny screens */
    }

    /* Better scan list items */
    .scan-item {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Statistics cards */
    .stats-card {
        padding: 10px;
    }

    .stats-card-title {
        font-size: 0.75rem;
    }

    /* Better readability for counts */
    .grade-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Error message improvements */
    .error-message {
        padding: 24px;
    }

    .error-icon {
        font-size: 3rem;
    }

    .error-message h3 {
        font-size: 1.5rem;
    }

    /* Scanner header */
    .scanner-header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    /* Table responsiveness on mobile */
    .scan-domain-cell {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .scan-grade-cell {
        padding: 8px 10px;
        width: 50px;
    }

    .scan-grade-cell .grade-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Status value color classes */
.perf-value.status-success {
    color: var(--success-color);
}

.perf-value.status-error {
    color: #ff4444;
}

.perf-value.status-warning {
    color: var(--warning-color);
}

.perf-value.status-info {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Description Card Styles */
.description-card {
    background: linear-gradient(135deg, rgba(0, 145, 234, 0.1), rgba(0, 230, 118, 0.1));
    border: 1px solid rgba(0, 145, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.description-card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-card-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.description-card-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.description-card-features li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.description-card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .description-card {
        padding: 16px;
        margin: 16px 0;
    }

    .description-card-title {
        font-size: 1.1rem;
    }

    .description-card-content {
        font-size: 0.9rem;
    }
}

/* Future of HTTP/3 Card Styles */
.future-tech-card {
    max-width: 1200px;
    margin: 30px auto;
}

.future-tech-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.future-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.future-section {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 145, 234, 0.3);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.future-section p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.future-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.future-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    flex: 1;
    min-width: 200px;
}

.future-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 230, 118, 0.2));
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.status-design {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.2), rgba(255, 193, 7, 0.2));
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.status-research {
    background: linear-gradient(135deg, rgba(0, 145, 234, 0.2), rgba(98, 0, 234, 0.2));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.status-standardized {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.3), rgba(0, 230, 118, 0.3));
    border: 1px solid #00e676;
    color: #00e676;
}

.status-experimental {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid #ffc107;
    color: #ffc107;
}

.status-draft {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.2), rgba(117, 117, 117, 0.2));
    border: 1px solid #9e9e9e;
    color: #9e9e9e;
}

.status-summary {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(233, 30, 99, 0.2));
    border: 1px solid #ab47bc;
    color: #ab47bc;
}

.future-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.future-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
    color: var(--text-secondary);
}

.future-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.future-features strong {
    color: var(--text-primary);
    font-weight: 600;
}

.future-source {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 145, 234, 0.2);
    font-size: 0.9rem;
    color: rgba(176, 176, 176, 0.8);
    font-style: italic;
}

.future-table {
    margin-top: 20px;
    overflow-x: auto;
}

.future-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.future-table thead {
    background: linear-gradient(135deg, rgba(0, 145, 234, 0.3), rgba(98, 0, 234, 0.3));
}

.future-table th {
    padding: 15px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 145, 234, 0.5);
}

.future-table th:nth-child(1),
.future-table td:nth-child(1) {
    width: 30%;
}

.future-table th:nth-child(2),
.future-table td:nth-child(2) {
    width: 30%;
}

.future-table th:nth-child(3),
.future-table td:nth-child(3) {
    width: 20%;
}

.future-table th:nth-child(4),
.future-table td:nth-child(4) {
    width: 20%;
}

.future-table td {
    padding: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 145, 234, 0.1);
    vertical-align: middle;
}

.future-table tbody tr:hover {
    background: rgba(0, 145, 234, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.future-conclusion {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.15), rgba(0, 191, 165, 0.15));
    border: 2px solid rgba(98, 0, 234, 0.4);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.verification-status {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(0, 188, 212, 0.1)) !important;
    border-left: 4px solid #2196f3 !important;
}

.verification-status .future-header h3 {
    color: #2196f3;
}

.verification-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 15px;
}

.verification-status table a {
    color: #00bcd4;
    text-decoration: none;
}

.verification-status table a:hover {
    text-decoration: underline;
}

/* Verification Status table column alignment (3 columns) */
.future-roadmap-table table {
    table-layout: fixed;
    width: 100%;
}

.future-roadmap-table th,
.future-roadmap-table td {
    text-align: left;
}

.future-roadmap-table th:nth-child(1),
.future-roadmap-table td:nth-child(1) {
    width: 40%;
}

.future-roadmap-table th:nth-child(2),
.future-roadmap-table td:nth-child(2) {
    width: 30%;
}

.future-roadmap-table th:nth-child(3),
.future-roadmap-table td:nth-child(3) {
    width: 30%;
}

.future-conclusion h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.future-conclusion p {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.future-next-wave {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.future-next-wave li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.future-next-wave li::before {
    content: "🚀";
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

.future-next-wave strong {
    color: var(--primary-color);
    font-weight: 600;
}

.future-timeline-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 145, 234, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

.future-timeline-note strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .future-tech-card h2 {
        font-size: 1.5rem;
    }

    .future-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .future-header h3 {
        font-size: 1.2rem;
    }

    .future-section {
        padding: 20px;
    }

    .future-table {
        font-size: 0.85rem;
    }

    .future-table th,
    .future-table td {
        padding: 10px;
    }

    .future-conclusion {
        padding: 20px;
    }

    .future-next-wave li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .future-tech-card h2 {
        font-size: 1.3rem;
    }

    .future-header h3 {
        font-size: 1.1rem;
    }

    .future-icon {
        font-size: 1.5rem;
    }

    .future-section {
        padding: 16px;
    }

    .future-features li {
        font-size: 0.9rem;
    }

    .future-table {
        font-size: 0.8rem;
    }

    .future-table th,
    .future-table td {
        padding: 8px;
    }
}

/* ========================================
   CUTTING EDGE DASHBOARD COMPONENTS
   ======================================== */

/* Quick Stats Bar - Key metrics at a glance */
.quick-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(10, 10, 15, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(98, 0, 234, 0.2);
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    transition: all 0.2s;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(98, 0, 234, 0.3);
}

.stat-pill-label {
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 500;
}

.stat-pill-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.stat-pill-value.success { color: var(--success-color); }
.stat-pill-value.warning { color: var(--warning-color); }
.stat-pill-value.danger { color: var(--danger-color); }
.stat-pill-value.info { color: var(--primary-color); }

/* Tabbed Navigation for Result Sections */
.result-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    background: rgba(10, 10, 15, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-tab {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.result-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.result-tab.active {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.3), rgba(0, 191, 165, 0.2));
    color: var(--text-primary);
    font-weight: 600;
}

.result-tab-content {
    display: none;
}

.result-tab-content.active {
    display: block;
}

/* Compact Data Grid - 2 column layout */
.data-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 600px) {
    .data-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* Mini Metric Cards */
.mini-metric {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border-left: 2px solid rgba(98, 0, 234, 0.4);
}

.mini-metric-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mini-metric-value {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--text-primary);
}

/* Inline Badge Values */
.inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.inline-badge.success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.inline-badge.warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.inline-badge.danger {
    background: rgba(244, 67, 54, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.inline-badge.info {
    background: rgba(98, 0, 234, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(98, 0, 234, 0.3);
}

.inline-badge.muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collapsible Sections */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.1), rgba(0, 191, 165, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    margin-bottom: 8px;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.15), rgba(0, 191, 165, 0.08));
    border-color: rgba(98, 0, 234, 0.2);
}

.collapsible-header h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapsible-toggle {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.collapsible-header.expanded .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.expanded {
    max-height: 1000px;
}

/* Section Divider with Label */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(98, 0, 234, 0.3), transparent);
}

.section-divider-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.5;
    white-space: nowrap;
}

/* Compact Results Container */
.scan-results-compact {
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(98, 0, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    overflow-x: hidden;
}

/* Key Metrics Row - Hero Stats */
.key-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.key-metric-card {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(98, 0, 234, 0.1), rgba(0, 191, 165, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(98, 0, 234, 0.2);
    text-align: center;
    transition: all 0.2s;
}

.key-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(98, 0, 234, 0.2);
    border-color: rgba(98, 0, 234, 0.4);
}

.key-metric-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.key-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Consolas', monospace;
    margin-bottom: 2px;
}

.key-metric-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
    .quick-stats-bar {
        padding: 8px;
        gap: 6px;
    }

    .stat-pill {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .result-tabs {
        gap: 2px;
        padding: 3px;
    }

    .result-tab {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .key-metrics-row {
        gap: 8px;
    }

    .key-metric-card {
        min-width: 100px;
        padding: 10px 12px;
    }

    .key-metric-icon {
        font-size: 1.2rem;
    }

    .key-metric-value {
        font-size: 0.95rem;
    }
}

/* Status Value Truncation with Tooltip */
.status-value.truncate {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-value.truncate:hover {
    white-space: normal;
    word-break: break-all;
}

/* Compact Scan Results padding reduction */
.scan-results {
    padding: 24px;
}

@media (max-width: 768px) {
    .scan-results {
        padding: 16px;
    }
}
