/* ════════════════════════════════════════════════════
   ConvertX – Premium Dark Edition
   Design: Refined Dark Industrial · Electric Accents
   All text: white/light on dark backgrounds
════════════════════════════════════════════════════ */

:root {
  /* Base colors */
  --bg:         #080810;
  --bg2:        #0d0d18;
  --surface:    #0f0f1c;
  --surface2:   #161626;
  --surface3:   #1e1e32;
  --border:     rgba(255,255,255,0.06);
  --border2:    rgba(255,255,255,0.11);
  --border3:    rgba(255,255,255,0.18);

  /* Text */
  --text:       #f5f5ff;
  --text2:      #c8c8e8;
  --muted:      #8888aa;

  /* Accent system */
  --accent:     #7b6ef6;
  --accent-h:   #9b8fff;
  --accent2:    #ff6b6b;
  --accent3:    #00d4aa;
  --accent4:    #f59e0b;

  /* Glow */
  --glow:       rgba(123,110,246,0.4);
  --glow2:      rgba(0,212,170,0.3);
  --glow3:      rgba(123,110,246,0.15);

  /* Shape */
  --radius:     18px;
  --radius-sm:  12px;
  --radius-xs:  8px;

  /* Transitions */
  --tr:         0.25s cubic-bezier(0.4,0,0.2,1);
  --tr-spring:  0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Typography */
  --font-head:  'Rubik', sans-serif;
  --font-body:  'Urbanist', sans-serif;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ─── SELECTION ──────────────────────────────── */
::selection { background: rgba(123,110,246,0.35); color: #fff; }

/* ─── FOCUS ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════
   AD SYSTEM
══════════════════════════════════════════════ */
.ad-banner {
  width: 100%;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%);
  border-bottom: 1px solid var(--border2);
  padding: 10px 28px;
  position: relative;
  overflow: hidden;
}
.ad-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 60px, rgba(123,110,246,0.025) 60px, rgba(123,110,246,0.025) 61px);
  pointer-events: none;
}
.ad-top { border-bottom: 1px solid rgba(123,110,246,0.25); }
.ad-bottom { border-top: 1px solid rgba(123,110,246,0.25); margin-top: 0; }

.ad-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ad-label {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: var(--surface3);
  border: 1px solid var(--border2);
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  text-transform: uppercase;
}
.ad-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ad-demo { display: flex; align-items: center; gap: 12px; }
.ad-demo-icon { font-size: 22px; opacity: 0.8; }
.ad-demo strong { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); }
.ad-demo p { font-size: 12px; color: var(--muted); }
.ad-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: var(--radius-xs);
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: var(--tr);
  white-space: nowrap;
}
.ad-cta:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow); }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 62px;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px var(--glow3), 0 0 40px rgba(0,212,170,0.1);
  flex-shrink: 0;
}
..logo-x { color: var(--accent); }
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: var(--tr);
}
.header-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.header-cta {
  background: rgba(123,110,246,0.18);
  border: 1px solid rgba(123,110,246,0.35);
  color: var(--accent-h);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
}
.header-cta:hover { background: rgba(123,110,246,0.25); border-color: var(--accent); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 640px;
  padding: 100px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(123,110,246,0.18), transparent 28%), radial-gradient(circle at 100% 10%, rgba(0,212,170,0.12), transparent 28%), linear-gradient(180deg, #090b16 0%, #11162c 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  width: 100%;
}
.hero-desc {
  font-size: 1rem;
  max-width: 760px;
  color: var(--text2);
  margin-top: 18px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
}
.btn-primary, .btn-ghost {
  min-width: 170px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 860px;
  margin-top: 36px;
  justify-content: center;
}
.stat {
  flex: 1 1 150px;
  min-width: 150px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 18px 20px;
}
.stat strong { font-size: 28px; }
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px; left: -100px;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent3), transparent 70%);
  bottom: -100px; right: -50px;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,110,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,110,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123,110,246,0.1);
  border: 1px solid rgba(123,110,246,0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 28px;
  animation: fadeSlideDown 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent3);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent3);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--accent-h) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-h) 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px var(--glow);
  transition: var(--tr);
  letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px var(--glow); }
.btn-ghost {
  color: var(--text2);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border3);
  transition: var(--tr);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeSlideUp 0.7s ease 0.4s both;
}
.stat strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--text); }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-sep { width: 1px; height: 40px; background: var(--border2); }

