/* Global layout */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --card: #020617;
  --card-elevated: #020617;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-strong: #16a34a;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --radius-xl: 18px;
  --radius-pill: 999px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
}

/* Generic container */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Buttons + inputs */

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

button {
  border: none;
}

.btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.3);
  transition: transform 0.08s ease, box-shadow 0.12s ease,
    background 0.12s ease;
}

.btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.4);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.5);
}

/* Auth / marketing topbar */

.topbar {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 20%, #4ade80, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.brand span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Marketing hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-heading {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-soft);
  max-width: 420px;
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 12px;
  color: var(--text-muted);
}

/* Glassy card for preview */

.glass-card {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
  border-radius: 24px;
  padding: 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.75);
}

.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.glass-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 11px;
  color: var(--text-muted);
}

.glass-body {
  border-radius: 18px;
  padding: 12px 12px 14px;
  background: rgba(15, 23, 42, 0.9);
}

/* Dashboard layout */

.dashboard-container {
  max-width: 880px;
  margin: 12px auto 40px;
  padding: 0 16px 24px;
  display: grid;
  gap: 16px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 880px;
  margin: 8px auto 0;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.card {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
  border-radius: var(--radius-xl);
  padding: 16px 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.profile-pic {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  border: 2px solid rgba(148, 163, 184, 0.5);
}

/* Links list in dashboard */

.links-list {
  margin-top: 10px;
}

.link-pill {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  font-size: 13px;
  color: var(--text-muted);
  display: inline-block;
  margin: 0 6px 6px 0;
}

/* Section order */

.section-order-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 12px;
}

.section-order-list li {
  padding: 8px 11px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-order-list li::after {
  content: "↕";
  font-size: 11px;
  color: var(--text-soft);
}

.section-order-list li:hover {
  background: rgba(15, 23, 42, 1);
}

/* Public profile */

.public-profile {
  max-width: 480px;
  margin: 12px auto 40px;
  padding: 0 16px;
  text-align: center;
}

.public-section {
  margin-bottom: 18px;
}

.public-section h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.public-section p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.link-btn {
  display: block;
  margin-bottom: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
}

.link-btn:hover {
  background: rgba(15, 23, 42, 1);
}

/* Favourite song card */

.fav-song-card {
  background: #e9fff0;
  border-radius: 24px;
  padding: 16px 14px 14px;
  text-align: left;
  color: #020617;
}

.fav-song-card h2 {
  margin-bottom: 8px;
}

.fav-song-inner {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 600px) {
  .fav-song-inner {
    flex-direction: column;
  }
}

.fav-song-left {
  flex: 1;
}

.fav-song-right {
  flex: 1;
}

.fav-spotify-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #1db954;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 6px;
  font-size: 18px;
}

.fav-song-title {
  font-weight: 600;
  margin: 0;
  font-size: 14px;
}

.fav-song-sub {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.fav-play-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #1db954;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Simple utility */

.text-muted {
  color: var(--text-soft);
  font-size: 13px;
}
