/* ═══════════════════════════════════════════════════════════════
   FileConvertly — Glassmorphism UI Design System
   Dark mesh gradient background · Frosted glass cards
   ═══════════════════════════════════════════════════════════════ */



/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg-base:        #08050f;
  --accent-1:       #a855f7;   /* violet — primary */
  --accent-2:       #e879f9;   /* fuchsia — secondary */
  --accent-3:       #7c3aed;   /* deep purple — tertiary */
  --accent-green:   #10b981;
  --accent-red:     #f43f5e;
  --glass-bg:       rgba(255,255,255,0.04);
  --glass-bg-hover: rgba(168,85,247,0.07);
  --glass-border:   rgba(124,58,237,0.20);
  --glass-border-b: rgba(232,121,249,0.30);
  --glass-shadow:   0 8px 32px rgba(0,0,0,0.5);
  --glass-shadow-lg:0 20px 60px rgba(0,0,0,0.6), 0 8px 24px rgba(168,85,247,0.2);
  --text-primary:   rgba(255,255,255,0.95);
  --text-secondary: rgba(255,255,255,0.60);
  --text-muted:     rgba(255,255,255,0.35);
  --radius:         18px;
  --radius-sm:      12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #08050f !important;
  color: rgba(255,255,255,0.95) !important;
  background: #08050f !important;
  color: rgba(255,255,255,0.95) !important;
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: #e879f9; text-decoration: none; transition: color 0.2s; }
a:hover { color: white; }

/* ─── Animated Mesh Background ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%,  rgba(168,85,247,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%,  rgba(124,58,237,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 10%,  rgba(232,121,249,0.14)  0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 10% 80%,  rgba(192,38,211,0.10) 0%, transparent 50%),
    var(--bg-base);
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5,8,22,0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--accent-1); }
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-1), #e879f9);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 0 20px rgba(168,85,247,0.5);
  flex-shrink: 0;
  margin-right: 10px;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav a:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.nav a.active {
  background: rgba(168,85,247,0.2);
  color: var(--accent-1);
  border: 1px solid rgba(168,85,247,0.3);
}
.mobile-menu-btn {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 28px 60px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeSlideDown 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  animation: fadeSlideDown 0.6s 0.1s ease both;
  background: linear-gradient(135deg, #ffffff 30%, rgba(168,85,247,0.9) 70%, rgba(232,121,249,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-1), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 400;
  animation: fadeSlideDown 0.6s 0.2s ease both;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Upload Card ─────────────────────────────────────────────── */
.upload-card {
  background: var(--glass-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 44px 36px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  animation: fadeSlideDown 0.6s 0.3s ease both;
}
.upload-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.upload-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-lg);
  border-color: rgba(168,85,247,0.4);
}
.upload-card.drag-over {
  background: rgba(168,85,247,0.1);
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.2), var(--glass-shadow-lg);
}

.upload-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(232,121,249,0.2));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(168,85,247,0.2);
}
.upload-card:hover .upload-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 0 40px rgba(168,85,247,0.4);
}
.upload-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.upload-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.upload-card input[type="file"] { display: none; }

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(168,85,247,0.4);
}
.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.55);
}
.btn-upload:active { transform: translateY(0); }

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-badge svg { color: var(--accent-green); flex-shrink: 0; }

