/* =============================================================================
   VOICERMUSIC CSS - Design System Unificato
============================================================================= */

:root {
  --violet: 123,44,191;
  --fuchsia: 230,57,155;
  --blue: 0,119,255;
  --orange: 255,140,66;
  --text: 18,18,20;
  --muted: 110,112,120;
  --bg: 250,250,252;
  --card: 255,255,255;
  --shadow: 0,0,0;
  --border: 0,0,0,0.06;
  --success: 34,197,94;
  --error: 239,68,68;
}

* { box-sizing: border-box }

html, body {
  margin: 0;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgb(var(--text));
  background: rgb(var(--bg));
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px
}

/* =============================================================================
   BUTTONS & FORM ELEMENTS
============================================================================= */

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, rgb(var(--violet)) 0%, rgb(var(--blue)) 50%, rgb(var(--orange)) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--shadow), .12);
  transition: transform .12s ease, box-shadow .12s ease;
  will-change: transform;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(var(--shadow), .16);
}

.btn-primary {
  background: linear-gradient(135deg, rgb(var(--violet)) 0%, rgb(var(--fuchsia)) 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, rgb(var(--blue)) 0%, rgb(var(--orange)) 100%);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(var(--violet), 0.2);
  color: rgb(var(--violet));
}

.btn-outline:hover {
  background: rgba(var(--violet), 0.05);
}

.btn-fullwidth {
  width: 100%;
  justify-content: center;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-danger {
  background: linear-gradient(135deg, rgb(var(--error)) 0%, #dc2626 100%);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--blue), .08);
  color: rgb(var(--blue));
  font-weight: 600;
  font-size: 14px;
}

/* =============================================================================
   HEADER & NAVIGATION
============================================================================= */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(var(--border));
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

header .links a {
  margin-left: 18px;
  font-weight: 600;
  color: rgb(60, 62, 70);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

header .links a:hover {
  background: rgba(var(--violet), 0.08);
  color: rgb(var(--violet));
}

/* =============================================================================
   HERO SECTION
============================================================================= */

.hero {
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(123,44,191,.10) 0%, rgba(0,119,255,.10) 50%, rgba(255,140,66,.12) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20vh -10vw auto -10vw;
  height: 60vh;
  background: radial-gradient(60% 60% at 50% 20%, rgba(123,44,191,.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}

.logo-word {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, rgb(var(--violet)) 0%, rgb(var(--fuchsia)) 35%, rgb(var(--blue)) 65%, rgb(var(--orange)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px 0;
}

.payoff {
  font-size: clamp(18px, 2.6vw, 28px);
  color: rgb(40, 42, 48);
  margin: 0 0 28px 0;
}

.hero .waves {
  position: absolute;
  inset: auto 0 40px 0;
  pointer-events: none;
  opacity: .28;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

/* =============================================================================
   SECTIONS & LAYOUT
============================================================================= */

section { padding: 72px 0 }

.grid { display: grid; gap: 28px }

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.1fr 1fr }
  .grid-3 { grid-template-columns: repeat(3, 1fr) }
}

.card {
  background: rgb(var(--card));
  border: 1px solid rgba(var(--border));
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 24px rgba(var(--shadow), .06);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(var(--shadow), .12);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 12px 0;
}

p.lead {
  color: rgb(var(--muted));
  font-size: 18px;
  line-height: 1.65;
  margin: 6px 0 0 0;
}

/* =============================================================================
   ALERTS & MESSAGES
============================================================================= */

.alert {
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.alert-success {
  background: rgba(var(--success), 0.1);
  color: rgb(var(--success));
  border: 1px solid rgba(var(--success), 0.2);
}

.alert-error {
  background: rgba(var(--error), 0.1);
  color: rgb(var(--error));
  border: 1px solid rgba(var(--error), 0.2);
}

.icon-success, .icon-alert {
  font-size: 18px;
}

/* =============================================================================
   AUTHENTICATION STYLES
============================================================================= */

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, rgba(123,44,191,.08) 0%, rgba(0,119,255,.08) 50%, rgba(255,140,66,.10) 100%);
}

.auth-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgb(var(--card));
}

.auth-form-wrapper > div {
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: rgb(var(--text));
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.auth-header p {
  color: rgb(var(--muted));
  font-size: 1.1rem;
}

/* Auth Form */
.auth-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgb(var(--text));
  font-weight: 600;
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: rgb(var(--muted));
  z-index: 2;
  font-size: 16px;
}

.form-group input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid rgba(var(--border));
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: rgb(var(--card));
}

.form-group input:focus {
  outline: none;
  border-color: rgba(var(--violet), 0.4);
  box-shadow: 0 0 0 4px rgba(var(--violet), 0.1);
}

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: rgb(var(--muted));
  z-index: 2;
  border-radius: 8px;
}

.password-toggle:hover {
  background: rgba(var(--violet), 0.08);
}

.field-help {
  display: block;
  margin-top: 4px;
  color: rgb(var(--muted));
  font-size: 12px;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: rgb(var(--text));
}

.checkbox-wrapper input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  padding: 0;
}

