:root {
  --bg-primary: #050505;
  --bg-card: rgba(18, 18, 18, 0.92);
  --border-color: rgba(255, 255, 255, 0.14);
  --accent-color: #e50914;
  --accent-glow: rgba(229, 9, 20, 0.45);
  --success-color: #7ee08f;
  --danger-color: #e50914;
  --text-main: #f7f7f7;
  --text-muted: #a9a9a9;
  --input-bg: rgba(255, 255, 255, 0.12);
  --card-radius: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 80% 15%, rgba(229, 9, 20, 0.22), transparent 34%),
    linear-gradient(115deg, #050505 0%, #101010 48%, #050505 100%);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 40px 0;
}

.glass-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.18) 0%, rgba(229, 9, 20, 0.08) 44%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.app-container {
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
  z-index: 2;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #ff8a8f 44%, #e50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: inline-block;
}

.title {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Side-by-Side grid */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Cards */
.main-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 32px;
}

.card-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

/* Steps indicator */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 16px;
  border-radius: 8px;
}

.step-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.step-badge.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.34);
}

.step-divider {
  flex-grow: 1;
  height: 1px;
  background: var(--border-color);
  margin: 0 8px;
}

/* Form layouts */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

input::placeholder {
  color: #747474;
}

input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* MAC inputs with validation dots */
.mac-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mac-wrapper input {
  padding-right: 40px;
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.validation-dot {
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  transition: var(--transition);
}

.validation-dot.valid {
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.validation-dot.invalid {
  background: var(--danger-color);
  box-shadow: 0 0 8px var(--danger-color);
}

.help-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Tabs */
.tabs-row {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 4px;
  margin: 24px 0;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.hidden {
  display: none !important;
}

.submit-btn {
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.42);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Delete playlist button */
.danger-zone {
  margin-top: 24px;
  border-top: 1px dashed var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.clear-btn {
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.clear-btn:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: var(--danger-color);
  color: #fca5a5;
}

/* --- BILLING CARD STYLING --- */
.billing-card {
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.08);
}

.billing-intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.plans-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.plan-option {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.plan-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.plan-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 16px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.plan-price {
  color: var(--text-muted);
  font-size: 13px;
}

.plan-option.active {
  border-color: var(--accent-color);
  background: rgba(229, 9, 20, 0.12);
}

.plan-option.active .plan-price {
  color: #ff8a8f;
  font-weight: 500;
}

.payment-btn {
  background: #e50914;
  margin-top: 16px;
}

.payment-btn:hover {
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.42);
}

.billing-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.billing-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Footer info */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 11px;
  color: #4b5563;
  line-height: 1.6;
}

/* Toast alert notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #171717;
  border: 1px solid rgba(229, 9, 20, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  color: #f7f7f7;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  pointer-events: none;
}

.toast.toast-error {
  background: #451a03;
  border-color: rgba(249, 115, 22, 0.3);
  color: #ffedd5;
}

.toast.toast-success {
  background: #022c22;
  border-color: rgba(16, 185, 129, 0.3);
  color: #d1fae5;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  body {
    padding: 20px 0;
  }
}

/* ============================================================
   NEW LANDING PAGE / MARKETING ADDITIONS
   ============================================================ */

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

/* --- LANDING NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.admin-login-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(229, 9, 20, 0.35);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.admin-login-btn:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: #e50914;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.32);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 160px 0 80px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 0 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff8a8f;
  margin-bottom: 16px;
  background: rgba(229, 9, 20, 0.16);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(229, 9, 20, 0.32);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 42%, #ff8a8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  text-align: left;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-cta-btn {
  background: #e50914;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.28);
  display: inline-block;
}

.hero-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.48);
}

.hero-secondary-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-block;
}

.hero-secondary-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

/* --- TV SCREEN CSS MOCKUP --- */
.hero-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

.tv-frame {
  background: #18181b;
  border: 8px solid #09090b;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 42px rgba(229, 9, 20, 0.14);
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg);
  border-bottom-width: 14px;
}

.tv-screen {
  width: 100%;
  height: 100%;
  background: #050505;
  display: flex;
  flex-direction: column;
  padding: 14px;
  user-select: none;
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mock-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 800;
  color: #e50914;
  letter-spacing: 1px;
}

.mock-nav {
  display: flex;
  gap: 8px;
}

.mock-nav-item {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.4);
}

.mock-nav-item.active {
  color: #fff;
  font-weight: 600;
}

.mock-hero {
  flex-grow: 1;
  background:
    radial-gradient(circle at 72% 36%, rgba(229, 9, 20, 0.26), transparent 38%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.18) 100%);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 6px;
  margin-bottom: 8px;
}

.mock-hero-badge {
  font-size: 5px;
  background: #e50914;
  color: #fff;
  padding: 2px 4px;
  border-radius: 3px;
  width: fit-content;
  margin-bottom: 4px;
  font-weight: 700;
}

.mock-hero h3 {
  font-size: 11px;
  color: #fff;
  margin-bottom: 2px;
  text-align: left;
}

.mock-hero p {
  font-size: 7px;
  color: var(--text-muted);
  text-align: left;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mock-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 5px;
  font-size: 7px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-card.active {
  background: rgba(229, 9, 20, 0.18);
  border-color: var(--accent-color);
  color: #fff;
}

.mock-card-icon {
  color: #e50914;
}

.tv-stand {
  width: 70px;
  height: 10px;
  background: #27272a;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

/* --- BENEFITS SECTION --- */
.benefits-section {
  padding: 80px 0 60px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 24px;
}

.benefit-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 24px;
  transition: var(--transition);
  text-align: left;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- PORTAL SECTION --- */
.portal-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- FAQS SECTION --- */
.faqs-section {
  padding: 60px 0 100px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.faqs-container {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
  width: 100%;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: var(--transition);
  text-align: left;
}

.faq-item[open] {
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
  color: #e50914;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

.faq-item code {
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #ff8a8f;
}

/* Footer landing adjustments */
.footer {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-copy {
    align-items: center;
  }
  .hero-title {
    text-align: center;
    font-size: 40px;
  }
  .hero-description {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-btn, .hero-secondary-btn {
    width: 100%;
  }
}
