
.footer-upgrade-btn {
  flex-shrink: 0;
  background: #1f2937;        /* dark pill on amber band */
  color: #fef3c7;             /* amber-100 text for contrast */
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.footer-upgrade-btn:hover { background: #111827; color: #fef3c7; }
@media (max-width: 500px) {
  .footer-upgrade { flex-direction: column; align-items: flex-start; }
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); margin: 0; }
.site-footer { padding-bottom: 0; }

/* ── AUTH FORMS ── */
.auth-card {
  max-width: 420px;
  margin: 60px auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card p.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 12px 20px;
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: box-shadow .15s, background .15s;
}
.google-signin-btn:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,.15); color: #3c4043; }

/* ── Email auth form (signup + login) ── */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.auth-field input {
  width: 100%; padding: 10px 12px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.auth-submit {
  margin-top: 4px; padding: 11px 20px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .05s;
}
.auth-submit:hover { background: #1e4fd6; }
.auth-submit:active { transform: translateY(1px); }
.auth-inline-link { font-size: 13px; color: var(--accent); text-decoration: none; }
.auth-inline-link:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); }

/* ── DASHBOARD ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.achievement-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.achievement-card.locked { opacity: 0.4; }
.ach-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ach-name { font-size: 13px; font-weight: 600; }
.ach-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── ADMIN TABLES ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.admin-table tr:hover td { background: var(--bg-card); }

.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-red   { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-yellow{ background: rgba(234,179,8,0.15); color: #fde047; }
.badge-blue  { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-gray  { background: rgba(100,100,120,0.15); color: var(--text-muted); }

/* ── BLOG ── */
/* ── Blog index hero ───────────────────────────────────────────────────────── */
.blog-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.blog-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.blog-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
.blog-hero-text { flex: 1; min-width: 260px; }
.blog-hero-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}
.blog-stat { text-align: center; }
.blog-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.blog-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Topic pills */
.blog-topics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.blog-topic-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 4px;
}
.blog-topic-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-topic-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Featured article */
.blog-featured {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.blog-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(59,130,246,.08);
}
.blog-featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
}
.blog-featured-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.blog-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.blog-featured-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 640px;
}
.blog-featured-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-read-more {
  color: var(--accent);
  font-weight: 600;
}

/* Section heading */
.blog-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Article grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  display: block;
  color: var(--text);
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(59,130,246,.07);
}
.blog-card-body { padding: 22px; }
.blog-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.blog-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.blog-card .meta { font-size: 11px; color: var(--text-dim); margin-top: 14px; }

/* Blog pagination */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 40px 0 8px; }
.blog-page-btn { padding: 8px 18px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; transition: background .15s; }
.blog-page-btn:hover { background: var(--bg-inset); }
.blog-page-info { font-size: 13px; color: var(--text-muted); }

/* FAQ quick answers */
.blog-faq-section {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 48px;
}
.blog-faq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.blog-faq-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.blog-faq-all-link:hover { opacity: .8; }
.blog-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-faq-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.blog-faq-card:hover { border-color: var(--accent); }
.blog-faq-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}
.blog-faq-icon span {
  font-size: 9px;
  font-weight: 600;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-faq-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.blog-faq-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Converters strip */
.blog-tools-strip { margin-bottom: 48px; }
.blog-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-tool-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-tool-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 700px) {
  .blog-hero { padding: 32px 0 28px; }
  .blog-hero-title { font-size: 1.7rem; }
  .blog-hero-stats { gap: 16px; }
  .blog-stat-num { font-size: 1.4rem; }
  .blog-featured-title { font-size: 1.2rem; }
  .blog-faq-section { padding: 24px 20px; }
  .blog-faq-grid { grid-template-columns: 1fr; }
}

