/* ============================================================
   MOSIKY LANDING PAGE — STYLES
   Corporate Colors: #FF5349, #FF7F50, #4B0082
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --mosiky-red: #FF5349;
  --mosiky-coral: #FF7F50;
  --mosiky-indigo: #4B0082;
  --bg-primary: #120A08;
  --bg-secondary: #1A100E;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --glass-bg: rgba(18, 10, 8, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-brand: linear-gradient(135deg, var(--mosiky-red), var(--mosiky-coral), var(--mosiky-indigo));
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Always reserve space for the vertical scrollbar so opening modals
     (which set body.overflow: hidden) doesn't shift the page ~15px to
     the right. Modern browsers (Firefox 81+, Chromium 94+, Safari 17+)
     support scrollbar-gutter; the `overflow-y: scroll` fallback covers
     the rest. */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Typography ─────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mosiky-coral);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
}

/* ── Preview Banner ─────────────────────────────────────────── */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--gradient-brand);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  transition: transform 0.4s var(--transition-smooth), opacity 0.4s;
}

.preview-banner.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.preview-banner button {
  background: rgba(255, 255, 255, 0.2);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.3s;
}

.preview-banner button:hover { background: rgba(255, 255, 255, 0.35); }

/* Push nav down when banner is visible */
body:has(.preview-banner:not(.dismissed)) .nav {
  top: 38px;
}

body:has(.preview-banner:not(.dismissed)) .hero {
  margin-top: 0;
}

.nav { transition: top 0.6s var(--transition-smooth); }

@media (max-width: 640px) {
  .preview-banner { font-size: 0.7rem; padding: 0.4rem 1rem; gap: 0.5rem; }
}

/* Intro preview note */
.intro-preview-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--transition-smooth), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(18, 10, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Placeholder logo styling when image is missing */
.nav-logo-placeholder {
  height: 36px;
  width: 120px;
  background: var(--gradient-brand);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(18, 10, 8, 0.97);
    backdrop-filter: blur(30px);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--transition-smooth);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}

/* ── Hero Slider ────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--transition-smooth);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenBurns 12s ease-in-out infinite alternate;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 10, 8, 0.3) 0%,
    rgba(18, 10, 8, 0.1) 40%,
    rgba(18, 10, 8, 0.6) 70%,
    rgba(18, 10, 8, 0.95) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 5%;
  z-index: 3;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content .hero-artist {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--mosiky-coral);
  margin-bottom: 0.75rem;
}

.hero-content .hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.hero-dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s var(--transition-smooth);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--mosiky-coral);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 127, 80, 0.5);
}

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-arrow.prev { left: 2%; }
.hero-arrow.next { right: 2%; }

@media (max-width: 768px) {
  .hero { min-height: 500px; max-height: 700px; }
  .hero-content { bottom: 20%; left: 6%; right: 6%; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content .hero-artist { font-size: 1.15rem; }
  .hero-content .hero-tagline { font-size: 0.95rem; }
  .hero-arrow { display: none; }
}

/* ── Intro Section ──────────────────────────────────────────── */
.intro-section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-section .intro-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.intro-section .intro-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: 2rem;
}

.intro-section .intro-cta {
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
}

.intro-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 2.5rem auto 0;
}

.intro-chevron {
  display: block;
  margin: 3rem auto 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  animation: chevronBounce 2s ease-in-out infinite;
}

.intro-chevron:hover {
  color: var(--mosiky-coral);
  border-color: var(--mosiky-coral);
  transform: translateY(2px);
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Album Grid ─────────────────────────────────────────────── */
.music-section {
  padding: 4rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1280px) { .album-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

.album-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid transparent;
  transition: all 0.4s var(--transition-smooth);
}

.album-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 83, 73, 0.08);
}

.album-art {
  aspect-ratio: 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.album-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.album-card:hover .album-art::after {
  background: rgba(0, 0, 0, 0.2);
}

.album-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mosiky-red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.4s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(255, 83, 73, 0.4);
}

.album-card:hover .album-play-icon {
  transform: translate(-50%, -50%) scale(1);
}

.album-info {
  padding: 0.85rem 1rem;
}

