/* ===== Reset & Variables ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1db954;
  --secondary-color: #191414;
  --accent-color: #1ed760;
  --text-color: #ffffff;
  --text-secondary: #b3b3b3;
  --bg-dark: #121212;
  --bg-card: #181818;
  --bg-hover: #282828;
  --gradient-primary: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.6);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Header ===== */
.main-header {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
}

.logo i {
  color: var(--primary-color);
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: var(--secondary-color);
}

.btn-login {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-register {
  background: var(--gradient-primary);
  color: var(--secondary-color);
  font-weight: 600;
}

/* ===== Hero Section ===== */
.hero-section {
  background: var(--gradient-dark);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(29, 185, 84, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.user-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.user-welcome i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* ===== Buttons ===== */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.btn-cta {
  background: var(--gradient-primary);
  color: var(--secondary-color);
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  box-shadow: 0 6px 25px rgba(29, 185, 84, 0.5);
}

/* ===== Sections ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-link:hover {
  gap: 1rem;
}

/* ===== Features Section ===== */
.features-section {
  background: var(--bg-card);
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-dark);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(29, 185, 84, 0.2);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotateY(360deg);
}

.feature-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Music Section ===== */
.music-section {
  padding: 5rem 0;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.music-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.music-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.music-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.music-card:hover .music-cover img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.music-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  font-size: 4rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.play-overlay i:hover {
  transform: scale(1.2);
}

.music-info {
  padding: 1.5rem;
}

.music-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-artist,
.music-size {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.music-player {
  width: 100%;
  margin-top: 1rem;
  filter: brightness(0.8);
  transition: var(--transition);
}

.music-player:hover {
  filter: brightness(1);
}

.music-actions {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-icon {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}

.btn-icon:hover {
  color: var(--primary-color);
  background: rgba(29, 185, 84, 0.1);
  transform: scale(1.1);
}

.no-music {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.no-music i {
  font-size: 5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.no-music p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== Stats Section ===== */
.stats-section {
  background: var(--bg-card);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient-primary);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 15s linear infinite reverse;
}

.cta-section h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.btn-cta {
  background: var(--secondary-color);
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  background: #000000;
}

/* ===== Footer ===== */
.main-footer {
  background: var(--secondary-color);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.footer-bottom i {
  color: #e74c3c;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
  }

  .music-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem;
  }

  .hero-section {
    padding: 3rem 1rem;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Page Header (Music Page) ===== */
.page-header {
  background: var(--gradient-dark);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--secondary-color);
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.4);
}

.profile-info h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

/* ===== Library Stats ===== */
.library-stats {
  padding: 2rem 0;
  background: var(--bg-card);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card-small {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.stat-card-small:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(29, 185, 84, 0.2);
}

.stat-card-small i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.stat-card-small h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.stat-card-small p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Upload Section ===== */
.upload-section {
  padding: 3rem 0;
}

.upload-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 2px dashed rgba(29, 185, 84, 0.3);
  transition: var(--transition);
}

.upload-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(29, 185, 84, 0.2);
}

.upload-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.upload-header i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.upload-header h3 {
  font-size: 1.8rem;
}

.upload-form {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.file-input-wrapper {
  flex: 1;
  min-width: 250px;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.file-input-label:hover {
  border-color: var(--primary-color);
  background: var(--bg-hover);
}

.file-input-label i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ===== Alerts ===== */
.alert {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(29, 185, 84, 0.2);
  border: 1px solid var(--primary-color);
  color: var(--accent-color);
}

.alert-error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid #e74c3c;
  color: #ff6b6b;
}

.alert i {
  font-size: 1.5rem;
}

/* ===== Music Library ===== */
.music-library {
  padding: 3rem 0 5rem;
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.library-header h3 {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.library-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-view {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.btn-view:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
}

.btn-view.active {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* ===== Music List ===== */
.music-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-item {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.music-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(29, 185, 84, 0.2);
  transform: translateX(5px);
}

.music-item-cover {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.music-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay-small {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
}

.music-item:hover .play-overlay-small {
  opacity: 1;
}

.play-overlay-small i {
  color: var(--primary-color);
  font-size: 2rem;
}

.music-item-info {
  flex: 1;
  min-width: 0;
}

.music-item-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-item-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.music-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-item-player {
  flex-shrink: 0;
}

.music-item-player audio {
  height: 40px;
}

.music-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-action {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.btn-action:hover {
  background: rgba(29, 185, 84, 0.2);
  color: var(--primary-color);
  transform: scale(1.1);
}

.btn-delete:hover {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.btn-favorite.active {
  color: #e74c3c;
}

/* ===== Grid View ===== */
.music-list.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.music-list.grid-view .music-item {
  flex-direction: column;
  text-align: center;
}

.music-list.grid-view .music-item-cover {
  width: 100%;
  height: 200px;
}

.music-list.grid-view .music-item-info {
  width: 100%;
}

.music-list.grid-view .music-item-meta {
  justify-content: center;
}

.music-list.grid-view .music-item-player audio {
  width: 100%;
}

/* ===== Empty Library ===== */
.empty-library {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-library i {
  font-size: 6rem;
  color: var(--text-secondary);
  opacity: 0.3;
  margin-bottom: 2rem;
}

.empty-library h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.empty-library p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== Responsive Music Page ===== */
@media (max-width: 768px) {
  .user-profile-banner {
    flex-direction: column;
    text-align: center;
  }

  .profile-info h2 {
    font-size: 2rem;
  }

  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .library-header {
    flex-direction: column;
    gap: 1rem;
  }

  .music-item {
    flex-wrap: wrap;
  }

  .music-item-player {
    width: 100%;
  }

  .music-item-player audio {
    width: 100%;
  }

  .music-item-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }

  .music-item {
    padding: 1rem;
  }

  .music-item-cover {
    width: 60px;
    height: 60px;
  }
}

/* ===== Modal Album Editor ===== */
.modal {
  display: none; /* cachée par défaut */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex; /* affichage quand active */
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  margin: auto;
  padding: 2.5rem;
  border: 1px solid rgba(29,185,84,0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  animation: slideUp 0.4s ease;
}

.modal-content h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary-color);
}

.modal-content h3::before {
  content: "\f3ed";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
}

.close-modal:hover {
  color: var(--primary-color);
  background: rgba(29, 185, 84, 0.1);
  transform: rotate(90deg);
}

/* ===== Form ===== */
#editAlbumForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Label global */
#editAlbumForm label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#editAlbumForm label::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary-color);
}

/* Input text et textarea */
#editAlbumForm input[type="text"],
#editAlbumForm textarea {
  padding: 0.8rem 1rem;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
  resize: vertical;
}

#editAlbumForm input[type="text"]:focus,
#editAlbumForm textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Input file */
#editAlbumForm input[type="file"] {
  padding: 1rem;
  background: var(--bg-dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

#editAlbumForm input[type="file"]:hover {
  border-color: var(--primary-color);
  background: var(--bg-hover);
}

#editAlbumForm input[type="file"]::file-selector-button {
  padding: 0.6rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--secondary-color);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 1rem;
}

#editAlbumForm input[type="file"]::file-selector-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
}

/* ===== Preview Section ===== */
.preview-section {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-section label {
  display: block;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.preview-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(29, 185, 84, 0.3);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.preview-img:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

#coverPreview {
  width: 100%;
  max-width: 300px;
  height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ===== Images Preview Container ===== */
.images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.images-preview .preview-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.images-preview:empty::before {
  content: "Aucune image pour le moment";
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  font-style: italic;
}

/* ===== Form Submit Button ===== */
#editAlbumForm button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  font-size: 1.1rem;
  padding: 1.2rem;
}

/* ===== Edit Album Button ===== */
.btn-edit-album {
  position: relative;
}

.btn-edit-album::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}

.btn-edit-album:hover::after {
  opacity: 1;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ===== Scrollbar for Modal ===== */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* ===== Responsive Modal ===== */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }

  .modal-content h3 {
    font-size: 1.5rem;
  }

  #coverPreview {
    max-width: 100%;
    height: auto;
    max-height: 250px;
  }

  .images-preview {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .images-preview .preview-img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem 1rem;
  }

  .close-modal {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }

  .images-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  #editAlbumForm input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}


/* ================================
   ALBUM DISPLAY (STYLE SPOTIFY)
================================ */
.album-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.album-display:hover {
  box-shadow: var(--shadow-hover);
}

/* ================================
   HEADER
================================ */
.album-header {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--bg-hover);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.album-header img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.album-header img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.album-info {
  margin-left: 1.8rem;
  flex: 1;
}

.album-info h2 {
  margin: 0;
  font-size: 2.2rem;
  color: var(--text-color);
  font-weight: 700;
}

.album-info p {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  white-space: pre-wrap; /* autorise les retours à la ligne */
}

/* ================================
   GALLERY (IMAGES / EXTRAS)
================================ */
.album-gallery {
  width: 100%;
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
}

.album-gallery img,
.album-gallery .audio-preview {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-dark);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.album-gallery img:hover {
  transform: scale(1.07);
}

/* ================================
   MUSIC PLAYER CARD
================================ */
.music-player-card {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.4rem;
  background: var(--bg-dark);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.music-player-card .music-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.6rem;
}

/* ================================
   AUDIO PLAYER (custom minimal)
================================ */
.music-player-card audio {
  width: 100%;
  margin-top: 8px;
  filter: brightness(0.9);
}

/* ================================
   ACTIONS
================================ */
.music-player-card .music-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-action {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-hover);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color);
  border: none;
  transition: var(--transition);
}

.btn-action:hover {
  background: var(--primary-color);
  color: #000;
  transform: scale(1.05);
}

.share-btn {
  background: var(--primary-color);
  color: #000;
}

.share-btn:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .album-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .album-info {
    margin-left: 0;
  }

  .album-info h2 {
    font-size: 1.6rem;
  }

  .album-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ===== Authentication Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== Animated Background ===== */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, rgba(29, 185, 84, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(29, 185, 84, 0.15) 0%, transparent 50%),
                var(--bg-dark);
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.circle-3 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: -250px;
    animation-delay: 10s;
}

.circle-4 {
    width: 350px;
    height: 350px;
    bottom: 30%;
    left: -175px;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ===== Auth Navigation ===== */
.auth-nav {
    position: relative;
    z-index: 10;
    padding: 2rem 3rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.auth-logo i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.auth-logo:hover {
    transform: translateX(-5px);
}

/* ===== Auth Container ===== */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ===== Auth Card ===== */
.auth-card {
    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(29, 185, 84, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Auth Header ===== */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.4);
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.auth-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===== Auth Form ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-hover);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* ===== Password Input ===== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
}

/* ===== Form Options ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.checkbox-wrapper input:checked ~ .checkmark {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.checkbox-wrapper input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    font-size: 0.7rem;
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===== Large Button ===== */
.btn-large {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ===== Divider ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* ===== Social Login ===== */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-color);
}

.btn-social:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
}

