/* ============================================
   Dash Player - Public Website Styles
   Color Palette:
     Ghost White: #F8F4F8
     Pale Purple: #FCE5FC
     Mini Pink: #FFD6FF
     Thistle: #F3CEFF
     Mauve: #E7C6FF
     Accent: #8b5cf6, #7c3aed
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e1b2e;
  background: #F8F4F8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Pages */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* -- Navbar -- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 244, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(139, 92, 246, 0.1);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #7c3aed;
}
.nav-brand i {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4458;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.06);
}
.nav-link.active {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #4a4458;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
}
.nav-toggle:hover {
  background: rgba(139, 92, 246, 0.06);
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: #7c3aed;
  border: 2px solid rgba(139, 92, 246, 0.3);
}
.btn-outline:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: #8b5cf6;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-ghost {
  background: transparent;
  color: #7c3aed;
}
.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.06);
}

/* -- Hero -- */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #FCE5FC 0%, #F8F4F8 70%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #F8F4F8, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1e1b2e;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: #5a5470;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7c3aed;
}
.stat-label {
  font-size: 0.8rem;
  color: #8a829a;
  font-weight: 500;
}

/* -- Sections -- */
.section {
  padding: 5rem 0;
}

.page-section {
  padding-top: 7rem;
  min-height: calc(100vh - 64px);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e1b2e;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b6280;
  max-width: 480px;
  margin: 0 auto;
}

/* -- Feature Cards -- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(139, 92, 246, 0.06);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #7c3aed;
  background: linear-gradient(135deg, #FCE5FC, #E7C6FF);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: #6b6280;
  line-height: 1.6;
}

/* -- Screenshots -- */
.screenshots-section {
  background: linear-gradient(180deg, #F8F4F8 0%, #FCE5FC 50%, #F8F4F8 100%);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}
.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.screenshot-large {
  grid-column: 1 / -1;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
  color: #fff;
  text-align: center;
}
.screenshot-large .screenshot-placeholder {
  padding: 5rem 2rem;
}

.screenshot-placeholder i {
  font-size: 2.5rem;
  opacity: 0.9;
}
.screenshot-large .screenshot-placeholder i {
  font-size: 3.5rem;
}

.screenshot-placeholder span {
  font-size: 1.1rem;
  font-weight: 600;
}

.screenshot-placeholder small {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* -- Download CTA -- */
.download-section {
  padding-bottom: 4rem;
}

.download-card {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  color: #fff;
}

.download-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.download-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-card .btn-primary {
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.download-card .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.download-meta {
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.download-visual {
  flex-shrink: 0;
}

.download-icon-wrap {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* -- Cards & Forms -- */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(139, 92, 246, 0.06);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e1b2e;
}
.card h3 i {
  color: #8b5cf6;
}

.form-inline-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a4458;
}

.input-group {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a89fc0;
  font-size: 0.85rem;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1.5px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1e1b2e;
  background: #F8F4F8;
  transition: all 0.2s ease;
}
.input-group input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: #fff;
}
.input-group input::placeholder {
  color: #b0a8c4;
}

/* -- Alerts -- */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* -- Loading -- */
.loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  color: #7c3aed;
  font-size: 0.9rem;
  font-weight: 500;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* -- Device Info -- */
.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.device-header h3 {
  margin-bottom: 0;
}

.device-status {
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.device-status.status-active {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.device-status.status-expired {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.device-status.status-trial {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  background: #F8F4F8;
  border-radius: 10px;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a829a;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e1b2e;
  word-break: break-all;
}

/* -- Playlist Items -- */
.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #F8F4F8;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.06);
  transition: border-color 0.2s ease;
}
.playlist-item:hover {
  border-color: rgba(139, 92, 246, 0.15);
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}
.playlist-item-info .playlist-url {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e1b2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-item-info .playlist-user {
  font-size: 0.8rem;
  color: #8a829a;
}

.playlist-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.playlist-default-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #8a829a;
}
.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.empty-state p {
  font-size: 0.9rem;
}

/* -- Packages -- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.package-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1.5px solid rgba(139, 92, 246, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.package-featured {
  border-color: #8b5cf6;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.package-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 1rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
}

.package-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e1b2e;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.package-price {
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.9rem;
  color: #8a829a;
  font-weight: 500;
}

.package-features {
  text-align: left;
  margin-bottom: 2rem;
}

.package-features li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: #4a4458;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.package-features li i {
  color: #8b5cf6;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* -- Footer -- */
.footer {
  background: #1e1b2e;
  color: #c4bfd6;
  padding: 4rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .nav-brand {
  margin-bottom: 1rem;
  color: #fff;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #9890aa;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #E7C6FF;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #5a5470;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(248, 244, 248, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hero {
    padding: 8rem 0 3rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 1.75rem;
  }

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

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

  .download-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .download-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .form-inline-group {
    flex-direction: column;
  }
  .form-inline-group .btn {
    width: 100%;
  }

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

  .device-details {
    grid-template-columns: 1fr;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

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

  .playlist-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .playlist-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .card {
    padding: 1.25rem;
  }
  .price-amount {
    font-size: 2.25rem;
  }
}
