:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-strong: #ffffff;
  --ink: #111318;
  --muted: #6f7480;
  --faint: #a8adb7;
  --line: #dfe4ec;
  --line-strong: #c7d0dd;
  --teal: #00a884;
  --teal-dark: #007f6c;
  --coral: #ff6b6b;
  --indigo: #635bff;
  --amber: #f2b84b;
  --shadow: 0 18px 55px rgba(22, 31, 48, 0.12);
  --shadow-soft: 0 10px 28px rgba(22, 31, 48, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 54%, #eef3f8 100%);
  background-size: 76px 76px, 76px 76px, auto;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 36px 0 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(99, 91, 255, 0.12) 0 2px, transparent 2px),
    radial-gradient(circle at 48px 52px, rgba(0, 168, 132, 0.12) 0 2px, transparent 2px),
    linear-gradient(135deg, transparent 47%, rgba(255, 107, 107, 0.09) 48% 52%, transparent 53%);
  background-size: 112px 112px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.top-promo {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  background: #101216;
  color: #fff;
}

.promo-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.86rem;
}

.promo-button span {
  display: inline-flex;
  height: 20px;
  align-items: center;
  border-radius: 5px;
  background: #fff;
  color: #101216;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 8px;
}

.promo-button strong,
.promo-button i {
  font-style: normal;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 36px;
  z-index: 35;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 20px;
  width: min(1056px, calc(100% - 40px));
  min-height: 70px;
  align-items: center;
  margin: 0 auto;
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #101216;
  box-shadow: var(--shadow-soft);
}

.brand-mark span {
  position: absolute;
  width: 12px;
  height: 8px;
  border-radius: 3px;
  background: var(--teal);
  transform: rotate(28deg);
}

.brand-mark span:last-child {
  width: 10px;
  background: var(--coral);
  transform: translate(4px, -3px) rotate(-28deg);
}

.language-nav {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(223, 228, 236, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
}

.chip {
  min-width: 42px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.chip.active {
  background: var(--ink);
  color: #fff;
}

.main-nav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.main-nav a,
.sign-in,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--ink);
}

.sign-in {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

main {
  width: min(1056px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0 34px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 18px;
  font-size: 3.6rem;
  line-height: 1.02;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.swap-form {
  width: min(710px, 100%);
}

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

.upload-card {
  position: relative;
  display: flex;
  min-height: 212px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.upload-card.drag-over,
.upload-card:hover {
  border-color: var(--teal);
  box-shadow: 0 18px 45px rgba(0, 168, 132, 0.12);
  transform: translateY(-2px);
}

.upload-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #edf2f5);
  color: var(--teal-dark);
  box-shadow: inset 0 -8px 20px rgba(17, 19, 24, 0.04);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.upload-card strong,
.video-label strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.upload-card small,
.file-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.video-card {
  padding: 24px;
}

.video-label {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.preview {
  position: absolute;
  inset: 0;
  display: none;
  background-position: center;
  background-size: cover;
}

.preview.active {
  display: block;
}

.preview.active::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.1), rgba(17, 19, 24, 0.5));
}

.preview.active + * {
  position: relative;
}

.divider {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.url-input,
.modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #f9fbfd;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.url-input {
  height: 42px;
  padding: 0 14px;
}

.url-input:focus,
.modal textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 168, 132, 0.12);
}

.file-note {
  width: 100%;
  min-height: 18px;
  margin: 10px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
}

.toggle-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
}

.toggle-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.ratio-group {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 4px;
}

.ratio-group button {
  min-width: 56px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.ratio-group button.active {
  background: var(--teal);
  color: #fff;
}

.generate-button,
.modal-action,
.price-card button {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 168, 132, 0.22);
}

.generate-button {
  margin-top: 18px;
}

.generate-button:disabled {
  background: #e0e3e8;
  color: #8a909a;
  box-shadow: none;
}

.job-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.job-copy {
  display: grid;
  gap: 5px;
}

.job-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e8ef;
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
  transition: width 360ms ease;
}

