:root {
    --bg-grad: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-bdr: rgba(255, 255, 255, 0.7);
    --txt: #0f172a;
    --muted: #475569;
    --acc: #10b981;
    --acc-hover: #059669;
    --acc-soft: rgba(16, 185, 129, 0.08);
    --bdr: rgba(226, 232, 240, 0.8);
    --sans: 'Outfit', sans-serif;
    --mono: 'Space Mono', monospace;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

/* WP Container Adjustments */
.lead-miner-container {
    max-width: 1200px;
    margin: 20px auto;
    color: var(--txt);
    font-family: var(--sans);
    line-height: 1.6;
}

.lead-miner-container * {
    box-sizing: border-box;
}

.lead-miner-container h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

/* Scrollbar and regular styles (keeping them scoped if possible, but WP themes might override) */
.lead-miner-container ::-webkit-scrollbar { width: 8px; }
.lead-miner-container ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-bdr);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.panel-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--acc);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    font-weight: 700;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    width: fit-content;
}

.tab {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--muted);
}

.tab.active {
    background: #fff;
    color: var(--txt);
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fg.full { grid-column: span 2; }

.fg label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lead-miner-container input[type=text] {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--bdr);
    background: #fff;
    font-size: 0.95rem;
}

.lead-miner-container .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-hover); }

.prog-container {
    display: none;
    background: #f1f5f9;
    height: 4px;
    margin-top: 20px;
    overflow: hidden;
}
.prog-container.active { display: block; }
.prog-bar { height: 100%; background: var(--acc); width: 30%; animation: sweep 2s infinite; }

@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

.stats-grid { display: none; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 30px 0; }
.stats-grid.active { display: grid; }

.stat-card { background: #fff; padding: 20px; border-radius: 15px; text-align: center; border: 1px solid var(--bdr); }
.stat-val { font-size: 2rem; font-weight: 800; color: var(--acc); }
.stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }

.results-section { display: none; margin-top: 30px; }
.results-section.active { display: block; }

.sec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.count-badge { background: var(--acc-soft); color: var(--acc); padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; }

.table-container { background: #fff; border-radius: 15px; border: 1px solid var(--bdr); overflow-x: auto; }
table { width: 100%; min-width: 800px; border-collapse: collapse; }
th { background: #f8fafc; padding: 15px; font-size: 0.7rem; color: var(--muted); text-align: left; border-bottom: 1px solid var(--bdr); }
td { padding: 15px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }

.social-links { display: flex; gap: 5px; }
.social-icon { width: 28px; height: 28px; background: #f1f5f9; display: grid; place-items: center; border-radius: 5px; text-decoration: none; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.social-icon.gmb { color: #2563eb; background: #dbeafe; }

/* Modal and Toasts */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.toast { background: #1e293b; color: #fff; padding: 12px 24px; border-radius: 8px; margin-top: 10px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 10000; }
.modal-overlay.active { display: flex; }
.modal-content { background: #fff; padding: 30px; border-radius: 20px; text-align: center; max-width: 400px; }