.forgot-password {
  color: rgb(var(--violet));
  font-size: 14px;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Social Buttons */
.social-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.social-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(var(--border));
}

.social-divider span {
  background: rgb(var(--card));
  padding: 0 16px;
  color: rgb(var(--muted));
  font-size: 14px;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-social {
  padding: 12px;
  font-size: 14px;
  opacity: 0.6;
  cursor: not-allowed;
  background: rgb(var(--card));
  border: 2px solid rgba(var(--border));
  color: rgb(var(--muted));
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  color: rgb(var(--muted));
}

.auth-footer p {
  margin-bottom: 8px;
}

.link-primary {
  color: rgb(var(--violet));
  font-weight: 600;
}

.link-primary:hover {
  text-decoration: underline;
}

/* Benefits Sidebar */
.auth-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: rgb(var(--text));
  background: linear-gradient(135deg, rgba(123,44,191,.95) 0%, rgba(0,119,255,.95) 50%, rgba(255,140,66,.95) 100%);
}

.benefits-content {
  max-width: 400px;
  color: white;
}

.benefits-content h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 800;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.benefit-icon {
  font-size: 24px;
  margin-right: 16px;
  margin-top: 4px;
}

.benefits-list strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.benefits-list p {
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Registration Steps */
.registration-steps {
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 16px;
  font-size: 14px;
}

.step-content strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.step-content p {
  opacity: 0.9;
  font-size: 14px;
  margin: 0;
}

.security-note {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}

.security-note i {
  margin-right: 8px;
  margin-top: 2px;
}

/* Password Validation */
.password-strength {
  margin-top: 8px;
  height: 4px;
  background: rgba(var(--border));
  border-radius: 2px;
  overflow: hidden;
}

.password-strength.weak::before {
  content: '';
  display: block;
  width: 33%;
  height: 100%;
  background: rgb(var(--error));
}

.password-strength.medium::before {
  content: '';
  display: block;
  width: 66%;
  height: 100%;
  background: rgb(var(--orange));
}

.password-strength.strong::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgb(var(--success));
}

.password-match {
  margin-top: 4px;
  font-size: 12px;
}

.password-match.match {
  color: rgb(var(--success));
}

.password-match.no-match {
  color: rgb(var(--error));
}

/* =============================================================================
   PROFILE STYLES
============================================================================= */

.profile-container {
  min-height: 100vh;
  background: rgb(var(--bg));
}

