button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero {
  margin-bottom: 28px;
  padding: 28px 24px 30px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(145, 6, 148, .2);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  color: #fff5fc;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1,
.hero p,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
      margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff !important;
}

.hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #f4c4df;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(145, 6, 148, .12);
}

.input-card {
  padding: 30px;
}

.section-heading-row,
.results-toolbar,
.translation-card-header,
.input-footer,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow,
.card-kicker {
  margin-bottom: 5px;
  color: #a11a8f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  color: #311d38;
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0;
  color: #311d38;
  font-size: 20px;
  line-height: 1.25;
}

textarea,
input[type="search"] {
  color: #312033;
  background: #fffafe;
  border: 1px solid #e7c3dc;
  border-radius: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea:focus,
input[type="search"]:focus {
  background: #ffffff;
  border-color: #db43a5;
  box-shadow: 0 0 0 4px rgba(219, 67, 165, .14);
}

#source-text {
     width: 100%;
    min-height: 160px;
    padding: 16px;
    border: 1.5px solid #ff5f9e99 !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
    line-height: 1.6;
}

#source-text::placeholder {
  color: #ad9aaa;
}

.input-footer {
  align-items: flex-start;
  margin-top: 16px;
}

.empty-state,
.actions-copy,
.no-results {
  margin-bottom: 0;
  color: #866e82;
  font-size: 13px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: #846b81;
  font-size: 12px;
}

.stats strong {
  color: #9b238a;
  font-size: 14px;
}

.results-section {
  margin-top: 42px;
}

.results-toolbar {
  align-items: flex-end;
  margin-bottom: 20px;
}

.search-box {
  display: grid;
  gap: 7px;
  min-width: 260px;
  color: #775e72;
  font-size: 12px;
  font-weight: 700;
}

.search-box input {
     width: 100%;
   
    padding: 16px;
    border: 1.5px solid #ff5f9e99 !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
    line-height: 1.6;
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.translation-card {
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.translation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(145, 6, 148, .16);
}

.translation-card-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-kicker {
  margin-bottom: 7px;
  color: #b05b9f;
  font-size: 10px;
}

.card-number {
  color: #e3bdd8;
  font-size: 20px;
  font-weight: 700;
}

.translation-output {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    border: 1.5px solid #ff5f9e99 !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fafafa;
    resize: vertical;
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
    line-height: 1.6;
}

.button {
  min-height: 44px;
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border: none;
  border-radius: 12px !important;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 18px rgba(145, 6, 148, .22);
}

.button:active {
  transform: translateY(0) scale(.99);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(251, 14, 118, .32);
  outline-offset: 2px;
}

.copy-button {
  width: 100%;
  margin-top: 16px;
}

.button-quiet {
  min-height: 38px;
  padding: 8px 16px;
  color: #9b238a;
  background: #fff2fa;
  border: 1px solid #f0c6df;
}

.button-outline {
  color: #9b238a;
  background: #ffffff;
  border: 1px solid #d98bc2;
}

.actions {
  align-items: center;
  margin-top: 24px;
  padding: 24px 28px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.no-results {
  padding: 28px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100% - 48px);
  padding: 13px 18px;
  color: #ffffff;
  background: #311d38;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(49, 29, 56, .24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 620px);
    padding-top: 18px;
  }

  .hero {
    padding: 24px 18px;
  }

  .input-card,
  .translation-card {
    padding: 22px;
  }

  .translation-grid {
    grid-template-columns: 1fr;
  }

  .results-toolbar,
  .input-footer,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .stats {
    justify-content: flex-start;
  }

  .action-buttons {
    width: 100%;
    flex-direction: column;
  }

  .action-buttons .button,
  .button-quiet {
    width: 100%;
		font-size: 11px;
  }
}