/* ══════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════ */
.features-section {
  padding: 80px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner { max-width: 1000px; margin: 0 auto; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 44px;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--tr);
}
.feature-card:hover {
  border-color: var(--border3);
  transform: translateY(-4px);
  background: var(--surface2);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ══════════════════════════════════════════════
   TOOL QUICK LINKS SECTION
══════════════════════════════════════════════ */
.tool-links-section {
  padding: 64px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.tool-links-inner { max-width: 900px; margin: 0 auto; }
.tool-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tool-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--tr);
  font-family: var(--font-body);
  cursor: pointer;
}
.tool-link-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow3);
}

/* ══════════════════════════════════════════════
   MAIN APP
══════════════════════════════════════════════ */
.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  position: relative;
}

/* ─── Page Intro ─ */
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.step-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.page-sub { color: var(--text2); font-size: 14px; margin-top: 6px; }
.page-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge {
  font-size: 12px;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 5px 13px;
  border-radius: 99px;
  white-space: nowrap;
  font-weight: 500;
}

/* ─── Step Section ─ */
.step-section {
  margin-bottom: 60px;
  animation: fadeSlideUp 0.5s ease both;
}
.step-section.hidden { display: none !important; }
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}
.step-header h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.step-header p { color: var(--text2); font-size: 14px; margin-top: 4px; }
.back-btn {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 9px 18px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: var(--tr);
  align-self: flex-start;
  margin-top: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.back-btn:hover { color: var(--text); border-color: var(--accent); background: var(--surface3); }

/* ══════════════════════════════════════════════
   SOURCE CARDS
══════════════════════════════════════════════ */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}
.source-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px 28px;
  cursor: pointer;
  text-align: center;
  transition: var(--tr);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeSlideUp 0.5s ease both;
}
.source-card:hover {
  border-color: rgba(123,110,246,0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(123,110,246,0.15);
  background: var(--surface2);
}
.source-card:hover .card-glow { opacity: 1; }
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(123,110,246,0.18), transparent 65%);
  opacity: 0;
  transition: opacity var(--tr);
  pointer-events: none;
}
.card-icon { font-size: 38px; position: relative; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.card-label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-h);
  background: rgba(123,110,246,0.12);
  border: 1px solid rgba(123,110,246,0.25);
  padding: 3px 10px;
  border-radius: 99px;
  position: relative;
  z-index: 1;
}

/* Stagger delays */
.source-grid .source-card:nth-child(1) { animation-delay: 0.05s; }
.source-grid .source-card:nth-child(2) { animation-delay: 0.10s; }
.source-grid .source-card:nth-child(3) { animation-delay: 0.15s; }
.source-grid .source-card:nth-child(4) { animation-delay: 0.20s; }
.source-grid .source-card:nth-child(5) { animation-delay: 0.25s; }

/* ══════════════════════════════════════════════
   TOOL GRID
══════════════════════════════════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  justify-content: center;
}
.tool-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
}
.tool-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent3));
  transform: scaleY(0);
  transition: transform var(--tr);
  transform-origin: bottom;
  border-radius: 0 2px 2px 0;
}
.tool-card:hover {
  border-color: var(--border3);
  transform: translateX(5px);
  background: var(--surface2);
  box-shadow: 4px 0 24px rgba(123,110,246,0.08);
}
.tool-card:hover::before { transform: scaleY(1); }
.tool-icon {
  font-size: 24px;
  width: 46px; height: 46px;
  background: var(--surface3);
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border2);
}
.tool-info { flex: 1; min-width: 0; }
.tool-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-desc { font-size: 12px; color: var(--text2); margin-top: 2px; line-height: 1.4; }
.tool-arrow { color: var(--muted); font-size: 18px; transition: var(--tr); flex-shrink: 0; }
.tool-card:hover .tool-arrow { color: var(--accent-h); transform: translateX(4px); }

/* ══════════════════════════════════════════════
   UPLOAD ZONE
══════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 64px 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--tr);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(123,110,246,0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--tr);
  pointer-events: none;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(123,110,246,0.04);
}
.upload-zone:hover::before { opacity: 1; }
.upload-zone.drag-over { border-style: solid; }

.upload-inner { position: relative; z-index: 1; }
.upload-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
}
.upload-icon { font-size: 56px; display: block; }
.upload-ring {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--tr);
  animation: ringPulse 2.5s ease infinite;
}
.upload-zone:hover .upload-ring { opacity: 1; }
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 0.15; }
}
.upload-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.upload-sub { color: var(--text2); font-size: 14px; margin-bottom: 20px; }
.upload-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-h));
  color: #fff;
  padding: 12px 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: var(--tr);
  margin-bottom: 14px;
  box-shadow: 0 4px 20px var(--glow3);
  letter-spacing: 0.02em;
}
.upload-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--glow); }
.upload-hint { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════
   FILE LIST
══════════════════════════════════════════════ */
.file-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-list.hidden { display: none !important; }
.file-item {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeSlideUp 0.3s ease both;
  transition: var(--tr);
}
.file-item:hover { border-color: var(--border3); background: var(--surface2); }
.file-item-icon { font-size: 22px; flex-shrink: 0; }
.file-item-info { flex: 1; min-width: 0; }
.file-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item-size { font-size: 12px; color: var(--muted); margin-top: 2px; }
.file-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  transition: color var(--tr);
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.file-remove:hover { color: var(--accent2); }