.trending-section,
.workflow,
.pricing {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head.compact {
  display: block;
  max-width: 620px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.section-head.compact h2 {
  font-size: 2.5rem;
  line-height: 1.08;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.trend-row {
  display: grid;
  grid-auto-columns: 156px;
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scroll-snap-type: x proximity;
}

.trend-row::-webkit-scrollbar {
  height: 8px;
}

.trend-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d1dc;
}

.trend-card {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  border-radius: 8px;
  background: #111318;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.trend-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(17, 19, 24, 0.86));
}

.trend-card span,
.trend-card strong {
  position: absolute;
  z-index: 1;
  left: 12px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.trend-card span {
  bottom: 35px;
  font-size: 0.78rem;
}

.trend-card strong {
  right: 10px;
  bottom: 14px;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-band article {
  display: grid;
  gap: 6px;
  min-height: 126px;
  align-content: center;
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
}

.feature-band strong {
  font-size: 1.7rem;
}

.feature-band span,
.workflow-grid p,
.price-card p,
.site-footer p,
.microcopy {
  color: var(--muted);
  line-height: 1.55;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid article,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.workflow-grid span,
.price-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  background: rgba(0, 168, 132, 0.12);
  color: var(--teal-dark);
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.workflow-grid h3 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
}

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

.price-card {
  display: grid;
  gap: 16px;
}

.price-card.highlighted {
  border-color: rgba(99, 91, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.1), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.86);
}

.price-card strong {
  font-size: 2.8rem;
}

.price-card p {
  margin: 0;
}

.price-card button {
  min-height: 48px;
}

.site-footer {
  display: flex;
  width: min(1056px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 44px auto 0;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-brand {
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 700;
}

.modal {
  width: min(560px, calc(100% - 34px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(17, 19, 24, 0.52);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(17, 19, 24, 0.22);
}

.modal-panel.narrow {
  max-width: 420px;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.modal h2 {
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1.14;
}

.modal label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.modal textarea {
  min-height: 120px;
  resize: vertical;
  padding: 14px;
}

.modal-action {
  margin-top: 14px;
}

.auth-button {
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.auth-button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0;
    row-gap: 12px;
    min-height: 96px;
    padding: 10px 0;
  }

  .language-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .main-nav {
    grid-column: 2;
  }

  .hero {
    min-height: 610px;
    padding-top: 36px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .section-head.compact h2 {
    font-size: 2.1rem;
  }

  .feature-band,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body::before {
    inset-top: 36px;
    opacity: 0.3;
  }

  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1056px);
  }

  .top-promo {
    padding: 0 10px;
  }

  .promo-button {
    gap: 7px;
    font-size: 0.78rem;
  }

  .promo-button strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header {
    top: 36px;
    min-height: 118px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .main-nav a {
    display: none;
  }

  .sign-in {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding: 30px 0 26px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.06;
  }

  .hero-copy {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .upload-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .upload-card {
    min-height: 218px;
  }

  .options-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .toggle-pill,
  .ratio-group {
    width: 100%;
  }

  .ratio-group button {
    flex: 1;
  }

  .job-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-row {
    grid-auto-columns: 148px;
  }

  .trend-card {
    min-height: 232px;
  }

  .section-head.compact h2 {
    font-size: 1.85rem;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* --- New Full-Stack Features & Comparison Slider --- */

.result-panel {
  width: min(710px, 100%);
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: left;
  animation: slideUpFade 400ms ease-out forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-header h2 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.provider-badge {
  display: inline-flex;
  height: 24px;
  align-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  color: #fff;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(99, 91, 255, 0.2);
}

.comparison-container {
  position: relative;
  width: 100%;
  max-width: 380px; /* Restrict width for 9:16 default portrait to prevent vertical scrolling */
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  background: #111318;
  user-select: none;
  border: 1px solid var(--line-strong);
}

/* Aspect ratio modifications based on active selection */
.comparison-container.ratio-1-1 {
  aspect-ratio: 1 / 1;
  max-width: 480px; /* Slightly wider constraint for square layouts */
}

.comparison-container.ratio-16-9 {
  aspect-ratio: 16 / 9;
  max-width: 100%; /* Fully stretch landscape layout since height is naturally small */
}

.comparison-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2.5px solid #ffffff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}

.before-media-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--container-width, 660px);
}

.before-placeholder-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(17, 19, 24, 0.4), rgba(17, 19, 24, 0.8));
  z-index: -1;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  width: 4px;
  background: #ffffff;
  cursor: ew-resize;
  z-index: 3;
  transform: translateX(-50%);
}

.slider-handle::after {
  content: "◀ ▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(17, 19, 24, 0.28);
  border: 1px solid var(--line-strong);
  transition: transform 160ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.slider-handle:hover::after,
.slider-handle:active::after {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.4);
  border-color: var(--teal);
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 18px;
}

.action-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  box-shadow: 0 8px 24px rgba(0, 168, 132, 0.15);
}

.action-btn.download-btn {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #ffffff;
}

.action-btn.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 168, 132, 0.25);
}

.action-btn.share-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.action-btn.share-btn:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .result-actions {
    grid-template-columns: 1fr;
  }
}

