/* ============================================================
   VidSave Pro — Main Stylesheet
   Fonts: Bricolage Grotesque (headings) + DM Sans (body)
   Palette: Deep navy text · Strong blue primary · Coral accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1a56db;
  --blue-dark:   #1246c4;
  --blue-light:  #eff6ff;
  --blue-100:    #dbeafe;
  --coral:       #ff6b35;
  --coral-dark:  #e85a26;
  --navy:        #0f172a;
  --slate:       #334155;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #ffffff;
  --bg-subtle:   #f8fafc;
  --bg-blue:     #f0f7ff;
  --success:     #16a34a;
  --error:       #dc2626;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow:      0 4px 16px rgba(26,86,219,.10), 0 1px 4px rgba(15,23,42,.06);
  --shadow-lg:   0 12px 40px rgba(26,86,219,.14), 0 4px 12px rgba(15,23,42,.08);
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
  --max-w:       1120px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
  white-space: nowrap;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--blue), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
  flex-shrink: 0;
}

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

.nav-links a {
  padding: 7px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--slate);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--bg-subtle); color: var(--navy); text-decoration: none; }

.nav-cta {
  background: var(--coral); color: white !important;
  border-radius: 9px !important; padding: 8px 18px !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--coral-dark) !important; transform: translateY(-1px); text-decoration: none !important; }

.nav-hamburger { display: none; border: none; background: none; font-size: 1.4rem; color: var(--navy); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--bg-blue) 0%, #fff 60%);
  padding: 72px 0 80px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(26,86,219,.06) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(255,107,53,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { text-align: center; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1px solid var(--blue-100);
  color: var(--blue); font-size: .8rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp .5s ease both;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; color: var(--navy);
  margin-bottom: 18px; letter-spacing: -0.03em;
  animation: fadeUp .5s .1s ease both;
}

.hero h1 em {
  font-style: normal; color: var(--blue);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute; bottom: 2px; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--coral));
  border-radius: 4px; opacity: .5;
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 540px; margin: 0 auto 36px;
  animation: fadeUp .5s .2s ease both;
}

/* URL Input form */
.downloader-form {
  max-width: 680px; margin: 0 auto;
  animation: fadeUp .5s .3s ease both;
}

.input-group {
  display: flex; gap: 0;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,86,219,.1), var(--shadow);
}

#urlInput {
  flex: 1; border: none; outline: none;
  padding: 12px 16px;
  font-size: 1rem; color: var(--navy);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}
#urlInput::placeholder { color: var(--muted); }

.btn-paste {
  border: none; background: var(--bg-subtle);
  color: var(--slate); font-size: .85rem; font-weight: 500;
  padding: 10px 16px; border-radius: 10px;
  transition: background var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.btn-paste:hover { background: var(--border); }

.btn-save {
  border: none; background: var(--blue);
  color: white; font-size: 1rem; font-weight: 600;
  padding: 13px 28px; border-radius: 12px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
  margin-left: 4px;
}
.btn-save:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }
.btn-save:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hero-disclaimer {
  margin-top: 14px; font-size: .8rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp .5s .4s ease both;
}

.stat-item { text-align: center; }
.stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.6rem; font-weight: 800; color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ── Result Card ──────────────────────────────────────────── */
.result-section {
  padding: 0; overflow: hidden;
  max-height: 0; transition: max-height .4s ease, padding .3s ease;
}
.result-section.visible { max-height: 600px; padding: 32px 0; }

.result-card {
  max-width: 680px; margin: 0 auto;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; gap: 0; flex-direction: column;
}

.result-thumbnail-wrap {
  position: relative; background: #000;
  aspect-ratio: 16/7; overflow: hidden;
}
.result-thumbnail {
  width: 100%; height: 100%; object-fit: cover; opacity: .85;
}
.result-thumbnail-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: rgba(255,255,255,.3); font-size: 3rem;
}
.result-play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.result-play-badge .play-icon {
  width: 56px; height: 56px; background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; border: 1px solid rgba(255,255,255,.3);
}

.result-info { padding: 20px 24px 24px; }

.result-title {
  font-size: 1rem; font-weight: 600; color: var(--navy);
  margin-bottom: 16px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.quality-row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-quality {
  flex: 1; min-width: 140px;
  border: none; border-radius: 10px;
  font-size: .9rem; font-weight: 600;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform var(--transition), opacity var(--transition);
  text-decoration: none;
}
.btn-quality:hover { transform: translateY(-2px); text-decoration: none; }
.btn-quality:active { transform: translateY(0); }

.btn-hd {
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  color: white;
}
.btn-hd:hover { color: white; }
.btn-sd {
  background: var(--bg-subtle); color: var(--slate);
  border: 1px solid var(--border);
}
.btn-sd:hover { background: var(--border); color: var(--navy); }

.btn-quality.disabled {
  opacity: .35; cursor: not-allowed; pointer-events: none;
}

/* ── Loading & Error States ───────────────────────────────── */
.status-bar {
  max-width: 680px; margin: 24px auto 0;
  padding: 14px 20px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500;
  display: none; align-items: center; gap: 10px;
}
.status-bar.loading {
  display: flex; background: var(--blue-light); color: var(--blue);
  border: 1px solid var(--blue-100);
}
.status-bar.error {
  display: flex; background: #fef2f2; color: var(--error);
  border: 1px solid #fecaca;
}

.spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works { padding: 88px 0; background: var(--bg-subtle); }
.how-it-works .section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-light); border-radius: 100px;
  padding: 4px 14px; margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--navy);
  letter-spacing: -.02em;
}
.section-sub { font-size: 1rem; color: var(--muted); margin-top: 10px; }