/* ══════════════════════════════════════════════
   TOOL OPTIONS
══════════════════════════════════════════════ */
.tool-options {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.tool-options.hidden { display: none !important; }
.tool-options h4 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.option-row label { font-size: 14px; color: var(--text2); min-width: 100px; font-weight: 500; }
.option-row select,
.option-row input[type="range"],
.option-row input[type="number"] {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 14px;
  flex: 1;
  max-width: 220px;
  outline: none;
  transition: border-color var(--tr);
  appearance: auto;
}
.option-row select:focus,
.option-row input:focus { border-color: var(--accent); }
.option-row span { font-size: 14px; color: var(--accent-h); font-weight: 700; font-family: var(--font-head); }

/* ══════════════════════════════════════════════
   CONVERT BUTTON
══════════════════════════════════════════════ */
.convert-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.convert-actions.hidden { display: none !important; }
.convert-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-h) 50%, #b8aeff 100%);
  color: #fff;
  border: none;
  padding: 18px 60px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--tr);
  box-shadow: 0 8px 40px rgba(123,110,246,0.45);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.convert-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  opacity: 0;
  transition: opacity var(--tr);
}
.convert-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(123,110,246,0.55);
}
.convert-btn:hover::before { opacity: 1; }
.convert-btn:active { transform: translateY(-1px); }
.convert-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btn-icon { font-size: 20px; animation: spin 3s linear infinite; }

