:root {
  --bg: #fafbff;
  --paper: #ffffff;
  --ink: #1a1a2e;
  --subtle: #64748b;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-light: #fff7ed;
  --orange-border: #fdba74;
  --purple: #a855f7;
  --purple-light: #faf5ff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── gradient blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.blob-orange {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(249,115,22,0.18), transparent 70%);
}
.blob-purple {
  width: 500px; height: 500px;
  bottom: -150px; left: -80px;
  background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%);
}

/* ── container ── */
.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(249,115,22,0.22);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.header-nav a:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.link-login {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s;
}
.link-login:hover { border-color: var(--orange-border); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
  transition: transform .2s, box-shadow .2s;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 6px 10px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* ── hero ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(249,115,22,0.15);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hero h1 .highlight {
  position: relative;
  display: inline;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: .35em;
  background: rgba(249,115,22,0.25);
  border-radius: 4px;
  z-index: -1;
}
.hero-desc {
  color: var(--subtle);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(249,115,22,0.4); }
.btn-outline {
  color: var(--orange);
  background: #fff;
  border: 1px solid var(--orange-border);
}
.btn-outline:hover { background: var(--orange-light); }

/* ── section titles ── */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--subtle);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── features ── */
.features { padding: 80px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-border);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1.5px solid var(--orange-border);
  background: var(--orange-light);
  color: var(--orange);
}
.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
}

