@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --font-ui: "Space Grotesk", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-display: "Rajdhani", "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --green: #13a86b;
  --green-deep: #08764a;
  --green-soft: #9ce8c5;
  --green-line: rgba(19, 168, 107, 0.28);
  --mint: #2ecf86;
  --ink: #171827;
  --muted: #7c7b91;
  --panel: rgba(255, 255, 255, 0.42);
  --panel-strong: rgba(255, 255, 255, 0.62);
  --white: #fff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-ui);
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 24%, rgba(19, 168, 107, 0.14), transparent 24rem),
    radial-gradient(circle at 77% 29%, rgba(46, 207, 134, 0.12), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #eefbf5 48%, #ffffff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 0.6rem;
  height: 0.6rem;
  content: "";
  background: #c9f6e2;
  border-radius: 50%;
  box-shadow:
    10rem 6rem 0 rgba(19, 168, 107, 0.11),
    75rem 2rem 0 rgba(46, 207, 134, 0.08),
    55rem 43rem 0 rgba(19, 168, 107, 0.16),
    88rem 31rem 0 rgba(46, 207, 134, 0.14);
}

body::before {
  top: 9.25rem;
  left: 47rem;
}

body::after {
  bottom: 6rem;
  left: 18.5rem;
  background: rgba(156, 232, 197, 0.34);
}

button,
textarea,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
.brand-name,
.primary-button,
.secondary-button,
.score-number,
.section-title,
.modal-title,
.job-title,
.stat-value,
.plan-card strong,
.generate-button,
.score-button {
  font-family: var(--font-display);
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 118rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 4rem 2.1rem 2.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.65rem;
  padding: 1.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 2.7rem;
  box-shadow: 0 1.5rem 4.5rem rgba(8, 118, 74, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--green);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 0.18rem;
  line-height: 1;
}

.brand-title {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2vw, 2rem);
  font-weight: 700;
}

.brand-signature {
  color: rgba(8, 118, 74, 0.72);
  font-size: clamp(0.62rem, 0.78vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 5.4rem;
  height: 4.4rem;
  place-items: center;
  color: var(--white);
  font-size: 1.12rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.top-actions,
.mode-switch,
.requirements,
.benefits {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 1.15rem;
}

.menu-wrapper {
  position: relative;
}

.pill,
.circle,
.status-pill,
.mode {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0.9rem 2.2rem rgba(104, 68, 149, 0.08);
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 3.45rem;
  padding: 0 1.05rem;
  color: #4f4e61;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 1rem;
}

.credit-balance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 3.45rem;
  padding: 0 1rem;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 168, 107, 0.18);
  border-radius: 1rem;
  box-shadow: 0 0.9rem 2.2rem rgba(8, 118, 74, 0.08);
}

.credit-balance svg {
  width: 1rem;
  height: 1rem;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#credit-balance-count {
  font-size: 1rem;
}

.add-credit-button {
  height: 3.45rem;
  padding: 0 1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.9rem 2.2rem rgba(8, 118, 74, 0.12);
}

.dashboard-button {
  display: inline-flex;
  height: 3.45rem;
  align-items: center;
  padding: 0 1rem;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 168, 107, 0.2);
  border-radius: 1rem;
  box-shadow: 0 0.9rem 2.2rem rgba(8, 118, 74, 0.08);
}

.pill svg,
.mode svg,
.avatar svg,
.doc-icon svg,
.edit-icon svg,
.primary-cta svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.circle {
  width: 3.25rem;
  height: 3.25rem;
  color: #34384c;
  font-weight: 900;
  border-radius: 50%;
}

.status-pill {
  gap: 0.55rem;
  padding-right: 0.35rem;
  border-radius: 1.35rem;
}

.status-pill.online {
  min-width: 12.5rem;
}

.status-pill.online .status-dot {
  order: 2;
}

.status-pill.online #status-label {
  order: 1;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill.online .avatar {
  order: 3;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 8.5rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 168, 107, 0.14);
  border-radius: 0.85rem;
  box-shadow: 0 1rem 2.5rem rgba(8, 118, 74, 0.16);
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu button {
  min-height: 2.35rem;
  padding: 0 0.75rem;
  color: #273246;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
}