.profile-header {
  background: linear-gradient(135deg, rgb(var(--violet)) 0%, rgb(var(--blue)) 100%);
  color: white;
  padding: 3rem 0;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.profile-avatar {
  position: relative;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(var(--shadow), 0.15);
}

.profile-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.username {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.member-since {
  opacity: 0.8;
  font-size: 0.9rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.profile-content {
  padding: 3rem 0;
}

.profile-sections {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

.profile-sidebar > div {
  background: rgb(var(--card));
  padding: 2rem;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(var(--shadow), .06);
  margin-bottom: 2rem;
}

.profile-sidebar h3 {
  color: rgb(var(--text));
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.badge {
  background: rgb(var(--bg));
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  font-size: 12px;
}

.badge i {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.badge-bronze { border-left: 4px solid #cd7f32; }
.badge-silver { border-left: 4px solid #c0c0c0; }
.badge-gold { border-left: 4px solid #ffd700; }
.badge-locked { opacity: 0.5; }

.profile-main > div {
  background: rgb(var(--card));
  padding: 2.5rem;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(var(--shadow), .06);
  margin-bottom: 2rem;
}

.form-divider {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--border));
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
}

.danger-zone {
  border: 1px solid rgba(var(--error), 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(var(--error), 0.05);
}

.action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.action-item:not(:last-child) {
  border-bottom: 1px solid rgba(var(--error), 0.2);
}

/* =============================================================================
   STEPS & PROCESS
============================================================================= */

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--violet)), rgb(var(--blue)));
}

/* =============================================================================
   TABLES & LEADERBOARD
============================================================================= */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(var(--border));
}

th, td {
  padding: 14px 16px;
  text-align: left;
}

thead th {
  background: rgba(var(--blue), .06);
  font-size: 14px;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, .02);
}

/* =============================================================================
   PRIZE STRIP
============================================================================= */

.strip {
  border-radius: 22px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(var(--violet),.95) 0%, rgba(var(--blue),.95) 45%, rgba(var(--orange),.95) 100%);
  color: #fff;
}

.strip h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.strip p {
  margin: 6px 0 0 0;
  opacity: .95;
}

/* =============================================================================
   FOOTER
============================================================================= */

footer {
  padding: 46px 0;
  color: rgb(120, 122, 130);
  text-align: center;
  background: rgb(var(--card));
  border-top: 1px solid rgba(var(--border));
}

/* =============================================================================
   RESPONSIVE DESIGN
============================================================================= */

@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-benefits {
    order: -1;
    padding: 2rem 1rem;
  }

  .benefits-content h3 {
    font-size: 1.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-buttons {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-sections {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-fullwidth {
    width: 100%;
  }
}

/* =============================================================================
   UTILITY CLASSES
============================================================================= */

.text-center { text-align: center }
.text-left { text-align: left }
.text-right { text-align: right }
.hidden { display: none }
.visible { display: block }

/* Loading States */
.btn-loading {
  display: none;
}

.auth-form.loading .btn-text {
  display: none;
}

.auth-form.loading .btn-loading {
  display: inline;
}

/* =============================================================================
   EXTENDED CLASSES — added to support updated page templates
============================================================================= */

/* --- CSS Variables extension --- */
:root {
  --grad-cta: linear-gradient(135deg, #7b2cbf 0%, #0077ff 100%);
}

/* --- Nav Logo --- */
.nav-logo {
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(90deg, rgb(var(--violet)) 0%, rgb(var(--fuchsia)) 35%, rgb(var(--blue)) 65%, rgb(var(--orange)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

/* --- Hero extended --- */
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 20px 60px;
  max-width: 740px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(123,44,191,.12);
  color: rgb(var(--violet));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 22px;
}

.logo-hero {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, rgb(var(--violet)) 0%, rgb(var(--fuchsia)) 35%, rgb(var(--blue)) 65%, rgb(var(--orange)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 8px 0;
}

.hero-payoff {
  font-size: clamp(16px, 2.4vw, 26px);
  color: rgb(50, 52, 60);
  margin: 0 0 28px 0;
  font-weight: 500;
}

.prize-display {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(var(--border));
  border-radius: 22px;
  padding: 22px 36px;
  display: inline-block;
  margin-bottom: 28px;
  box-shadow: 0 10px 32px rgba(var(--shadow),.08);
}

.prize-amount {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, rgb(var(--violet)), rgb(var(--blue)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prize-label {
  font-size: 13px;
  color: rgb(var(--muted));
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  line-height: 0;
}

/* --- Button variants --- */
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-full, .btn-fullwidth {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(var(--violet),.25);
  color: rgb(var(--violet));
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(var(--violet),.06);
  border-color: rgba(var(--violet),.4);
}

.btn-white {
  background: rgba(255,255,255,.95);
  color: rgb(var(--violet));
  border: none;
  box-shadow: 0 4px 16px rgba(var(--shadow),.12);
}

.btn-white:hover {
  background: #fff;
}

/* --- Price tag --- */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(var(--violet),.08);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
}

.price-old {
  text-decoration: line-through;
  color: rgb(var(--muted));
  font-weight: 500;
}

.price-new {
  color: rgb(var(--violet));
}

/* --- Stats row (homepage) --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stats-row .stat-item { text-align: center }

.stats-row .stat-number {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  background: linear-gradient(135deg, rgb(var(--violet)), rgb(var(--blue)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 4px;
}

.stats-row .stat-label {
  font-size: 13px;
  color: rgb(var(--muted));
  opacity: 1;
}

/* --- Section header --- */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(var(--violet),.1);
  color: rgb(var(--violet));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-header h2 { margin-bottom: 10px }

.section-header p {
  color: rgb(var(--muted));
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Steps grid (how it works) --- */
.steps-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr) }
}

.step-card {
  background: rgb(var(--card));
  border: 1px solid rgba(var(--border));
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(var(--shadow),.06);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--shadow),.1);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--violet)), rgb(var(--blue)));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
}

.step-card h3 { margin-bottom: 8px; font-size: 16px }

.step-card p {
  font-size: 14px;
  color: rgb(var(--muted));
  line-height: 1.6;
  margin: 0;
}

/* --- Prize strip (alias of .strip) --- */
.prize-strip {
  border-radius: 22px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(90deg, rgba(var(--violet),.95) 0%, rgba(var(--blue),.95) 45%, rgba(var(--orange),.95) 100%);
  color: #fff;
}

.prize-strip h3 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
}

