/* ===== Variables & base ===== */
:root {
  --bg: #0a0a0a;
  --bg-card: #111;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-muted: #888;
  --white: #fff;
  --black: #000;
  --charged: #22c55e;
  --charged-glow: rgba(34, 197, 94, 0.3);
  --live: #eab308;
  --live-glow: rgba(234, 179, 8, 0.25);
  --dead: #ef4444;
  --dead-glow: rgba(239, 68, 68, 0.2);
  --accent: #e5e5e5;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Touch devices: remove tap highlight, improve tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .filter-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.4s ease;
}

.app {
  animation: appReveal 0.6s ease-out;
}

.app.hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

/* Scroll-stage: full-page decorative layer (animated bg + gradients; colors change with scroll) */
.scroll-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated gradient background (tech/dashboard feel, no external video) */
.scroll-stage__animated-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 20% 20%, rgba(80,80,90,0.25) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 80% 80%, rgba(60,60,70,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 70% 100% at 50% 50%, rgba(40,40,50,0.15) 0%, transparent 60%);
  animation: scrollStageBgPulse 12s ease-in-out infinite;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.scroll-stage__animated-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.02) 25%, transparent 50%, rgba(255,255,255,0.015) 75%, transparent 100%);
  background-size: 200% 200%;
  animation: scrollStageShine 18s linear infinite;
  pointer-events: none;
}

.scroll-stage__animated-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

@keyframes scrollStageBgPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.02); }
}

@keyframes scrollStageShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.scroll-stage__gradient {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  transition: opacity 0.6s ease;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255,255,255,0.12) 0%, transparent 50%),
              radial-gradient(ellipse 80% 60% at 80% 60%, rgba(255,255,255,0.06) 0%, transparent 45%),
              radial-gradient(ellipse 60% 80% at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 45%);
}

.scroll-stage__shapes {
  position: absolute;
  inset: 0;
}

.scroll-stage__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  transition: transform 0.8s ease, opacity 0.6s ease, background 0.6s ease;
}
.scroll-stage__blob--1 {
  width:  min(400px, 80vw);
  height: min(400px, 80vw);
  background: rgba(255,255,255,0.2);
  top: 10%;
  left: -10%;
  animation: blobFloat1 12s ease-in-out infinite;
}
.scroll-stage__blob--2 {
  width:  min(320px, 60vw);
  height: min(320px, 60vw);
  background: rgba(255,255,255,0.15);
  top: 50%;
  right: -5%;
  animation: blobFloat2 14s ease-in-out infinite;
}
.scroll-stage__blob--3 {
  width:  min(280px, 55vw);
  height: min(280px, 55vw);
  background: rgba(255,255,255,0.1);
  bottom: 5%;
  left: 20%;
  animation: blobFloat3 10s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.98); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -15px) scale(1.08); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -25px); }
}

.scroll-stage__icon {
  position: absolute;
  width: 80px;
  height: 80px;
  color: rgba(255,255,255,0.06);
  transition: color 0.6s ease, transform 0.5s ease;
}
.scroll-stage__icon--card { top: 18%; right: 12%; animation: iconFloat 8s ease-in-out infinite; }
.scroll-stage__icon--shield { bottom: 25%; left: 8%; animation: iconFloat 10s ease-in-out infinite 1s; }
.scroll-stage__icon--check { top: 45%; left: 15%; width: 60px; height: 60px; animation: iconFloat 9s ease-in-out infinite 0.5s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.app > .app__wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
}

.app > .app__wrap > .header,
.app > .app__wrap > .stats-section,
.app > .app__wrap > .main,
.app > .app__wrap > .footer {
  position: relative;
}

@keyframes appReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  text-align: center;
}

.preloader__logo {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: var(--surface);
  border-radius: 3px;
  margin: 2rem auto 1rem;
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 30%;
  background: var(--white);
  border-radius: 3px;
  animation: preloaderBar 1.5s ease-in-out infinite;
}

.preloader__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.preloader__dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  margin: 0 4px;
  animation: preloaderDot 1.4s ease-in-out infinite both;
}

.preloader__dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes preloaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes preloaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

@keyframes preloaderDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== Stats section (Total, Charged, Live, Dead) ===== */
.stats-section {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.25rem;
  animation: cardIn 0.5s ease-out 0.1s backwards;
}

.stats-section__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stats-grid .stat {
  text-align: center;
  padding: 1rem 0.75rem;
  min-width: 0;
}

.stats-grid .stat__value {
  font-size: 1.5rem;
}

.stat--total .stat__value { color: var(--accent); }
.stat--charged .stat__value { color: var(--charged); }
.stat--live .stat__value { color: var(--live); }
.stat--dead .stat__value { color: var(--dead); }

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mobile & responsive (resolution-based) ===== */
/* Tablet and below */
@media (max-width: 768px) {
  .app > .app__wrap {
    padding: 1rem 1rem 0;
  }
  .main {
    padding: 0 0 1.5rem;
  }
  .card {
    padding: 1.25rem;
  }
  .stats-section {
    padding: 1rem 1rem 1.25rem;
    margin-bottom: 1rem;
  }
  .header {
    padding: 1.25rem 0 1rem;
  }
  .header__title {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    letter-spacing: 0.05em;
  }
  .header__subtitle {
    font-size: 0.8rem;
  }
  .header__menu-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  .results-head {
    flex-direction: column;
    align-items: stretch;
  }
  .results-filters {
    justify-content: flex-start;
  }
}

