/* ==============================================================================
   FryVideo AI - Modern Dark Glassmorphic Design System
   Target: tts.fryhost.com / cPanel Cloud Suite
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* Color Palette */
  --bg-dark: #0a0c14;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(26, 32, 53, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(139, 92, 246, 0.35);

  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  /* Sleek modern indigo-to-violet gradient without any red */
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #7c3aed 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #a78bfa;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(139, 92, 246, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
    var(--bg-dark);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 12, 20, 0.75);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

/* Crisp rendering and high-contrast visibility on dark background */
.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  /* Multi-layer drop shadow ensures both white text & dark blue F icon pop against dark themes */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
  transition: var(--transition);
}

.brand-logo-img.is-failed,
.footer-logo-img.is-failed {
  display: none !important;
}

.brand-logo-fallback {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}

.brand-logo-img.is-failed + .brand-logo-fallback,
.footer-logo-img.is-failed + .brand-logo-fallback {
  display: inline-flex !important;
}

.brand-favi-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-ai-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.15rem 0.42rem;
  border-radius: var(--radius-sm);
  margin-left: 0.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  display: inline-block;
  vertical-align: middle;
}

.brand-logo:hover .brand-logo-img,
.brand-logo-img:hover {
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.45)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  transform: scale(1.02);
}

.brand-logo:hover .brand-logo-fallback {
  opacity: 0.95;
}

