:root {
  --rojo: #C41E3A;          /* Sókerim */
  --rojo-osc: #9e1730;
  --verde: #1f9d55;
  --gris: #6b7280;
  --bg: #f4f5f7;
  --card: #ffffff;
  --borde: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #1f2937;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--rojo); color: #fff;
  padding: 14px 22px;
}
.brand { font-size: 19px; font-weight: 700; }

.pill { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.pill--ok { background: #d4f7e2; color: #0c6b3a; }
.pill--bad { background: #2b2b2b; color: #ffd0d0; }
.pill--unknown { background: rgba(255,255,255,.25); color: #fff; }

.big-alert {
  background: var(--rojo); color: #fff; font-weight: 700; font-size: 18px;
  text-align: center; padding: 16px; margin: 0;
  border-bottom: 4px solid var(--rojo-osc);
}
.hidden { display: none !important; }

.container { max-width: 920px; margin: 22px auto; padding: 0 16px; }
.card {
  background: var(--card); border: 1px solid var(--borde); border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.card h2 { margin: 0 0 6px; font-size: 17px; color: var(--rojo-osc); }
.muted { color: var(--gris); font-size: 14px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btn {
  background: var(--rojo); color: #fff; border: none; border-radius: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--rojo-osc); }
.btn--ghost { background: #fff; color: var(--rojo); border: 1px solid var(--rojo); }
.btn--accent { background: var(--verde); }
.btn--accent:hover { background: #167a41; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.grid label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 5px; }
.grid .full { grid-column: 1 / -1; }
.grid input, .grid textarea, #contactsInput {
  font-size: 14px; padding: 9px; border: 1px solid var(--borde); border-radius: 7px;
  font-family: inherit;
}
.grid label.check { flex-direction: row; align-items: center; gap: 8px; }
.grid label.check input { width: auto; }

.qrbox { margin-top: 14px; text-align: center; }
.qrbox img { width: 260px; height: 260px; border: 1px solid var(--borde); border-radius: 8px; }

.adder { margin-bottom: 14px; }
.adder summary { cursor: pointer; font-weight: 600; color: var(--rojo); }
#contactsInput { width: 100%; margin-top: 10px; }

.counts { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.counts span { background: #f0f1f3; padding: 4px 10px; border-radius: 6px; font-size: 13px; }

.tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--borde); }
.tbl th { color: var(--gris); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

.tag { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.pending { background: #fff3cd; color: #8a6d00; }
.tag.sent    { background: #d4f7e2; color: #0c6b3a; }
.tag.failed  { background: #fde2e2; color: #a01919; }
.tag.skipped { background: #eee; color: #555; }

.linkdel { color: var(--gris); cursor: pointer; font-size: 13px; text-decoration: underline; }
.foot { text-align: center; padding: 20px; }

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