.hero {
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.75rem;
}

.hero-home {
  max-width: 960px;
  margin: 0 auto 2rem;
}

.hero-title {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.hero-text {
  max-width: 520px;
  font-size: 0.95rem;
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
}

.live-header {
  align-items: flex-end;
}

.live-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-title h2 {
  font-size: 1rem;
  color: var(--text-main);
}

.live-filters-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.search-field {
  flex: 1;
  min-width: 220px;
}

.card {
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
}

.listing-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.listing-card-image {
  position: relative;
  background: #f8fafc;
  overflow: hidden;
}

.listing-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.listing-card:hover img {
  transform: scale(1.035);
}

.listing-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.listing-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.listing-card-title {
  min-height: 2.4em;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--text-main);
}

.listing-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.listing-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.listing-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.listing-meta-value {
  font-weight: 700;
  color: #111827;
}

.listing-meta-badge {
  align-self: flex-start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 700;
}

.listing-meta-badge-ended {
  background: #f1f5f9;
  color: #64748b;
}

.listing-card-button {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
  font-weight: 700;
}

.auth-page {
  max-width: 440px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.auth-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
}

.auth-tab.active {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.auth-panel {
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem;
}

.section-box {
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem;
}

.load-more {
  margin: 1.5rem auto 0;
  display: block;
}

@media (max-width: 800px) {
  .live-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .live-filters-top {
    align-self: stretch;
    justify-content: flex-end;
  }

  .search-row {
    align-items: flex-start;
  }
}