.album-info .album-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.album-info .album-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-info .album-genre {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Audio Player Modal ─────────────────────────────────────── */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.player-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Ambient glow background */
.player-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.player-ambient-blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 1s;
  animation: ambientPulse 8s ease-in-out infinite;
}

.player-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: rgba(18, 10, 8, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  transform: translateY(40px) scale(0.95);
  transition: transform 0.5s var(--transition-smooth);
}

.player-overlay.open .player-modal {
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for modal */
.player-modal::-webkit-scrollbar { width: 4px; }
.player-modal::-webkit-scrollbar-track { background: transparent; }
.player-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Audio player branding header */
.player-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.player-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-modal-header .player-modal-logo {
  height: 22px;
  width: auto;
  max-width: 90px;
  flex-shrink: 0;
  object-fit: contain;
}

.player-modal-now-playing {
  min-width: 0;
}

.player-modal-np-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-modal-np-artist {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.player-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-modal-actions button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.player-modal-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 480px) {
  .player-modal-np-title { max-width: 120px; }
}

.player-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .player-inner { grid-template-columns: 1fr; }
}

/* Left: Art + Controls */
.player-art-section {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.player-album-art {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.player-track-info {
  text-align: center;
  width: 100%;
}

.player-track-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.player-track-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.player-track-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Streaming links pinned bottom-right, aligned with controls */
.player-modal-streaming {
  position: absolute;
  bottom: 2.5rem;
  right: 1.5rem;
  z-index: 5;
}

.player-streaming-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.player-streaming-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.player-streaming-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.streaming-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.streaming-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mosiky-coral);
  color: var(--mosiky-coral);
  transform: translateY(-2px);
}

.streaming-link svg {
  width: 18px;
  height: 18px;
}

.streaming-link-amazon {
  width: 33px;
  height: 33px;
}

.streaming-link-amazon svg {
  width: 19px;
  height: 19px;
}

/* Progress bar */
.player-progress-wrap {
  width: 100%;
  max-width: 320px;
}

.player-progress-bar {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mosiky-coral);
  box-shadow: 0 0 8px rgba(255, 127, 80, 0.5);
  cursor: pointer;
}

.player-progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mosiky-coral);
  border: none;
  cursor: pointer;
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Playback controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.player-controls button {
  color: var(--text-secondary);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-controls button:hover { color: var(--text-primary); transform: scale(1.1); }
.player-controls button svg { width: 20px; height: 20px; }

.player-play-btn {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: var(--mosiky-red) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(255, 83, 73, 0.35);
  transition: all 0.3s !important;
}

.player-play-btn:hover {
  background: var(--mosiky-coral) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 30px rgba(255, 83, 73, 0.5) !important;
}

.player-play-btn svg { width: 24px !important; height: 24px !important; }

/* Shuffle & Repeat buttons */
.shuffle-btn, .repeat-btn { position: relative; }
.repeat-label {
  position: absolute;
  font-size: 0.5rem;
  font-weight: 700;
  bottom: -1px;
  right: -3px;
  color: var(--mosiky-coral);
}

/* Video loop button */
.video-loop-btn {
  color: var(--text-secondary);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.video-loop-btn:hover { color: #fff; }
.video-loop-btn svg { width: 20px; height: 20px; }

/* Right: Track list */
.player-tracklist-section {
  border-left: 1px solid var(--glass-border);
  max-height: 520px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .player-tracklist-section {
    border-left: none;
    border-top: 1px solid var(--glass-border);
    max-height: 300px;
  }
}

.player-tracklist-header {
  padding: 1.5rem 1.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.player-track-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.player-track-item:hover { background: rgba(255, 255, 255, 0.04); }

.player-track-item.active {
  background: rgba(255, 83, 73, 0.08);
}

.player-track-item.active .track-item-title {
  color: var(--mosiky-coral);
}

.track-item-number {
  width: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

/* EQ bars for active track */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 24px;
  justify-content: center;
}

.eq-bar {
  width: 3px;
  background: var(--mosiky-coral);
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.15s; }
.eq-bar:nth-child(3) { animation-delay: 0.3s; }

.track-item-title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-item-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.3s;
}
/* HD streaming badge (shown on currently playing track when HLS is active) */
.track-hd-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  margin-right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mosiky-coral);
  background: rgba(255, 127, 80, 0.12);
  border-radius: 10px;
  flex-shrink: 0;
}
.track-hd-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mosiky-coral);
}

