:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --error: #ef4444;
  --success: #22c55e;
  --gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-dynamic: linear-gradient(135deg, #f472b6 0%, #a855f7 25%, #6366f1 50%, #3b82f6 75%, #06b6d4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.5) 50%, rgba(6, 182, 212, 0.5) 100%);
  --gradient-3d: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-3d: 0 10px 40px -10px rgba(99, 102, 241, 0.4), 0 4px 20px -5px rgba(168, 85, 247, 0.3);
  --shadow-3d-hover: 0 20px 60px -15px rgba(99, 102, 241, 0.5), 0 10px 30px -10px rgba(168, 85, 247, 0.4);
}

.light-mode {
  --background: #ffffff;
  --background-light: #f8fafc;
  --surface: #f1f5f9;
  --surface-light: #e2e8f0;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(0, 0, 0, 0.1);
  --header-bg: rgba(255, 255, 255, 0.9);
}

.dark-mode {
  --background: #0f0f23;
  --background-light: #1a1a2e;
  --surface: #16162a;
  --surface-light: #252542;
  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(15, 15, 35, 0.9);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.header-left,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.header-center {
  flex: 0 0 auto;
}

.language-dropdown {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-btn:hover {
  border-color: var(--primary);
}

.globe-icon,
.dropdown-arrow {
  width: 16px;
  height: 16px;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.language-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 140px;
  max-height: 350px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.language-dropdown.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-option:hover {
  background: var(--surface-light);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  border-radius: 8px;
  filter: contrast(1.1) saturate(1.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--surface-light);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: all 0.3s ease;
}

.light-mode .sun-icon {
  display: block;
}

.light-mode .moon-icon {
  display: none;
}

.dark-mode .sun-icon {
  display: none;
}

.dark-mode .moon-icon {
  display: block;
}

.platform-nav {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.platform-nav::-webkit-scrollbar {
  display: none;
}

.platform-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  min-width: max-content;
  padding: 0 1rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.platform-btn svg {
  width: 18px;
  height: 18px;
}

.platform-btn:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.platform-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.platform-btn .coming-soon {
  background: var(--accent);
  color: #000;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-btn.active .coming-soon {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

main {
  flex: 1;
  margin-top: 120px;
}

.hero {
  position: relative;
  padding: 3rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

.light-mode .hero {
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
              radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.dark-mode .hero {
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
              radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.stars-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  perspective: 1000px;
  z-index: 10;
}

.badge-3d {
  transform-style: preserve-3d;
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
  50% { transform: translateY(-10px) rotateX(-5deg) rotateY(5deg); }
}

.badge-inner {
  background: var(--gradient-dynamic);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4),
              0 8px 16px rgba(168, 85, 247, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset,
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateZ(20px);
  position: relative;
  overflow: hidden;
}

.badge-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.stars-container {
  display: flex;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.stars-container svg {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.star-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

.star-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content {
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border-radius: 25px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.feature-tag svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.download-box {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.url-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.url-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: 400;
}

.url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.clear-btn {
  position: absolute;
  right: 1rem;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  padding: 0;
}

.clear-btn:hover {
  color: var(--text);
}

.clear-btn svg {
  width: 16px;
  height: 16px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 14px;
  background: var(--gradient-dynamic);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4),
              0 4px 12px rgba(168, 85, 247, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5),
              0 6px 20px rgba(168, 85, 247, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.download-btn:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4),
              0 2px 8px rgba(168, 85, 247, 0.3);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.error-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: 8px;
  color: var(--error);
  font-size: 0.9rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-overlay.show {
  display: flex;
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  position: absolute;
}

.loader-ring:nth-child(2) {
  width: 50px;
  height: 50px;
  border-top-color: var(--primary-light);
  animation-delay: 0.15s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  border-top-color: #a855f7;
  animation-delay: 0.3s;
}

.loader-text {
  position: absolute;
  bottom: -3rem;
  white-space: nowrap;
  color: white;
  font-size: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.result-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--background);
  overflow: hidden;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-preview:hover .video-overlay {
  opacity: 1;
}

.play-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.play-icon svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-info {
  padding: 1.5rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-username {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.video-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.download-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.option-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-btn svg {
  width: 20px;
  height: 20px;
}

.option-btn.primary {
  background: var(--gradient);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.option-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.option-btn.secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.option-btn.secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.download-success-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.download-success-toast svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.download-success-toast span {
  font-weight: 600;
  font-size: 1rem;
}

.new-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.new-download-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.new-download-btn svg {
  width: 20px;
  height: 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.how-it-works {
  padding: 5rem 2rem;
  background: var(--surface);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-glow);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25),
              0 4px 15px rgba(168, 85, 247, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.step-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.step:hover .step-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.35),
              0 8px 20px rgba(168, 85, 247, 0.25);
}

.step-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary-light);
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.step-arrow svg {
  width: 32px;
  height: 32px;
}

.features {
  padding: 5rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-dynamic);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: var(--gradient-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq {
  padding: 5rem 2rem;
  background: var(--surface);
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color 0.3s ease;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.reviews {
  padding: 5rem 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-stars svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.footer {
  background: #1a1a3e;
  padding: 0;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
}

.footer-language {
  margin-bottom: 1.5rem;
}

.footer-lang-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: #252550;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.footer-lang-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-links-primary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.footer-links-primary a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links-primary a:hover {
  color: #a5b4fc;
}

.footer-links-secondary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links-secondary a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom {
  background: #0f0f2d;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.scroll-top-btn {
  position: absolute;
  right: 2rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: #6366f1;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.scroll-top-btn:hover {
  background: #4f46e5;
}

.scroll-top-btn svg {
  width: 18px;
  height: 18px;
}

.ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.ad-container {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.ad-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.ad-timer {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ad-timer span:nth-child(2) {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.ad-content {
  padding: 2rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.ad-placeholder p:first-child {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ad-note {
  font-size: 0.875rem;
}

.skip-ad-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skip-ad-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.skip-ad-btn:not(:disabled):hover {
  opacity: 0.9;
}

.skip-ad-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .platform-nav {
    top: 57px;
  }
  
  main {
    margin-top: 110px;
  }
  
  .stars-badge {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .download-box {
    flex-direction: column;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
  }
  
  .download-features {
    gap: 0.5rem;
  }
  
  .feature-tag {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .step-arrow {
    display: none;
  }
  
  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .step {
    max-width: 100%;
  }
  
  .download-options {
    flex-direction: column;
  }
  
  .option-btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem 3rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .result-section {
    padding: 1rem;
  }
  
  .video-info {
    padding: 1rem;
  }
  
  .video-stats {
    gap: 1rem;
  }
  
  .badge-inner {
    padding: 0.75rem 1rem;
  }
  
  .star-count {
    font-size: 1rem;
  }
}

/* AdSense Ad Container Styles */
.ad-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  text-align: center;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-container ins.adsbygoogle {
  display: block;
  width: 100%;
}

.ad-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.ad-content {
  margin: 20px auto;
  padding: 15px;
  background: var(--surface);
  border-radius: 12px;
}

.ad-footer {
  margin-top: 20px;
  padding: 15px;
  background: var(--surface);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .ad-container {
    padding: 8px 12px;
    min-height: 60px;
  }
}