/* ══════════════════════════════════════════════
   UTILITY PANEL
══════════════════════════════════════════════ */
.utility-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.utility-panel.hidden { display: none !important; }
.utility-panel h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.util-input-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.util-input-group label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.util-input {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--tr);
  width: 100%;
}
.util-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123,110,246,0.12); }
.util-input::placeholder { color: var(--muted); }
.util-textarea { min-height: 120px; resize: vertical; }
.util-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--tr);
  letter-spacing: 0.02em;
}
.util-btn:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow3); }
.util-result {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 18px;
  font-size: 14px;
  word-break: break-all;
  display: none;
}
.util-result.visible { display: block; }
.util-result strong {
  color: var(--accent3);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.util-result-value {
  font-family: 'Courier New', monospace;
  color: var(--text);
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 7px 16px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 12px;
  margin-top: 12px;
  transition: var(--tr);
  font-family: var(--font-body);
  font-weight: 500;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

#qrCanvas {
  margin: 20px auto 0;
  display: block;
  border-radius: var(--radius-sm);
  border: 3px solid var(--surface3);
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════ */
.progress-bar-wrap {
  width: 100%;
  max-width: 400px;
  background: var(--surface3);
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
  display: none;
}
.progress-bar-wrap.visible { display: block; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ══════════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════════ */
.faq-section {
  padding: 80px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-grid { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq-item:hover { border-color: var(--border3); }
.faq-item[open] { border-color: rgba(123,110,246,0.35); }
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--tr);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   SIDE AD
══════════════════════════════════════════════ */
.ad-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 155px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ad-sidebar-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-sidebar-icon { font-size: 28px; }
.ad-sidebar-inner strong { font-size: 12px; font-family: var(--font-head); color: var(--text); }
.ad-sidebar-inner p { font-size: 11px; color: var(--muted); }
.ad-sidebar-mock {
  width: 120px; height: 200px;
  background: var(--surface3);
  border-radius: var(--radius-xs);
  border: 1px dashed var(--border2);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 8px,
    rgba(255,255,255,0.015) 8px, rgba(255,255,255,0.015) 9px
  );
}

/* ══════════════════════════════════════════════
   AD OVERLAY MODAL
══════════════════════════════════════════════ */
.ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
.ad-overlay.hidden { display: none !important; }
.ad-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(123,110,246,0.1);
  animation: modalPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalPop {
  from { transform: scale(0.87); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.ad-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.ad-close-btn {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  transition: var(--tr);
}
.ad-close-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ad-close-btn.hidden { display: none !important; }
.ad-modal-body { padding: 36px 30px 26px; text-align: center; }
.ad-modal-graphic {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 22px;
}
.ad-anim-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  animation: rotatePulse 3s linear infinite;
  opacity: 0.35;
}
.ad-anim-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  animation: iconBounce 2.5s ease infinite;
}
@keyframes rotatePulse {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes iconBounce {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}
.ad-modal-body h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ad-modal-body p { color: var(--text2); font-size: 15px; margin-bottom: 24px; line-height: 1.55; }
.ad-modal-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #fff;
  padding: 13px 36px;
  border-radius: 99px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  transition: var(--tr);
  box-shadow: 0 8px 28px rgba(123,110,246,0.35);
  letter-spacing: 0.02em;
}
.ad-modal-cta:hover { transform: scale(1.04); box-shadow: 0 14px 40px rgba(0,212,170,0.35); }
.ad-timer-bar { height: 3px; background: var(--surface3); overflow: hidden; }
.ad-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  width: 100%;
  transform-origin: left;
  transition: transform linear;
}
.ad-countdown {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
}
.ad-countdown span { color: var(--accent3); font-weight: 700; }

/* ══════════════════════════════════════════════
   RESULT TOAST
══════════════════════════════════════════════ */
.result-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--surface);
  border: 1px solid rgba(0,212,170,0.4);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,212,170,0.1);
  z-index: 500;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  min-width: 300px;
}
.result-toast.show { transform: translateX(-50%) translateY(0); }
.result-toast.hidden { display: none !important; }
.toast-icon { font-size: 24px; flex-shrink: 0; }
.toast-text { flex: 1; }
.toast-text strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--text); font-weight: 700; }
.toast-text span { font-size: 13px; color: var(--text2); }
.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--tr);
  padding: 2px;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 24px;
  text-align: center;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.02em;
}
.logo-mark-sm { color: var(--accent); font-size: 18px; }
.site-footer > .footer-inner > p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.footer-tools-nav {
  margin-bottom: 24px;
}
.footer-tools-nav strong {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.footer-tool-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-tool-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--tr);
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 5px 14px;
  border-radius: 99px;
}
.footer-tool-links a:hover { color: var(--accent-h); border-color: var(--accent); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--tr);
}
.footer-links a:hover { color: var(--accent-h); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(5px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .ad-sidebar { display: none; }
}
@media (max-width: 900px) {
  .hero-stats { gap: 18px; }
  .stat strong { font-size: 22px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { min-height: 480px; padding: 60px 20px 50px; }
  .hero-title { font-size: 38px; }
  .hero-desc { font-size: 16px; }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: 1fr; }
  .step-header { flex-wrap: wrap; }
  .upload-zone { padding: 44px 20px; }
  .convert-btn { padding: 16px 44px; font-size: 16px; }
  .ad-banner .ad-content { flex-direction: column; align-items: flex-start; gap: 8px; }
  .result-toast { min-width: unset; width: calc(100% - 48px); }
  .header-nav { display: flex; justify-content: center; gap: 12px; }
  .site-header { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .stat-sep { display: none; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .tool-links-grid { gap: 8px; }
  .footer-tool-links { gap: 8px; }
}
@media (max-width: 480px) {
  .source-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .source-card { padding: 26px 12px 20px; }
  .card-icon { font-size: 30px; }
  .card-label { font-size: 13px; }
  .hero-title { font-size: 32px; }
  .faq-inner { padding: 0 4px; }
  .utility-panel { padding: 24px 20px; }
  .tool-links-section { padding: 44px 20px; }
}
@media (hover: none) {
  .source-card:active { border-color: var(--accent); }
  .tool-card:active { background: var(--surface2); }
  .convert-btn:active { transform: scale(0.98); }
}

/* ═══ LOGO IMAGE SUPPORT ═══ */
.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
