/* Global Filter for "Premium" Feel */
:root {
  --bg-color: #0f1014;
  --card-bg: #18191d;
  --text-main: #e2e8f0;
  --text-sub: #94a3b8;
  --accent: #6366f1;
  --border: #282a30;
  --hover-bg: #23242a;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.site-header {
  padding: 30px 20px;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}

/* Card Design */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: 120px;
  /* Fixed height for consistency */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Left Image Area */
.card-img {
  width: 120px;
  /* Fixed width */
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
  /* Subtle zoom */
}

/* Right Content Area */
.card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  /* Fix flex ellipsis issues */
}

/* Top: Domain */
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom: Info & Action */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.speed-res {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-res.fast {
  color: #4ade80;
}

.speed-res.slow {
  color: #f87171;
}

.speed-res.pending {
  color: var(--text-sub);
}

.jump-btn {
  background: var(--accent);
  /* Indigo 500 */
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.jump-btn:hover {
  background: #818cf8;
  /* Indigo 400 */
}

/* Footer (Minimal) */
.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--border);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    /* Stack vertically */
  }

  /* On mobile, keep horizontal layout but flexible */
  .card {
    height: auto;
    /* Flex height if content wraps, though we try to keep it fixed */
    min-height: 100px;
  }

  .card-img {
    width: 100px;
    /* Slightly smaller image on mobile */
  }

  .card-title {
    font-size: 1rem;
  }
}