.dropdown-menu button:hover,
.dropdown-menu button.active {
  color: var(--green-deep);
  background: rgba(224, 250, 238, 0.95);
}

.help-wrapper {
  position: relative;
}

.help-popover {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 30;
  display: none;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1rem;
  color: #5f697d;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 107, 72, 0.16);
  border-radius: 0.85rem;
  box-shadow: 0 1.2rem 2.8rem rgba(11, 89, 63, 0.14);
}

.help-popover.show {
  display: block;
}

.help-popover strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green-deep);
  font-size: 0.98rem;
}

.help-popover p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.55;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #ff736f;
  border-radius: 50%;
}

.avatar {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: #a5abb8;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #b9efd7;
  border-radius: 50%;
}

.mode-switch {
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.8rem 0 1.25rem;
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0 0.95rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 850;
  border: 1px solid rgba(19, 168, 107, 0.34);
  border-radius: 1.35rem;
  text-decoration: none;
}

.mode svg:first-child {
  width: 1.42rem;
  height: 1.42rem;
  padding: 0.28rem;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.mode.job {
  color: var(--green-deep);
}

.mode.job svg:first-child {
  background: var(--mint);
}

.mode .chevron {
  width: 0.9rem;
  height: 0.9rem;
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.55rem;
}

.panel,
.generate-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1.25rem 4rem rgba(100, 67, 164, 0.12);
  backdrop-filter: blur(16px);
}

.panel {
  min-height: 17.3rem;
  padding: 2.35rem 2.1rem;
  border-radius: 1.55rem;
}

h1,
h2 {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hint {
  margin: 0 0 0.7rem;
  color: #a6a4b5;
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 700;
}

.hint::before {
  content: "💡 ";
}

.dropzone,
.job-box {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 10.2rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.46);
  border: 1px dashed rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone:hover,
.job-box:focus-within {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(19, 168, 107, 0.32);
  transform: translateY(-1px);
}

.dropzone.locked {
  cursor: pointer;
}

.dropzone.dragover {
  background: rgba(224, 250, 238, 0.82);
  border-color: rgba(19, 168, 107, 0.42);
}

.dropzone input,
.job-box input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dropzone strong,
.job-box textarea {
  color: #161827;
  font-size: 0.92rem;
  font-weight: 850;
}

.dropzone small,
.job-box small {
  color: #9a98ac;
  font-size: 0.78rem;
}

.doc-icon,
.edit-icon {
  display: grid;
  width: 3.05rem;
  height: 3.05rem;
  place-items: center;
  margin-bottom: 0.35rem;
  color: #777c87;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 0.95rem;
}

.doc-icon {
  color: var(--green);
}

.job-box {
  position: relative;
  align-content: center;
  min-height: 9.2rem;
  margin-top: 0.7rem;
  border-style: solid;
  cursor: text;
}

.job-box.dragover {
  background: rgba(224, 250, 238, 0.82);
  border-color: rgba(19, 168, 107, 0.42);
}

.job-box textarea {
  width: min(100%, 38rem);
  min-height: 2.15rem;
  padding: 0;
  text-align: center;
  resize: vertical;
  overflow: hidden;
  background: transparent;
  border: 0;
  outline: 0;
}

.job-box textarea::placeholder {
  color: #161827;
  opacity: 1;
}

.generate-card {
  width: min(100%, 33rem);
  margin: 3rem auto 0;
  padding: 1rem;
  border-radius: 1.9rem;
}

.primary-cta {
  display: grid;
  width: 100%;
  min-height: 5.95rem;
  margin-top: 1rem;
  place-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border: 0;
  border-radius: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.primary-cta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  font-size: 0.78rem;
  text-transform: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
}

.cover-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.05rem 0;
  color: #606174;
  font-size: 0.85rem;
  font-weight: 780;
}

