/* ==========================================================================
   GENERATE WITH AI - MODERN COURSE SALES & LEARNING PLATFORM
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --bg-dark: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --border-color: #1f2937;
  --border-highlight: #374151;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebc57;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background effects - glow removed */

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-restore {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-highlight);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-restore:hover {
  color: #fff;
  border-color: #6366f1;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 0 40px;
  text-align: center;
}

.badge-offer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2.5s infinite;
}

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

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 30px;
}

/* Quick Features Pill */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.highlight-item svg {
  color: #10b981;
}

/* Main Content Grid */
.course-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}

/* Module Cards */
.modules-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  border-color: var(--border-highlight);
}

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

.module-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

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

.module-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.module-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #d1d5db;
}

.module-features li svg {
  color: #6366f1;
  flex-shrink: 0;
}

/* Pricing & Checkout Card */
.checkout-card {
  background: linear-gradient(180deg, #161e31 0%, #111827 100%);
  border: 2px solid #374151;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 90px;
}

.pricing-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.current-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
}

.currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: #10b981;
}

.slashed-price {
  font-size: 1.25rem;
  text-decoration: line-through;
  color: #6b7280;
}

.discount-pill {
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 6px;
}

.price-sub {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Checkout Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: #0b0f19;
  border: 1px solid var(--border-highlight);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.phone-wrapper {
  display: flex;
  gap: 8px;
}

.phone-prefix {
  background: #1f2937;
  border: 1px solid var(--border-highlight);
  color: #d1d5db;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Primary Action Button */
.btn-pay {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s ease;
  margin-top: 20px;
}

.btn-pay:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-pay:active {
  opacity: 0.9;
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.security-badges {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.78rem;
  color: #9ca3af;
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   COURSE MEMBER ACCESS AREA (UNLOCKED AFTER PAYMENT)
   ========================================================================== */
#member-area {
  display: none;
  background: #111827;
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  margin: 30px 0 60px;
  animation: fadeIn 0.5s ease-out forwards;
}

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

.member-welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.welcome-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-paid-active {
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.student-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.storage-notice {
  background: rgba(99, 102, 241, 0.12);
  border-left: 4px solid #6366f1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #c7d2fe;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Video Player Component */
.player-wrapper {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  border: 1px solid var(--border-highlight);
}

.course-video-element {
  width: 100%;
  max-height: 520px;
  display: block;
  outline: none;
  background: #000;
}

/* Lesson Switcher Tabs */
.lesson-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.lesson-tab-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border-highlight);
  color: var(--text-muted);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-align: left;
}

.lesson-tab-btn:hover {
  background: #1f2937;
  color: #fff;
}

.lesson-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  color: #fff;
}

.lesson-tab-btn .tab-icon {
  font-size: 1.2rem;
}

/* Download Section in Member Area */
.downloads-panel {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.downloads-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.download-btn-card {
  background: #111827;
  border: 1px solid var(--border-highlight);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}

.download-btn-card:hover {
  border-color: #10b981;
  background: #172235;
}

.download-btn-card.featured {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.download-btn-card.featured:hover {
  background: rgba(99, 102, 241, 0.2);
}

.dl-header {
  font-size: 0.95rem;
  font-weight: 700;
}

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

.dl-action-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #10b981;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--whatsapp-color);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  text-decoration: none;
  transition: background 0.2s ease;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-hover);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #111827;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* ==========================================================================
   MODAL DIALOG (Restore Access / Information)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--border-highlight);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast.success {
  background: #064e3b;
  border-color: #10b981;
}

.toast.error {
  background: #7f1d1d;
  border-color: #ef4444;
}

/* Guarantee / Testimonials Section */
.testimonials-section {
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE - TABLET (≤900px)
   ========================================================================== */
@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }

  .download-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lesson-tabs {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   RESPONSIVE - MOBILE (≤600px)
   ========================================================================== */
@media (max-width: 600px) {

  /* ── NAVBAR ── */
  .header {
    padding: 10px 0;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo span:first-of-type {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .logo-badge {
    display: none; /* hide "Masterclass" badge on very small screens */
  }

  .nav-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .btn-restore {
    flex: 1;
    font-size: 0.75rem;
    padding: 6px 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── HERO ── */
  .hero {
    padding: 36px 0 24px;
  }

  .hero-title {
    font-size: 1.7rem;
    letter-spacing: -0.01em;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-highlights {
    gap: 10px;
  }

  .highlight-item {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* ── MEMBER AREA ── */
  #member-area {
    padding: 20px 14px;
    margin: 16px 0 40px;
    border-radius: var(--radius-md);
  }

  .welcome-text h2 {
    font-size: 1.25rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  .storage-notice {
    align-items: flex-start;
    font-size: 0.83rem;
    padding: 10px 12px;
  }

  .storage-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .course-video-element {
    max-height: 240px;
  }

  .lesson-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lesson-tab-btn {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  /* ── DOWNLOADS ── */
  .downloads-panel {
    padding: 16px;
  }

  .download-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ── CHECKOUT CARD ── */
  .checkout-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .current-price {
    font-size: 2.2rem;
  }

  .btn-pay {
    font-size: 1rem;
    padding: 14px;
  }

  /* ── MODULE CARDS ── */
  .module-card {
    padding: 16px;
  }

  /* ── TESTIMONIALS ── */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* ── FLOATING WHATSAPP ── */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-tooltip {
    font-size: 0.72rem;
    padding: 5px 9px;
    right: 60px;
  }
}

