/* OSINT Progress Enhanced - Premium Edition */
.osint-progress-enhanced {
    background: rgba(10, 10, 18, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.osint-progress-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 157, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: slow-rotate 10s linear infinite;
}

@keyframes slow-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h4 {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.risk-flags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.risk-flag-item {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: #ff4444;
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.progress-number {
    color: var(--accent-bright);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.progress-stats {
    display: flex;
    gap: 20px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-success {
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.stat-failed {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-processing {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #00ff9d);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 60%,
            transparent 100%);
    background-size: 200% 100%;
    animation: sweep 2s infinite linear;
}

@keyframes sweep {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: bar-shine 2s infinite linear;
}

@keyframes bar-shine {
    from {
        transform: translateX(-100px);
    }

    to {
        transform: translateX(100vw);
    }
}

.service-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.service-status-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    animation: fade-in-up 0.5s forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-status-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.status-icon {
    font-size: 11px;
    transition: all 0.3s ease;
}

.service-status-item.pending {
    opacity: 0.3;
}

.service-status-item.processing {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

.service-status-item.processing .status-icon {
    animation: spin-pulse 2s infinite linear;
    color: #3b82f6;
}

@keyframes spin-pulse {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.service-status-item.success {
    background: rgba(0, 255, 157, 0.04);
    border-color: rgba(0, 255, 157, 0.3);
    color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}

.service-status-item.success .status-icon {
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

.service-status-item.failed {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.service-status-item.failed .status-icon {
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.service-status-item.processing {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
    animation: blue-pulse 2s infinite;
}

@keyframes blue-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Intelligence Wall - Premium Cards */
.intelligence-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.searchable-item-v2 {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.searchable-item-v2:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.searchable-item-v2 .item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 12px;
    color: var(--accent);
}

.searchable-item-v2 .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.searchable-item-v2 .view-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.searchable-item-v2 .view-value {
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-bright);
}

.searchable-item-v2 .item-action-v2 {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--accent-bright);
    font-size: 14px;
}

.searchable-item-v2:hover .item-action-v2 {
    opacity: 1;
}

.searchable-item-v2.mini {
    padding: 6px 10px;
}

.searchable-item-v2.mini .item-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 11px;
}

.searchable-item-v2.mini .view-value {
    font-size: 11px;
}

.badge.reviews {
    background: rgba(255, 187, 51, 0.1);
    color: #ffbb33;
    border: 1px solid rgba(255, 187, 51, 0.2);
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.breach-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breach-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 8px var(--accent);
    z-index: 2;
}

.timeline-item .time {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2px;
}

.timeline-item .event {
    font-size: 12px;
    color: var(--text-bright);
    font-weight: 500;
}

.intel-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slide-in 0.4s ease forwards;
}

.intel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intel-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.intel-card:hover::before {
    opacity: 1;
}

.intel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.intel-source-tag {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.intel-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.intel-value-v3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-all;
    font-family: 'Inter', sans-serif;
}

.intel-context {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
}

.intel-actions-v3 {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.btn-pivot-v3 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pivot-v3:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}