/* ============================================
   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.span-2 {
  grid-column: span 2;
}

.form-group.span-3 {
  grid-column: span 3;
}

.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;
}
.input-group select {
  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.97rem;
  background: #f8f7fc;
  color: #1e1e2e;
  cursor: pointer;
}
.input-group select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: #fff;
}

/* -- 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;
  }
}

/* ============ Legal Pages (TOS / Privacy) ============ */
.legal-content {
  padding: 0.5rem 0;
  line-height: 1.8;
  color: #374151;
}
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: #1e1b2e;
  margin: 1.5rem 0 0.5rem;
}
.legal-content h1 { font-size: 1.6rem; }
.legal-content h2 { font-size: 1.25rem; }
.legal-content h3 { font-size: 1.05rem; }
.legal-content p {
  margin-bottom: 1rem;
}
.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content a {
  color: #7c3aed;
  text-decoration: underline;
}

/* ============ Support / Ticket Form ============ */
#supportTicketForm textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1e1b2e;
  background: white;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#supportTicketForm textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.package-desc { color: var(--text-muted, #9aa); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.package-note { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); text-align: center; }

/* ── Manage Playlist: IBO style account page ── */
.pl-hint { color: #6b7280; margin: -0.5rem 0 1.25rem; font-size: 0.95rem; }
.pl-account { display: flex; align-items: flex-start; gap: 1.25rem; }
.pl-nav { flex: 0 0 200px; display: flex; flex-direction: column; gap: 0.6rem; }
.pl-nav-btn { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid rgba(139,92,246,0.15);
  background: #fff; color: #374151; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-align: left; }
.pl-nav-btn:hover { border-color: #8b5cf6; color: #6d28d9; }
.pl-nav-btn.active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
.pl-main { flex: 1; min-width: 0; margin-bottom: 0; }
.pl-devbar { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid #f0ecfb; }
.pl-devbar div { display: flex; flex-direction: column; }
.pl-devbar span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; font-weight: 600; }
.pl-devbar b { font-size: 1.05rem; color: #111827; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pl-devbar b.pl-ok { color: #059669; font-family: inherit; }
.pl-devbar b.pl-trial { color: #d97706; font-family: inherit; }
.pl-devbar b.pl-bad { color: #dc2626; font-family: inherit; }
.pl-add { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.pl-table-wrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.pl-table th { text-align: left; padding: 0.7rem 0.8rem; color: #fff; background: linear-gradient(90deg, #8b5cf6, #c026d3); font-weight: 600; }
.pl-table th:first-child { border-radius: 10px 0 0 10px; } .pl-table th:last-child { border-radius: 0 10px 10px 0; }
.pl-table td { padding: 0.8rem; border-bottom: 1px solid #f3f0fb; vertical-align: middle; }
.pl-table td.pl-name { font-weight: 600; color: #111827; white-space: nowrap; }
.pl-table td.pl-url { color: #4b5563; word-break: break-all; font-size: 0.88rem; }
.pl-row-actions { white-space: nowrap; text-align: right; }
.pl-row-actions .btn { margin-left: 0.3rem; }
.pl-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(17,12,34,0.55); }
.pl-modal-box { width: 100%; max-width: 520px; margin: 0; max-height: calc(100vh - 2rem); overflow-y: auto; }
.pl-modal-box .form-group input, .pl-modal-box .form-group select { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.95rem; box-sizing: border-box; }
.pl-modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1rem; }
@media (max-width: 768px) {
  .pl-account { flex-direction: column; }
  .pl-nav { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .pl-nav-btn { flex: 1 1 30%; justify-content: center; padding: 0.7rem; }
  .pl-row-actions { white-space: normal; text-align: left; }
  .pl-table thead { display: none; }
  .pl-table tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid #f3f0fb; }
  .pl-table td { display: block; border: 0; padding: 0.25rem 0.2rem; }
}
.form-hint { font-size: 0.85rem; opacity: 0.75; margin: 4px 0 14px; }

/* Playlist builder (Manage Playlist > Filter) */
.plf-box { max-width: 980px; display: flex; flex-direction: column; gap: 0.6rem; }
.plf-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.plf-top h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.plf-intro { margin: 0; }
.plf-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.plf-tab { padding: 0.45rem 0.9rem; border-radius: 20px; border: 1px solid #ddd6fe; background: #fff; color: #4c1d95; cursor: pointer; font-size: 0.85rem; }
.plf-tab.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.plf-tools, .plf-word-add { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.plf-tools input, .plf-word-add input { flex: 1 1 200px; padding: 0.6rem 0.8rem; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.9rem; }
.plf-body { min-height: 120px; max-height: 55vh; overflow-y: auto; }
.plf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.4rem; }
.plf-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.65rem; border-radius: 10px; border: 1px solid #ddd6fe; background: #f5f3ff; color: #1f2937; cursor: pointer; text-align: left; font-size: 0.85rem; min-width: 0; }
.plf-item.off { opacity: 0.55; background: #fff; }
.plf-check { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 5px; border: 1.5px solid #7c3aed; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.plf-item.on .plf-check { background: #7c3aed; }
.plf-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plf-name small, .plf-item > small { color: #6b7280; font-size: 0.72rem; }
.plf-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.plf-chip { padding: 0.35rem 0.8rem; border-radius: 16px; border: 1px dashed #a78bfa; background: #fff; cursor: pointer; font-size: 0.85rem; }
.plf-chip.on { border-style: solid; border-color: #ef4444; background: #fef2f2; color: #b91c1c; }

/* Sort + TV preview (desktop only) */
.srt-box { max-width: 1400px; width: 96vw; display: flex; flex-direction: column; gap: 0.6rem; }
.srt-cols { display: grid; grid-template-columns: 280px 340px 1fr; gap: 0.8rem; min-height: 0; }
.srt-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.srt-col-h { font-weight: 600; font-size: 0.85rem; color: #4c1d95; margin-bottom: 0.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srt-list { border: 1px solid #ede9fe; border-radius: 10px; padding: 0.3rem; height: 56vh; overflow-y: auto; background: #faf8ff; }
.srt-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.4rem; border-radius: 8px; background: #fff; border: 1px solid #ede9fe; margin-bottom: 0.25rem; font-size: 0.85rem; cursor: grab; }
.srt-item.sel { border-color: #7c3aed; background: #f5f3ff; }
.srt-item.over { border-top: 3px solid #7c3aed; }
.srt-item.dragging { opacity: 0.4; }
.srt-grip { color: #a78bfa; font-size: 0.75rem; letter-spacing: -2px; }
.srt-n { width: 2rem; color: #6b7280; font-size: 0.75rem; text-align: right; }
.srt-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.srt-logo { width: 28px; height: 20px; object-fit: contain; flex: 0 0 28px; }
.srt-arrows { display: flex; gap: 2px; opacity: 0.35; }
.srt-item:hover .srt-arrows { opacity: 1; }
.srt-arrows button { border: 0; background: #ede9fe; color: #5b21b6; border-radius: 5px; width: 22px; height: 22px; cursor: pointer; font-size: 0.65rem; padding: 0; }
.srt-tv { display: flex; align-items: flex-start; justify-content: center; }
.tv-screen { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: radial-gradient(circle at 20% 0%, #2e1065, #0b0716 70%); color: #fff; padding: 2.2% 2.6%; display: flex; flex-direction: column; gap: 3%; box-shadow: 0 0 0 8px #111, 0 12px 30px rgba(0,0,0,0.35); overflow: hidden; font-size: clamp(8px, 0.75vw, 12px); }
.tv-top { display: flex; justify-content: space-between; opacity: 0.9; }
.tv-top b { font-size: 1.3em; }
.tv-body { flex: 1; display: grid; grid-template-columns: 26% 34% 1fr; gap: 2%; min-height: 0; }
.tv-groups, .tv-chs { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.tv-g { padding: 0.45em 0.7em; border-radius: 6px; background: rgba(255,255,255,0.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-g.on { background: #7c3aed; }
.tv-ch { display: flex; align-items: center; gap: 0.6em; padding: 0.35em 0.6em; border-radius: 6px; background: rgba(255,255,255,0.05); white-space: nowrap; overflow: hidden; }
.tv-ch.on { outline: 2px solid #a78bfa; background: rgba(124,58,237,0.35); }
.tv-ch img, .tv-ch i { width: 2.2em; height: 1.5em; object-fit: contain; flex: 0 0 2.2em; }
.tv-ch span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tv-no { width: 1.8em; opacity: 0.6; text-align: right; }
.tv-play { display: flex; }
.tv-pic { flex: 1; border-radius: 10px; background: linear-gradient(135deg, #1f2937, #111827); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6em; }
.tv-pic img { max-width: 30%; max-height: 30%; object-fit: contain; }
.tv-pic small { background: #dc2626; padding: 0.1em 0.6em; border-radius: 4px; font-weight: 700; }
.tv-posters { grid-column: span 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.tv-poster { border-radius: 8px; background: linear-gradient(160deg, rgba(167,139,250,0.35), rgba(255,255,255,0.05)); aspect-ratio: 2 / 3; padding: 0.4em; font-size: 0.9em; }
.srt-cols.no-chans { grid-template-columns: 280px 1fr; }
.srt-item { user-select: none; -webkit-user-select: none; }
.srt-item.msel { background: #ede9fe; border-color: #a78bfa; box-shadow: inset 3px 0 0 #7c3aed; }
.srt-item.sel.msel { background: #e4dcfd; }
.tv-vod { grid-column: span 2; display: flex; flex-direction: column; gap: 3%; min-height: 0; }
.tv-vod-h { font-weight: 700; font-size: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-vod .tv-posters { grid-column: auto; grid-template-columns: repeat(5, 1fr); gap: 2.5%; flex: 1; min-height: 0; align-content: start; }
.tv-poster { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.tv-poster i { flex: 1; }
.tv-poster span { font-size: 0.85em; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .srt-btn { display: none !important; } }


/* ============ Showcase, platforms, gallery, reseller (Nov 2026) ============ */
.showcase { position: relative; max-width: 920px; margin: 3.5rem auto 0; padding-bottom: 2rem; }
.device-tv { position: relative; width: 86%; margin: 0 auto; }
.device-tv-screen { background: #0d0b14; border: 10px solid #15121f; border-bottom-width: 14px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.28), 0 0 0 1px rgba(255,255,255,0.04) inset; aspect-ratio: 16 / 9; }
.device-tv-screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.device-tv-stand { width: 26%; height: 14px; margin: 0 auto; background: linear-gradient(#2a2538, #15121f); border-radius: 0 0 10px 10px; }
.device-tv-stand::after { content: ''; display: block; width: 160%; height: 6px; margin: 8px 0 0 -30%; border-radius: 6px; background: rgba(30, 27, 46, 0.18); filter: blur(3px); }
.device-phone { position: absolute; right: 0; bottom: 0; width: 38%; transform: rotate(-3deg); }
.device-phone-screen { background: #0d0b14; border: 8px solid #15121f; border-radius: 26px; overflow: hidden; aspect-ratio: 2.17 / 1;
  box-shadow: 0 24px 60px rgba(76, 29, 149, 0.35); }
.device-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.platforms { padding: 1.4rem 0; border-top: 1px solid rgba(139, 92, 246, 0.1); border-bottom: 1px solid rgba(139, 92, 246, 0.1); background: rgba(255,255,255,0.5); }
.platforms-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.6rem; }
.platforms-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a829a; }
.platform { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: #3b3450; font-size: 0.95rem; }
.platform i { color: #7c3aed; font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { margin: 0; border-radius: 14px; overflow: hidden; background: #0d0b14; border: 1px solid rgba(139, 92, 246, 0.12); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(139, 92, 246, 0.18); }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 2.17 / 1; object-fit: cover; object-position: left top; cursor: zoom-in; }
.gallery-wide { grid-column: 1 / -1; }
.gallery-wide img { aspect-ratio: auto; }
.gallery-item figcaption { padding: 0.65rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: #e9e4f5; background: #15121f; }
.gallery-note { margin-top: 1.25rem; text-align: center; font-size: 0.8rem; color: #8a829a; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 2rem; background: rgba(10, 8, 18, 0.88); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.download-list { margin-top: 1.25rem; display: grid; gap: 0.45rem; font-size: 0.9rem; }
.download-list i { width: 1.4em; color: inherit; opacity: 0.85; }
.reseller-teaser { padding-top: 0; }
.teaser-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 2.25rem; border-radius: 20px;
  background: linear-gradient(135deg, #1e1b2e, #3b2a6b); color: #fff; }
.teaser-card h2 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.teaser-card p { opacity: 0.8; }
.rs-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start; }
.rs-perks h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.rs-perks h3 i { color: #7c3aed; }
.rs-perks ul { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.rs-perks li { display: flex; gap: 0.6rem; align-items: baseline; color: #3b3450; }
.rs-perks li i { color: #10b981; }
.rs-price { display: flex; flex-direction: column; padding: 1rem 1.25rem; border-radius: 14px; background: rgba(139, 92, 246, 0.08); }
.rs-price span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #7c3aed; }
.rs-price b { font-size: 2rem; color: #1e1b2e; }
.rs-old { font-size: 1rem; color: #9a92ad; font-weight: 500; margin-left: 0.4rem; }
.rs-price small { color: #6b6280; }
.rs-text { margin-top: 1rem; color: #5a5470; white-space: pre-line; font-size: 0.9rem; overflow-wrap: anywhere; }
/* long texts / links from the admin stay inside the card (client 20 Nov) */
.rs-grid > * { min-width: 0; }
.rs-perks li { overflow-wrap: anywhere; }
.rs-promo-line { display: flex; gap: 0.5rem; }
.rs-promo-line input { flex: 1; min-width: 0; }
.rs-promo-msg { display: block; margin-top: 0.35rem; font-size: 0.85rem; }
.rs-promo-msg.ok { color: #059669; } .rs-promo-msg.bad { color: #dc2626; }
.rs-accept { display: flex; gap: 0.5rem; align-items: center; margin: 0.25rem 0 1rem; font-size: 0.9rem; color: #5a5470; }
.rs-accept a { color: #7c3aed; text-decoration: underline; }
.rs-done { text-align: center; padding: 1.5rem 0.5rem; }
.rs-done > i { font-size: 2.6rem; margin-bottom: 0.75rem; color: #10b981; }
.rs-done-wait > i { color: #f59e0b; }
.rs-done h3 { margin-bottom: 0.5rem; }
.rs-done p { color: #5a5470; }
.rs-done a { color: #7c3aed; text-decoration: underline; }
.rs-done .btn { margin-top: 1rem; }
.rs-done .spinner { margin: 0 auto 0.75rem; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .rs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .device-phone { width: 46%; right: -2%; }
  .showcase { margin-top: 2.5rem; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
/* the reseller form: the same field look as the other forms */
#rsForm .form-group input, #rsForm .form-group textarea { width: 100%; padding: 0.75rem 0.95rem; background: #F8F4F8; border: 1.5px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px; font-size: 0.95rem; color: #1e1b2e; font-family: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
#rsForm .form-group input:focus, #rsForm .form-group textarea:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12); }
#rsForm .form-group textarea { resize: vertical; min-height: 90px; }
#rsForm .form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 600; color: #3b3450; }
#rsForm .form-group { margin-bottom: 1rem; }
.rs-accept input { width: 18px; height: 18px; accent-color: #7c3aed; }

/* -- Store badges (client 8 Nov) -- */
.stores-section { padding: 2.5rem 0 0.5rem; }
.stores-card { background: #fff; border: 1px solid rgba(139, 92, 246, 0.12); border-radius: 24px; padding: 2.2rem 1.5rem; text-align: center; box-shadow: 0 20px 45px -25px rgba(124, 58, 237, 0.25); background-image: radial-gradient(circle at 92% 8%, rgba(243, 206, 255, 0.45), transparent 40%), radial-gradient(circle at 6% 96%, rgba(252, 229, 252, 0.6), transparent 40%); }
.stores-title { font-size: clamp(1.35rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: #1e1b2e; }
.stores-sub { margin-top: 0.35rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7c3aed; }
.stores-grid { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.store-badge { position: relative; overflow: hidden; width: 148px; min-height: 122px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 0.7rem; border-radius: 16px; border: 1px solid #e9e3f3; background: #fff; color: #1e1b2e; text-decoration: none; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s; }
.store-badge::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.08), transparent); transition: left .6s ease; }
a.store-badge:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 24px -6px rgba(124, 58, 237, 0.18), 0 4px 6px -2px rgba(0,0,0,0.05); border-color: rgba(124, 58, 237, 0.4); }
a.store-badge:hover::before { left: 100%; }
a.store-badge:active { transform: translateY(-1px) scale(0.99); }
.store-logo { height: 40px; display: flex; align-items: center; justify-content: center; }
.store-logo img { max-height: 40px; max-width: 112px; width: auto; height: 40px; object-fit: contain; }
.store-logo img.wide { height: 22px; }
.store-cap { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7c3aed; line-height: 1.2; }
.store-name { font-size: 0.9rem; font-weight: 700; line-height: 1.2; }
.store-badge.soon { cursor: default; opacity: 0.75; }
.store-badge.soon .store-cap { color: #8a829a; }
@media (max-width: 520px) { .store-badge { width: calc(50% - 0.5rem); } }

/* playlists managed by the provider (panel option, client 8 Nov) */
.pl-managed-note { background: #f3eefe; border: 1px solid #ddd0fb; color: #4c2a85; margin: 0.8rem 0; }
.pl-managed { color: #8a829a; font-style: italic; }

/* Multi-device on the playlist page (app.js renderGroup) */
.pl-group { border: 1px solid #ece6ff; background: linear-gradient(180deg, #faf8ff, #fff); border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.md-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.md-head h3 { font-size: 1.05rem; margin: 0; color: #1f1b3a; }
.md-head h3 i { color: #7c5cff; margin-right: 0.35rem; }
.md-pill { display: inline-block; padding: 0.15em 0.7em; border-radius: 999px; background: #f1eeff; color: #6a4bf5; font-size: 0.78rem; font-weight: 700; }
.md-pill.md-on { background: #e6f9f1; color: #0e9f6e; }
.md-pill.md-main { background: #7c5cff; color: #fff; margin-left: 0.3rem; }
.md-main-switch { margin-left: auto; }
.md-text { color: #4b5563; font-size: 0.92rem; margin: 0.35rem 0 0.75rem; }
.md-hint { color: #9ca3af; font-size: 0.82rem; margin: 0.35rem 0; }
.md-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; font-weight: 700; margin-bottom: 0.4rem; }
.md-shared { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 0.9rem; }
.md-shared .md-label { width: 100%; }
.md-check { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.9rem; color: #374151; cursor: pointer; }
.md-switch { display: inline-flex; gap: 0.5rem; align-items: center; cursor: pointer; font-size: 0.92rem; color: #374151; }
.md-switch input, .md-check input { accent-color: #7c5cff; width: 17px; height: 17px; }
.md-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 0.9rem; }
.md-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; padding: 0.4rem 0.5rem; border-bottom: 1px solid #f0ecfb; }
.md-table td { padding: 0.55rem 0.5rem; border-bottom: 1px solid #f6f3ff; color: #374151; }
.md-table td i { color: #7c5cff; width: 18px; text-align: center; }
.md-mac { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #6b7280; font-size: 0.82rem; margin-left: 0.3rem; }
.md-remove { background: #ffe8ec; color: #e5384f; border: none; border-radius: 999px; width: 30px; height: 30px; padding: 0; }
.md-leave { background: #fff; border: 1px solid #f3d0d6; color: #e5384f; margin-top: 0.4rem; }
.md-add-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.md-add-row input { flex: 1 1 160px; padding: 0.55rem 0.75rem; border: 1px solid #e5e0f5; border-radius: 10px; font: inherit; }
@media (max-width: 640px) { .md-table th:nth-child(3), .md-table td:nth-child(3), .md-table th:nth-child(4), .md-table td:nth-child(4) { display: none; } }

/* My lists (client 20 Nov): lists / channels of the list / channels to add */
.ml-cols { grid-template-columns: 260px 1fr 1fr; }
.ml-cols .srt-list { height: 50vh; }
.ml-tools { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.ml-danger { color: #dc2626; }
.ml-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-bottom: 0.4rem; }
.ml-pick input { grid-column: 1 / -1; }
.ml-pick select, .ml-pick input { padding: 0.4rem 0.5rem; border: 1px solid #ddd6fe; border-radius: 8px; font-size: 0.85rem; min-width: 0; background: #fff; }
.ml-pl { margin-left: 0.4rem; padding: 0 0.4rem; border-radius: 5px; background: #ede9fe; color: #5b21b6; font-size: 0.7rem; white-space: nowrap; flex: 0 0 auto; }
.ml-in { color: #059669; font-weight: 700; flex: 0 0 auto; }
.ml-src .srt-item { cursor: pointer; }
.ml-empty { padding: 10px; color: #6b7280; font-size: 0.85rem; }
@media (max-width: 900px) { .ml-cols { grid-template-columns: 1fr; } .ml-cols .srt-list { height: 30vh; } }
