/* ============================================
   GripVid â€” Light Premium Design System
   Enterprise-Grade Clean UI
   ============================================ */

/* â”€â”€ CSS Variables â”€â”€ */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F8FA;
  --color-bg-section: #F1F1F4;
  --color-surface: rgba(0, 0, 0, 0.03);
  --color-surface-solid: #F5F5F7;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-light: rgba(0, 0, 0, 0.06);

  --color-primary: #EA580C;
  --color-primary-hover: #F97316;
  --color-primary-light: rgba(249, 115, 22, 0.08);
  --color-primary-dark: #C2410C;

  --color-text: #1A1A2E;
  --color-text-secondary: #52525B;
  --color-text-muted: #A1A1AA;
  --color-text-inverse: #ffffff;

  --color-error: #DC2626;
  --color-error-bg: rgba(239, 68, 68, 0.06);
  --color-error-border: rgba(239, 68, 68, 0.2);

  --color-warning: #D97706;
  --color-info: #2563EB;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-full: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-input: 0 0 0 3px rgba(249, 115, 22, 0.15);
  --shadow-glow: 0 4px 24px rgba(234, 88, 12, 0.2);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 100%;
}

/* â”€â”€ Reset & Base â”€â”€ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.hidden {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════
   YTDown-Style Navbar
   ════════════════════════════════════════════════════════════ */
.ytd-navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.ytd-navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.ytd-navbar-inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.ytd-nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ytd-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.ytd-nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F97316;
  border-radius: 6px;
}

.ytd-nav-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: -0.3px;
}

.ytd-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ytd-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  transition: color 0.15s;
}

.ytd-nav-link:hover {
  color: #F97316;
}

/* More Dropdown — click-based */
.ytd-nav-dropdown {
  position: relative;
}

.ytd-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 200;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.ytd-nav-dropdown.open .ytd-nav-dropdown-menu {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
  padding: 6px 0;
}

.ytd-more-arrow {
  transition: transform 0.25s ease;
}

.ytd-nav-dropdown.open .ytd-more-arrow {
  transform: rotate(180deg);
}

.ytd-dropdown-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.ytd-dropdown-link:hover {
  background: #FFF7ED;
  color: #F97316;
}

/* Nav Right Icon Buttons */
.ytd-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ytd-nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}

.ytd-nav-icon-btn:hover {
  border-color: #F97316;
  color: #F97316;
  background: #FFF7ED;
}

/* Keep old .navbar for backwards compat (hidden) */
.navbar {
  display: none;
}

/* —— Hero Section —— */
.hero {
  background: #fff;
  padding: 48px 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #1A1A2E;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: #999;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   YTDown-Style Search Box
   ════════════════════════════════════════════════════════════ */
.ytd-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto 12px;
  border: 1px solid #d1d5db;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ytd-search-box:focus-within {
  border-color: #F97316;
  box-shadow: 0 0 0 2px rgba(249,115,22,0.1);
}

.ytd-input-area {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.ytd-url-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: #1A1A2E;
  padding: 14px 0;
  background: transparent;
  min-width: 0;
}

.ytd-url-input::placeholder {
  color: #b0b0b0;
}

.ytd-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #F97316;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.ytd-paste-btn:hover {
  background: #EA580C;
}

.ytd-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  color: #666;
  border: none;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ytd-clear-btn:hover {
  background: #e2e8f0;
  color: #333;
}

.ytd-submit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: none;
  border: none;
  border-left: 1px solid #d1d5db;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  color: #F97316;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.ytd-submit-btn:hover {
  background: #FFF7ED;
}

.ytd-submit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #F97316;
  color: #fff;
  border-radius: 4px;
}

.ytd-submit-icon svg {
  stroke: #fff;
  width: 14px;
  height: 14px;
}

.ytd-submit-btn:disabled {
  opacity: 0.85;
  cursor: wait;
}

.ytd-submit-spinner .spin-icon {
  animation: spinRotate 1s linear infinite;
}

/* ── Copyright Notice ── */
.ytd-copyright-notice {
  margin: 10px auto 0;
  font-size: 0.78rem;
  color: #999;
  text-align: center;
}

/* â”€â”€ Detect Badge â”€â”€ */
.detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.detect-icon {
  display: flex;
  align-items: center;
}

.detect-icon svg {
  width: 16px;
  height: 16px;
}

