/* Extracted from careers.html. */
.careers-section,
.careers-section * {
  margin: 0;
  box-sizing: border-box;
  font-family: var(--earn-font);
}
html,
body {
  background: var(--earn-black) !important;
}
body {
  color: var(--earn-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: inherit;
}
.careers-section {
  padding: 20px 40px 80px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
/* Badge */
.hiring-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(89, 204, 128, 0.08);
  border: 1.5px solid rgba(89, 204, 128, 0.4);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--earn-green);
  margin-bottom: 32px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.hiring-badge:hover {
  background: rgba(89, 204, 128, 0.15);
  border-color: rgba(89, 204, 128, 0.6);
  box-shadow: var(--earn-shadow-glow);
  transform: translateY(-2px);
}
.hiring-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--earn-green);
  fill: none;
}
/* Heading */
.careers-heading {
  font-size: 64px;
  font-weight: 800;
  color: var(--earn-text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
/* Subheading */
.careers-subheading {
  font-size: 18px;
  font-weight: 400;
  color: var(--earn-text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 64px;
}
/* =============================
           PERKS GRID
           ============================= */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto 64px;
}
/* Perk Card - extends .earn-card (global.css) */
.perk-card {
  padding: 30px 28px 28px;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.perk-icon {
  width: 52px;
  height: 52px;
  background: rgba(89, 204, 128, 0.1);
  border: 1px solid rgba(89, 204, 128, 0.3);
  border-radius: var(--earn-radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.perk-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--earn-green);
  fill: none;
}
.perk-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--earn-text);
  margin-bottom: 10px;
}
.perk-description {
  font-size: 15px;
  font-weight: 400;
  color: var(--earn-text-muted);
  line-height: 1.5;
}
/* =========================
           JOB LISTINGS
           ========================= */
.jobs-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
/* Job Card with green glow border */
.job-card {
  position: relative;
  background: var(--earn-surface);
  border-radius: var(--earn-radius-card);
  padding: 28px 32px;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.job-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--earn-radius-card);
  padding: 2px;
  background: linear-gradient(135deg, rgba(89, 204, 128, 0.5) 0%, rgba(89, 204, 128, 0.2) 25%, rgba(89, 204, 128, 0.1) 50%, rgba(89, 204, 128, 0.2) 75%, rgba(89, 204, 128, 0.5) 100% );
  background-size: 200% 200%;
  animation: borderGlow 4s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes borderGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--earn-shadow-card-hover);
}
.job-card:hover::before {
  opacity: 1;
}
.job-card-inner {
  position: relative;
  z-index: 1;
}
.job-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--earn-text);
}
.job-location {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earn-green);
  margin: 0 0 14px;
}
.job-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--earn-text-muted);
  max-width: 900px;
}
.job-actions {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Responsive */
@media (max-width: 1100px) {
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .careers-section {
    padding: 60px 20px;
  }
  .careers-heading {
    font-size: 48px;
  }
  .perks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .perk-card {
    min-height: 128px;
  }
  .job-card {
    padding: 24px 20px;
    border-radius: var(--earn-radius-card);
  }
  .job-card::before {
    border-radius: var(--earn-radius-card);
  }
  .earn-btn {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .careers-heading {
    font-size: 40px;
  }
  .careers-subheading {
    font-size: 15px;
  }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .job-card::before {
    animation: none;
  }
  .hiring-badge:hover, .job-card:hover, .earn-btn:hover {
    transform: none;
  }
}
/* -- Application Modal -- */
.apply-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.apply-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.apply-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--earn-surface);
  border: 1px solid var(--earn-border);
  border-radius: 24px;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.apply-overlay.open .apply-box {
  transform: translateY(0);
}
.apply-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--earn-border);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.apply-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.apply-close svg {
  width: 16px;
  height: 16px;
}
.apply-header {
  margin-bottom: 28px;
}
.apply-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.apply-header p {
  font-size: 14px;
  color: var(--earn-green);
  font-weight: 600;
  margin: 0;
}
.apply-field {
  margin-bottom: 18px;
}
.apply-field .earn-label {
  margin-bottom: 8px;
}
.apply-field .earn-input {
  border-radius: 12px;
  height: 46px;
}
.apply-textarea {
  height: auto !important;
  min-height: 100px;
  padding: 14px 16px !important;
  resize: vertical;
  border-radius: 12px !important;
  line-height: 1.5;
}
.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .apply-row {
    grid-template-columns: 1fr;
  }
}
.apply-file-zone {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.apply-file-zone:hover,
.apply-file-zone.drag {
  border-color: var(--earn-green);
  background: rgba(89, 204, 128, 0.04);
}
.apply-file-zone svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.apply-file-zone.has-file svg {
  stroke: var(--earn-green);
}
.apply-file-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
.apply-file-zone.has-file .apply-file-name {
  color: var(--earn-green);
}
.apply-file-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}
.apply-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.apply-divider {
  height: 1px;
  background: var(--earn-border);
  margin: 24px 0;
}
.apply-submit {
  width: 100%;
  height: 48px;
  font-size: 15px;
  border-radius: 12px;
  margin-top: 4px;
}
.apply-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #ff8080;
  margin-bottom: 16px;
}
.apply-success {
  text-align: center;
  padding: 20px 0;
}
.apply-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(89, 204, 128, 0.12);
  border: 1.5px solid rgba(89, 204, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.apply-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--earn-green);
}
.apply-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.apply-success p {
  font-size: 15px;
  color: var(--earn-text-muted);
  line-height: 1.6;
  margin: 0;
}
.apply-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: apply-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes apply-spin {
  to {
    transform: rotate(360deg);
  }
}
