/* =========================================================
   LOIRA DIMAS CHECK LIKES — Tema Vermelho × Preto Premium
   ========================================================= */

:root {
  --bg: #070708;
  --bg-2: #0e0e11;
  --card: rgba(18, 18, 22, 0.78);
  --card-border: rgba(255, 40, 60, 0.18);
  --red: #e10600;
  --red-2: #ff2a3a;
  --red-soft: rgba(225, 6, 0, 0.14);
  --red-glow: rgba(255, 30, 50, 0.45);
  --text: #f4f4f6;
  --muted: #9a9aa8;
  --muted-2: #6b6b78;
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #60a5fa;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Orbitron", "Outfit", sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Garante que [hidden] vença qualquer display do CSS (evita card de erro fantasma) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---- Background effects ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(225, 6, 0, 0.35), transparent 70%);
}

.bg-glow-2 {
  width: 380px;
  height: 380px;
  bottom: 10%;
  right: -80px;
  background: radial-gradient(circle, rgba(120, 0, 20, 0.4), transparent 70%);
}

/* ---- Layout ---- */
.topbar,
.container,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  max-width: 980px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--red-2), #8b0000);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--red-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-flame {
  font-size: 20px;
  color: #fff;
  filter: drop-shadow(0 0 6px #fff);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #fff;
}

.brand-text span {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--red-2);
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  border-radius: 999px;
}

.live-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.6s ease infinite;
}

.live-pill.offline .dot {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 18px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Cards ---- */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---- Hero ---- */
.hero {
  padding: 36px 28px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(225, 6, 0, 0.16), transparent 60%),
    var(--card);
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red-2);
  background: var(--red-soft);
  border: 1px solid rgba(255, 40, 60, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.accent {
  color: var(--red-2);
  text-shadow: 0 0 30px rgba(255, 40, 60, 0.45);
}

.hero-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 15px;
}

.hero-sub strong {
  color: #fff;
  font-weight: 600;
}

/* ---- Search ---- */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.input-wrap {
  flex: 1 1 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--red-2);
  font-weight: 700;
  font-size: 18px;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  padding: 0 44px 0 40px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
  color: var(--muted-2);
}

.input-wrap input:focus {
  border-color: rgba(255, 40, 60, 0.55);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.15);
}

.btn-clear {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-primary {
  height: 54px;
  min-width: 150px;
  padding: 0 26px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-2) 0%, #a00000 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(225, 6, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(225, 6, 0, 0.55);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-hints {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-hints .sep {
  opacity: 0.4;
}

/* ---- System strip ---- */
.sys-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 0;
}

.sys-item {
  background: var(--bg-2);
  padding: 14px 16px;
  text-align: center;
}

.sys-label {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sys-item strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ---- Alerts / empty ---- */
.alert {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  align-items: flex-start;
}

.alert-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.alert p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.result-empty {
  padding: 40px 28px;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 40, 60, 0.25);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--red-2);
}

.result-empty h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.result-empty p {
  color: var(--muted);
  margin-bottom: 18px;
}

.empty-tips {
  list-style: none;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted-2);
  font-size: 13px;
}

.empty-tips li {
  padding: 8px 0 8px 22px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-tips li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--red-2);
  font-weight: 700;
}

/* ---- Results ---- */
.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.results-id {
  font-size: 14px;
  color: var(--muted);
}

.results-id code {
  font-family: var(--display);
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.04em;
  margin-left: 6px;
}

.results-meta {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

.btn-ghost {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border 0.15s;
}

.btn-ghost:hover {
  background: rgba(255, 40, 60, 0.12);
  border-color: rgba(255, 40, 60, 0.35);
}

/* Summary */
.summary {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 28px;
  align-items: center;
}

.summary-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}

.ring-fg {
  fill: none;
  stroke: url(#none);
  stroke: var(--red-2);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(255, 40, 60, 0.55));
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center strong {
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
}

.ring-center span {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.stat-value {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.stat-value.warn {
  color: var(--warn);
}

.progress-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b0000, var(--red-2), #ff6b6b);
  box-shadow: 0 0 12px rgba(255, 40, 60, 0.5);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cards list */
.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.item-title h3 {
  font-size: 15px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-vip {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-avulso {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.3);
}

.badge-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.badge-status.success {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-status.warn {
  color: var(--warn);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.danger {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-status.info {
  color: var(--info);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.field {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.field-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.field-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.field-value.muted {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.item-progress {
  margin-top: 16px;
}

.item-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.item-progress-head strong {
  color: var(--red-2);
}

.item-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.item-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b0000, var(--red-2));
  transition: width 0.7s ease;
}

.item-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--red);
  font-size: 13px;
  color: var(--muted);
}

.consult-time {
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---- Player card (API Free Fire) ---- */
.player-card {
  padding: 18px 20px;
  border-color: rgba(255, 40, 60, 0.28);
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(225, 6, 0, 0.12), transparent 55%),
    var(--card);
}

.player-card-inline {
  margin: 0 auto 20px;
  max-width: 520px;
  text-align: left;
  border: 1px solid rgba(255, 40, 60, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(225, 6, 0, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.35);
  padding: 16px;
}

.player-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--red-2), #6b0000);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 40, 60, 0.35);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.player-main {
  flex: 1 1 140px;
  min-width: 0;
}

.player-nick {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.player-likes-box {
  text-align: right;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.player-likes-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.player-likes-val {
  font-family: var(--display);
  font-size: 18px;
  color: var(--red-2);
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.player-stats:empty {
  display: none;
}

.player-stat {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}

.player-stat span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.player-stat strong {
  font-size: 14px;
  color: #fff;
}

/* How */
.how {
  padding: 26px 24px;
}

.how h3 {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  color: #fff;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.how-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.how-n {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  color: var(--red-2);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.how-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.how-item p {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.footer {
  padding: 24px 18px 36px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
}

.footer a {
  color: var(--red-2);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-sep {
  opacity: 0.4;
}

/* Responsive — PC + mobile bem resolvidos (tema intacto) */
@media (min-width: 900px) {
  .container {
    padding: 12px 24px 72px;
  }

  .hero {
    padding: 44px 40px 36px;
  }

  .item-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary {
    padding: 28px 32px;
  }
}

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

  .sys-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 12px;
    padding: 12px 16px;
  }

  .sys-label {
    margin-bottom: 0;
  }

  .summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 20px 16px;
  }

  .summary-stats {
    width: 100%;
  }

  .item-grid {
    grid-template-columns: 1fr 1fr;
  }

  .item-card {
    padding: 16px;
  }

  .item-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 28px 16px 22px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .search-box {
    flex-direction: column;
  }

  .input-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
  }

  .topbar {
    padding: 14px 16px;
  }

  .brand-text strong {
    font-size: 11px;
  }

  .live-pill {
    font-size: 10px;
    padding: 6px 10px;
  }

  .results-head {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ghost {
    width: 100%;
  }
}

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

  .summary-stats {
    grid-template-columns: 1fr 1fr;
  }
}