.credit-price {
  margin: 0.25rem 0 0;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.switch {
  position: relative;
  width: 2.75rem;
  height: 1.45rem;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #e2e6e9;
  border-radius: 1rem;
  transition: background 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 0.16rem;
  left: 0.17rem;
  width: 1.12rem;
  height: 1.12rem;
  content: "";
  background: var(--white);
  border: 1px solid #cbd2d8;
  border-radius: 50%;
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(1.3rem);
}

.requirements {
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.requirements span {
  min-width: 3.8rem;
  padding: 0.35rem 0.72rem;
  color: #9a98ac;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(236, 240, 243, 0.78);
  border: 1px solid #d9dde4;
  border-radius: 1rem;
}

.requirements span.ready {
  color: var(--green-deep);
  background: rgba(224, 250, 238, 0.95);
  border-color: rgba(19, 168, 107, 0.25);
}

.score-button {
  display: grid;
  width: 100%;
  min-height: 4.15rem;
  place-items: center;
  gap: 0.2rem;
  margin-top: 1rem;
  color: var(--green-deep);
  font-weight: 950;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 168, 107, 0.28);
  border-radius: 0.9rem;
  box-shadow: 0 0.75rem 1.8rem rgba(8, 118, 74, 0.08);
}

.score-button[hidden],
.score-result[hidden] {
  display: none;
}

.score-button small {
  color: #697486;
  font-size: 0.76rem;
  font-weight: 850;
}

.score-result {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  text-align: left;
  background: rgba(224, 250, 238, 0.85);
  border: 1px solid rgba(19, 168, 107, 0.24);
  border-radius: 0.9rem;
}

.score-result div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.score-result strong {
  color: var(--green-deep);
  font-size: 1.7rem;
  font-weight: 950;
}

.score-result span {
  color: #637083;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-result p {
  margin: 0;
  color: #273246;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  gap: 1rem;
  margin-top: 1.45rem;
  text-align: center;
}

.benefits {
  justify-content: center;
  gap: 2.2rem;
  margin-top: 0;
  color: rgba(8, 118, 74, 0.55);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.benefits i {
  width: 0.16rem;
  height: 0.16rem;
  background: currentColor;
  border-radius: 50%;
}

.footer-contact {
  width: min(100%, 58rem);
  margin: 0 auto;
  color: rgba(8, 118, 74, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(18, 24, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.auth-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.generation-overlay {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(18, 24, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.generation-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal,
.generation-modal {
  position: relative;
  width: min(100%, 32rem);
  padding: 2.2rem 2rem 2.4rem;
  background: var(--white);
  border-radius: 0.95rem;
  box-shadow: 0 1.5rem 4rem rgba(7, 61, 43, 0.22);
}

.auth-close {
  position: absolute;
  top: 1.4rem;
  right: 1.45rem;
  color: #99a1b2;
  font-size: 1.1rem;
  background: transparent;
  border: 0;
}

.auth-modal h2,
.generation-modal h2 {
  margin: 0 0 2.2rem;
  color: #172033;
  font-size: 1.55rem;
}

.generation-state {
  display: grid;
  gap: 0.9rem;
}

.generation-state > strong {
  color: var(--green-deep);
  font-size: 1.15rem;
  font-weight: 950;
}

.generation-state p {
  margin: 0;
  color: #687386;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}

.generation-output {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.document-section {
  display: grid;
  gap: 0.75rem;
}

.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.download-doc-button {
  min-height: 2.4rem;
  padding: 0 0.9rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border: 0;
  border-radius: 0.7rem;
  box-shadow: 0 0.8rem 1.8rem rgba(15, 139, 89, 0.18);
}

.document-preview {
  max-height: 23rem;
  padding: 1.7rem 2rem;
  overflow: auto;
  color: #172033;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.38;
  background: #fff;
  border: 1px solid rgba(11, 74, 143, 0.22);
  border-radius: 0.45rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.cv-document-header {
  margin-bottom: 0.9rem;
  text-align: center;
}

.document-preview h1,
.document-preview h2 {
  color: #0b2345;
  font-family: Arial, sans-serif;
}

.document-preview h1 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cv-document-role {
  margin: 0;
  color: #174a87;
  font-size: 0.78rem;
  font-weight: 800;
}

.document-preview h2 {
  margin: 0.9rem 0 0.4rem;
  padding-bottom: 0.12rem;
  color: #0b4a8f;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1.5px solid #0b4a8f;
}

.document-preview p {
  margin: 0.25rem 0;
}

.document-preview ul {
  margin: 0.25rem 0 0.55rem 1.2rem;
  padding: 0;
}

.document-preview li {
  margin: 0.16rem 0;
}

.document-preview strong {
  color: #0b2345;
  font-weight: 800;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.recommended-plan {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.85rem;
  color: #0b6f47;
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
  background: rgba(19, 168, 107, 0.08);
  border: 1px solid rgba(19, 168, 107, 0.22);
  border-radius: 0.75rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.payment-method {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.55rem;
  color: #273246;
  font-size: 0.8rem;
  font-weight: 950;
  background: #fff;
  border: 1px solid rgba(19, 168, 107, 0.24);
  border-radius: 0.75rem;
}

.payment-method.active {
  color: var(--white);
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
}

.payment-logo {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  border-radius: 0.45rem;
  overflow: hidden;
}

.image-logo {
  background: #fff;
}

.image-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orange-image-logo {
  width: 2.15rem;
  background: #fff;
}

.orange-image-logo img {
  object-fit: contain;
}

.card-logo {
  background: linear-gradient(135deg, #2f3a4f, #101828);
}

.card-logo svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.plan-card {
  display: grid;
  min-height: 7.5rem;
  place-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.6rem;
  color: #172033;
  background: rgba(245, 252, 249, 0.95);
  border: 1px solid rgba(19, 168, 107, 0.22);
  border-radius: 0.85rem;
}

.plan-card.featured {
  color: var(--white);
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
}

.plan-card strong {
  font-size: 1.35rem;
  font-weight: 950;
}

.plan-card span {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-card b {
  color: inherit;
  font-size: 0.92rem;
}

.checkout-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: rgba(245, 252, 249, 0.95);
  border: 1px solid rgba(19, 168, 107, 0.2);
  border-radius: 0.85rem;
}

#checkout-method-logo {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(19, 168, 107, 0.18);
  border-radius: 0.75rem;
}

#checkout-method-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#checkout-method-logo svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.checkout-box b {
  display: block;
  color: #172033;
  font-size: 1rem;
  font-weight: 950;
}

.checkout-box small {
  color: #687386;
  font-weight: 750;
}

.mobile-money-field {
  display: grid;
  gap: 0.45rem;
}

.mobile-money-field[hidden] {
  display: none !important;
}

.mobile-money-field span {
  color: #273246;
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-money-field input {
  height: 3rem;
  padding: 0 0.85rem;
  color: #172033;
  border: 1px solid #cfd6e2;
  border-radius: 0.65rem;
  outline: 0;
}

.mobile-money-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 168, 107, 0.12);
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
}

.secondary-action,
.confirm-payment {
  min-height: 3rem;
  font-weight: 950;
  border-radius: 0.75rem;
}

.secondary-action {
  color: var(--green-deep);
  background: #fff;
  border: 1px solid rgba(19, 168, 107, 0.24);
}

.confirm-payment {
  color: #fff;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border: 0;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
}

.auth-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.auth-form input,
.auth-form select,
.country-button {
  width: 100%;
  height: 3.15rem;
  padding: 0 0.8rem;
  color: #172033;
  background: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 0.4rem;
  outline: 0;
}

.auth-form input:focus,
.auth-form select:focus,
.country-button:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 168, 107, 0.12);
}

.auth-form input::placeholder {
  color: #9aa4b5;
}

.auth-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #758096 50%),
    linear-gradient(135deg, #758096 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) 1.38rem,
    calc(100% - 0.75rem) 1.38rem;
  background-repeat: no-repeat;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
}

.country-select {
  position: relative;
}

.country-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
}

.country-button #country-current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-arrow {
  color: #758096;
  font-size: 1.05rem;
}

.flag-swatch {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.18rem;
  background: var(--flag, linear-gradient(90deg, #f77f00, #fff, #009e60));
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 0.18rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.country-options {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  max-height: 14.5rem;
  padding: 0.45rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 0.65rem;
  box-shadow: 0 1rem 2.2rem rgba(7, 61, 43, 0.18);
  opacity: 0;
  transform: translateY(-0.25rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.country-options.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.35rem;
  padding: 0 0.6rem;
  color: #273246;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
}

.country-option:hover,
.country-option.active {
  color: var(--green-deep);
  background: rgba(224, 250, 238, 0.95);
}

.auth-form > button {
  height: 3.15rem;
  margin-top: 0.05rem;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border: 0;
  border-radius: 0.4rem;
}

.auth-link,
.auth-create {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 850;
}

.auth-link {
  margin-top: 1.8rem;
  color: #9aa4b5;
  font-size: 0.78rem;
}

.auth-create {
  margin-top: 1.9rem;
  color: var(--green);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: min(24rem, calc(100vw - 3rem));
  padding: 0.9rem 1.05rem;
  color: #fff;
  font-weight: 800;
  background: #073d2b;
  border-radius: 0.85rem;
  box-shadow: 0 1rem 2.5rem rgba(52, 37, 84, 0.2);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .app-shell {
    padding: 1rem;
  }

  .topbar {
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 1.4rem;
  }

  .top-actions {
    gap: 0.6rem;
  }

  .language {
    display: none;
  }

  .status-pill {
    height: 3rem;
    padding-left: 0.8rem;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
    padding: 1.45rem;
  }

  .generate-card {
    margin-top: 1.35rem;
  }

  .benefits {
    flex-direction: column;
    gap: 0.8rem;
    letter-spacing: 0;
  }

  .benefits i {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    gap: 1rem;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .primary-cta {
    min-height: 5.25rem;
    font-size: 1rem;
  }

  .cover-letter {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0.35rem;
  }
}

.jobs-page {
  display: grid;
  gap: 2rem;
}

.jobs-hero {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  text-align: center;
}

.jobs-hero p {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jobs-hero h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.jobs-hero span {
  color: #687386;
  font-weight: 850;
}

.jobs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.job-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(19, 168, 107, 0.16);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(8, 118, 74, 0.08);
}

.job-card-header,
.job-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.job-card h2 {
  margin: 0 0 0.35rem;
  color: #172033;
  font-size: 1.15rem;
}

.job-card p,
.job-card ul {
  margin: 0;
  color: #5f697d;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.job-full-text {
  margin: 0;
  color: #5f697d;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-wrap;
}

.job-card ul {
  padding-left: 1.1rem;
}

.job-card-header span,
.job-card-footer span {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.job-card-footer {
  align-items: center;
  flex-wrap: wrap;
}

.job-card-footer a,
.job-card-footer button {
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 950;
  text-decoration: none;
  border: 0;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border-radius: 0.75rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .jobs-list {
    grid-template-columns: 1fr;
  }
}

.admin-page {
  display: grid;
  gap: 1.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.admin-panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(19, 168, 107, 0.16);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(8, 118, 74, 0.08);
}

.admin-panel h1,
.admin-panel h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stats-grid div,
.behavior-list div,
.events-list div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  background: rgba(245, 252, 249, 0.95);
  border: 1px solid rgba(19, 168, 107, 0.14);
  border-radius: 0.75rem;
}

.stats-grid strong {
  color: var(--green-deep);
  font-size: 1.6rem;
}

.stats-grid span,
.behavior-list span,
.events-list span,
.events-list small {
  color: #687386;
  font-size: 0.82rem;
  font-weight: 800;
}

.behavior-list,
.events-list {
  display: grid;
  gap: 0.55rem;
}

.behavior-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-section-title span {
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 950;
}

.admin-jobs-list {
  display: grid;
  gap: 0.65rem;
}

.admin-job-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  background: rgba(248, 255, 252, 0.82);
  border: 1px solid rgba(0, 107, 72, 0.14);
  border-radius: 0.65rem;
}

.admin-job-item strong {
  color: #172033;
  font-size: 0.95rem;
}

.admin-job-item p,
.admin-job-item small {
  display: block;
  margin: 0.25rem 0 0;
  color: #687386;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-job-item button {
  flex: 0 0 auto;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  background: #b42318;
  border: 0;
  border-radius: 0.55rem;
  cursor: pointer;
}

.job-admin-form {
  display: grid;
  gap: 0.75rem;
}

.job-admin-form input,
.job-admin-form textarea {
  width: 100%;
  padding: 0.85rem;
  color: #172033;
  background: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 0.65rem;
  outline: 0;
}

.job-admin-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.job-admin-form .single-job-textarea {
  min-height: 24rem;
  line-height: 1.6;
}

.job-admin-form button {
  min-height: 3rem;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #23bd7a, #0f8b59);
  border: 0;
  border-radius: 0.75rem;
}

.admin-message {
  margin: 0;
  color: var(--green-deep);
  font-weight: 900;
}

.admin-login-page {
  min-height: 100vh;
  place-items: center;
}

.admin-login-card {
  display: grid;
  gap: 1.5rem;
}

.admin-login-card h1 {
  margin: 0;
  color: #172033;
}

@media (max-width: 860px) {
  .admin-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* CVBOOST tech refresh */
:root {
  --green: #006b48;
  --green-deep: #006b48;
  --green-dark: #006b48;
  --mint: #006b48;
  --mint-pale: #e8fbf3;
  --ink: #12251f;
  --muted: #687a75;
  --line: rgba(0, 126, 82, 0.16);
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
}

body {
  background-color: #f4fbf8;
  background-image:
    linear-gradient(rgba(5, 120, 81, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 120, 81, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8fcfa 0%, #ecf9f4 100%);
  background-size: 3rem 3rem, 3rem 3rem, 100% 100%;
}

body::before,
body::after {
  display: none;
}

.app-shell {
  width: min(100%, 112rem);
  padding: 1.5rem 1.8rem 2rem;
}

.topbar {
  position: relative;
  min-height: 5.6rem;
  padding: 1rem 1.5rem;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 126, 82, 0.14);
  border-radius: 1.15rem;
  box-shadow: 0 1.1rem 2.8rem rgba(11, 89, 63, 0.08);
}

.topbar::after {
  position: absolute;
  right: 1.3rem;
  bottom: -1px;
  left: 1.3rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(0, 169, 107, 0.5), transparent);
}

.brand {
  gap: 0.85rem;
}

.brand-mark {
  width: 4.6rem;
  height: 3.6rem;
}

.brand-title {
  color: var(--green-deep);
  font-size: clamp(1.6rem, 2vw, 1.95rem);
  letter-spacing: 0.02em;
}

.brand-signature {
  color: rgba(0, 107, 72, 0.65);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.pill,
.circle,
.status-pill,
.credit-balance,
.dashboard-button {
  background: #f9fffc;
  border: 1px solid rgba(0, 126, 82, 0.15);
  box-shadow: 0 0.7rem 1.5rem rgba(11, 89, 63, 0.06);
}

.pill,
.credit-balance,
.dashboard-button,
.add-credit-button {
  height: 3rem;
  border-radius: 0.7rem;
}

.circle {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
}

.status-pill {
  height: 3rem;
  border-radius: 1.6rem;
}

.add-credit-button,
.auth-form > button,
.confirm-payment,
.job-admin-form button,
.download-doc-button {
  background: var(--green-deep);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.add-credit-button:hover,
.auth-form > button:hover,
.confirm-payment:hover,
.job-admin-form button:hover,
.download-doc-button:hover {
  background: var(--green-dark);
  box-shadow: 0 0.75rem 1.4rem rgba(0, 107, 72, 0.2);
  transform: translateY(-1px);
}

.avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-color: rgba(0, 169, 107, 0.32);
}

.mode-switch {
  margin: 1rem 0 0.75rem;
}

.mode {
  min-height: 2.7rem;
  padding: 0 1.05rem;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 169, 107, 0.28);
  border-radius: 1.4rem;
  box-shadow: 0 0.7rem 1.6rem rgba(11, 89, 63, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.mode:hover {
  border-color: rgba(0, 169, 107, 0.55);
  box-shadow: 0 0.85rem 1.7rem rgba(11, 89, 63, 0.1);
  transform: translateY(-2px);
}

.workflow-intro {
  display: grid;
  width: min(100%, 55rem);
  gap: 0.35rem;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.workflow-intro .workflow-kicker {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.workflow-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.workflow-title-accent {
  color: var(--green-deep);
}

.workflow-copy-accent {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  margin-left: 0.18rem;
  padding: 0.12rem 0.72rem;
  color: #fff;
  background: var(--green-deep);
  border-radius: 1rem;
  box-shadow: 0 0.4rem 0.9rem rgba(0, 107, 72, 0.16);
}

.workflow-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.workspace {
  gap: 1rem;
}

.panel,
.generate-card {
  background: var(--panel);
  border: 1px solid rgba(0, 126, 82, 0.14);
  box-shadow: 0 1.15rem 2.7rem rgba(11, 89, 63, 0.08);
  backdrop-filter: blur(14px);
}

.panel {
  position: relative;
  min-height: 18.4rem;
  padding: 1.65rem;
  overflow: hidden;
  border-radius: 1rem;
}

.panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.22rem;
  content: "";
  background: var(--green);
}

.panel h1,
.panel h2 {
  margin-bottom: 0.3rem;
  color: var(--green-deep);
  font-size: 1.15rem;
  letter-spacing: 0.025em;
}

.hint {
  color: #81908c;
  font-size: 0.72rem;
}

.hint::before {
  content: "✦ ";
  color: var(--green);
}

.dropzone,
.job-box {
  min-height: 11.8rem;
  margin-top: 1rem;
  background:
    linear-gradient(90deg, rgba(0, 169, 107, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(0, 169, 107, 0.035) 1px, transparent 1px),
    rgba(248, 255, 252, 0.82);
  background-size: 1.25rem 1.25rem, 1.25rem 1.25rem, 100% 100%;
  border: 1px dashed rgba(0, 169, 107, 0.3);
  border-radius: 0.7rem;
}

.job-box {
  min-height: 10.9rem;
  border-style: dashed;
}

.dropzone:hover,
.job-box:focus-within,
.dropzone.dragover,
.job-box.dragover {
  background-color: #effdf7;
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(0, 169, 107, 0.12);
  transform: translateY(-2px);
}

.doc-icon,
.edit-icon {
  width: 3.35rem;
  height: 3.35rem;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid rgba(0, 169, 107, 0.16);
  border-radius: 0.65rem;
  box-shadow: 0 0.55rem 1.3rem rgba(11, 89, 63, 0.08);
}

.dropzone strong,
.job-box textarea {
  color: #16352b;
}

.dropzone small,
.job-box small {
  color: #788984;
}

.job-upload-button {
  min-height: 2.35rem;
  margin-top: 0.25rem;
  padding: 0 0.9rem;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 850;
  background: #fff;
  border: 1px solid rgba(0, 169, 107, 0.26);
  border-radius: 0.5rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.job-upload-button:hover {
  background: var(--mint-pale);
  border-color: var(--green);
  transform: translateY(-1px);
}

.generate-card {
  width: min(100%, 37rem);
  margin-top: 1.5rem;
  padding: 0.85rem;
  border-radius: 1rem;
}

.ats-insight {
  display: grid;
  width: min(100%, 90rem);
  gap: 0.1rem;
  margin: 1.15rem auto 0;
  color: #81908c;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.ats-insight span {
  display: block;
}

.ats-insight span:first-child::before {
  color: var(--green-deep);
  content: "✦ ";
}

.requirements {
  margin: 0.15rem 0 0.75rem;
}

.requirements span {
  border-radius: 0.5rem;
}

.score-button {
  min-height: 3.85rem;
  margin-top: 0.75rem;
  background: #fbfffd;
  border-radius: 0.7rem;
  box-shadow: none;
  transition: background 160ms ease, transform 160ms ease;
}

.score-button:hover {
  background: var(--mint-pale);
  transform: translateY(-1px);
}

.score-result {
  margin-top: 0.75rem;
  background: #e9fbf3;
  border-radius: 0.7rem;
}

.primary-cta {
  min-height: 5.15rem;
  margin-top: 0.75rem;
  background: var(--green-deep);
  border-radius: 0.7rem;
  box-shadow: 0 0.85rem 1.7rem rgba(0, 107, 72, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-cta:hover {
  background: var(--green-dark);
  box-shadow: 0 1rem 2rem rgba(0, 107, 72, 0.24);
  transform: translateY(-2px);
}

.credit-price {
  margin-bottom: 0.25rem;
}

.site-footer {
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(0, 126, 82, 0.13);
}

.benefits {
  gap: 1.4rem;
  color: rgba(0, 107, 72, 0.66);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.footer-contact {
  color: rgba(0, 86, 59, 0.7);
  font-size: 0.74rem;
}

.testimonials {
  display: grid;
  width: min(100%, 72rem);
  gap: 0.9rem;
  margin: 0.35rem auto 0;
}

.testimonials-heading {
  display: grid;
  gap: 0.32rem;
}

.testimonials-heading span {
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.testimonials-heading h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.15;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.testimonial-card {
  display: grid;
  min-height: 10rem;
  align-content: space-between;
  gap: 0.65rem;
  padding: 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 126, 82, 0.14);
  border-radius: 0.7rem;
  box-shadow: 0 0.8rem 1.8rem rgba(11, 89, 63, 0.05);
}

.testimonial-icon {
  display: block;
  width: 3.35rem;
  height: 3.35rem;
  overflow: hidden;
  background: var(--mint-pale);
  border: 2px solid rgba(0, 169, 107, 0.28);
  border-radius: 50%;
  box-shadow: 0 0.45rem 1rem rgba(11, 89, 63, 0.12);
}

.testimonial-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card p {
  margin: 0;
  color: #526661;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}

.testimonial-card strong {
  color: var(--green-deep);
  font-size: 0.82rem;
}

.auth-overlay,
.generation-overlay {
  background: rgba(7, 31, 25, 0.65);
  backdrop-filter: blur(8px);
}

.auth-modal,
.generation-modal {
  border: 1px solid rgba(0, 169, 107, 0.18);
  border-radius: 0.9rem;
  box-shadow: 0 1.6rem 4rem rgba(0, 39, 27, 0.28);
}

.auth-modal::before,
.generation-modal::before {
  position: absolute;
  top: 0;
  right: 1rem;
  left: 1rem;
  height: 0.2rem;
  content: "";
  background: var(--green);
  border-radius: 0 0 0.3rem 0.3rem;
}

.auth-form input,
.auth-form select,
.country-button,
.mobile-money-field input,
.job-admin-form input,
.job-admin-form textarea {
  border-color: rgba(0, 107, 72, 0.2);
  border-radius: 0.55rem;
}

.auth-form > button,
.secondary-action,
.confirm-payment {
  border-radius: 0.55rem;
}

.payment-method,
.plan-card,
.checkout-box {
  border-radius: 0.65rem;
}

.payment-method.active,
.plan-card.featured {
  background: var(--green-deep);
}

.dropdown-menu {
  border-radius: 0.65rem;
}

.jobs-hero {
  padding: 1rem 0 0.5rem;
}

.jobs-page,
.admin-page {
  align-content: start;
}

.jobs-hero h1 {
  color: var(--green-deep);
}

.job-card,
.admin-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 126, 82, 0.15);
  border-radius: 0.8rem;
}

.job-card-footer a,
.job-card-footer button {
  background: var(--green-deep);
  border-radius: 0.55rem;
}

.generation-overlay {
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.generation-modal {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.generation-modal .auth-close {
  position: sticky;
  top: 0.35rem;
  right: auto;
  z-index: 2;
  display: block;
  margin-left: auto;
  margin-top: -0.65rem;
  margin-right: -0.7rem;
}

.generation-modal h2 {
  clear: both;
}

@media (max-width: 860px) {
  .app-shell {
    padding: 0.8rem;
  }

  .topbar {
    padding: 0.9rem;
    border-radius: 0.85rem;
  }

  .brand-mark {
    width: 3.8rem;
    height: 3rem;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .workflow-intro {
    margin-bottom: 1rem;
  }

  .panel {
    padding: 1.25rem;
  }
}

@media (max-width: 560px) {
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .credit-balance,
  .add-credit-button,
  .dashboard-button {
    height: 2.75rem;
  }

  .status-pill {
    height: 2.75rem;
  }

  .workflow-intro h1 {
    font-size: 1.75rem;
  }

  .workflow-intro > p:last-child {
    font-size: 0.82rem;
  }

  .panel {
    border-radius: 0.8rem;
  }

  .generation-overlay {
    padding: 0.65rem;
  }

  .generation-modal {
    width: min(100%, 34rem);
    max-height: calc(100dvh - 1.3rem);
    padding: 1.6rem 1.15rem 1.4rem;
  }

  .generation-output {
    gap: 1.35rem;
  }

  .document-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .download-doc-button {
    width: 100%;
  }

  .document-preview {
    max-height: 18rem;
    padding: 1.35rem 1.25rem;
    font-size: 0.76rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .dropzone,
  .job-box {
    min-height: 10.2rem;
  }
}
