* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7fafc;
  color: #2d3748;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo h1 {
  font-size: 1.5rem;
  color: #1a202c;
  font-weight: 700;
}
.badge {
  background: #ebf8ff;
  color: #2b6cb0;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}
.status-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-badge.connecting {
  background: #feebc8;
  color: #7b341e;
}
.status-badge.connected {
  background: #c6f6d5;
  color: #22543d;
}
.status-badge.offline {
  background: #fed7d7;
  color: #742a2a;
}
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
  color: white;
  border-radius: 12px;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero p {
  opacity: 0.9;
  font-size: 1rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-header h3 {
  font-size: 1.35rem;
}
#refresh-btn {
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
#refresh-btn:hover {
  background: #e2e8f0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}
.card .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #718096;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.card .price {
  font-size: 1.25rem;
  color: #2b6cb0;
  font-weight: 700;
  margin-top: 0.5rem;
}
footer {
  text-align: center;
  padding: 1.5rem;
  background: #edf2f7;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #718096;
}
