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

body {
    background: #0f0f14;
    color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 10px;
}

/* Title */
.title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    opacity: 0.6;
    margin-bottom: 30px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #1a1a22;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #2a2a35;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

.card.threat {
    border-color: #ff3b3b;
}

/* Form */
form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    background: #1a1a22;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    color: white;
    resize: none;
    margin-bottom: 15px;
    font-size: 15px;
}

form button {
    width: 100%;
    padding: 12px;
    background: #00c6ff;
    border: none;
    border-radius: 8px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #00a3d6;
}

/* Result */
.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.result.safe {
    border: 1px solid #00ff88;
    background: rgba(0,255,136,0.1);
}

.result.danger {
    border: 1px solid #ff3b3b;
    background: rgba(255,59,59,0.1);
}

/* Panels */
.panels {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feed-panel,
.chart-panel,
.console-panel {
    background: #1a1a22;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a2a35;
}

.feed-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.feed-item {
    padding: 6px 0;
    font-size: 14px;
}

.safe-text {
    color: #00ff88;
}

.danger-text {
    color: #ff3b3b;
}

.chart-wrapper {
    height: 250px;
}

.console-panel {
    margin-top: 20px;
}

.console-box {
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
}

/* 🔥 MOBILE RESPONSIVE */

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

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

@media (max-width: 600px) {

    .title {
        font-size: 1.6rem;
    }

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

    .card {
        padding: 18px;
    }

    form textarea {
        height: 100px;
    }

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

    .chart-wrapper {
        height: 200px;
    }
}
/* Header Layout */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Info Button */
.info-btn {
    background: transparent;
    border: 1px solid #00c6ff;
    color: #00c6ff;
    padding: 6px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.info-btn:hover {
    background: #00c6ff;
    color: black;
}

/* Modal */
.modal-content a {
    color: #00c6ff;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: #1a1a22;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    color: white;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