/* ── Mini Player ────────────────────────────────────────────── */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(18, 10, 8, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 0 1.25rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--transition-smooth);
}

.mini-player.visible {
  transform: translateY(0);
}

.mini-player-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.3s;
}

.mini-player-art:hover { opacity: 0.8; }

.mini-player-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.mini-player-title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-artist {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-player-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  width: 0%;
  transition: width 0.3s linear;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mini-player-controls button {
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-player-controls button:hover {
  color: #fff;
  transform: scale(1.1);
}

.mini-player-controls button svg { width: 20px; height: 20px; }

.mini-player-play {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--mosiky-red) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(255, 83, 73, 0.3);
}

.mini-player-play:hover {
  background: var(--mosiky-coral) !important;
}

.mini-player-play svg { width: 18px !important; height: 18px !important; }

.mini-player-close {
  color: var(--text-muted) !important;
}

/* Offset page content when mini player is visible */
body.has-mini-player .site-footer {
  padding-bottom: calc(4rem + 72px);
}

@media (max-width: 640px) {
  .mini-player { gap: 0.75rem; padding: 0 1rem; }
  .mini-player-art { width: 40px; height: 40px; border-radius: 6px; }
  .mini-player-controls { gap: 0.5rem; }
  .mini-player-controls .mini-prev,
  .mini-player-controls .mini-next,
  .mini-player-controls .mini-shuffle,
  .mini-player-controls .mini-repeat { display: none; }
}

/* ── Video Grid ─────────────────────────────────────────────── */
.video-section {
  padding: 4rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.video-card {
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid transparent;
  transition: all 0.4s var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--glass-border);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.video-card:hover .video-play-overlay { background: rgba(0, 0, 0, 0.3); }

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mosiky-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.4s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(255, 83, 73, 0.5);
}

.video-card:hover .video-play-btn { transform: scale(1); }

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.video-info {
  padding: 1rem 1.25rem;
}

.video-info .video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.video-info .video-artist {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.video-info .video-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Video Player Modal ─────────────────────────────────────── */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-overlay.open { opacity: 1; pointer-events: all; }

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  padding: 0 0 1rem;
}

.video-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-modal-logo {
  height: 28px;
  width: auto;
}

.video-modal-logo-placeholder {
  height: 28px;
  width: 90px;
  background: var(--gradient-brand);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.video-modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.video-modal-artist {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Video header actions (share + close, same style as audio player) */
.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-modal-actions button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.video-modal-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Vertical divider between logo and title */
.video-brand-divider {
  width: 2px;
  height: 28px;
  background: var(--mosiky-coral);
  opacity: 0.5;
  margin: 0 0.85rem;
  flex-shrink: 0;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .video-brand-divider { display: block; margin: 0 0.5rem; height: 24px; }
  .video-modal-logo { height: 22px !important; }
  .video-modal-title { font-size: 0.8rem !important; }
  .video-modal-artist { font-size: 0.7rem !important; }
}

.video-player-wrap {
  width: 100%;
  max-width: 1100px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.video-player-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(18, 10, 8, 0.95);
}


.video-controls button {
  color: var(--text-secondary);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.video-controls button:hover { color: #fff; }
.video-controls button svg { width: 20px; height: 20px; }

.video-progress {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.video-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mosiky-coral);
  cursor: pointer;
}

.video-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mosiky-coral);
  border: none;
}

.video-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 380px;
}

@media (max-width: 768px) {
  .footer-brand p { max-width: 100%; }
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--mosiky-coral); }

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { border-color: var(--mosiky-coral); }

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-brand);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.newsletter-btn:hover { opacity: 0.9; }

.newsletter-success {
  font-size: 0.85rem;
  color: #38ef7d;
  margin-top: 0.5rem;
  display: none;
}

.newsletter-success.show { display: block; }

