/* ==================== EXTRA Mailer • Netflix Style ==================== */
:root {
  --bg: #000000;
  --bg2: #141414;
  --panel: #181818;
  --panel-soft: #1f1f1f;
  --border: #2b2b2b;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --accent: #e50914;   /* Netflix red */
  --accent-soft: #b20710;
  --danger: #ff4d67;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #202020 0%, #000 60%);
  color: var(--text);
}

/* ============ LOGIN ============ */
.login-body {
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-wrap {
  width:100%;
  max-width:420px;
  padding:20px;
}

.login-card {
  background: rgba(0,0,0,.85);
  border-radius: 14px;
  border: 1px solid #222;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.9);
}

.login-logo {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.login-logo img {
  height:80px;
  border-radius:4px;
  
}
.login-logo span {
  font-weight:700;
  letter-spacing:.15em;
  font-size:16px;
  text-transform:uppercase;
  color:#f5f5f5;
}
.login-card h1 {
  font-size:16px;
  margin-bottom:14px;
  color:#fff;
}
.login-card label {
  display:block;
  font-size:.85rem;
  color:var(--muted);
  margin-top:8px;
  margin-bottom:3px;
}
.login-card .glow-field {
  width:100%;
}
.btn-neo.full { width:100%; margin-top:14px; }
.error-msg { color:#ff7b87; margin-top:6px; font-size:.85rem; }

/* ============ HEADER (Dashboard) ============ */
.hero {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #222;
  background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.88));
}

.hero .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
}

.brandX {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandX img {
  height: 100px;
  border-radius: 4px;
 
}

.brand-txt .t1 {
  font-weight: 800;
  letter-spacing: .25px;
  font-size: 1.05rem;
}

.brand-txt .t2 {
  font-size: .9rem;
  color: var(--muted);
}

.kpisX {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kpiX {
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #333;
  background: #111;
  color: var(--muted);
}
.kpiX b { color: #fff; }

/* ============ LAYOUT ============ */
.mainX {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr;
  gap: 18px;
}
@media (max-width: 980px) { .mainX { grid-template-columns: 1fr; } }

/* ============ PANELS (cards) ============ */
.panelX {
  background: radial-gradient(circle at top, #252525 0%, #181818 45%, #141414 100%);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #262626;
  box-shadow: 0 18px 40px rgba(0,0,0,.9);
  margin-bottom: 18px;
}

.panelX h2 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.panelX h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: .95rem;
  color: #ffffff;
}

.help {
  color: var(--muted);
  font-size: .85rem;
  margin: 4px 0 8px;
}

/* ============ INPUTS / TEXTAREAS ============ */
.glow-field,
.textarea {
  width: 100%;
  background: #101010;
  border: 1px solid #333;
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .9rem;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.glow-field::placeholder,
.textarea::placeholder {
  color: #595959;
}

.glow-field:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #000, 0 0 18px rgba(229, 9, 20, .55);
  background: #151515;
}

.textarea { min-height: 110px; resize: vertical; }
.textarea.small { min-height: 80px; }
.textarea.tall { min-height: 150px; }

.row { display:flex; gap:8px; flex-wrap:wrap; }
label { display:block; font-size:.82rem; color:var(--muted); margin-bottom:2px; }
.glow-field.small { width:90px; }

/* ============ BUTTONS ============ */
.btn-line,
.btn-ghost,
.btn-neo,
.btn-danger {
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  transition: background .15s, color .15s, box-shadow .2s, transform .1s, border-color .15s;
}

/* Netflix red primary */
.btn-neo {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-soft);
  box-shadow: 0 10px 24px rgba(229, 9, 20, .6);
}
.btn-neo:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Outline red */
.btn-line {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-line:hover {
  background: var(--accent);
  color: #fff;
}

/* Ghost (header logout / pause) */
.btn-ghost {
  border-color: #333;
  color: #fff;
  background: #181818;
}
.btn-ghost:hover {
  background: #222;
}

/* Danger */
.btn-danger {
  background: var(--danger);
  border-color: #ff6b81;
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(1.06);
}

/* ============ PROGRESS & LOGS ============ */
.progress-bar {
  height: 8px;
  background: #101010;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #333;
}

#progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e50914, #ff4444);
  transition: width .18s ease-out;
}

.logs {
  margin-top: 10px;
  background: #050505;
  border-radius: 6px;
  border: 1px solid #262626;
  max-height: 260px;
  overflow: auto;
  padding: 8px 10px;
  font-size: .85rem;
}
.logs .ok { color: #4ade80; }
.logs .err { color: #ff7b87; }
.logs span { font-weight: 600; margin-right: 4px; }

/* ============ TAGS & TOAST ============ */
.tag-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }

.tag-btn {
  background: #202020;
  border-radius: 999px;
  border: 1px solid #333;
  padding: 6px 10px;
  font-size: .8rem;
  color: #eee;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.tag-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(229,9,20,.7);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SEPARATORS ============ */
.hline {
  border-bottom: 1px solid #222;
  margin: 14px 0 10px;
}

/* ============ ANALYTICS ============ */
.card-metric {
  background:#101010;
  border-radius:10px;
  border:1px solid #333;
  padding:10px 12px;
}
.m-label { font-size:.8rem; color:var(--muted); margin-bottom:4px; }
.m-value { font-size:1.4rem; font-weight:700; }
.m-value.green { color:#4ade80; }
.m-value.red { color:#ff7b87; }

.shield-table-wrap {
  border-radius:8px;
  border:1px solid #333;
  background:#050505;
  max-height:220px;
  overflow:auto;
}

.shield-table {
  width:100%;
  border-collapse:collapse;
  font-size:.8rem;
}
.shield-table th,
.shield-table td {
  border-bottom:1px solid #222;
  padding:4px 6px;
  text-align:left;
  white-space:nowrap;
}
.shield-table thead {
  background:#111;
  position:sticky;
  top:0;
}

/* ============ RESPONSIVE HEADER ============ */
@media (max-width: 720px) {
  .hero .bar { flex-direction: column; align-items: flex-start; }
}
