.subtitle {
    font-size: 0.9em;
    color: #888;
    font-weight: 400;
}

.search-section {
    background: #151520;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 8px;
}

#queryInput {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #2a2a3a;
    border-radius: 4px;
    background: #0f0f1a;
    color: #e0e0e0;
    transition: border-color 0.2s;
}

#queryInput::placeholder {
    color: #666;
}

#queryInput:focus {
    outline: none;
    border-color: #4a90e2;
}

#submitBtn {
    padding: 10px 20px;
    font-size: 14px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

#submitBtn:hover:not(:disabled) {
    background: #357abd;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rate-limit-info {
    font-size: 13px;
    color: #ff6b6b;
    text-align: center;
    padding: 8px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
    margin-top: 8px;
}

.rate-limit-info.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 24px;
    background: #151520;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
}

.loading p {
    color: #888;
    margin-top: 12px;
    font-size: 13px;
}

.spinner {
    border: 3px solid #2a2a3a;
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    background: #151520;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.results h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 8px;
}

.result-card {
    margin-bottom: 12px;
    border: 1px solid #2a2a3a;
    border-radius: 4px;
    background: #0f0f1a;
}

.result-header {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a3a;
}

.result-header h3 {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
}

.result-header.success {
    background: rgba(76, 175, 80, 0.1);
    color: #81c784;
}

.result-header.error {
    background: rgba(244, 67, 54, 0.1);
    color: #ef5350;
}

.result-header.skipped {
    background: rgba(255, 152, 0, 0.1);
    color: #ffb74d;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: #4caf50;
    color: white;
}

.status-badge.error {
    background: #f44336;
    color: white;
}

.status-badge.skipped {
    background: #ff9800;
    color: white;
}

.result-content {
    padding: 12px;
}

.result-info {
    display: block;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #151520;
    border-left: 2px solid #4a90e2;
    font-size: 13px;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 500;
    color: #888;
    min-width: 80px;
    font-size: 12px;
}

.info-value {
    font-weight: 500;
    color: #e0e0e0;
    font-size: 13px;
}

.reputation-malicious {
    color: #ff6b6b !important;
    font-weight: 600;
}

.reputation-safe {
    color: #81c784 !important;
    font-weight: 600;
}

.reputation-suspicious {
    color: #ffb74d !important;
    font-weight: 600;
}

.reputation-unknown {
    color: #b0b0b0 !important;
}

.error {
    background: rgba(244, 67, 54, 0.1);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
    margin-bottom: 12px;
    font-size: 13px;
}

.hidden {
    display: none;
}

.lookuper-inner {
    position: relative; 
    z-index: 1;
    align-items: center; 
    text-align: left; 
    min-height: 79svh; 
}

.query-info {
    background: #151520;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 3px solid #4a90e2;
    font-size: 13px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.query-info p {
    margin: 0;
    color: #b0b0b0;
}

.query-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* Общая статистика - компактная */
.overall-statistics {
    background: #151520;
    border: 1px solid #2a2a3a;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.overall-statistics h3 {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 8px;
}

.overall-main {
    margin-bottom: 12px;
}

.overall-reputation-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    background: #0f0f1a;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #2a2a3a;
}

.overall-reputation-label {
    font-weight: 500;
    color: #888;
    font-size: 12px;
}

.overall-reputation-value {
    font-weight: 600;
    font-size: 1.1em;
    padding: 4px 10px;
    border-radius: 4px;
}

.overall-reputation-value.reputation-malicious {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

.overall-reputation-value.reputation-safe {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.overall-reputation-value.reputation-suspicious {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

.overall-reputation-value.reputation-unknown {
    background: rgba(158, 158, 158, 0.2);
    color: #b0b0b0;
}

.overall-separator {
    margin: 0 4px;
    color: #444;
    font-weight: 300;
}

.overall-country-label {
    font-weight: 500;
    color: #888;
    font-size: 12px;
}

.stat-countries {
    font-weight: 500;
    color: #4a90e2;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-item {
    background: #0f0f1a;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #2a2a3a;
}

.stat-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.4em;
    font-weight: 600;
    color: #ffffff;
}

.stat-malicious {
    color: #ff6b6b;
}

.stat-safe {
    color: #81c784;
}

.stat-suspicious {
    color: #ffb74d;
}

/* Компактное отображение результатов сервисов */
.result-card .result-content .result-info {
    grid-template-columns: 1fr;
}