/* Contact */
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s;
}

@media (max-width: 768px) {
  .footer-contact a { justify-content: center; }
}

.footer-contact a:hover { color: var(--mosiky-coral); }

/* App store badges */
.app-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .app-badges { justify-content: center; }
}

.app-badge {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 12px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: all 0.3s;
  text-decoration: none;
}

.app-badge:hover {
  border-color: var(--mosiky-coral);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-badge .badge-label { font-size: 0.6rem; line-height: 1.2; }
.app-badge .badge-store { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }

/* Footer bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--text-secondary); }

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.4; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50%      { height: 14px; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.spin { animation: spin 0.8s linear infinite; }

/* ── Social Links ──────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .social-links { justify-content: center; }
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mosiky-coral);
  color: var(--mosiky-coral);
  transform: translateY(-2px);
}

.social-links a svg {
  width: 16px;
  height: 16px;
}

/* Share toast notification */
.share-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 10, 8, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s var(--transition-smooth);
  pointer-events: none;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Signup Prompt ──────────────────────────────────────────── */
.signup-prompt {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
}

.signup-prompt.open { opacity: 1; }

.signup-prompt-card {
  background: rgba(18, 10, 8, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--transition-smooth);
}

.signup-prompt.open .signup-prompt-card {
  transform: translateY(0) scale(1);
}

.signup-prompt-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.signup-prompt-close:hover { background: rgba(255, 255, 255, 0.12); }

.signup-prompt-icon { margin-bottom: 1rem; }

.signup-prompt-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.signup-prompt-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.signup-prompt-form {
  display: flex;
  gap: 0;
}

.signup-prompt-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
}

.signup-prompt-form input::placeholder { color: var(--text-muted); }
.signup-prompt-form input:focus { border-color: var(--mosiky-coral); }

.signup-prompt-form button {
  padding: 0.8rem 1.5rem;
  background: var(--gradient-brand);
  border-radius: 0 10px 10px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.signup-prompt-form button:hover { opacity: 0.9; }

.signup-prompt-alt {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.signup-prompt-alt:hover { color: var(--text-secondary); }

/* ── Loading State ──────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--mosiky-coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Authentication Modal ──────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--transition-smooth);
}
.auth-overlay.open { opacity: 1; pointer-events: all; }

.auth-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(18, 10, 8, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--transition-smooth);
}
.auth-overlay.open .auth-card { transform: translateY(0) scale(1); }
.auth-card::-webkit-scrollbar { width: 4px; }
.auth-card::-webkit-scrollbar-track { background: transparent; }
.auth-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.auth-view { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }

.auth-logo { width: 140px; height: auto; margin-bottom: 4px; }
.auth-logo-sm { width: 90px; }

.auth-tagline { font-size: 0.9rem; color: var(--text-secondary); font-style: italic; }

.auth-preview-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 6px 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.auth-spacer { height: 20px; }

.auth-gate-msg {
  text-align: center;
  margin-top: 12px;
}
.auth-gate-msg p {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.auth-gate-sub {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  margin-top: 4px !important;
}

.auth-free-note {
  font-size: 0.75rem;
  color: var(--mosiky-coral);
  margin: 0;
  font-weight: 500;
}

.auth-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; }

.auth-subtitle { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.auth-back {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  color: var(--mosiky-coral);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

.auth-error {
  width: 100%;
  font-size: 0.8rem;
  color: var(--mosiky-red);
  background: rgba(255, 83, 73, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}
.auth-input:focus { border-color: var(--mosiky-coral); }
.auth-input::placeholder { color: var(--text-muted); }

.auth-password-wrap {
  width: 100%;
  position: relative;
}
.auth-password-wrap .auth-input { padding-right: 44px; }
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.5;
  padding: 4px;
}

.auth-btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  font-family: inherit;
}
.auth-btn-primary:hover { opacity: 0.9; transform: scale(1.01); }
.auth-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-btn-secondary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
}
.auth-btn-secondary:hover { background: var(--bg-card-hover); }

.auth-btn-apple {
  width: 100%;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s;
  font-family: inherit;
}
.auth-btn-apple:hover { opacity: 0.9; }

.auth-btn-google {
  width: 100%;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.3s;
  font-family: inherit;
}
.auth-btn-google:hover { opacity: 0.9; }

.auth-btn-phone {
  width: 100%;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s;
  font-family: inherit;
}
.auth-btn-phone:hover { background: var(--bg-card-hover); }

.auth-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.auth-divider span { font-size: 0.75rem; color: var(--text-muted); }

.auth-phone-icon { margin: 8px 0; }

.auth-phone-row {
  width: 100%;
  display: flex;
  gap: 10px;
}
.auth-country-select {
  width: 130px;
  flex-shrink: 0;
  padding: 14px 8px;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
.auth-country-select option { background: #1a1a1a; color: #fff; }
.auth-phone-input { flex: 1; }

.auth-code-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.auth-code-box {
  width: 46px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  outline: none;
  caret-color: var(--mosiky-coral);
  transition: border-color 0.3s;
  font-family: inherit;
}
.auth-code-box:focus { border-color: var(--mosiky-coral); background: rgba(255, 255, 255, 0.1); }

.auth-link {
  background: none;
  color: var(--mosiky-coral);
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.auth-copyright {
  margin-top: 16px;
  text-align: center;
}
.auth-copyright p { font-size: 0.65rem; color: var(--text-muted); margin: 2px 0; }
.auth-legal-links a { color: var(--mosiky-coral); text-decoration: none; }
.auth-legal-links a:hover { text-decoration: underline; }

/* ── Account View ────────────────────────────────────────── */
.auth-close {
  position: absolute;
  top: -4px;
  right: -4px;
  background: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: color 0.3s;
}
.auth-close:hover { color: #fff; }

.auth-profile-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}
.auth-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.auth-profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-profile-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-profile-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-badge-freemium {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-brand);
  border-radius: 10px;
  align-self: flex-start;
  margin-top: 4px;
}

.auth-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}