/* ── PAGE CONTENT ── */
.page-content h1 { font-size: 2rem; margin-bottom: 12px; }
.page-content h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.page-content p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.page-content ul { color: var(--text-muted); font-size: 14px; padding-left: 20px; line-height: 1.8; margin-bottom: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger-btn { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .format-selector { display: none; }

  .hero h1 { font-size: 1.8rem; }

  .conversion-types-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .main-content { padding: 24px 16px 48px; }
  .hero { padding: 28px 0 20px; }
  .upload-section { padding: 32px 16px; }
}

/* ── Mobile footer accordion ──────────────────────────────────────── */
/* Desktop: wrappers are transparent pass-through blocks */
.footer-chevron { display: none; }
.footer-col-links { display: block; }
.footer-col-links-inner { display: block; }

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 0 8px;
    gap: 0;
  }
  .footer-col {
    border-bottom: 1px solid var(--border-subtle);
  }
  /* Drop the last column's bottom border so we don't get a double-line
     stack (col-border + footer-bottom border-top) on mobile. */
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-col h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 16px 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  .footer-chevron {
    display: block;
    transition: transform 0.22s ease;
    flex-shrink: 0;
    color: var(--text-dim);
  }
  .footer-col.open .footer-chevron {
    transform: rotate(180deg);
  }
  /* Collapsed by default — max-height: 0 hides content reliably */
  .footer-col-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .footer-col.open .footer-col-links {
    max-height: 600px;
  }
  .footer-col-links-inner {
    padding: 4px 20px 16px;
  }
  .footer-col a {
    display: block;
    padding: 7px 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 20px 16px;
  }
}

/* ── UTILITIES ── */
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent) !important; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* spinner */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   CLOUDCONVERT-STYLE CONVERTER UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero header ──────────────────────────────────────────────────── */
.cv-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cv-hero-text h1 { font-size: 1.7rem; margin-bottom: 8px; }
.cv-hero-text .lead { color: var(--text-muted); font-size: 15px; max-width: 540px; }
.cv-experimental { color: var(--text-dim); font-size: 12px; margin-top: 8px; }

.cv-fmt-pill {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 260px;
}
.cv-fmt-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  flex: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cv-fmt-box svg { color: var(--text-dim); }
.cv-fmt-box--target { background: rgba(229,57,53,0.08); }
.cv-fmt-box--target svg, .cv-fmt-box--target span { color: var(--accent); }
.cv-fmt-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cv-fmt-to svg { color: var(--text-dim); }

/* ── Workspace wrapper ────────────────────────────────────────────── */
.cv-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; /* clips child borders to rounded corners */
}

/* ── Drop zone ────────────────────────────────────────────────────── */
.cv-dropzone {
  padding: 32px 32px 56px;
  text-align: center;
  cursor: pointer;
  /* 1px hairline separator below dropzone, against the (white) file rows */
  border-bottom: 1px solid var(--border);
  background: #f7f8fb;
  transition: background 0.15s;
}
.cv-dropzone:hover, .cv-dropzone.drag-over {
  background: rgba(229,57,53,0.05);
}
.cv-drop-inner { pointer-events: none; }
.cv-drop-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted);
}
.cv-drop-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.cv-drop-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.cv-select-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cv-select-btn:hover { background: var(--accent-hover); }

/* ── File rows ────────────────────────────────────────────────────── */
.cv-files { border-bottom: 1px solid var(--border); }
.cv-files--scrollable {
  max-height: 340px; /* ~5 rows × 68px */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cv-files--scrollable::-webkit-scrollbar { width: 5px; }
.cv-files--scrollable::-webkit-scrollbar-track { background: transparent; }
.cv-files--scrollable::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cv-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dim, rgba(255,255,255,0.04));
  transition: background 0.15s;
  min-height: 68px;
}
.cv-file-row:last-child { border-bottom: none; }
.cv-file-row:hover { background: var(--bg-elevated); }

.cv-file-row--converting { background: rgba(59,130,246,0.04); }
.cv-file-row--done { background: rgba(34,197,94,0.04); }
.cv-file-row--error { background: rgba(239,68,68,0.04); }