/* â”€â”€ Terms Text â”€â”€ */
.terms-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.terms-text a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* Norton Safe Web Trust Badge */
.norton-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 18px;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

.norton-text {
  color: rgba(0,0,0,0.35);
  font-weight: 500;
}

.norton-logo {
  vertical-align: middle;
  margin: 0 2px;
  filter: opacity(0.5);
}

.norton-label {
  color: rgba(0,0,0,0.5);
  font-weight: 700;
  font-size: 0.9rem;
}

/* YTDown-style copyright notice */
.ytd-copyright-notice {
  margin: 10px auto 0;
  font-size: 0.78rem;
  color: #999;
  text-align: center;
}

.norton-label sup {
  font-size: 0.55em;
  vertical-align: super;
}

.norton-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.norton-link:hover {
  opacity: 0.7;
}

/* â”€â”€ Loading â”€â”€ */
.loading-section {
  padding: 40px 0;
}

.loading-card {
  text-align: center;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.loading-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* â”€â”€ Error â”€â”€ */
.error-section {
  padding: 40px 0;
}

.error-card {
  text-align: center;
  padding: 40px;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-lg);
}

.error-icon {
  margin-bottom: 12px;
}

.error-text {
  font-weight: 500;
  color: var(--color-error);
  margin-bottom: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-retry {
  padding: 10px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-retry:hover {
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

/* â”€â”€ Result Card â”€â”€ */
.result-section {
  padding: 40px 0;
}

.result-card {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.result-preview {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.result-thumbnail-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-section);
}

.result-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.result-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-author {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.result-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-bg-section);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  width: fit-content;
}

.result-platform-icon svg {
  width: 14px;
  height: 14px;
}

/* â”€â”€ Result Actions â”€â”€ */
.result-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg-alt);
}

.quality-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quality-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.quality-select {
  padding: 10px 36px 10px 14px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  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='%235a5a6e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}

.quality-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-download-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: auto;
  letter-spacing: 0.2px;
}

.btn-download-file:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-download-file:active {
  background: var(--color-primary-dark);
  transform: translateY(0);
}

.btn-download-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-download-audio:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.btn-download-audio:active {
  transform: translateY(0);
}

.btn-download-audio:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* â”€â”€ Play Overlay on Thumbnail â”€â”€ */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.result-thumbnail-wrapper:hover .play-overlay {
  opacity: 1;
}

/* â”€â”€ Video Player â”€â”€ */
.video-player-container {
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: #000;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  max-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  width: 100%;
  max-height: 460px;
  display: block;
  background: #000;
  outline: none;
}

.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 3;
}

.video-loading .spinner {
  border-color: rgba(0,0,0,0.15);
  border-top-color: #fff;
  margin-bottom: 10px;
}

.video-loading p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* â”€â”€ Play Button in Actions â”€â”€ */
.btn-play-video {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-play-video:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-play-video svg {
  fill: currentColor;
  stroke: none;
}

/* â”€â”€ Platforms Grid â”€â”€ */
.platforms-section {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 6px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.platform-card:hover {
  border-color: rgba(249,115,22,0.4);
  background: rgba(234,88,12,0.05);
  box-shadow: 0 4px 20px rgba(234,88,12,0.08);
  transform: translateY(-2px);
}

.platform-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.platform-card-icon svg {
  width: 24px;
  height: 24px;
}

.platform-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* â”€â”€ How It Works â”€â”€ */
.howto-section {
  padding: 64px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 28px 18px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(234,88,12,0.06);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: var(--color-text-inverse);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.step-icon {
  margin-bottom: 12px;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* â”€â”€ FAQ â”€â”€ */
.faq-section {
  padding: 60px 0;
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0,0,0,0.02);
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0,0,0,0.05);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* â”€â”€ Footer (Glassmorphic) â”€â”€ */
.footer {
  padding: 0;
  margin-top: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F8FA 40%, #F1F1F4 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #71717A;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.2), transparent);
}

.footer > .container {
  max-width: 100%;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 50%, #C2410C 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: -0.3px;
}

.footer-tagline {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #71717A;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #A1A1AA;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-social-link:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #F97316;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.85rem;
  color: #71717A;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
  line-height: 1.4;
}

.footer-links li a:hover {
  color: #1A1A2E;
  transform: translateX(3px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 20%, rgba(0,0,0,0.08) 80%, transparent 100%);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 28px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #A1A1AA;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: #A1A1AA;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #1A1A2E;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #A1A1AA;
}

.footer-status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
}

.footer-status-dot::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.footer-status-dot::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: footer-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes footer-ping {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}


/* Old responsive rules removed - see end of file */


/* â”€â”€ Breadcrumb â”€â”€ */
.breadcrumb-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  padding: 10px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.85rem;
}

.breadcrumb-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-text-muted);
  margin: 0 4px;
  font-weight: 600;
}