/* ── steps ── */
.steps { padding: 80px 0; background: linear-gradient(180deg, #fff7ed 0%, var(--bg) 100%); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--subtle);
  font-size: 14px;
}
.step-arrow {
  display: none;
  position: absolute;
  right: -28px; top: 50%;
  transform: translateY(-50%);
  color: var(--orange-border);
  font-size: 24px;
  z-index: 1;
}

/* ── generator panel ── */
.generator { padding: 80px 0; }
.generator-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.generator-card h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.generator-subtitle {
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 20px;
}
.gen-form { display: grid; gap: 14px; }
.gen-form label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.gen-form input,
.gen-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.gen-form input:focus,
.gen-form select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.input-with-btn {
  position: relative;
}
.input-with-btn input { padding-right: 80px; }
.paste-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.paste-btn:hover { background: #fed7aa; }
.btn-generate {
  border: none;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.btn-generate:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.gen-note {
  color: var(--subtle);
  font-size: 12px;
  margin-top: 4px;
}

/* ── pricing ── */
.pricing { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-note {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(249,115,22,0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.pricing-desc {
  color: var(--subtle);
  font-size: 13px;
  margin-bottom: 16px;
}
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price .currency {
  font-size: 18px;
  font-weight: 600;
  vertical-align: super;
}
.pricing-unit {
  color: var(--subtle);
  font-size: 13px;
  margin-bottom: 20px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 6px 0;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '\2713';
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.btn-pricing {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn-pricing-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  box-shadow: 0 4px 14px rgba(249,115,22,0.25);
}
.btn-pricing-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}
.btn-pricing-outline {
  color: var(--orange);
  border: 1px solid var(--orange-border);
  background: #fff;
}
.btn-pricing-outline:hover { background: var(--orange-light); }

/* ── FAQ ── */
.faq { padding: 80px 0; }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq-question:hover { color: var(--orange); }
.faq-arrow {
  font-size: 18px;
  color: var(--subtle);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 18px;
}
.faq-answer p {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.7;
}

/* ── footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.footer-links a {
  color: var(--subtle);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

/* ── login page ── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 120px);
  padding: 40px 20px;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
}
.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.login-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.login-tab:hover {
  color: var(--ink);
}
.login-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.login-panel {
  display: none;
  padding: 32px;
}
.login-panel.active {
  display: block;
}
.login-card h1 {
  font-size: 26px;
  margin-bottom: 6px;
}
.login-card .login-subtitle {
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 20px;
}
.btn-send-code,
.btn-verify-code {
  border: 1px solid var(--orange-border);
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-send-code:hover,
.btn-verify-code:hover {
  background: #fed7aa;
}
.btn-send-code:disabled,
.btn-verify-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.login-card h1 {
  font-size: 28px;
  margin-bottom: 6px;
}
.login-card .login-subtitle {
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 24px;
}
.login-form { display: grid; gap: 14px; }
.login-form label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.login-inline-help {
  margin: -6px 0 2px;
  font-size: 12px;
  color: var(--subtle);
}
.login-inline-help a {
  color: inherit;
  text-decoration: none;
}
.login-inline-help a:hover {
  color: var(--orange);
  text-decoration: underline;
}
.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.login-links a {
  color: var(--orange);
  text-decoration: none;
  font-size: 13px;
}
.login-links a:hover { text-decoration: underline; }
.login-note {
  color: var(--subtle);
  font-size: 12px;
  margin-top: 16px;
  text-align: center;
}

/* ── animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── header nav convert link ── */
.header-nav-convert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
  transition: transform .2s, box-shadow .2s;
}
.header-nav-convert:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.user-info {
  font-size: 13px;
  color: #475569;
}

/* ── nav active ── */
.nav-active {
  color: var(--orange) !important;
  font-weight: 700;
}

/* ── convert page ── */
.convert-main {
  min-height: calc(100vh - 64px);
  padding: 40px 0 80px;
}

.convert-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.convert-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}
.convert-subtitle {
  color: var(--subtle);
  font-size: 14px;
}
.credits-badge {
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  color: var(--orange);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}

.convert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* ── mode tabs ── */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.mode-tab:hover {
  border-color: var(--orange-border);
  color: var(--orange);
}
.mode-tab.active {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange);
}
.mode-tab-icon { font-size: 16px; }

.mode-panel { display: none; }
.mode-panel.active { display: block; }

/* ── url input ── */
.convert-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.url-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.convert-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.convert-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.btn-paste {
  border: 1px solid var(--orange-border);
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.btn-paste:hover { background: #fed7aa; }
.convert-hint {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 4px;
}

/* ── upload zone ── */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 8px;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--orange);
  background: var(--orange-light);
}
.upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.upload-hint { font-size: 12px; color: var(--subtle); }

.file-selected-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.file-icon { font-size: 20px; }
.file-selected-info span:nth-child(2) {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-clear-btn {
  border: none;
  background: none;
  color: var(--subtle);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s;
}
.file-clear-btn:hover { color: var(--orange); }

/* ── submit button ── */
.btn-convert {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
  transition: filter .2s, transform .2s;
}
.btn-convert:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-convert:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.quota-note {
  margin-top: 10px;
  color: var(--subtle);
  font-size: 13px;
}

/* ── progress ── */
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.progress-title {
  font-size: 16px;
  font-weight: 600;
}
.progress-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}
.badge-done { background: #dcfce7; color: #16a34a; }
.badge-failed { background: #fee2e2; color: #dc2626; }
.badge-running { background: #fff7ed; color: var(--orange); }

.progress-bar-wrap {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #fb923c);
  border-radius: 999px;
  transition: width .5s ease;
}
.progress-msg {
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 16px;
}
.progress-done {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── result ── */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.result-title {
  font-size: 16px;
  font-weight: 700;
}
.result-meta {
  font-size: 12px;
  color: var(--subtle);
}
.result-empty {
  font-size: 13px;
  color: var(--subtle);
}
.result-content {
  display: none;
  margin: 0;
  max-height: 560px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ── history ── */
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.history-title { font-size: 16px; font-weight: 700; }
.btn-refresh {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--subtle);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn-refresh:hover { color: var(--orange); border-color: var(--orange-border); }

.history-empty { color: var(--subtle); font-size: 14px; text-align: center; padding: 20px 0; }
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child { border-bottom: none; }
.history-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.history-title-text {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-date { font-size: 12px; color: var(--subtle); }
.history-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.history-dl {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--orange-border);
  border-radius: 6px;
  background: var(--orange-light);
  transition: background .2s;
}
.history-dl:hover { background: #fed7aa; }
.history-delete {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.history-delete:hover {
  background: #ffe4e6;
  border-color: #fca5a5;
}
.history-error { font-size: 12px; color: #dc2626; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-progress { font-size: 12px; color: var(--subtle); }

/* ── auth guard ── */
.convert-guard {
  text-align: center;
  padding: 80px 20px;
}
.guard-icon { font-size: 48px; margin-bottom: 16px; }
.convert-guard h2 { font-size: 24px; margin-bottom: 8px; }
.convert-guard p { color: var(--subtle); margin-bottom: 24px; }

/* ── responsive ── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 50px 0 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .menu-toggle { display: inline-flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    flex-direction: column;
    gap: 4px;
  }
  .header-nav a { display: block; padding: 10px 12px; }
  body.nav-open .header-nav { display: flex; }
  .header-actions { margin-left: auto; }
  .generator-card { padding: 28px 20px; }
  .convert-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mode-tabs { flex-direction: column; }
  .progress-done { flex-direction: column; }
  .result-header { align-items: flex-start; flex-direction: column; }
  .result-content { max-height: 420px; }
}
@media (max-width: 768px) {
  .hero { padding: 50px 0 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .menu-toggle { display: inline-flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    flex-direction: column;
    gap: 4px;
  }
  .header-nav a {
    display: block;
    padding: 10px 12px;
  }
  body.nav-open .header-nav { display: flex; }
  .header-actions { margin-left: auto; }
  .generator-card { padding: 28px 20px; }
}