.btn-google i {
    color: #EA4335;
}

.btn-facebook i {
    color: #1877F2;
}

/* ===== Auth Footer ===== */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: var(--text-secondary);
}

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

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

/* ===== Auth Info Side Panel ===== */
.auth-info {
    max-width: 500px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.info-content {
    background: rgba(24, 24, 24, 0.6);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.info-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.info-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-features li i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-features li span {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===== Fade In Animation ===== */
.fade-in {
    animation: fadeInAlert 0.5s ease;
}

@keyframes fadeInAlert {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Auth Pages ===== */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .auth-info {
        max-width: 600px;
        transform: translateY(30px);
    }
}

@media (max-width: 768px) {
    .auth-nav {
        padding: 1.5rem 2rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .info-content {
        padding: 2rem;
    }
    
    .info-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .auth-nav {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .auth-header {
        margin-bottom: 2rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .social-login {
        gap: 0.8rem;
    }
    
    .btn-social {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

/* ===== Register Page Specific Styles ===== */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== Password Strength Indicator ===== */
.password-strength {
    margin-top: 0.8rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #e74c3c;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== Terms Checkbox ===== */
.checkbox-wrapper .checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-wrapper .checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== Stats Showcase ===== */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-mini strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-mini span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Enhanced Features List ===== */
.info-features li strong {
    color: var(--primary-color);
}

/* ===== Input Validation States ===== */
.auth-form input.valid {
    border-color: var(--primary-color);
}

.auth-form input.invalid {
    border-color: #e74c3c;
}

/* ===== Loading State ===== */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Success Message Enhancement ===== */
.alert-success {
    animation: successPulse 2s ease infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(29, 185, 84, 0);
    }
}

/* ===== Responsive Stats Showcase ===== */
@media (max-width: 768px) {
    .stats-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-mini strong {
        font-size: 1.4rem;
    }
    
    .stat-mini span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-hint {
        font-size: 0.8rem;
    }
}