.brand-favi-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: block;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.45);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons with Base Color & White Border */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  color: #fff;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #ffffff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-glow {
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); 
    border-color: rgba(255, 255, 255, 0.5);
  }
  50% { 
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.65); 
    border-color: #ffffff;
  }
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(139, 92, 246, 0.15);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* User Credit Pill */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.credit-pill span.num {
  color: #ffffff;
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(15, 20, 35, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  background: rgba(20, 26, 45, 0.85);
}

.form-control::placeholder {
  color: var(--text-dim);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

select.form-control option {
  background: #0f1423;
  color: #fff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Aspect Ratio Selector Cards */
.aspect-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.aspect-option {
  position: relative;
}

.aspect-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aspect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.aspect-box {
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.aspect-box.ratio-9-16 { width: 22px; height: 38px; }
.aspect-box.ratio-16-9 { width: 38px; height: 22px; }
.aspect-box.ratio-1-1  { width: 28px; height: 28px; }

.aspect-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.aspect-option input[type="radio"]:checked + .aspect-card {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.aspect-option input[type="radio"]:checked + .aspect-card .aspect-box {
  border-color: #ffffff;
}

/* Flash Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-error {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.alert-info {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #38bdf8;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Video Grid / Card */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-preview-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090b12;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  gap: 0.5rem;
  font-size: 0.85rem;
}

.audio-preview-thumb {
  position: relative;
  width: 100%;
  background: #090b12;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.audio-preview-thumb audio {
  width: 100%;
  max-width: 480px;
  filter: invert(0.9) hue-rotate(180deg);
}

/* Status Indicators */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-pill.queued { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-pill.processing { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.status-pill.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-pill.failed { background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot.pulse {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
  transform: translateY(-8px);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.pricing-price span.period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #34d399;
  flex-shrink: 0;
}

/* ==============================================================================
   Master Footer Design System (Top Left Logo & Description, 3 Columns Menu Right)
   ============================================================================== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  background: rgba(8, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-dim);
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.1rem;
  transition: var(--transition);
}

.footer-logo-link:hover {
  transform: translateY(-1px);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  /* Enhanced contrast filter for dark backgrounds */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* 3 Columns Menu Items on Right */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  text-align: left;
  cursor: default;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0;
}

.footer-col-chevron {
  display: none;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-link:hover {
  color: #ffffff;
}

/* Responsive Collapse for Mobile */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand-col {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .footer-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  
  .footer-col-header {
    cursor: pointer;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    user-select: none;
  }
  
  .footer-col-chevron {
    display: block;
  }
  
  .footer-col.active .footer-col-chevron {
    transform: rotate(180deg);
    color: #ffffff;
  }
  
  .footer-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.25rem;
  }
  
  .footer-col.active .footer-menu {
    max-height: 320px;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-content {
  background: #111526;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
   Sidebar Layout, Round User Avatar & My Voices Dropdown
   ============================================================================== */

/* App Shell & Sidebar Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(13, 16, 28, 0.95);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.sidebar-close-btn:hover {
  color: #fff;
}

.sidebar-nav {
  padding: 0.75rem 0.85rem 0.25rem;
}

.sidebar-section-label {
  display: none;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.sidebar-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.sidebar-balance-card {
  margin: 0.5rem 0.85rem 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(18, 22, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.sidebar-user-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 12, 20, 0.5);
  position: relative;
}

.app-main-content {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-topbar {
  position: relative;
  z-index: 90;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 12, 20, 0.75);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.4rem;
  cursor: pointer;
}

.topbar-breadcrumb {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 990;
  backdrop-filter: blur(4px);
}

/* User Avatar (Round) & Dropdown Menu */
.user-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.user-avatar-round-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.user-avatar-round-btn:hover .user-avatar-round,
.user-profile-btn:hover .user-avatar-round {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.7);
}

.user-avatar-round {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  user-select: none;
}

.avatar-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0a0c14;
}

.user-profile-btn {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  color: inherit;
  text-align: left;
  transition: var(--transition);
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.user-profile-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  flex: 1;
}

.user-profile-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-email {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-chevron {
  color: var(--text-dim);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: #121626;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(139, 92, 246, 0.25);
  padding: 0.5rem 0;
  z-index: 99999;
  display: none !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.user-dropdown-menu.right-aligned,
.navbar .user-dropdown-menu,
.app-topbar .user-dropdown-menu {
  left: auto;
  right: 0;
  top: calc(100% + 10px);
  bottom: auto;
}

.sidebar-user-footer .user-dropdown-menu {
  left: 0;
  right: auto;
  top: auto;
  bottom: calc(100% + 8px);
}

.user-dropdown-menu.active {
  display: block !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-user-header {
  padding: 0.75rem 1rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0.35rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
  padding-left: 1.25rem;
}

.dropdown-item.text-danger {
  color: #ffffff;
}

.dropdown-item.text-danger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* My Voices Dropdown Component */
.my-voices-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.my-voices-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 270px;
  background: #121626;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 92, 246, 0.25);
  z-index: 999;
  display: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.my-voices-menu.active {
  display: block !important;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.my-voices-item {
  transition: background 0.15s ease, transform 0.1s ease;
}

.my-voices-item:hover {
  background: rgba(139, 92, 246, 0.2) !important;
}

.my-voices-item:active {
  transform: scale(0.99);
}

/* Responsive */
@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    background: rgba(13, 16, 28, 0.98);
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.active {
    display: block;
  }
  .sidebar-close-btn {
    display: block;
  }
  .app-main-content {
    margin-left: 0;
    width: 100%;
  }
  .topbar-menu-toggle {
    display: block;
  }
  .app-topbar {
    padding: 0.75rem 1rem;
  }
}

/* ==============================================================================
   Homepage Pipeline Showcase (From Raw Script to Finished Masterpiece)
   ============================================================================== */
.pipeline-showcase-card {
  padding: 2rem;
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pipeline-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.pipeline-showcase-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pipeline-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.pipeline-showcase-preview {
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pipeline-showcase-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.pipeline-preview-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.35rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

@media (max-width: 960px) {
  .pipeline-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .pipeline-showcase-card {
    padding: 1.1rem;
    border-radius: var(--radius-md);
  }
  .pipeline-showcase-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }
  .pipeline-showcase-title {
    font-size: 1.35rem;
  }
  .pipeline-showcase-preview {
    padding: 1rem;
  }
}

/* ==============================================================================
   Navbar Hamburger & Mobile Navigation Drawer
   ============================================================================== */
.navbar-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  color: #fff;
}

.navbar-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.navbar-hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Panel */
.navbar-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: rgba(11, 14, 25, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-glass);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.navbar-mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.mobile-drawer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mobile-drawer-logo .brand-logo-img {
  height: 26px;
  width: auto;
  max-width: 140px;
  display: block;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
  border-left: 3px solid var(--primary);
}

.mobile-drawer-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 1.5rem 0;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  margin-bottom: 0.5rem;
}

.navbar-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar-mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================================================================
   Global Responsive Breakpoints
   ============================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .desktop-nav-actions {
    display: none !important;
  }
  .navbar-hamburger-btn {
    display: flex !important;
  }
  .brand-logo-img {
    height: 25px;
    max-width: 140px;
  }
  .brand-logo-fallback {
    font-size: 1.05rem;
  }
  .pricing-card.featured {
    transform: none;
  }
}

/* Floating WhatsApp Support Widget (Clean Icon Only) */
.whatsapp-support-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99999;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.whatsapp-support-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.whatsapp-support-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@media (max-width: 640px) {
  .whatsapp-support-widget {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-support-btn {
    width: 48px;
    height: 48px;
  }
  .whatsapp-support-btn svg {
    width: 28px;
    height: 28px;
  }
}

