/* --- GLOBAL THEME --- */
body {
    background: linear-gradient(135deg, #1f1d2b, #2a2737);
    color: #d8d4e2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

/* --- CARDS --- */
.card {
    background-color: #2a2737;
    border-radius: 18px;
    border: 1px solid #4a455a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.card-glow { box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }

/* --- FORMS --- */
.form-control, .form-control:focus { 
    background-color: #1f1d2b !important; 
    color: #d8d4e2 !important; 
    border-color: #4a455a; 
    border-radius: 10px; 
    box-shadow: none; 
}
textarea.form-control { resize: none; }

/* --- BUTTONS --- */
.btn-primary { 
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none; 
    font-weight: 600; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: 0.3s;
}
.btn-primary:hover { 
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-2px); 
}

.btn-download {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    transition: 0.3s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 0 15px rgba(74, 222, 128, 0.4); }

.btn-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 20px;
}
.btn-toggle:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; color: white; }

/* --- RESULT SECTIONS --- */
.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #4a455a;
    padding-bottom: 10px;
}

/* --- RESULT ITEM (ACCORDION) --- */
.result-item {
    background: #252331;
    border: 1px solid #3f3b4e;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: 0.3s;
}
.result-summary {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.result-summary:hover { background: #2a2737; }

.summary-badges span {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}
.summary-email { font-weight: 600; color: white; }

.result-details {
    display: none; /* Hidden by default */
    padding: 20px;
    background: #1f1d2b;
    border-top: 1px solid #3f3b4e;
}

/* DEAD RESULTS */
.result-dead {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 8px;
}

/* --- GRID --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.info-item {
    background: #2a2737;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #3f3b4e;
}
.info-label { font-size: 10px; color: #9ca3af; text-transform: uppercase; display: block; margin-bottom: 3px; }
.info-value { font-size: 13px; color: #fff; font-weight: 700; word-break: break-all; }

/* --- SPINNER --- */
.loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31, 29, 43, 0.95);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    backdrop-filter: blur(4px);
}
.big-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #3f3b4e;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- NAV & MODAL --- */
.nav-pills .nav-link { color: #d8d4e2; background-color: rgba(42, 39, 55, 0.5); margin-right: 8px; border: 1px solid #4a455a; border-radius: 8px; }
.nav-pills .nav-link.active { background-color: #8b5cf6; color: white; border-color: #8b5cf6; }
.modal-content { background-color: #2a2737; border: 1px solid #4a455a; color: white; border-radius: 18px; }
.modal-header { border-bottom: 1px solid #4a455a; }
.close { color: white; opacity: 0.8; }