.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute; top: 36px; left: 16.66%; right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue), var(--blue-100));
}

.step-card {
  background: white; border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; z-index: 1;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  border-radius: 16px; color: white;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
}
.step-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── Features ─────────────────────────────────────────────── */
.features { padding: 88px 0; }
.features .section-header { text-align: center; margin-bottom: 56px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }

.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  background: var(--bg-blue);
}
.feature-card h3 { font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── Supported Formats ────────────────────────────────────── */
.formats { padding: 60px 0; background: var(--bg-blue); }
.formats .section-header { text-align: center; margin-bottom: 36px; }

.format-tags {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.format-tag {
  background: white; border: 1px solid var(--blue-100);
  color: var(--blue); font-size: .85rem; font-weight: 500;
  padding: 7px 18px; border-radius: 100px;
  display: flex; align-items: center; gap: 6px;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { padding: 88px 0; }
.faq .section-header { text-align: center; margin-bottom: 48px; }

.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; max-width: 900px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: white;
}
.faq-question {
  width: 100%; border: none; background: none;
  padding: 18px 22px; text-align: left;
  font-size: .95rem; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; line-height: 1.4; cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-subtle); }

.faq-chevron {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--bg-subtle); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
  margin-top: 1px;
}
.faq-chevron svg { width: 12px; height: 12px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--blue-100); }
.faq-item.open .faq-chevron svg { color: var(--blue); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .2s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 22px 18px; }
.faq-answer p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  padding: 72px 0; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  position: relative; overflow: hidden; text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(26,86,219,.3) 0%, transparent 70%);
}
.cta-banner-content { position: relative; }
.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: white; margin-bottom: 14px; letter-spacing: -.02em;
}
.cta-banner p { color: rgba(255,255,255,.65); margin-bottom: 28px; font-size: 1rem; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--navy);
  font-size: 1rem; font-weight: 700;
  padding: 14px 32px; border-radius: 12px; border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}

.footer-brand .nav-logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 260px; }
.footer-brand .nav-logo-icon { background: rgba(255,255,255,.12); }

.footer-col h4 {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col a:hover { color: white; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-legal-links a:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ── Inner Pages (privacy, terms, about) ─────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--bg-blue), white);
  padding: 56px 0 48px; border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.page-hero .breadcrumb { font-size: .85rem; color: var(--muted); }
.page-hero .breadcrumb a { color: var(--blue); }

.page-body { padding: 56px 0 80px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--navy); }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--navy); }
.prose p { color: var(--slate); font-size: .95rem; line-height: 1.8; margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { color: var(--slate); font-size: .95rem; line-height: 1.8; margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose strong { color: var(--navy); }

.prose .callout {
  background: var(--bg-blue); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 20px 0;
}
.prose .callout p { margin: 0; color: var(--blue); }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 64px 0 0 0;
    background: white; padding: 20px;
    align-items: flex-start; z-index: 99;
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav-hamburger { display: block; }
  .input-group { flex-direction: column; border-radius: var(--radius); }
  .btn-paste { border-radius: 8px; }
  .btn-save { border-radius: 10px; margin-left: 0; width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .quality-row { flex-direction: column; }
}





/* ── Language Switcher ────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  color: var(--slate); font-size: .85rem; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.lang-btn:hover { background: var(--border); border-color: var(--blue-100); }
.lang-btn .lang-globe { font-size: 14px; }
.lang-btn .lang-chevron {
  font-size: 9px; opacity: .6;
  transition: transform var(--transition);
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 180px; z-index: 200; overflow: hidden;
}
.lang-switcher.open .lang-dropdown { display: block; }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: .88rem; color: var(--slate);
  cursor: pointer; transition: background var(--transition);
  border: none; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.lang-option:hover { background: var(--bg-subtle); }
.lang-option.active { background: var(--bg-blue); color: var(--blue); font-weight: 600; }
.lang-option .lang-flag { font-size: 16px; }

/* ── Chrome Extension Badge ───────────────────────────────── */
.ext-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #4285f4, #1a56db);
  color: white !important;
  font-size: .8rem; font-weight: 600;
  padding: 6px 13px; border-radius: 8px;
  text-decoration: none !important;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(26,86,219,.3);
}
.ext-badge:hover { opacity: .9; transform: translateY(-1px); text-decoration: none !important; }
.ext-badge svg { flex-shrink: 0; }

/* Adjust nav to support extra items */
.nav-inner { gap: 16px; }
.nav-links { gap: 2px; }
.nav-links a { padding: 7px 11px; font-size: .85rem; }

/* Translation loading overlay */
.translating-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.translating-overlay.show { opacity: 1; pointer-events: all; }
.translating-overlay .spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.translating-overlay p { font-size: .9rem; color: var(--slate); font-weight: 500; }

@media (max-width: 900px) {
  .ext-badge { display: none; }
}
@media (max-width: 640px) {
  .ext-badge { display: none; }
  .lang-dropdown { right: auto; left: 0; }
}