.auth-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.auth-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 0.9rem;
  color: #fff;
}

.auth-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.auth-success {
  width: 100%;
  font-size: 0.8rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
}

.auth-danger-zone {
  border-top: 1px solid rgba(255, 83, 73, 0.2);
  margin-top: 8px;
  padding-top: 16px;
}

.auth-danger-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mosiky-red);
  background: transparent;
  border: 1px solid var(--mosiky-red);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-family: inherit;
}
.auth-danger-btn:hover { background: var(--mosiky-red); color: #fff; }

/* Transition view */
.auth-transition-view { padding: 60px 0; }
.auth-transition-logo { animation: authFadeScale 0.8s ease-out both; }
.auth-transition-text { font-size: 0.9rem; color: var(--text-secondary); animation: authFadeIn 0.6s 0.4s ease-out both; }

.auth-shimmer-dots { display: flex; gap: 6px; justify-content: center; animation: authFadeIn 0.6s 0.6s ease-out both; }
.auth-shimmer-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mosiky-coral);
  animation: authShimmer 0.6s ease-in-out infinite alternate;
}
.auth-shimmer-dots span:nth-child(2) { animation-delay: 0.2s; }
.auth-shimmer-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes authFadeScale { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes authShimmer { from { opacity: 0.2; } to { opacity: 1; } }

/* Nav auth button */
.nav-auth { display: flex; align-items: center; gap: 0.75rem; margin-left: 1rem; }

.nav-signin-btn {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.3s;
  font-family: inherit;
}
.nav-signin-btn:hover { opacity: 0.85; }

.nav-user-menu {
  display: none;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.nav-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
}
.nav-user-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  background: rgba(18, 10, 8, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  min-width: 150px;
  display: none;
  z-index: 500;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }
.nav-user-dropdown button {
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: #fff;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.nav-user-dropdown button:hover { background: var(--bg-card-hover); }

@media (max-width: 768px) {
  .auth-card { padding: 1.5rem; max-width: 100%; border-radius: 16px; }
  .auth-code-box { width: 40px; height: 48px; font-size: 1.2rem; }
  .nav-auth { margin-left: 0.5rem; }
  .nav-signin-btn { padding: 6px 14px; font-size: 0.75rem; }
}
