/* IM/POSSIBLE CHECKER — base.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background Decoration ─────────────────────────────────── */

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,210,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,210,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-glow {
  position: fixed;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,210,255,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────────── */

.wrapper {
  position: relative; z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.brand-logo {
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.brand-im       { color: var(--text-primary); }

.brand-slash    { color: var(--cyan); margin: 0 1px; }

.brand-possible { color: var(--cyan); }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.brand-version {
  background: var(--cyan-glow);
  color: var(--cyan);
  border: 1px solid var(--border-active);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 9px;
  letter-spacing: 2px;
  margin-left: 6px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan-dim);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ── Stats Bar ──────────────────────────────────────────────── */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover { border-color: var(--border-active); }

.stat-icon {
  font-size: 20px;
  opacity: 0.5;
  line-height: 1;
}

.stat-info { display: flex; flex-direction: column; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-total  .stat-value { color: var(--text-primary); }

.stat-checked .stat-value { color: var(--cyan); }

.stat-live   .stat-value { color: var(--green); }

.stat-dead   .stat-value { color: var(--red); }

.stat-error  .stat-value { color: var(--orange); }

.stat-live   { border-color: rgba(0,255,136,0.12); }

.stat-dead   { border-color: rgba(255,59,92,0.12); }

.stat-error  { border-color: rgba(255,170,0,0.12); }

/* ── Main Grid ──────────────────────────────────────────────── */

.main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Section Labels ─────────────────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* ── Provider Cards ─────────────────────────────────────────── */

.provider-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.provider-card:not(.disabled):hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.provider-card.active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(0,210,255,0.06), transparent);
  box-shadow: 0 0 20px rgba(0,210,255,0.08);
}

.provider-card.disabled { cursor: default; }

.provider-logo { color: var(--cyan); flex-shrink: 0; }

.provider-logo.op40 { opacity: 0.3; }

.provider-name { font-weight: 600; font-size: 13px; }

.provider-name.op40 { opacity: 0.35; }

.provider-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.provider-detail.op40 { opacity: 0.35; }

.provider-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,210,255,0.15);
  color: var(--cyan);
  border: 1px solid rgba(0,210,255,0.25);
}

.provider-badge.upcoming {
  background: rgba(255,170,0,0.10);
  color: var(--orange);
  border-color: rgba(255,170,0,0.20);
}

/* ── Format Tags ─────────────────────────────────────────────── */

.format-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.fmt-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0,210,255,0.07);
  border: 1px solid var(--border);
  color: var(--cyan-dim);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ── Credential Input ────────────────────────────────────────── */

.cred-input {
  width: 100%;
  height: 180px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-mono);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.8;
}

.cred-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(0,210,255,0.06);
}

.cred-input::placeholder { color: var(--text-secondary); opacity: 0.5; }

.input-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.btn-clear {
  background: none; border: none; color: var(--red); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  opacity: 0.6; transition: opacity var(--transition);
}

.btn-clear:hover { opacity: 1; }

/* ── Toggle / Capture Options ────────────────────────────────── */

.option-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.toggle-group { display: flex; align-items: center; gap: 12px; }

.toggle-label { font-size: 13px; font-weight: 500; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; }

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.25s;
}

.slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.25s;
}