/* ─── Progress ───────────────────────────────────────────────── */
.progress-wrapper { display: none; padding: 8px 0; }
.progress-wrapper.show { display: block; }
.progress-bar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin: 14px 0 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), #e879f9, var(--accent-3));
  background-size: 200% 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease;
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.progress-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block; vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Result ─────────────────────────────────────────────────── */
.result-box {
  display: none;
  background: rgba(192,38,211,0.10);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 20px;
}
.result-box.show { display: block; animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
.result-box h3 { font-size: 1rem; font-weight: 700; color: var(--accent-green); margin-bottom: 14px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  padding: 13px 28px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,0.5); color: white; }
.btn-convert-another {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.btn-convert-another:hover { color: var(--text-secondary); }

/* ─── Error ──────────────────────────────────────────────────── */
.error-box {
  display: none;
  background: rgba(244,63,94,0.08);
  border: 1px solid rgba(244,63,94,0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #fb7185;
}
.error-box.show { display: block; }

/* ─── Trust Bar ──────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 28px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.trust-item:hover { border-color: var(--glass-border-b); color: var(--text-primary); }

/* ─── Page Content ───────────────────────────────────────────── */
.page-content { max-width: 780px; margin: 0 auto; padding: 56px 28px 80px; }
.section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* ─── Steps ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 52px;
}
.step {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), #e879f9);
  opacity: 0;
  transition: opacity 0.2s;
}
.step:hover { transform: translateY(-3px); border-color: var(--glass-border-b); }
.step:hover::before { opacity: 1; }
.step-num {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent-1), #e879f9);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(168,85,247,0.4);
}
.step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.step p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq { margin-bottom: 52px; }
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open, .faq-item:hover { border-color: var(--glass-border-b); }
.faq-question {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--accent-1);
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); background: rgba(168,85,247,0.25); }
.faq-answer {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  display: none;
  padding: 0 20px 18px;
}
.faq-item.open .faq-answer { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Privacy Note ───────────────────────────────────────────── */
.privacy-note {
  background: rgba(232,121,249,0.06);
  border: 1px solid rgba(232,121,249,0.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.privacy-note strong { color: #e879f9; }

/* ─── Other Tools ────────────────────────────────────────────── */
.other-tools {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 48px;
}
.other-tools h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.tool-chip:hover {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.4);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168,85,247,0.2);
}

/* ─── Home Converter Grid ─────────────────────────────────────── */
.converter-section {
  padding: 20px 28px 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.section-center-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.section-center-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.converter-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34,1.26,0.64,1);
  text-decoration: none;
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.converter-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 4px 16px rgba(168,85,247,0.2);
  background: var(--glass-bg-hover);
  color: inherit;
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  transition: transform 0.3s;
}
.converter-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }
.card-icon.indigo { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); box-shadow: 0 0 20px rgba(168,85,247,0.2); }
.card-icon.cyan   { background: rgba(232,121,249,0.15);  border: 1px solid rgba(232,121,249,0.3);  box-shadow: 0 0 20px rgba(232,121,249,0.2); }
.card-icon.purple { background: rgba(124,58,237,0.20); border: 1px solid rgba(168,85,247,0.3); box-shadow: 0 0 20px rgba(168,85,247,0.2); }
.card-icon.green  { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); box-shadow: 0 0 20px rgba(16,185,129,0.2); }
.converter-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.converter-card p  { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Why Section ────────────────────────────────────────────── */
.why-section {
  padding: 0 28px 60px;
  max-width: 1000px;
  margin: 0 auto;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.why-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.why-card:hover { transform: translateY(-3px); border-color: var(--glass-border-b); }
.why-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p  { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.65; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: rgba(3,6,16,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 48px 28px 28px;
  margin-top: 80px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.footer-brand .logo { font-size: 1.1rem; }
.footer-brand p { font-size: 0.83rem; margin-top: 10px; color: var(--text-muted); max-width: 230px; line-height: 1.65; }
.footer-links h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--text-secondary); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* ─── Legal Pages ────────────────────────────────────────────── */
.legal-page { max-width: 720px; margin: 0 auto; padding: 56px 28px 96px; }
.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-page .last-updated { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 40px; font-family: var(--font-mono); }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; margin: 36px 0 12px; color: #e879f9; }
.legal-page p, .legal-page li { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 12px; }
.legal-page ul { padding-left: 18px; }
.legal-page a { color: var(--accent-1); }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 580px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: #0f1225; color: white; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-1);
  background: rgba(168,85,247,0.06);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(168,85,247,0.35);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168,85,247,0.5); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(5,8,22,0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    z-index: 199; gap: 4px;
  }
  .nav.open a { padding: 10px 14px; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 56px 20px 48px; }
  .upload-card { padding: 28px 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 28px; }
  .converter-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .converter-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   AD UNIT STYLES — FileConvertly Monetization Layer
   ═══════════════════════════════════════════════════════════════ */

/* ─── Base ad wrapper ─────────────────────────────────────────── */
.ad-unit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.ad-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.6;
  align-self: center;
}

/* ─── Ad placeholder (shown before AdSense loads) ────────────── */
.ad-placeholder {
  background: rgba(168,85,247,0.04);
  border: 1px dashed rgba(168,85,247,0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168,85,247,0.3);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
  transition: background 0.2s;
  min-height: 90px;
}
.ad-placeholder:hover { background: rgba(168,85,247,0.07); }

/* ─── Leaderboard: 728×90 (desktop top/bottom) ───────────────── */
.ad-leaderboard { max-width: 728px; margin: 0 auto; }
.ad-leaderboard .ad-placeholder { height: 90px; }

/* ─── Banner: 468×60 (mobile/mid) ───────────────────────────── */
.ad-banner { max-width: 468px; margin: 0 auto; }
.ad-banner .ad-placeholder { height: 60px; }

/* ─── Rectangle: 336×280 (inline content) ───────────────────── */
.ad-rectangle { max-width: 336px; margin: 0 auto; }
.ad-rectangle .ad-placeholder { height: 280px; }

/* ─── Large Rectangle: 728×280 (wide inline) ────────────────── */
.ad-large-rect { max-width: 728px; margin: 0 auto; }
.ad-large-rect .ad-placeholder { height: 280px; }

/* ─── Responsive / Fluid ──────────────────────────────────────── */
.ad-fluid { max-width: 100%; }
.ad-fluid .ad-placeholder { height: 100px; min-height: 100px; }

/* ─── Ad Section Wrappers ─────────────────────────────────────── */
.ad-section {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
}
.ad-section-hero    { padding: 16px 24px 0; }
.ad-section-between { padding: 24px; }
.ad-section-footer  { padding: 20px 24px; border-top: 1px solid var(--glass-border); }

/* ─── Sticky Sidebar Ad ───────────────────────────────────────── */
.page-with-sidebar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.sidebar-ad-col {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-sidebar { width: 300px; }
.ad-sidebar .ad-placeholder { height: 250px; width: 300px; }
.ad-sidebar-tall .ad-placeholder { height: 600px; width: 300px; }

/* ─── In-Content Interstitial (between FAQ items) ────────────── */
.ad-infeed {
  margin: 4px 0;
  padding: 12px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.ad-infeed .ad-placeholder { height: 90px; border-radius: 8px; }

/* ─── Sticky bottom bar (mobile) ─────────────────────────────── */
.ad-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(8,5,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(168,85,247,0.2);
  padding: 8px 16px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.ad-sticky-bottom .ad-placeholder { height: 50px; max-width: 320px; min-height: 50px; }
.ad-sticky-close {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.ad-sticky-close:hover { color: var(--text-primary); border-color: var(--glass-border-b); }
@media (max-width: 768px) {
  .ad-sticky-bottom { display: flex; }
  body {
  background: #08050f !important;
  color: rgba(255,255,255,0.95) !important;
  background: #08050f !important;
  color: rgba(255,255,255,0.95) !important; padding-bottom: 68px; }
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-ad-col { position: static; }
  .ad-sidebar, .ad-sidebar-tall { display: none; }
}

/* ─── Anchor / Top bar ad ─────────────────────────────────────── */
.ad-anchor-top {
  background: rgba(168,85,247,0.05);
  border-bottom: 1px solid rgba(168,85,247,0.12);
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.ad-anchor-top .ad-placeholder { height: 50px; max-width: 728px; min-height: 50px; border-radius: 6px; }

/* ─── Multiplex / Native ad grid ─────────────────────────────── */
.ad-multiplex {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.ad-multiplex .ad-placeholder { height: 300px; border-radius: var(--radius); }

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD DELAY & FORCED AD — Free User Monetization
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay backdrop ── */
.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8,5,15,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.dl-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal card ── */
.dl-modal {
  background: linear-gradient(160deg, rgba(15,8,30,0.98) 0%, rgba(8,5,22,0.98) 100%);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(168,85,247,0.08),
    0 28px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(168,85,247,0.1);
  animation: dlPopIn 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}
@keyframes dlPopIn {
  from { opacity:0; transform: scale(0.88) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

/* Top shine */
.dl-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.4), transparent);
}

/* ── Ad slot inside modal ── */
.dl-ad-slot {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}
.dl-ad-label {
  position: absolute;
  top: 6px; left: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}
.dl-ad-placeholder {
  width: 100%;
  max-width: 468px;
  height: 90px;
  background: rgba(168,85,247,0.05);
  border: 1px dashed rgba(168,85,247,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(168,85,247,0.3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Modal body ── */
.dl-body {
  background: #08050f !important;
  color: rgba(255,255,255,0.95) !important;
  background: #08050f !important;
  color: rgba(255,255,255,0.95) !important;
  padding: 28px 32px 28px;
  text-align: center;
}
.dl-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(232,121,249,0.15));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px rgba(168,85,247,0.25);
}
.dl-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.dl-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Countdown ring ── */
.dl-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.dl-ring {
  position: relative;
  width: 80px; height: 80px;
}
.dl-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.dl-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 5;
}
.dl-ring-fill {
  fill: none;
  stroke: url(#dlGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.dl-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}
.dl-countdown-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Download button (locked → unlocked) ── */
.dl-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.dl-btn.locked {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  cursor: not-allowed;
}
.dl-btn.unlocked {
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  box-shadow: 0 4px 24px rgba(16,185,129,0.4);
  cursor: pointer;
  animation: pulseGreen 1.5s ease-in-out infinite;
}
.dl-btn.unlocked:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(16,185,129,0.55);
  animation: none;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 4px 24px rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 4px 36px rgba(16,185,129,0.65); }
}

/* ── Upgrade upsell ── */
.dl-upsell {
  background: rgba(168,85,247,0.07);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dl-upsell-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.dl-upsell-text strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
.dl-upsell-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(168,85,247,0.4);
  flex-shrink: 0;
}
.dl-upsell-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(168,85,247,0.55); }

@media (max-width: 480px) {
  .dl-modal { border-radius: 20px; }
  .dl-body  { padding: 22px 20px 22px; }
}
