* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(0, 255, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
}

.status i {
    margin-right: 0.3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.stat-card.safe .stat-icon {
    color: #00ff88;
}

.stat-card.phishing .stat-icon {
    color: #ff4757;
}

.stat-card.accuracy .stat-icon {
    color: #ffa502;
}

.stat-card.realtime .stat-icon {
    color: #00d4ff;
}

.stat-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Scanner Section */
.scanner-section {
    background: rgba(0, 212, 255, 0.1);
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.scanner-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scanner-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#urlInput {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

#urlInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.scan-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Results */
#scanResult {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    margin-top: 1rem;
    transition: all 0.5s ease;
}

.result-safe {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.result-phishing {
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid rgba(255, 71, 87, 0.5);
    color: #ff4757;
}

.result-score {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
}

.result-hidden {
    display: none;
}

/* Detection Cards */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin: 4rem 0;
}

.detection-card,
.recent-scans {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detection-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-right: 4px solid #00d4ff;
}

.metric span:last-child {
    font-weight: 700;
    color: #00d4ff;
}

.recent-scans h3,
.detection-card h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.scan-item.safe {
    border-left: 4px solid #00ff88;
}

.scan-item.phishing {
    border-left: 4px solid #ff4757;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
}

#modalBody {
    padding: 3rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .scanner-card {
        padding: 2rem 1rem;
    }
}