.prize-strip p {
  margin: 6px 0 0 0;
  opacity: .9;
  font-size: 14px;
}

/* --- Tiers table --- */
.tiers-table { border: none }

.tiers-table th {
  background: rgba(var(--violet),.07);
  color: rgb(var(--text));
}

.tier-highlight {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(var(--violet),.1);
  color: rgb(var(--violet));
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

/* --- Grid 4 --- */
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr) }
}

/* --- Rank badges (leaderboard) --- */
.rank-badge {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.rank-n {
  background: rgba(var(--border));
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 13px;
  color: rgb(var(--muted));
}

/* --- Vote button --- */
.vote-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgb(var(--violet)), rgb(var(--blue)));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
  font-family: inherit;
}

.vote-btn:hover:not(:disabled) { transform: scale(1.05) }

.vote-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.vote-btn.voted {
  background: linear-gradient(135deg, rgb(var(--success)), #16a34a);
}

/* --- Video cards (grid) --- */
.video-card {
  background: rgb(var(--card));
  border: 1px solid rgba(var(--border));
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(var(--shadow),.06);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(var(--shadow),.12);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.video-thumb:hover img { transform: scale(1.04) }

.video-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .2s;
}

.video-thumb:hover .video-play { opacity: 1 }

.play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: rgb(var(--violet));
}

.video-info { padding: 14px 16px }

.video-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.video-artist {
  font-size: 13px;
  color: rgb(var(--muted));
  margin-bottom: 10px;
}

.video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vote-count {
  font-size: 13px;
  color: rgb(var(--muted));
  font-weight: 500;
}

