/* ============================================
   DailyTips Dubber Pro - Main Stylesheet
   Desktop studio navy / cyan palette
   ============================================ */

:root {
  --bg-primary: #0d151d;
  --bg-secondary: #0c1b26;
  --bg-card: #122735;
  --bg-card-hover: #183848;
  --border: #29485c;
  --border-hover: #39b7ee;

  --purple: #09b3f5;
  --purple-light: #66d9fa;
  --purple-dark: #008dcf;
  --cyan: #26b8ed;
  --cyan-light: #5bdbef;
  --green: #10b981;
  --green-light: #43d7a0;
  --pink: #ec4899;

  --gradient: linear-gradient(135deg, #09b3f5 0%, #26b8ed 100%);
  --gradient-soft: linear-gradient(135deg, rgba(9,179,245,0.15) 0%, rgba(38,184,237,0.15) 100%);
  --gradient-hero: linear-gradient(135deg, #0d151d 0%, #0d1f2b 50%, #102938 100%);

  --text-primary: #e5eef6;
  --text-secondary: #a9c4d5;
  --text-muted: #8faabd;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(9,179,245,0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(9,179,245,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(9,179,245,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,21,29,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.logo-text { font-weight: 800; font-size: 1.1rem; color: var(--text-primary); }
.logo-text span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Mobile Menu ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  bottom: -100px; right: -50px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: var(--green);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9,179,245,0.1);
  border: 1px solid rgba(9,179,245,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title { margin-bottom: 20px; }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ── Hero Visual ── */
.hero-visual {
  position: relative;
}
.hero-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.mockup-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #f59e0b; }
.mockup-dot-green { background: var(--green); }
.mockup-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.mockup-body { padding: 24px; }

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 60px;
  margin-bottom: 20px;
}
.wave-bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 2px;
  animation: wave 1.5s ease-in-out infinite;
  opacity: 0.8;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; }
.wave-bar:nth-child(12) { animation-delay: 1.1s; }

.mockup-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.play-btn {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  width: 60%;
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
}
.time-label { font-size: 0.75rem; color: var(--text-muted); }

.lang-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.lang-badge-en { background: rgba(9,179,245,0.2); color: var(--purple-light); }
.lang-badge-km { background: rgba(38,184,237,0.2); color: var(--cyan-light); }
.lang-badge-th { background: rgba(16,185,129,0.2); color: var(--green-light); }
.lang-badge-zh { background: rgba(236,72,153,0.2); color: #f9a8d4; }

.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-card-1 {
  top: -20px; right: -20px;
  font-size: 0.8rem;
}
.floating-card-2 {
  bottom: -20px; left: -20px;
  animation-delay: 2s;
  font-size: 0.8rem;
}
.fc-label { color: var(--text-muted); font-size: 0.7rem; }
.fc-value { color: var(--green-light); font-weight: 700; font-size: 1.1rem; }

/* ── Features ── */
.features { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--cyan-light);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 12px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.icon-purple { background: rgba(9,179,245,0.15); }
.icon-cyan { background: rgba(38,184,237,0.15); }
.icon-green { background: rgba(16,185,129,0.15); }
.icon-pink { background: rgba(236,72,153,0.15); }

.feature-title { font-size: 1.1rem; margin-bottom: 10px; }
.feature-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.pricing-card.popular {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(9,179,245,0.08) 0%, rgba(38,184,237,0.08) 100%);
  transform: none;
}
.pricing-card.popular:hover { transform: translateY(-4px); }

.popular-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-plan { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-currency { font-size: 1.2rem; font-weight: 700; color: var(--text-secondary); }
.pricing-amount { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.pricing-period { color: var(--text-muted); font-size: 0.85rem; }
.pricing-desc { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 24px; }

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.check-icon {
  width: 20px; height: 20px;
  background: rgba(16,185,129,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  color: var(--green-light);
}

/* ── How It Works ── */
.how-it-works { background: var(--bg-secondary); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 30px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
}
.step-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step-number {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(9,179,245,0.4);
}
.step-title { font-size: 1rem; margin-bottom: 8px; }
.step-desc { font-size: 0.88rem; color: var(--text-secondary); }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.stars { color: #f59e0b; margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--border-hover); }
.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-icon {
  width: 28px; height: 28px;
  background: var(--gradient-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--purple-light);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  background: var(--bg-card);
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, rgba(9,179,245,0.1) 0%, rgba(38,184,237,0.1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--text-secondary); margin-bottom: 36px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.footer-heading { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-card-hover); }

/* ── Forms / Auth ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 24px;
  position: relative;
}
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.88rem; }
.auth-header { margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--font);
}
.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(9,179,245,0.15);
}
.form-input::placeholder { color: var(--text-muted); }

.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); cursor: pointer; }
.form-link { font-size: 0.88rem; color: var(--purple-light); text-decoration: none; }
.form-link:hover { text-decoration: underline; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 0.8rem; color: var(--text-muted); }

.auth-footer { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--text-muted); }
.auth-footer a { color: var(--purple-light); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Dashboard ── */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.sidebar-nav { flex: 1; padding: 0 12px; }
.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
  margin-top: 20px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-link.active { background: var(--gradient-soft); color: var(--purple-light); border: 1px solid rgba(9,179,245,0.2); }
.sidebar-link .link-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.user-name { font-size: 0.88rem; font-weight: 600; }
.user-email { font-size: 0.75rem; color: var(--text-muted); }

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  background: var(--bg-primary);
}

.page-header { margin-bottom: 32px; }
.page-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-card-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.stat-card-value { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.stat-card-change { font-size: 0.78rem; }
.change-up { color: var(--green-light); }
.change-down { color: #f87171; }

/* ── License Card ── */
.license-card {
  background: linear-gradient(135deg, rgba(9,179,245,0.1) 0%, rgba(38,184,237,0.1) 100%);
  border: 1px solid rgba(9,179,245,0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}
.license-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.license-title { font-size: 1rem; font-weight: 700; }
.license-badge {
  background: rgba(16,185,129,0.15);
  color: var(--green-light);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.license-key-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  word-break: break-all;
}
.copy-btn {
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: var(--transition);
  white-space: nowrap;
  margin-left: 12px;
}
.copy-btn:hover { border-color: var(--purple); color: var(--text-primary); }
.license-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.license-meta-item { font-size: 0.85rem; }
.license-meta-label { color: var(--text-muted); }
.license-meta-value { color: var(--text-primary); font-weight: 600; }

/* ── Table ── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-title { font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 24px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-active { background: rgba(16,185,129,0.15); color: var(--green-light); }
.status-pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-expired { background: rgba(239,68,68,0.15); color: #f87171; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Payment Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow), var(--shadow-glow);
  transform: scale(0.95);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-hover); }
.modal-body { padding: 28px; }

.order-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.order-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.order-row:last-child { margin-bottom: 0; border-top: 1px solid var(--border); padding-top: 8px; font-weight: 700; }
.order-label { color: var(--text-secondary); }
.order-total { color: var(--cyan-light); font-size: 1.1rem; }

.payment-methods { margin-bottom: 24px; }
.payment-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }
.payment-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-tab {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.payment-tab.active {
  border-color: var(--purple);
  background: var(--gradient-soft);
  color: var(--text-primary);
}
.payment-tab:hover { border-color: var(--border-hover); }

.payment-content { display: none; }
.payment-content.active { display: block; }

.qr-display {
  text-align: center;
  padding: 20px;
}
.qr-box {
  width: 200px; height: 200px;
  background: #fff;
  border-radius: var(--radius);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.qr-instruction { font-size: 0.85rem; color: var(--text-muted); }

.paypal-info { text-align: center; padding: 16px; }
.paypal-email {
  font-weight: 700;
  color: var(--cyan-light);
  font-size: 1rem;
  margin: 8px 0;
}
.paypal-note { font-size: 0.82rem; color: var(--text-muted); }

.input-row { display: flex; gap: 12px; }
.input-row .form-group { flex: 1; }

.modal-footer { padding: 0 28px 28px; }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  min-width: 280px;
}
.toast-success { border-color: rgba(16,185,129,0.4); }
.toast-error { border-color: rgba(239,68,68,0.4); }
.toast-icon { font-size: 1.1rem; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: block; width: 100%; max-width: 560px; margin: 20px auto 24px; padding: 0 8px; min-width: 0; }
  .hero-visual .floating-card { padding: 8px 10px; }
  .hero-visual .floating-card-1 { right: 8px !important; }
  .hero-visual .floating-card-2 { left: 8px !important; }
  .hero-visual .fc-label { font-size: .65rem; }
  .hero-visual .fc-value { font-size: 1rem; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .features-grid, .pricing-grid, .testimonials-grid, .steps-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .modal { max-height: 90vh; overflow-y: auto; }
  .auth-card { padding: 28px 20px; }
}

/* Keyboard focus follows the desktop studio accent. */
:focus-visible { outline: 2px solid #5bdbef; outline-offset: 3px; }
::selection { background: #168fc9; color: #ffffff; }

/* Keep plan details, feature rows and actions aligned for comparison. */
.pricing-desc { min-height: 3.2em; }
.pricing-features { flex: 1; }
.pricing-features li { min-height: 40px; }
.pricing-card > .btn { margin-top: auto; justify-content: center; }
.cross-icon { width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:12px; font-weight:700; background:rgba(248,113,113,.14); color:#f87171; }
.pricing-features .feature-unavailable { color:var(--text-muted); }