/* Phone */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .app > .app__wrap {
    padding: 0.75rem 0.75rem 0;
  }
  .main {
    padding: 0 0 1.25rem;
  }
  .card {
    padding: 1rem;
  }
  .stats-section {
    padding: 0.875rem 0.75rem;
    margin-bottom: 0.875rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stats-grid .stat {
    padding: 0.75rem 0.5rem;
  }
  .stats-grid .stat__value {
    font-size: 1.25rem;
  }
  .stats-section__title {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .header {
    padding: 1rem 0 0.75rem;
  }
  .header__title {
    font-size: 1.35rem;
  }
  .input-textarea {
    min-height: 100px;
    padding: 0.875rem;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .input-actions {
    gap: 0.5rem;
  }
  .btn {
    padding: 0.75rem 1rem;
    min-height: 44px; /* touch target */
    font-size: 0.85rem;
  }
  .btn--primary,
  .btn--secondary {
    flex: 1 1 auto;
    min-width: 0;
  }
  .input-options {
    flex-wrap: wrap;
  }
  .option__input {
    width: 80px;
  }
  .filter-btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    min-height: 36px;
  }
  .results-list {
    min-height: 160px;
  }
  .result-item {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }
  .result-item__cc {
    word-break: break-all;
  }
  .footer {
    padding: 1rem 0.75rem;
    font-size: 0.75rem;
  }
  .toast {
    max-width: calc(100vw - 1.5rem);
    transform: translateX(-50%) translateY(80px);
    bottom: 1rem;
  }
  .toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* Small phone */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .input-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Header ===== */
.header {
  position: relative;
  padding: 1.75rem 0 1.25rem;
  overflow: hidden;
}

.header__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.header__content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeInDown 0.8s ease-out;
}

.header__brand {
  text-align: left;
}

.header__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.header__title-icon {
  font-size: 0.6em;
  opacity: 0.8;
  animation: rotate 4s linear infinite;
}

.header__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Header menu (Download PC, Get Approval, Contact) */
.header__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.header__menu-btn {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.header__menu-btn:hover {
  background: var(--border);
  color: var(--white);
  border-color: var(--text-muted);
}

.header__menu-btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.header__menu-btn--primary:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.stat {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 70px;
  transition: var(--transition), background 0.6s ease, border-color 0.6s ease;
  animation: fadeIn 0.6s ease-out backwards;
}

.stats-grid .stat:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat:nth-child(2) { animation-delay: 0.15s; }
.stats-grid .stat:nth-child(3) { animation-delay: 0.2s; }
.stats-grid .stat:nth-child(4) { animation-delay: 0.25s; }

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
}

.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat--live .stat__value { color: var(--live); }
.stat--dead .stat__value { color: var(--dead); }

.stat.updated .stat__value {
  animation: statPop 0.4s ease;
}

@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== Main layout ===== */
.main {
  flex: 1;
  min-height: 0;
  padding: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ===== Cards ===== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: cardIn 0.5s ease-out backwards;
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.4s ease;
}

.input-card {
  flex: 0 0 auto;
}

.results-card {
  animation-delay: 0.15s;
  flex: 1 1 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card__hint code {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

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

/* ===== Input ===== */
.input-textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition), box-shadow var(--transition), background 0.6s ease, color 0.4s ease;
  margin-bottom: 1rem;
}

.input-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.input-textarea::placeholder {
  color: var(--text-muted);
}

.input-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.option__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.option__input {
  width: 90px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn__icon {
  font-size: 0.75em;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text);
}

/* ===== Progress ===== */
.progress-wrap {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.progress-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--text-muted));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-motto {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, color 0.4s ease, max-height 0.35s ease, visibility 0.35s ease;
}

/* Show and animate motto only while checking */
.progress-wrap.is-checking .progress-motto {
  opacity: 1;
  visibility: visible;
  max-height: 2em;
  color: var(--accent);
  animation: progressMottoPulse 2s ease-in-out infinite;
}

.progress-wrap.is-checking .progress-motto::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: currentColor;
  animation: progressMottoBlink 0.8s step-end infinite;
}

@keyframes progressMottoPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes progressMottoBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== Results ===== */
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.results-list {
  flex: 1 1 0;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.results-list::-webkit-scrollbar {
  width: 8px;
}

.results-list::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.results-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.results-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* ===== Result item ===== */
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  animation: resultIn 0.35s ease-out;
  transition: background 0.5s ease, border-color 0.5s ease;
}

@keyframes resultIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.result-item--charged {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px var(--charged-glow);
}

.result-item--live {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 0 20px var(--live-glow);
}

.result-item--dead {
  border-color: rgba(239, 68, 68, 0.3);
}

.result-item--checking {
  border-color: var(--text-muted);
  animation: checking 1s ease-in-out infinite;
}

@keyframes checking {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.result-item__cc {
  color: var(--text);
  word-break: break-all;
}

.result-item__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.result-item__badge--charged {
  background: var(--charged);
  color: var(--black);
}

.result-item__badge--live {
  background: var(--live);
  color: var(--black);
}

.result-item__badge--dead {
  background: var(--dead);
  color: var(--white);
}

.result-item__badge--checking {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.result-item__msg {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  margin-top: 0.5rem;
  font-size: 0.85em;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

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

.footer code {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