.switch input:checked + .slider {
  background: rgba(0,210,255,0.2);
  border-color: var(--cyan);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.capture-options {
  background: rgba(0,210,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 4px;
}

.capture-row { margin-bottom: 10px; }

.capture-row:last-child { margin-bottom: 0; }

.capture-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.capture-label .hint { font-size: 10px; opacity: 0.6; }

.keyword-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  transition: border-color var(--transition);
}

.keyword-input:focus { border-color: var(--border-active); }

/* ── Thread Control ──────────────────────────────────────────── */

.thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.thread-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

.thread-control button {
  background: none; border: none; color: var(--cyan);
  font-size: 18px; cursor: pointer; line-height: 1;
  width: 20px; text-align: center;
  transition: opacity var(--transition);
}

.thread-control button:hover { opacity: 0.7; }

.thread-control span {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

/* ── Controls ─────────────────────────────────────────────────── */

.controls { display: flex; gap: 10px; }

.btn-start, .btn-stop {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-start {
  background: linear-gradient(135deg, var(--cyan), #0090c0);
  color: #000;
  box-shadow: 0 0 20px rgba(0,210,255,0.25);
}

.btn-start:hover:not(:disabled) {
  box-shadow: 0 0 30px rgba(0,210,255,0.40);
  transform: translateY(-1px);
}

.btn-start:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-stop {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn-stop:hover:not(:disabled) { background: var(--red-dim); }

.btn-stop:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-icon { font-size: 10px; }

/* ── Right Panel ─────────────────────────────────────────────── */

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Progress ────────────────────────────────────────────────── */

.progress-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.progress-header span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-dim);
}

.progress-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 99px;
  transition: width 0.4s ease;
  z-index: 2;
}

.progress-glow {
  position: absolute;
  top: -4px; left: 0; height: 14px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 99px;
  filter: blur(6px);
  opacity: 0.4;
  transition: width 0.4s ease;
  z-index: 1;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.progress-stats span:first-child { color: var(--cyan); font-weight: 700; }

/* ── Result Tabs ─────────────────────────────────────────────── */

.result-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.tab {
  flex: 1;
  padding: 7px 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
}

.tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.tab.active {
  background: rgba(0,210,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,210,255,0.25);
}

/* ── Result Container ────────────────────────────────────────── */

.result-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
}

.result-header-row {
  display: grid;
  grid-template-columns: 72px 34px 180px 200px 1fr 34px;
  gap: 0;
  column-gap: 8px;
  padding: 10px 14px;
  background: rgba(0,210,255,0.04);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.result-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,210,255,0.15) transparent;
}

.result-list::-webkit-scrollbar { width: 4px; }

.result-list::-webkit-scrollbar-thumb { background: rgba(0,210,255,0.15); border-radius: 2px; }

/* Result Rows */

.result-row {
  display: grid;
  grid-template-columns: 72px 34px 180px 200px 1fr 34px;
  gap: 0;
  column-gap: 8px;
  align-items: start;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition);
  animation: rowIn 0.2s ease;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-row:hover { background: rgba(255,255,255,0.025); }

.result-row.result-live  { border-left: 2px solid var(--green); }

.result-row.result-dead  { border-left: 2px solid rgba(255,59,92,0.4); }

.result-row.result-error { border-left: 2px solid rgba(255,170,0,0.4); }

.r-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.r-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.r-pass {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}

.r-pass { color: var(--text-secondary); padding-right: 4px; }

.r-info {
  font-size: 11px;
  min-width: 0;
  word-break: break-word;
}

.err-msg {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  opacity: 0.8;
  word-break: break-word;
  white-space: normal;
}

.inbox-count {
  background: var(--green-dim);
  color: var(--green);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.inbox-preview { margin-top: 6px; }

.inbox-item {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item b { color: var(--text-primary); }

.inbox-item span { opacity: 0.6; }

.inbox-more { font-size: 10px; color: var(--cyan-dim); font-family: var(--font-mono); }

.r-action { display: flex; justify-content: center; }

.btn-copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 4px;
  cursor: pointer;
  padding: 3px 7px;
  font-size: 13px;
  transition: all var(--transition);
}

.btn-copy:hover { border-color: var(--cyan); color: var(--cyan); }

/* Empty State */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon { font-size: 36px; opacity: 0.2; }

.empty-text { font-size: 13px; opacity: 0.5; text-align: center; }

/* ── Export Row ──────────────────────────────────────────────── */

.export-row { display: flex; gap: 8px; }

.btn-export {
  flex: 1;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-export:hover      { border-color: var(--border-active); color: var(--text-primary); }

.btn-export.live:hover { border-color: var(--green); color: var(--green); background: var(--green-dim); }

.btn-export.dead:hover { border-color: var(--red);   color: var(--red);   background: var(--red-dim);   }

/* ── Left Panel ──────────────────────────────────────────────── */

.left-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 20px;
}