.breadcrumb-current {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* â”€â”€ Sub-Tool Pills â”€â”€ */
.subtools-section {
  padding: 16px 0;
  background: var(--color-bg);
}

.subtools-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subtool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 24px;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.subtool-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.subtool-pill.active {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.subtool-pill.active .subtool-icon {
  color: #fff !important;
}

.subtool-icon {
  display: flex;
  align-items: center;
}

.subtool-icon svg {
  width: 16px;
  height: 16px;
}

/* â”€â”€ Platform Description Section â”€â”€ */
.platform-desc-section {
  padding: 48px 0;
  background: var(--color-bg);
}

.platform-desc-content {
  max-width: 800px;
  margin: 0 auto;
}

.platform-desc-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: center;
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-item {
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
}

.feature-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* â”€â”€ Footer Grid (Multi-Column) â”€â”€ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 24px 32px;
  padding: 40px 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-brand {
  gap: 6px;
}

.footer-brand-name-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1A1A2E;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #78716C;
}

.footer-col-link {
  font-size: 0.85rem;
  color: #71717A;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.6;
}

.footer-col-link:hover {
  color: #F97316;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* â”€â”€ Static Page â”€â”€ */
.static-page-section {
  padding: 48px 0 64px;
  background: var(--color-bg);
}

.static-page-content {
  max-width: 800px;
  margin: 0 auto;
}

.static-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.static-page-updated {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.static-page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 10px;
}

.static-page-content p {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.static-page-content ol,
.static-page-content ul {
  padding-left: 24px;
  margin: 12px 0 16px;
}

.static-page-content li {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.static-page-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* â”€â”€ Guide Section â”€â”€ */
.guide-section,
.mobile-guide-section {
  padding: 48px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.mobile-guide-section {
  background: var(--color-bg-alt);
}

.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: center;
}

.guide-text p {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.guide-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.guide-image {
  margin: 24px 0;
  text-align: center;
}

.guide-image img {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.guide-image-caption {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.guide-steps-list {
  padding-left: 24px;
  margin: 16px 0;
}

.guide-steps-list li {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
}

.guide-steps-list li strong {
  color: var(--color-text);
}

/* â”€â”€ Legal Section â”€â”€ */
.legal-section {
  padding: 40px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NEW HOMEPAGE SECTIONS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Trust Bar â”€â”€ */
.trust-section {
  padding: 20px 0;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.trust-item strong {
  color: var(--color-text);
}

/* â”€â”€ Feature Cards â”€â”€ */
.features-section {
  padding: 72px 0;
  background: var(--color-bg);
}

.features-section .container {
  max-width: 1000px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.feature-card {
  padding: 28px 24px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(249,115,22,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.1);
  background: rgba(234,88,12,0.04);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234,88,12,0.08);
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* â”€â”€ Stats Counter â”€â”€ */
.stats-section {
  padding: 48px 0;
  background: linear-gradient(135deg, #FAFAFA 0%, #F1F1F4 50%, #FAFAFA 100%);
  border-top: 1px solid rgba(234,88,12,0.08);
  border-bottom: 1px solid rgba(234,88,12,0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F97316, #FB923C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  color: #71717A;
  font-weight: 500;
}

/* â”€â”€ Testimonials â”€â”€ */
.testimonials-section {
  padding: 72px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.testimonials-section .container {
  max-width: 1000px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 28px 24px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-border-light);
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* â”€â”€ Comparison / Why Section â”€â”€ */
.why-section {
  padding: 72px 0;
  background: var(--color-bg);
}

.comparison-table-wrapper {
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: linear-gradient(135deg, #F1F1F4, #E4E4E7);
}

.comparison-table th {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1A1A2E;
  text-align: left;
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.comparison-table td.highlight {
  background: rgba(234,88,12,0.05);
  font-weight: 600;
  color: var(--color-primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: var(--color-bg-alt);
}

.comparison-table tbody tr:hover td.highlight {
  background: rgba(234,88,12,0.08);
}

/* â”€â”€ SEO Content â”€â”€ */
.seo-content-section {
  padding: 64px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
}

.seo-content {
  max-width: 800px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  text-align: center;
}

.seo-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 10px;
}

.seo-content p {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.seo-content strong {
  color: var(--color-text);
}

/* ── Enhanced Blog Hero ── */
.blog-hero-enhanced {
  padding: 56px 0 40px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 30%, #FFEDD5 60%, #FFF1F2 100%);
  text-align: center;
  border-bottom: 1px solid rgba(234,88,12,0.12);
  position: relative; overflow: hidden;
}
.blog-hero-enhanced::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-enhanced::after {
  content: ''; position: absolute; bottom: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(251,191,36,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; background: rgba(249,115,22,0.1);
  color: #EA580C; font-size: 0.78rem; font-weight: 600;
  border-radius: 20px; margin-bottom: 16px;
  border: 1px solid rgba(249,115,22,0.15);
}
.blog-hero-title-enhanced {
  font-size: 2.4rem; font-weight: 800; color: #1A1A2E;
  letter-spacing: -0.8px; line-height: 1.2;
  margin-bottom: 12px; position: relative;
}
.blog-hero-gradient {
  background: linear-gradient(135deg, #EA580C, #F97316, #FB923C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero-subtitle-enhanced {
  font-size: 1rem; color: #52525B; max-width: 560px;
  margin: 0 auto 28px; line-height: 1.6; position: relative;
}
.blog-search-form { max-width: 580px; margin: 0 auto; position: relative; }
.blog-search-wrapper {
  display: flex; align-items: center; background: #fff;
  border: 2px solid rgba(0,0,0,0.08); border-radius: 14px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-search-wrapper:focus-within {
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 4px 24px rgba(249,115,22,0.1), 0 1px 3px rgba(0,0,0,0.04);
}
.blog-search-icon { flex-shrink: 0; color: #A1A1AA; margin-right: 10px; }
.blog-search-input {
  flex: 1; border: none; outline: none;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  color: #1A1A2E; background: transparent; padding: 10px 0;
}
.blog-search-input::placeholder { color: #A1A1AA; }
.blog-search-clear {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: #71717A; text-decoration: none; margin-right: 6px;
  transition: all 0.2s ease;
}
.blog-search-clear:hover { background: rgba(0,0,0,0.06); color: #1A1A2E; }
.blog-search-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #fff; font-weight: 700; font-size: 0.88rem;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.25s ease; white-space: nowrap;
}
.blog-search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,115,22,0.3); }
.blog-filters-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.blog-filters-left {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.blog-filters-left::-webkit-scrollbar { display: none; }
.blog-category-pills { display: flex; gap: 8px; }
.blog-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; font-size: 0.82rem; font-weight: 600;
  color: #52525B; background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08); border-radius: 20px;
  text-decoration: none; white-space: nowrap; transition: all 0.25s ease;
}
.blog-pill:hover {
  color: #EA580C; background: rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.2); transform: translateY(-1px);
}
.blog-pill.active {
  color: #fff; background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border-color: transparent; box-shadow: 0 2px 12px rgba(249,115,22,0.25);
}
.blog-pill.active svg { stroke: #fff; }
.blog-filters-right { display: flex; align-items: center; }
.blog-results-count { font-size: 0.82rem; color: #71717A; }
.blog-results-count strong { color: #1A1A2E; }
.blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.blog-featured-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.35s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.blog-featured-item:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(234,88,12,0.1);
}
.blog-featured-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.blog-featured-item:hover .blog-featured-img-wrap img {
  transform: scale(1.06);
}
.blog-featured-badge-overlay {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(234,88,12,0.3);
}
.blog-featured-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-featured-title {
  font-size: 1.2rem; font-weight: 800; color: #1A1A2E;
  line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.2px;
}
.blog-featured-excerpt {
  font-size: 0.88rem; color: #52525B;
  line-height: 1.6; margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-read-pill {
  font-size: 0.72rem; color: #71717A;
  background: rgba(0,0,0,0.04); padding: 2px 8px; border-radius: 6px;
}
.blog-featured-read-more {
  display: inline-flex; align-items: center;
  color: #EA580C; font-size: 0.88rem; font-weight: 700;
  transition: gap 0.3s ease; gap: 4px;
}
.blog-featured-card:hover .blog-featured-read-more { gap: 8px; }
.blog-no-results { text-align: center; padding: 72px 20px; }
.blog-no-results h2 { font-size: 1.4rem; font-weight: 700; color: #1A1A2E; margin: 20px 0 10px; }
.blog-no-results p { font-size: 0.92rem; color: #71717A; max-width: 400px; margin: 0 auto 24px; line-height: 1.6; }

/* — Responsive for New Sections — */
@media (max-width: 768px) {
  .trust-bar {
    gap: 16px;
    justify-content: center;
  }
  .trust-item {
    font-size: 0.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BLOG STYLES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Blog Hero â”€â”€ */
.blog-hero {
  padding: 64px 0 40px;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(234,88,12,0.08) 0%, transparent 60%), var(--color-bg);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.blog-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.blog-hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* â”€â”€ Blog Grid â”€â”€ */
.blog-section {
  padding: 48px 0 72px;
  background: var(--color-bg);
}

.blog-section .container {
  max-width: 1200px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cards keep normal size even on incomplete last rows */

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(234,88,12,0.06);
  background: rgba(249,115,22,0.03);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-card-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(249,115,22,0.12);
  color: #FB923C;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-read {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.blog-card-arrow {
  font-size: 1.1rem;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* â”€â”€ Blog Post â”€â”€ */
.blog-post-section {
  padding: 48px 0 72px;
  background: var(--color-bg);
}

.blog-post-section .container {
  max-width: 780px;
}

.blog-back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.blog-back-link:hover {
  color: var(--color-primary);
}

.blog-post-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.blog-post-date,
.blog-post-readtime {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.blog-post-excerpt {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* â”€â”€ Blog Post Body â”€â”€ */
.blog-post-body {
  font-size: 0.96rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.blog-post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 36px 0 14px;
}

.blog-post-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 10px;
}

.blog-post-body p {
  margin-bottom: 16px;
}

.blog-post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-body a:hover {
  color: var(--color-primary-hover);
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.blog-post-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-post-body strong {
  color: var(--color-text);
}

.blog-post-body code {
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #FB923C;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* â”€â”€ Blog CTA â”€â”€ */
.blog-cta {
  margin: 48px 0;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(234,88,12,0.06) 0%, rgba(249,115,22,0.03) 100%);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 14px;
  text-align: center;
}

.blog-cta h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.blog-cta p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.blog-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(249,115,22,0.3);
  color: #fff;
}

/* â”€â”€ Related Posts â”€â”€ */
.blog-related {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.blog-related-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-related-card {
  padding: 20px 18px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-related-card:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-2px);
}

.blog-related-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin: 10px 0 8px;
}

/* â”€â”€ Blog Responsive â”€â”€ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero-title {
    font-size: 1.6rem;
  }
  .blog-post-title {
    font-size: 1.5rem;
  }
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ Blog Thumbnails â”€â”€ */
.blog-card-thumb {
  width: calc(100% + 48px);
  height: 0;
  padding-bottom: 52.5%;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin: -28px -24px 16px -24px;
}

.blog-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 36px;
  overflow: hidden;
}

.blog-post-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.blog-post-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  display: block;
}

.blog-related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* â”€â”€ Blog Pagination â”€â”€ */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
  color: var(--color-primary);
  border-color: rgba(249,115,22,0.3);
  background: rgba(234,88,12,0.05);
  transform: translateY(-1px);
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pagination-num:hover:not(.active) {
  color: var(--color-primary);
  border-color: rgba(249,115,22,0.3);
  background: rgba(234,88,12,0.05);
  transform: translateY(-1px);
}

.pagination-num.active {
  color: #fff;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}


/* ======================================================
   HAMBURGER MENU & MOBILE NAVIGATION
   ====================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(0,0,0,0.05);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-link:hover {
  background: rgba(234,88,12,0.05);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

/* ======================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ====================================================== */

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 40px 0 36px; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 24px; }

  .search-box { flex-direction: column; border-radius: 8px; }
  .btn-download { justify-content: center; border-radius: 0 0 8px 8px; padding: 14px; }

  .result-preview { flex-direction: column; }
  .result-thumbnail-wrapper { width: 100%; }
  .result-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-download-file { margin-left: 0; justify-content: center; }
  .quality-selector { justify-content: space-between; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 1.8rem; }

  .comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 540px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 36px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-tagline { max-width: 100%; }

  .blog-hero { padding: 40px 0 24px; }
  .blog-hero-title { font-size: 1.6rem; }
  .blog-hero-enhanced { padding: 36px 0 28px; }
  .blog-hero-title-enhanced { font-size: 1.6rem; }
  .blog-hero-subtitle-enhanced { font-size: 0.88rem; margin-bottom: 20px; }
  .blog-search-wrapper { padding: 3px 3px 3px 12px; }
  .blog-search-input { font-size: 0.88rem; }
  .blog-search-btn { padding: 9px 16px; font-size: 0.82rem; }
  .blog-featured-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-featured-content { padding: 20px; }
  .blog-featured-title { font-size: 1.1rem; }
  .blog-filters-bar { gap: 12px; }
  .blog-category-pills { gap: 6px; }
  .blog-pill { padding: 6px 12px; font-size: 0.78rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }

  .blog-post-header { padding: 32px 0 20px; }
  .blog-post-title { font-size: 1.5rem; }
  .blog-post-body { padding: 24px 0 40px; }
  .blog-post-body h2 { font-size: 1.3rem; }
  .blog-post-body h3 { font-size: 1.1rem; }

  .blog-pagination { flex-wrap: wrap; gap: 8px; }
  .pagination-btn span { display: none; }
  .pagination-btn { padding: 10px 14px; }
  .pagination-num { width: 36px; height: 36px; font-size: 0.82rem; }

  .breadcrumb-bar { padding: 8px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-text { font-size: 1rem; }

  .hero { padding: 32px 0 28px; }
  .hero-title { font-size: 1.3rem; }
  .hero-subtitle { font-size: 0.85rem; }

  .platforms-section { padding: 40px 0; }
  .section-title { font-size: 1.2rem; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .platform-card { padding: 10px 12px; }
  .platform-card-name { font-size: 0.78rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.72rem; }

  .faq-question { padding: 14px 16px; font-size: 0.85rem; }
  .faq-answer p { padding: 0 16px 14px; font-size: 0.82rem; }

  .subtools-grid { flex-wrap: wrap; gap: 8px; }
  .subtool-card { flex: 1 1 calc(50% - 8px); }

  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-left { flex-direction: column; gap: 12px; }

  .blog-hero { padding: 28px 0 20px; }
  .blog-hero-title { font-size: 1.3rem; }
  .blog-hero-desc { font-size: 0.85rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card-thumbnail { height: 180px; }

  .blog-post-header { padding: 24px 0 16px; }
  .blog-post-title { font-size: 1.25rem; }
  .blog-post-body { padding: 20px 0 32px; }
  .blog-post-body table { font-size: 0.78rem; }
  .blog-post-body table th, .blog-post-body table td { padding: 8px 10px; }

  .norton-badge { font-size: 0.75rem; }
  .btn-download-audio { font-size: 0.82rem; padding: 10px 14px; }
  .btn-play-video { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.15rem; }
  .btn-download { font-size: 0.85rem; padding: 12px; }
  .platforms-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .platform-card { padding: 8px 10px; }
  .platform-card-icon svg { width: 18px; height: 18px; }
  .platform-card-name { font-size: 0.72rem; }
  .footer-top { padding: 24px 0 20px; }
  .footer-col-title { font-size: 0.78rem; }
  .footer-links li a { font-size: 0.8rem; }
}

/* ════════════════════════════════════════════════════════════
   NEW: Language Selector
   ════════════════════════════════════════════════════════════ */
.lang-selector {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  min-width: 180px;
  padding: 6px 0;
}

.lang-dropdown.open {
  display: block;
  animation: fadeSlideDown 0.2s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family);
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(249, 115, 22, 0.06);
}

.lang-option.active {
  color: var(--color-primary);
  background: rgba(249, 115, 22, 0.08);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   NEW: Formats Table Layout (iFlyDown style)
   ════════════════════════════════════════════════════════════ */
.result-layout {
  display: flex;
  gap: 24px;
  padding: 24px;
}

.formats-column {
  flex: 1;
  min-width: 0;
}

.thumb-column {
  width: 280px;
  flex-shrink: 0;
}

.thumb-card {
  text-align: center;
}

.thumb-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.thumb-wrapper .result-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  font-family: 'Inter', monospace;
  line-height: 1.4;
  z-index: 2;
}

.thumb-card .result-thumbnail {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.thumb-card .result-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-duration-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-style: italic;
}

.formats-group {
  margin-bottom: 20px;
}

.formats-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border-light);
}

.formats-heading svg {
  color: var(--color-primary);
}

.formats-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.format-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-bottom: none;
  transition: background 0.15s;
}

.format-row:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.format-row:last-child {
  border-bottom: 1px solid var(--color-border-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.format-row:only-child {
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--color-border-light);
}

.format-row:hover {
  background: rgba(249, 115, 22, 0.03);
}

.format-row-hidden {
  display: none;
}

.format-info {
  flex: 1;
  min-width: 0;
}

.format-quality {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.format-badges {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.badge-codec {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  letter-spacing: 0.3px;
}

.badge-codec:nth-child(2) {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.format-size {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

.format-dl-btn {
  padding: 7px 22px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.format-dl-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.format-dl-btn:active {
  transform: translateY(0);
}

.btn-show-more {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-show-more:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* ════════════════════════════════════════════════════════════
   NEW: Download Progress Bar (SS2 style)
   ════════════════════════════════════════════════════════════ */
.progress-section {
  padding: 40px 0;
}

.progress-card {
  text-align: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.progress-dots span {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 2px;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.progress-dots span:nth-child(1) { animation-delay: 0s; }
.progress-dots span:nth-child(2) { animation-delay: 0.1s; }
.progress-dots span:nth-child(3) { animation-delay: 0.2s; }
.progress-dots span:nth-child(4) { animation-delay: 0.3s; }
.progress-dots span:nth-child(5) { animation-delay: 0.4s; }
.progress-dots span:nth-child(6) { animation-delay: 0.5s; background: #aaa; }
.progress-dots span:nth-child(7) { animation-delay: 0.6s; background: #999; }
.progress-dots span:nth-child(8) { animation-delay: 0.7s; background: #888; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); background: var(--color-primary); }
}

.progress-status {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

.progress-bar-track {
  width: 100%;
  height: 32px;
  background: #f0f0f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c 0%, #e67e22 50%, #f39c12 100%);
  border-radius: var(--radius-lg);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  position: relative;
}

.progress-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ════════════════════════════════════════════════════════════
   NEW: Download Modal (SS3 style)
   ════════════════════════════════════════════════════════════ */
.dl-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
  padding: 20px;
}

.dl-modal-overlay.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dl-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.3s ease;
  text-align: center;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dl-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.dl-modal-close:hover {
  color: var(--color-text);
}

.dl-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.4;
  padding-right: 24px;
}

.dl-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.dl-modal-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
  color: #fff;
}

.dl-modal-msg {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.dl-modal-thanks {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ════════════════════════════════════════════════════════════
   NEW: RTL Support for Arabic
   ════════════════════════════════════════════════════════════ */
[dir="rtl"] .format-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .format-size {
  text-align: left;
}

[dir="rtl"] .navbar-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto;
}

/* ════════════════════════════════════════════════════════════
   NEW: Responsive for formats/progress/modal/lang
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .result-layout {
    flex-direction: column-reverse;
    gap: 16px;
    padding: 16px;
  }

  .thumb-column {
    width: 100%;
  }

  .thumb-card {
    display: flex;
    gap: 14px;
    text-align: left;
    align-items: flex-start;
  }

  .thumb-card .result-thumbnail {
    width: 140px;
    flex-shrink: 0;
  }

  .format-row {
    padding: 8px 10px;
  }

  .format-dl-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .format-size {
    min-width: auto;
    font-size: 0.78rem;
  }

  .lang-selector {
    display: none;
  }

  .dl-modal {
    padding: 24px 20px;
  }

  .dl-modal-btn {
    padding: 12px 28px;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .thumb-card {
    flex-direction: column;
    text-align: center;
  }

  .thumb-card .result-thumbnail {
    width: 100%;
  }

  .format-quality {
    font-size: 0.82rem;
  }

  .progress-bar-track {
    height: 26px;
  }
}

/* ════════════════════════════════════════════════════════════
   YTDown-Style Redesign Styles
   ════════════════════════════════════════════════════════════ */

/* ── Result: Two-Panel Layout ── */
.ytd-result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.ytd-panel-header {
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: #f8f9fa;
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  margin: 0;
}

.ytd-info-panel {
  border-right: 1px solid var(--color-border-light);
}

.ytd-info-body {
  padding: 20px;
}

.ytd-thumb-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.ytd-thumb-wrap .result-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ytd-thumb-wrap .result-player {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
  background: #000;
  border-radius: var(--radius-md);
}

.ytd-thumb-wrap .result-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.ytd-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F97316;
  margin-bottom: 6px;
}

.ytd-author:empty { display: none; }

.ytd-info-body .result-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ytd-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #F97316;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 6px;
  padding: 3px 10px;
}

.ytd-duration-badge:empty { display: none; }

/* ── Media Panel (right) ── */
.ytd-media-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ytd-quality-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}

.ytd-quality-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-input);
}

.ytd-quality-select option {
  padding: 8px;
}

.ytd-file-size {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.ytd-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.ytd-download-btn:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}

.ytd-download-btn:active {
  transform: translateY(0);
}

.ytd-download-btn:disabled {
  opacity: 0.85;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.ytd-dl-spinner .spin-icon {
  animation: spinRotate 1s linear infinite;
}

@keyframes spinRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ytd-terms-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

.ytd-terms-note a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ── Download Progress Bar ── */
.ytd-progress-bar {
  width: 100%;
  background: #2d3748;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 48px;
}

.ytd-progress-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #3a4a5c 0%, #4a5568 100%);
  border-radius: var(--radius-md);
  transition: width 0.4s ease;
  color: #cbd5e0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 16px;
  min-width: fit-content;
}

.ytd-progress-fill .spin-icon {
  animation: spinRotate 1s linear infinite;
  flex-shrink: 0;
}

.ytd-progress-bar.hidden {
  display: none;
}

/* ── Download Another URL Button ── */
.ytd-another-url {
  text-align: center;
  margin-top: 20px;
}

.ytd-another-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #475569;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.ytd-another-btn:hover {
  background: #334155;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── Yellow Disclaimer Banner ── */
.ytd-disclaimer-banner {
  background: #FFF3CD;
  border-top: 1px solid #FFEAA7;
  border-bottom: 1px solid #FFEAA7;
  padding: 14px 0;
}

.ytd-disclaimer-banner p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #856404;
  text-align: center;
}

.ytd-disclaimer-banner strong {
  color: #664D03;
}

/* ── Content Section (Description + FAQ side by side) ── */
.ytd-content-section {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
}

.ytd-content-section .container {
  max-width: 100%;
}

.ytd-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ytd-desc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-light);
}

.ytd-desc-title svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.ytd-desc-col p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.ytd-desc-col a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── FAQ Accordion (YTDown-style) ── */
.ytd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ytd-faq-item {
  border: 1px solid var(--color-border-light);
  border-bottom: none;
  overflow: hidden;
}

.ytd-faq-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ytd-faq-item:last-child {
  border-bottom: 1px solid var(--color-border-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.ytd-faq-item summary {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
  background: #fff;
}

.ytd-faq-item summary:hover {
  background: #f8f9fa;
}

.ytd-faq-item summary::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--color-text-muted);
  transition: transform 0.3s;
}

.ytd-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.ytd-faq-item summary::-webkit-details-marker {
  display: none;
}

.ytd-faq-answer {
  padding: 0 18px 14px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Features Section (YTDown-style) ── */
.ytd-features-section {
  padding: 48px 0;
  background: #f8f9fa;
  border-bottom: 1px solid var(--color-border-light);
}

.ytd-features-section .container {
  max-width: 100%;
}

.ytd-features-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-light);
}

.ytd-features-title svg {
  color: var(--color-primary);
}

.ytd-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ytd-feature-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.ytd-feature-item p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Responsive: YTDown Styles ── */
@media (max-width: 768px) {
  .ytd-result-layout {
    grid-template-columns: 1fr;
  }

  .ytd-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
  }

  .ytd-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .ytd-info-body,
  .ytd-media-body {
    padding: 14px;
  }

  .ytd-quality-select {
    font-size: 0.85rem;
    padding: 10px 36px 10px 12px;
  }

  .ytd-download-btn {
    font-size: 0.92rem;
    padding: 12px 16px;
  }
}
