/* ============================================================
   Account Checker Pro — Main Stylesheet
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  font-size: 14px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}
.navbar .logo { font-weight: 700; font-size: 17px; color: #1a1a1a; flex: 1; }
.navbar a { color: #555; text-decoration: none; font-size: 13px; }
.navbar a:hover { color: #1a1a1a; }
.balance-badge {
  background: #f0f7ff;
  color: #0078d4;
  border: 1px solid #b3d4f5;
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 13px;
}
.nav-user { display: flex; align-items: center; gap: 10px; }

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 16px; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.card-header h3 { font-size: 15px; font-weight: 600; }

/* ── Section label ────────────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 16px 6px;
}

/* ── Platform grid ────────────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}
@media(min-width:540px){ .platform-grid { grid-template-columns: repeat(6, 1fr); } }
.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
  text-transform: capitalize;
}
.platform-btn input { display: none; }
.platform-btn .picon { font-size: 20px; }
.platform-btn:has(input:checked) {
  border-color: var(--clr);
  background: color-mix(in srgb, var(--clr) 8%, white);
  color: var(--clr);
}

/* ── Type buttons ─────────────────────────────────────────────── */
.type-grid { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
@media(min-width:540px){ .type-grid { flex-direction: row; } }
.type-btn {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.type-btn input { margin-top: 2px; accent-color: #0078d4; }
.type-btn strong { font-size: 13px; display: block; }
.type-btn small  { color: #888; font-size: 11px; }
.type-btn:has(input:checked) { border-color: #0078d4; background: #f0f7ff; }

/* ── Batch input ─────────────────────────────────────────────── */
.batch-input {
  width: calc(100% - 32px);
  margin: 0 16px;
  min-height: 110px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
}
.batch-input:focus { border-color: #0078d4; }
.count-hint { padding: 4px 16px; font-size: 11px; color: #999; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-row { display: flex; gap: 8px; padding: 12px 16px 16px; }
.btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .15s; }
.btn-primary { background: #0078d4; color: #fff; flex: 1; }
.btn-primary:hover { background: #005fa3; }
.btn-outline { background: #fff; border: 1.5px solid #ddd; color: #444; }
.btn-outline:hover { background: #f5f5f5; }

.export-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: #888; }
.btn-sm { padding: 4px 10px; border-radius: 6px; border: 1px solid #ddd; background: #fafafa; cursor: pointer; font-size: 12px; }
.btn-sm:hover { background: #f0f0f0; }
.btn-alive { border-color: #28a745; color: #28a745; }
.btn-ban   { border-color: #e53935; color: #e53935; }
.btn-danger{ border-color: #f44336; color: #f44336; }

/* ── Stats table ─────────────────────────────────────────────── */
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td {
  padding: 9px 14px;
  text-align: right;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
}
.stats-table th:first-child, .stats-table td:first-child { text-align: left; font-weight: 500; }
.stats-table th { background: #fafafa; font-weight: 600; color: #555; font-size: 12px; }
.alive { color: #28a745; }
.dead  { color: #e53935; }
.unk   { color: #ff9800; }

/* ── Result summary ──────────────────────────────────────────── */
.result-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
}
.r-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-right: 1px solid #f0f0f0;
}
.r-box:last-child { border-right: none; }
.r-box span { font-size: 11px; color: #888; margin-bottom: 4px; }
.r-box strong { font-size: 22px; font-weight: 700; }
.r-box.alive strong { color: #28a745; }
.r-box.dead strong  { color: #e53935; }
.r-box.fail strong  { color: #ff9800; }

/* ── Result table ────────────────────────────────────────────── */
.result-table { width: 100%; border-collapse: collapse; }
.result-table th, .result-table td {
  padding: 9px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #f8f8f8;
}
.result-table th { background: #fafafa; font-weight: 600; color: #555; font-size: 12px; }
.result-table td:first-child { cursor: pointer; font-family: monospace; }
.result-table td:first-child:hover { color: #0078d4; }
.result-table .status-alive   { color: #28a745; font-weight: 600; }
.result-table .status-dead    { color: #e53935; font-weight: 600; }
.result-table .status-unknown { color: #ff9800; }
.result-table .status-checking{ color: #aaa; font-style: italic; }
.empty-msg { color: #aaa; text-align: center; padding: 30px; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0078d4 0%, #00bcd4 100%);
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card p  { color: #888; font-size: 13px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 10px 12px; border: 1.5px solid #e0e0e0;
  border-radius: 8px; font-size: 14px; outline: none;
}
.form-group input:focus { border-color: #0078d4; }
.btn-full { width: 100%; padding: 12px; border-radius: 8px; border: none;
  background: #0078d4; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-full:hover { background: #005fa3; }
.auth-link { text-align: center; margin-top: 16px; font-size: 13px; color: #888; }
.auth-link a { color: #0078d4; text-decoration: none; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
