/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
    position: relative;
}

/* ==================== ANIMATED GRADIENT BACKGROUND ==================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, 
        #0a1628 0%, 
        #1a2847 25%, 
        #0f2942 50%, 
        #1e3a5f 75%, 
        #0a1628 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== NAVIGATION TABS ==================== */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    animation: fadeInDown 0.8s ease-out;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-tab:hover::before {
    left: 100%;
}

.nav-tab:hover {
    border-color: rgba(0, 212, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(100, 200, 255, 0.3));
    border-color: rgba(0, 212, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

/* ==================== TAB CONTENT ==================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* ==================== ANIMATED GRADIENT BACKGROUND ==================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, 
        #0a1628 0%, 
        #1a2847 25%, 
        #0f2942 50%, 
        #1e3a5f 75%, 
        #0a1628 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== GLOWING WATERMARK ==================== */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(100, 200, 255, 0.03);
    z-index: -1;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 80px rgba(100, 200, 255, 0.2);
    animation: watermarkPulse 6s ease-in-out infinite;
}

@keyframes watermarkPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* ==================== HEADER ==================== */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 8px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #a0d8ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(100, 200, 255, 0.6);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(100, 200, 255, 0.9)); }
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    transform: translateX(-50%);
    animation: underlineExpand 2s ease-out forwards;
    box-shadow: 0 0 15px #00d4ff;
}

@keyframes underlineExpand {
    to { width: 100%; }
}

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== GLASSMORPHIC CARD ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 50px;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 1s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* ==================== UPLOAD SECTION ==================== */
.upload-section {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #00d4ff;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

/* ==================== DROP ZONE ==================== */
.drop-zone {
    border: 2px dashed rgba(100, 200, 255, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    animation: pulseBorder 3s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% { 
        border-color: rgba(100, 200, 255, 0.4);
        box-shadow: 0 0 20px rgba(100, 200, 255, 0.1);
    }
    50% { 
        border-color: rgba(100, 200, 255, 0.7);
        box-shadow: 0 0 40px rgba(100, 200, 255, 0.3);
    }
}

.drop-zone.dragover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.4),
        inset 0 0 30px rgba(0, 212, 255, 0.2);
    transform: scale(1.02);
}

.drop-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #a0d8ff;
    margin-bottom: 10px;
}

.drop-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

/* ==================== BROWSE BUTTON ==================== */
.browse-btn {
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(100, 200, 255, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.browse-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    border-color: #00d4ff;
}

.browse-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.browse-btn:hover .btn-shine {
    left: 100%;
}

/* ==================== FILE SELECTED STATE ==================== */
.file-selected {
    display: none;
}

.file-selected.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    margin-bottom: 25px;
}

.file-icon {
    width: 50px;
    height: 50px;
    color: #00d4ff;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.file-size {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== SCANNING PROGRESS ==================== */
.scanning-progress {
    display: none;
    margin-bottom: 25px;
}

.scanning-progress.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Scan Stages */
.scan-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(100, 200, 255, 0.1);
    border-radius: 12px;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.stage-item.active {
    opacity: 1;
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.stage-item.completed {
    opacity: 0.7;
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
}

.stage-icon {
    width: 40px;
    height: 40px;
    color: #00d4ff;
    transition: all 0.5s ease;
}

.stage-item.active .stage-icon {
    animation: stageIconPulse 1s ease-in-out infinite;
}

.stage-item.completed .stage-icon {
    color: #00ff88;
}

@keyframes stageIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.8)); }
}

.stage-icon svg {
    width: 100%;
    height: 100%;
}

.stage-text {
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.stage-item.active .stage-text {
    color: #00d4ff;
    font-weight: 600;
}

.stage-item.completed .stage-text {
    color: #00ff88;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #a0d8ff);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    position: relative;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    to { left: 100%; }
}

.scanning-text {
    text-align: center;
    font-size: 1rem;
    color: #a0d8ff;
    font-weight: 500;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ==================== SCAN BUTTON ==================== */
.scan-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(100, 200, 255, 0.4));
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    margin-top: 25px;
    display: none;
}

.scan-btn.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.scan-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
    border-color: #00d4ff;
}

.scan-btn .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scan-btn:hover .btn-glow {
    opacity: 1;
}

.scan-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.scan-btn:hover .btn-shine {
    left: 100%;
}

.scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==================== REPORT SECTION ==================== */
.report-section {
    display: none;
}

.report-section.active {
    display: block;
    animation: slideUpFadeIn 0.8s ease-out;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-header {
    text-align: center;
    margin-bottom: 40px;
}

.shield-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    color: #00ff88;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.6));
    animation: shieldPulse 2s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.shield-icon svg {
    width: 100%;
    height: 100%;
}

.report-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a0d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== DETECTION SUMMARY ==================== */
.detection-summary {
    margin-bottom: 40px;
}

.threat-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 35px;
    animation: badgeFadeIn 0.8s ease-out 0.3s both;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.threat-badge.safe {
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.threat-badge.danger {
    background: rgba(255, 68, 68, 0.15);
    border: 2px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
}

/* ==================== THREAT SCORE BAR ==================== */
.threat-score-container {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.score-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #a0d8ff;
    margin-bottom: 20px;
}

.score-bar-wrapper {
    margin-bottom: 20px;
}

.score-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.2) 0%, 
        rgba(0, 255, 136, 0.2) 25%, 
        rgba(255, 170, 0, 0.2) 25%, 
        rgba(255, 170, 0, 0.2) 60%, 
        rgba(255, 68, 68, 0.2) 60%, 
        rgba(255, 68, 68, 0.2) 100%);
    border-radius: 50px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px currentColor;
}

