:root {
  --accent: #ff7a59;
  --bg: #08111f;
  --bg-soft: #0f1a2d;
  --surface: rgba(11, 19, 33, 0.72);
  --surface-strong: rgba(16, 28, 49, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --muted: #afbdd3;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 89, 0.22), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.2), transparent 25%),
    linear-gradient(180deg, #06101b 0%, #091320 45%, #060c16 100%);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
.site-header,
.site-footer {
  width: min(1180px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.page-frame {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
}

.page-frame-with-ads {
  width: min(1720px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1180px) minmax(0, 190px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.page-frame-single {
  width: min(1180px, calc(100vw - 24px));
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  width: min(1180px, 100%);
  max-width: 100%;
}

.site-rail {
  position: sticky;
  top: 24px;
  padding-top: 24px;
}

.ad-rail-card,
.inline-ad-card {
  padding: 18px;
  border-radius: 24px;
}

.ad-rail-card {
  min-height: 540px;
}

.ad-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe0c6;
  background: rgba(255, 122, 89, 0.14);
}

.ad-slot-placeholder {
  min-height: calc(100% - 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top, rgba(255, 122, 89, 0.16), transparent 45%);
}

.ad-slot-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.ad-slot-placeholder p,
.inline-ad-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.inline-ad-band {
  position: relative;
  z-index: 1;
  padding: 0 0 26px;
}

.mesh {
  position: fixed;
  inset: auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.34;
  pointer-events: none;
}

.mesh-one {
  top: -120px;
  left: -80px;
  background: #ff7a59;
}

.mesh-two {
  right: -110px;
  bottom: 5%;
  background: #1d9bf0;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-copy,
.site-nav a,
.footer-copy,
.muted,
.field-help,
.status-copy,
.result-summary,
.tool-meta,
.privacy-line,
.hero-text,
.caveat {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  padding: 10px 0;
  font-weight: 600;
}

.site-nav form {
  margin: 0;
}

.hero,
.tool-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: start;
  padding: 32px 0 24px;
}

.hero-copy,
.tool-hero-copy,
.hero-panel,
.upload-card {
  min-width: 0;
}

.hero-copy h1,
.tool-hero-copy h1,
.section-heading h1,
.section-heading h2,
.info-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.tool-hero-copy h1,
.section-heading h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 12ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-heading h2,
.info-card h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-top: 8px;
}

.eyebrow,
.panel-label,
.tool-chip,
.status-badge {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-text,
.section-heading p,
.info-card p,
.faq-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 60ch;
}

.hero-actions,
.upload-footer,
.tool-summary,
.tool-meta,
.footer-links,
.category-title-row,
.status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffb266);
  color: #101521;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.glass,
.tool-card {
  background: linear-gradient(180deg, rgba(22, 32, 52, 0.86), rgba(10, 18, 32, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.hero-panel,
.upload-card,
.info-card,
.faq-card,
.tool-card {
  border-radius: var(--radius-xl);
}

.hero-panel,
.upload-card,
.info-card {
  padding: 24px;
}

.panel-stack,
.job-list,
.related-list {
  display: grid;
  gap: 12px;
}

.mini-tool,
.related-link,
.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-tool small,
.related-link span {
  color: var(--muted);
}

.stat-row,
.tool-grid,
.faq-grid,
.policy-grid {
  display: grid;
  gap: 16px;
}

.stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.section {
  position: relative;
  z-index: 1;
  padding: 48px 0;
}

.section.narrow {
  max-width: 980px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 24px;
}

.category-block + .category-block {
  margin-top: 26px;
}

.category-title-row {
  justify-content: space-between;
  margin-bottom: 14px;
}

.category-title-row h3,
.tool-card h4,
.faq-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-card {
  padding: 22px;
  border-top: 1px solid var(--tool-accent, var(--accent));
}

.tool-card p,
.faq-card p {
  margin-bottom: 18px;
}

.tool-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
}

.tool-chip {
  width: fit-content;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.tool-link {
  font-weight: 800;
  color: var(--tool-accent, var(--accent));
}

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 18px;
}

.timeline,
.bullet-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline li,
.bullet-list li {
  margin-bottom: 14px;
  line-height: 1.6;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
}

.tool-summary span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.caveat {
  margin-top: 18px;
}

.upload-form {
  display: grid;
  gap: 18px;
}

.dropzone {
  position: relative;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  min-height: 220px;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(255, 122, 89, 0.08);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-copy {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
}

.drop-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.drop-meta {
  color: var(--muted);
}

.selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.file-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.field-help {
  margin: 8px 0 0;
  line-height: 1.6;
}

.upload-footer {
  justify-content: space-between;
}

.privacy-line {
  max-width: 38ch;
  line-height: 1.7;
}

.submit-button {
  min-width: 170px;
}

.status-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill,
.status-badge {
  background: rgba(255, 255, 255, 0.07);
}

.status-complete {
  background: rgba(34, 197, 94, 0.18);
  color: #a6ffbd;
}

.status-failed {
  background: rgba(248, 113, 113, 0.2);
  color: #ffc5c5;
}

.status-processing {
  background: rgba(59, 130, 246, 0.2);
  color: #c7ddff;
}

.status-queued {
  background: rgba(251, 191, 36, 0.18);
  color: #ffe7a4;
}

.progress-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 12px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffcb70);
  transition: width 0.25s ease;
}

.hidden {
  display: none !important;
}

.faq-grid,
.policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-card {
  padding: 22px;
}

.alert-banner {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

.alert-info {
  background: rgba(59, 130, 246, 0.16);
  color: #d7e7ff;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.16);
  color: #ffefbf;
}

.alert-danger {
  background: rgba(248, 113, 113, 0.16);
  color: #ffd3d3;
}

.admin-auth-shell,
.admin-dashboard-shell {
  padding-top: 28px;
}

.admin-auth-layout,
.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-auth-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
}

.admin-auth-copy,
.admin-auth-card,
.admin-panel,
.admin-stat-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.admin-auth-copy h1,
.admin-heading-row h1,
.admin-panel h2,
.admin-auth-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.admin-auth-copy h1,
.admin-heading-row h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  max-width: 12ch;
}

.admin-auth-copy p,
.admin-heading-row p,
.admin-panel p,
.admin-auth-card p {
  line-height: 1.7;
}

.admin-feature-list,
.admin-side-stack,
.admin-tool-list,
.admin-job-list,
.admin-mini-list,
.admin-form-stack {
  display: grid;
  gap: 14px;
}

.admin-feature,
.admin-mini-row,
.admin-failure-row,
.admin-job-row,
.admin-tool-row {
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-feature strong,
.admin-stat-card strong,
.admin-tool-title-row strong,
.admin-job-title-row strong,
.admin-mini-row strong,
.admin-failure-row strong {
  display: block;
  margin-bottom: 6px;
}

.admin-feature span,
.admin-inline-metrics,
.admin-job-summary {
  color: var(--muted);
}

.admin-heading-row,
.admin-toolbar,
.admin-panel-head,
.admin-tool-row,
.admin-job-row,
.admin-failure-row,
.admin-mini-row,
.admin-tool-title-row,
.admin-job-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-heading-row,
.admin-panel-head {
  align-items: flex-end;
}

.admin-toolbar,
.admin-tool-title-row,
.admin-job-title-row {
  align-items: center;
  flex-wrap: wrap;
}

.admin-button {
  min-height: 44px;
  padding: 0 18px;
}

.admin-stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.admin-stat-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "Space Grotesk", sans-serif;
}

.admin-stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-grid-primary {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  align-items: start;
}

.admin-grid-secondary {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  margin-top: 20px;
}

.admin-panel {
  min-height: 100%;
}

.admin-panel-head {
  margin-bottom: 18px;
}

.admin-panel-head h2,
.admin-auth-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.admin-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.95rem;
}

.admin-inline-form {
  margin: 0;
}

.admin-tool-copy,
.admin-job-row > div,
.admin-failure-row > div {
  min-width: 0;
}

.admin-mini-row,
.admin-failure-row {
  align-items: flex-start;
}

.admin-mini-row span,
.admin-failure-row span {
  color: var(--muted);
  white-space: nowrap;
}

.admin-job-row,
.admin-tool-row,
.admin-failure-row,
.admin-mini-row {
  align-items: center;
}

.admin-job-summary {
  margin: 10px 0 0;
}

.admin-disabled-state {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 56px;
}

.footer-title {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-links {
  align-items: flex-start;
}

@media (max-width: 1560px) {
  .page-frame-with-ads {
    grid-template-columns: minmax(0, 1180px);
    width: min(1180px, calc(100vw - 24px));
  }

  .site-rail {
    display: none;
  }
}

@media (max-width: 1280px) {
  .hero,
  .tool-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .page-frame,
  .page-frame-with-ads,
  .page-frame-single {
    grid-template-columns: 1fr;
    width: min(1180px, calc(100vw - 24px));
  }

  .hero,
  .tool-hero,
  .split-layout,
  .admin-auth-layout,
  .admin-grid-primary,
  .admin-grid-secondary {
    grid-template-columns: 1fr;
  }

  .stat-row,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-rail,
  .inline-ad-band {
    display: none;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-heading-row,
  .admin-panel-head,
  .admin-job-row,
  .admin-tool-row,
  .admin-failure-row,
  .admin-mini-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1,
  .tool-hero-copy h1,
  .section-heading h1,
  .admin-auth-copy h1,
  .admin-heading-row h1 {
    font-size: 3.2rem;
  }

  main,
  .site-header,
  .site-footer {
    width: 100%;
  }

  .button,
  .submit-button {
    width: 100%;
  }

  .upload-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
