:root {
  --bg: #171817;
  --panel: #2a2b29;
  --panel-soft: #222320;
  --border: #42443f;
  --text: #f5f3ed;
  --muted: #c7c4bd;

  --green: #e8f5dc;
  --green-text: #265d16;

  --danger-soft: #fde8e8;
  --danger-text: #9a1c1c;
}

body {
  background:
    radial-gradient(circle at top, #242522 0, var(--bg) 45%);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 16px;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: .13em;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  min-height: 560px;
}

.form-label {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.dark-input,
.dark-input:focus {
  background: var(--panel-soft);
  border: 1px solid #3d3f3a;
  color: var(--text);
  border-radius: 12px;
  min-height: 58px;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.dark-input::placeholder,
#techStack::placeholder {
  color: #8f918a;
}

.stack-preview {
  background: var(--panel-soft);
  border: 1px solid #3d3f3a;
  border-radius: 12px;
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#techStack {
  background: transparent;
  border: 0;
  color: white;
  outline: none;
  min-width: 220px;
  font-weight: 700;
}

.stack-pill {
  background: #e8f3ff;
  color: #113f72;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remove-stack {
  cursor: pointer;
  opacity: .7;
}

.remove-stack:hover {
  opacity: 1;
}

.primary-action {
  background: var(--green);
  color: var(--green-text);
  border: 0;
  border-radius: 12px;
  padding: 18px;
  font-weight: 800;
  font-size: 1.1rem;
}

.primary-action:hover {
  background: #dff0ce;
  color: var(--green-text);
}

.result-banner {
  background: var(--danger-soft);
  color: var(--danger-text);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.result-banner.success {
  background: #e8f5dc;
  color: #265d16;
}

.result-banner.success .icon {
  border-color: #265d16;
}

.result-banner .icon {
  width: 42px;
  height: 42px;
  border: 3px solid var(--danger-text);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.metric-card {
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
}

.metric-label {
  color: var(--muted);
  font-weight: 700;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.job-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.job-title {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.job-company {
  color: var(--muted);
  font-weight: 600;
}

.salary-pill {
  background: var(--green);
  color: var(--green-text);
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 900;
  white-space: nowrap;
}

.share-box {
  background: var(--panel-soft);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--muted);
  font-style: italic;
  font-weight: 700;
}

.share-btn {
  border-radius: 999px;
  font-weight: 800;
  padding: 9px 15px;
}

.divider {
  border-color: var(--border);
  opacity: 1;
}

@media (max-width: 767px) {

  .app-card {
    padding: 20px;
    min-height: auto;
  }

  .job-row {
    flex-direction: column;
    align-items: flex-start;
  }

}