.score-fill.safe {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    color: #00ff88;
}

.score-fill.suspicious {
    background: linear-gradient(90deg, #ffaa00, #ff6600);
    color: #ffaa00;
}

.score-fill.danger {
    background: linear-gradient(90deg, #ff4444, #cc0000);
    color: #ff4444;
}

.score-marker {
    position: absolute;
    top: -5px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    transform: translateX(-50%);
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a1628;
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.score-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 5px;
}

.score-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.score-label.safe { color: #00ff88; }
.score-label.suspicious { color: #ffaa00; }
.score-label.danger { color: #ff4444; }

.score-value {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scoreGlow 2s ease-in-out infinite;
}

@keyframes scoreGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

/* ==================== CIRCULAR CHART ==================== */
.chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 35px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.circular-chart {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.chart-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 15;
}

.chart-malicious,
.chart-suspicious,
.chart-safe {
    fill: none;
    stroke-width: 15;
    stroke-linecap: round;
    stroke-dasharray: 0 502;
    transition: stroke-dasharray 1.5s ease-out;
}

.chart-malicious {
    stroke: #ff4444;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.6));
}

.chart-suspicious {
    stroke: #ffaa00;
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
}

.chart-safe {
    stroke: #00ff88;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.chart-text {
    font-size: 32px;
    font-weight: 700;
    fill: #ffffff;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: center;
}

.chart-subtext {
    font-size: 14px;
    font-weight: 500;
    fill: rgba(255, 255, 255, 0.7);
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: center;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px currentColor;
}

.legend-color.safe {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.legend-color.suspicious {
    background: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.legend-color.malicious {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.legend-text {
    color: rgba(255, 255, 255, 0.8);
}

.legend-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* ==================== SUMMARY STATS ==================== */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    animation: statFadeIn 0.8s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.4s; }
.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.threat-safe {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.stat-value.threat-danger {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

/* ==================== ENGINE CHECKS ==================== */
.engine-checks {
    margin-bottom: 30px;
}

.checks-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #a0d8ff;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.engine-list {
    display: grid;
    gap: 15px;
}

.engine-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: engineFadeIn 0.6s ease-out both;
}

.engine-item:nth-child(1) { animation-delay: 0.8s; }
.engine-item:nth-child(2) { animation-delay: 0.9s; }
.engine-item:nth-child(3) { animation-delay: 1s; }
.engine-item:nth-child(4) { animation-delay: 1.1s; }
.engine-item:nth-child(5) { animation-delay: 1.2s; }
.engine-item:nth-child(6) { animation-delay: 1.3s; }

@keyframes engineFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.engine-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(100, 200, 255, 0.3);
    transform: translateX(5px);
}

.engine-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.engine-icon.safe {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.engine-icon.threat {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 2px solid rgba(255, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.engine-icon.unsupported {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.engine-info {
    flex: 1;
}

.engine-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.engine-status {
    font-size: 0.85rem;
    color: #00ff88;
}

.engine-item .engine-icon.unsupported + .engine-info .engine-status {
    color: rgba(255, 255, 255, 0.3);
}

/* ==================== SCAN HISTORY SECTION ==================== */
.history-section {
    animation: fadeInUp 1s ease-out;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.history-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a0d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(255, 100, 100, 0.3));
    border: 2px solid rgba(255, 68, 68, 0.5);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.clear-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
    border-color: #ff4444;
}

/* History Search */
.history-search {
    position: relative;
    margin-bottom: 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* History Grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.history-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.5s ease-out both;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.history-card:hover::before {
    left: 100%;
}

.history-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.history-file-icon {
    width: 40px;
    height: 40px;
    color: #00d4ff;
}

.history-result-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
}

.history-result-badge.safe {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.history-result-badge.suspicious {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 170, 0, 0.5);
    color: #ffaa00;
}

.history-result-badge.threat {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.5);
    color: #ff4444;
}

.history-file-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    word-break: break-word;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.history-label {
    color: rgba(255, 255, 255, 0.6);
}

.history-value {
    color: #ffffff;
    font-weight: 600;
}

.history-timestamp {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.view-report-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(100, 200, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-report-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(100, 200, 255, 0.3));
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.view-report-btn .btn-icon {
    width: 18px;
    height: 18px;
}

/* Empty History State */
.empty-history {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.empty-history.active {
    display: block;
    animation: fadeIn 0.8s ease-out;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: rgba(100, 200, 255, 0.3);
}

.empty-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.empty-subtext {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== URL & DOMAIN SCANNER SECTIONS ==================== */
.url-section,
.domain-section {
    animation: fadeInUp 1s ease-out;
}

.url-icon,
.domain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #00d4ff;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    animation: iconFloat 3s ease-in-out infinite;
}

.url-icon svg,
.domain-icon svg {
    width: 100%;
    height: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #a0d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Input Containers */
.url-input-container,
.domain-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.url-input,
.domain-input {
    flex: 1;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.url-input::placeholder,
.domain-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.url-input:focus,
.domain-input:focus {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.scan-url-btn,
.lookup-domain-btn {
    padding: 18px 35px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(100, 200, 255, 0.4));
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.3);
    white-space: nowrap;
}

.scan-url-btn .btn-icon,
.lookup-domain-btn .btn-icon {
    width: 20px;
    height: 20px;
}

.scan-url-btn .btn-shine,
.lookup-domain-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.scan-url-btn:hover .btn-shine,
.lookup-domain-btn:hover .btn-shine {
    left: 100%;
}

.scan-url-btn:hover,
.lookup-domain-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 212, 255, 0.5);
    border-color: #00d4ff;
}

.scan-url-btn:disabled,
.lookup-domain-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Scanning Animation */
.url-scanning,
.domain-scanning {
    display: none;
    text-align: center;
    padding: 40px;
}

.url-scanning.active,
.domain-scanning.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.scanning-animation {
    margin-bottom: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.url-results,
.domain-results {
    display: none;
}

.url-results.active,
.domain-results.active {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-url,
.result-domain {
    font-size: 1.3rem;
    color: #00d4ff;
    word-break: break-all;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.reputation-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.reputation-item {
    text-align: center;
}

.reputation-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.reputation-number.malicious {
    color: #ff4444;
}

.reputation-number.suspicious {
    color: #ffaa00;
}

.reputation-number.harmless {
    color: #00ff88;
}

.reputation-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detected-urls {
    margin-top: 30px;
}

.detected-urls h3 {
    font-size: 1.3rem;
    color: #a0d8ff;
    margin-bottom: 15px;
}

.url-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.url-list-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(100, 200, 255, 0.1);
    word-break: break-all;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.url-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Scrollbar for URL list */
.url-list::-webkit-scrollbar {
    width: 8px;
}

.url-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.url-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.url-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* ==================== URL & DOMAIN REPORT SECTIONS ==================== */
.url-report-section,
.domain-report-section {
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.1rem;
    color: #00d4ff;
    font-weight: 600;
    word-break: break-all;
}

.report-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 2px solid rgba(100, 200, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-box.malicious-box {
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.05);
}

.stat-box.suspicious-box {
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.05);
}

.stat-box.harmless-box {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}

.stat-box.undetected-box {
    border-color: rgba(150, 150, 150, 0.3);
    background: rgba(150, 150, 150, 0.05);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.additional-info {
    margin: 30px 0;
}

.info-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.info-section h4 {
    font-size: 1.3rem;
    color: #a0d8ff;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.report-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.download-report-btn,
.new-scan-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.download-report-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(100, 200, 255, 0.4));
    border-color: rgba(0, 212, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.3);
}

.download-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 212, 255, 0.5);
}

.new-scan-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.new-scan-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ==================== REPORT MODAL ==================== */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-modal.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.report-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid rgba(255, 68, 68, 0.5);
    border-radius: 50%;
    color: #ff4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .shield-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    color: #00ff88;
    filter: drop-shadow(0 0 25px rgba(0, 255, 136, 0.6));
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #a0d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modal-filename {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-word;
}

.modal-body {
    padding: 0;
}

.modal-body .threat-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.modal-threat-score {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.modal-threat-score .score-title {
    font-size: 1.1rem;
    color: #a0d8ff;
    margin-bottom: 15px;
}

.score-display {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
}

.score-display span {
    font-size: 2rem;
    opacity: 0.6;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.modal-stats .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.stat-icon.safe {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.4);
}

.stat-icon.suspicious {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border: 2px solid rgba(255, 170, 0, 0.4);
}

.stat-icon.danger {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 2px solid rgba(255, 68, 68, 0.4);
}

.stat-info {
    flex: 1;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.stat-info .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-info {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(100, 200, 255, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* ==================== REPORT ACTIONS ==================== */
.report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.download-btn,
.new-scan-btn {
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    border: 2px solid;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 255, 136, 0.5);
    border-color: #00ff88;
}

.new-scan-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(100, 200, 255, 0.3));
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.3);
}

.new-scan-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 212, 255, 0.5);
    border-color: #00d4ff;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.download-btn .btn-shine,
.new-scan-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.download-btn:hover .btn-shine,
.new-scan-btn:hover .btn-shine {
    left: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(100, 200, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .glass-card {
        padding: 30px 25px;
    }
    
    .drop-zone {
        padding: 40px 25px;
    }
    
    .drop-text {
        font-size: 1.1rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .report-title {
        font-size: 2rem;
    }
    
    .shield-icon {
        width: 70px;
        height: 70px;
    }
    
    .chart-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .report-actions {
        grid-template-columns: 1fr;
    }
    
    .scan-stages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .watermark {
        font-size: 25vw;
    }
}
