:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --accent: #10b981;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 23, 42, 0.8);
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, .logo {
    font-family: 'Outfit', sans-serif;
}

.dark-theme {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.heist { color: #fff; }
.marketing { color: var(--primary); }

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quota-group {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
}

.quota-item {
    font-size: 0.75rem;
    font-weight: 600;
}

.q-label { color: var(--text-dim); margin-right: 0.25rem; }
.q-value { color: var(--accent); }

.status-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.online {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 5% 3rem;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px;
    margin: 0 auto;
}

input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 1rem;
    font-size: 1rem;
    outline: none;
}

button {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 151px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Report Layout */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.summary-card .label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.summary-card .value { font-size: 1.25rem; font-weight: 700; color: var(--accent); }

.report-block {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.report-block h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .report-grid { grid-template-columns: 1fr; }
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.report-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.report-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.detail-url { font-size: 0.8rem; color: var(--primary); margin-bottom: 0.25rem; width: 100%; overflow: hidden; text-overflow: ellipsis;}
.detail-title { font-weight: 700; margin-bottom: 0.5rem;}
.detail-meta { font-size: 0.85rem; color: var(--text-dim);}

.hidden { display: none; }

/* Loader */
.loader-circle {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s infinite linear;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Section */
#progress-container {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-dim);
}

.progress-track {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#progress-bar {
    height: 100%;
    background: var(--gradient);
    transition: width 0.4s ease;
}

#progress-percentage {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* Log Container */
.log-container {
    margin-top: 1.5rem;
    background: #000;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    overflow: hidden;
}

.log-header {
    background: #1e293b;
    padding: 0.25rem 0.75rem;
    color: var(--text-dim);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.log-content {
    padding: 0.75rem;
    height: 120px;
    overflow-y: auto;
    color: #10b981;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}
