:root {
  --bg: #0f1724;
  --card: #1a2335;
  --accent: linear-gradient(135deg, #7c3aed, #06b6d4);
  --muted: #9aa7c0;
}

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

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

header {
  text-align: center;
  padding: 28px 12px 6px;
}
h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.5px;
}
.sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

main {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 18px;
}

/* 🔹 Card Grid */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  text-align: center;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(2,6,23,0.8);
}
.card .title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}
.card .sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

/* 🔹 Audio Panels */
.panels {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}
.panel {
  flex: 1;
  background: rgba(255,255,255,0.02);
  padding: 14px;
  border-radius: 10px;
  min-height: 120px;
}
.panel h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
}

/* 🔹 Status */
.status {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* 🔹 Buttons */
.gen-btn {
  margin-top: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.gen-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.gen-btn:disabled {
  background: #444;
  cursor: not-allowed;
}

/* 🔹 Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  margin-top: 10px;
}

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