.cv-file-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
}
.cv-file-meta { flex: 1; min-width: 0; }
.cv-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-file-info { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Row progress (shown while converting, replaces actions) */
.cv-row-status {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cv-row-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
  max-width: 240px;
}
.cv-row-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
  width: 0%;
}
.cv-file-row--error .cv-row-progress-fill { background: #ef4444; }
.cv-file-row--done  .cv-row-progress-fill { background: #22c55e; }
.cv-row-status-text {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.cv-file-row--error .cv-row-status-text { color: #fca5a5; }

/* File actions (shown before conversion) */
.cv-file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cv-file-fmt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}
.cv-fmt-from-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cv-fmt-to-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cv-file-fmt svg { color: var(--text-dim); }

.cv-row-remove {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cv-row-remove:hover { border-color: #ef4444; color: #ef4444; }

/* Download row (shown after conversion) */
.cv-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.06);
  border-top: 1px solid rgba(34,197,94,0.15);
  flex-wrap: wrap;
}
.cv-dl-icon--done {
  width: 36px;
  height: 36px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  flex-shrink: 0;
}
.cv-dl-info { flex: 1; min-width: 0; }
.cv-dl-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cv-dl-size { font-size: 12px; color: var(--text-muted); margin-top: 2px; color: #22c55e; }
.cv-dl-btn,
.cv-dl-btn:link,
.cv-dl-btn:visited,
.cv-dl-btn:hover,
.cv-dl-btn:active,
.cv-dl-btn:focus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #22c55e;
  color: #fff;                /* keep white in every link state */
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
}
.cv-dl-btn:hover { background: #16a34a; color: #fff; }
.cv-dl-btn:active { background: #15803d; color: #fff; }
/* Inner SVG / text nodes mustn't inherit a visited-link tint either */
.cv-dl-btn * { color: inherit; fill: currentColor; }
.cv-convert-another {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cv-convert-another:hover { border-color: var(--text-muted); color: var(--text); }

/* Options row */
.cv-options-row {
  padding: 12px 20px 4px;
  border-top: 1px solid var(--border-dim, rgba(255,255,255,0.04));
  background: rgba(255,255,255,0.01);
}
.cv-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cv-opt:last-child { border-bottom: none; }
.cv-opt-label {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 88px;
  font-weight: 500;
}
.cv-opt-val {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 36px;
}
.cv-opt-x { color: var(--text-dim); font-size: 13px; }
.cv-opt-hint { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

/* Before/after preview (compress-jpg) */
/* ── Compress before/after preview ─────────────────────────────────────── */
.cv-preview-wrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.cv-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.cv-preview-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.cv-preview-btn {
  padding: 4px 12px; border-radius: 4px; border: none;
  background: transparent; cursor: pointer; font-size: 12px;
  font-weight: 500; color: var(--text-muted); transition: all 0.15s;
  white-space: nowrap;
}
.cv-preview-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.cv-preview-stats {
  display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end;
}
.cv-preview-stat {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.cv-preview-stat strong { color: var(--text); font-weight: 600; }
.cv-preview-savings {
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: #dcfce7; color: #166534;
}
.cv-preview-savings.larger { background: #fee2e2; color: #991b1b; }
.cv-preview-bar-wrap {
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--border);
}
.cv-preview-bar-label {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-dim); margin-bottom: 3px;
}
.cv-preview-bar-track {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.cv-preview-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--accent); transition: width 0.4s ease;
}
.cv-preview-img-wrap {
  position: relative; background: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%) 0 0/16px 16px;
}
.cv-preview-img {
  display: block; max-width: 100%;
  max-height: 240px; width: 100%;
  object-fit: contain;
}
/* dark mode */
@media (prefers-color-scheme: dark) {
  .cv-preview-savings { background: #14532d; color: #86efac; }
  .cv-preview-savings.larger { background: #7f1d1d; color: #fca5a5; }
  .cv-preview-img-wrap { background: repeating-conic-gradient(#374151 0% 25%, transparent 0% 50%) 0 0/16px 16px; }
}
.cv-quality-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cv-quality-slider-row { display: flex; align-items: center; gap: 10px; }
.cv-quality-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-preset-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-elevated); cursor: pointer; font-size: 12px;
  font-weight: 600; color: var(--text-muted); line-height: 1.3;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cv-preset-btn span { font-size: 10px; font-weight: 400; color: var(--text-dim); }
.cv-preset-btn:hover { border-color: var(--accent); color: var(--text); }
.cv-preset-btn--active {
  border-color: var(--accent); background: var(--accent-dim);
  color: var(--accent);
}
.cv-preset-btn--active span { color: var(--accent); opacity: 0.75; }
.cv-quality-slider {
  width: 180px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.cv-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  cursor: pointer;
}
.cv-select:focus { border-color: var(--accent); }
.cv-input-num {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  width: 96px;
}
.cv-input-num:focus { border-color: var(--accent); }
.cv-ico-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-ico-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.cv-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ── Bottom action bar ────────────────────────────────────────────── */
.cv-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  gap: 12px;
  flex-wrap: wrap;
}
.cv-action-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.cv-action-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.cv-action-info svg { flex-shrink: 0; color: var(--text-dim); }
.cv-action-btns { display: flex; align-items: center; gap: 8px; }

/* ── Daily quota bar ──────────────────────────────────────────────── */
.cv-quota {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-quota-bar {
  width: 80px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.cv-quota-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
#cv-quota-text {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
#cv-quota-reset {
  font-size: 11px;
  color: #ef4444;
  white-space: nowrap;
}
.cv-signup-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  margin-top: 4px;
}
.cv-signup-cta svg { flex-shrink: 0; color: var(--accent); }
.cv-signup-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.cv-signup-cta a:hover { text-decoration: underline; }

.cv-add-files-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.cv-add-files-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.cv-add-files-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.cv-row-retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.cv-row-retry:hover { border-color: var(--accent); color: var(--accent); }

.cv-convert-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.cv-convert-btn:hover:not(:disabled) { background: var(--accent-hover); }
.cv-convert-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Trust row ────────────────────────────────────────────────────── */
/* Shares the same light-grey background as the dropzone below so they read
   as one continuous file-upload card, separated only by the 1px divider. */
.cv-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 20px 14px;
  margin-bottom: 0;
  background: #f7f8fb;
}
.cv-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.cv-trust svg { width: 13px; height: 13px; color: var(--accent); stroke: var(--accent); }

/* ── Live stats banner ─────────────────────────────────────────────── */
.stats-banner {
  margin: 40px 0;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.stats-banner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.stats-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.stats-banner-text {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.stats-banner-text strong { color: var(--accent); }

/* ── Homepage featured tools grid ─────────────────────────────────── */
.hp-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.hp-tool-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.hp-tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hp-tool-fmts {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.hp-tool-fmt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.hp-tool-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 4px 0;
}
.hp-tool-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hp-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .hp-tools-grid { grid-template-columns: 1fr; }
}

/* ── Homepage FAQ / guides grid ────────────────────────────────────── */
.hp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.hp-faq-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.hp-faq-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hp-faq-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
  margin: 0 0 6px 0;
}
.hp-faq-card:hover .hp-faq-title { text-decoration: underline; }
.hp-faq-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-faq-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .hp-faq-grid { grid-template-columns: 1fr; }
}

/* ── Spin animation for convert button ────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cv-hero { flex-direction: column; gap: 20px; }
  .cv-fmt-pill { min-width: auto; width: 100%; }
  .cv-file-row { flex-wrap: wrap; min-height: auto; }
  .cv-file-actions { width: 100%; justify-content: flex-end; }
  .cv-row-status { width: 100%; }
  .cv-download-row { gap: 10px; }
  .cv-action-bar { flex-direction: column; align-items: flex-start; }
  .cv-action-btns { width: 100%; justify-content: flex-end; }
  .cv-quota-bar { width: 60px; }
  #cv-quota-text { font-size: 10px; }
  .cv-quality-slider { width: 120px; }
  .cv-options-row { padding: 8px 14px 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   API ACCESS DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.api-key-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 680px;
  margin-bottom: 36px;
}