/* --- Toast notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgb(var(--card));
  border: 1px solid rgba(var(--border));
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(var(--shadow),.14);
  animation: slideInRight .3s ease;
}

.toast.success { border-left: 4px solid rgb(var(--success)) }
.toast.error   { border-left: 4px solid rgb(var(--error)) }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0 }
  to   { transform: translateX(0);   opacity: 1 }
}

@keyframes slideOutRight {
  from { transform: translateX(0);   opacity: 1 }
  to   { transform: translateX(100%); opacity: 0 }
}

/* --- Spinner sizes --- */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(var(--violet),.2);
  border-top-color: rgb(var(--violet));
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

@keyframes spin { to { transform: rotate(360deg) } }

/* --- Loading / empty states --- */
.loading-state,
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: rgb(var(--muted));
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 14px;
  line-height: 1;
}

/* --- Status badges (submissions) --- */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending   { background: rgba(255,180,0,.14); color: #a06500 }
.status-in-review { background: rgba(0,119,255,.12);  color: rgb(var(--blue)) }
.status-approved  { background: rgba(34,197,94,.12);  color: rgb(var(--success)) }
.status-published { background: rgba(123,44,191,.12); color: rgb(var(--violet)) }
.status-rejected  { background: rgba(239,68,68,.12);  color: rgb(var(--error)) }

/* --- User avatar --- */
.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--violet)), rgb(var(--blue)));
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
}

/* --- Dashboard layout --- */
.dashboard-layout { background: rgb(var(--bg)); min-height: 100vh }

.dashboard-header {
  background: linear-gradient(135deg, rgb(var(--violet)) 0%, rgb(var(--blue)) 100%);
  color: #fff;
  padding: 32px 0;
}

.dashboard-header h1 {
  font-size: clamp(20px, 2.6vw, 30px);
  color: #fff;
  margin-bottom: 4px;
}

.dashboard-header p { opacity: .85; font-size: 14px; margin: 0 }

.dashboard-body { padding: 40px 0 }

.dashboard-grid { display: grid; gap: 28px }

@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: 270px 1fr }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.sidebar-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--text));
  transition: background .15s, color .15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(var(--violet),.09);
  color: rgb(var(--violet));
}

/* --- Submit layout --- */
.submit-layout { background: rgb(var(--bg)); min-height: 100vh }

.submit-header {
  background: linear-gradient(135deg, rgb(var(--violet)) 0%, rgb(var(--fuchsia)) 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.submit-header h1 {
  font-size: clamp(20px, 2.8vw, 34px);
  color: #fff;
  margin-bottom: 8px;
}

.submit-header p {
  opacity: .85;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.submit-body { padding: 40px 0 }

.submit-grid { display: grid; gap: 28px }

@media (min-width: 900px) {
  .submit-grid { grid-template-columns: 1fr 360px }
}

/* --- YouTube preview --- */
.yt-preview {
  display: none;
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
}

.yt-preview.visible { display: block }

.yt-preview iframe { width: 100%; height: 100%; border: none }

/* --- Info box (submit sidebar) --- */
.info-box {
  background: rgb(var(--card));
  border: 1px solid rgba(var(--border));
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(var(--shadow),.05);
}

.info-box h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.info-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: rgb(var(--muted));
  line-height: 1.8;
}

/* --- Checkbox group --- */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 3px 0 0;
  flex-shrink: 0;
}

/* --- Field hint --- */
.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgb(var(--muted));
}

/* --- Footer extended --- */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(90deg, rgb(var(--violet)), rgb(var(--blue)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: rgb(var(--muted));
  transition: color .15s;
}

.footer-links a:hover { color: rgb(var(--violet)) }

.footer-copy {
  font-size: 13px;
  color: rgb(var(--muted));
  margin: 4px 0 0;
}

/* --- Utility --- */
.mt-8 { margin-top: 8px }
.mt-16 { margin-top: 16px }
.mt-24 { margin-top: 24px }
