/* =============================================================
   MimusJobs Kenya — Premium Auto-Apply Styles v5
   Only new .mjk-* classes. Never overrides existing theme CSS.
   ============================================================= */

/* ── HOW IT WORKS steps ─────────────────────────────────── */
.mjk-steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.mjk-step-card {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  background: #fff;
  border: 1.5px solid var(--border, #e4e7eb);
  border-radius: var(--r-lg, 16px);
  padding: 28px 20px 24px;
  text-align: center;
}
.mjk-step-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}
.mjk-step-num {
  display: inline-flex;
  width: 32px; height: 32px;
  background: var(--red, #C0392B);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  margin-bottom: 12px;
}
.mjk-step-card h3 {
  font-size: .95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy, #0d1b2a);
  margin: 0 0 6px;
}
.mjk-step-card p {
  font-size: .82rem;
  color: var(--text-muted, #6b7280);
  margin: 0;
  line-height: 1.5;
}
.mjk-step-arrow {
  font-size: 1.4rem;
  color: var(--grey-300, #cbd2da);
  align-self: center;
  padding: 0 8px;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .mjk-step-arrow { display: none; }
  .mjk-steps-row  { gap: 14px; }
  .mjk-step-card  { min-width: 140px; }
}

/* ── PRICING GRID ────────────────────────────────────────── */
.mjk-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .mjk-plans-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* Plan card base */
.mjk-plan-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border, #e4e7eb);
  border-radius: var(--r-xl, 24px);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.mjk-plan-card:hover {
  box-shadow: 0 12px 40px rgba(192,57,43,.1);
  transform: translateY(-3px);
}

/* Featured (Growth) card */
.mjk-plan-featured {
  border: 2px solid var(--red, #C0392B);
  box-shadow: 0 8px 32px rgba(192,57,43,.15);
  transform: scale(1.03);
  z-index: 1;
}
.mjk-plan-featured:hover {
  transform: scale(1.03) translateY(-3px);
}

/* Badge on top of card */
.mjk-plan-badge-top {
  display: inline-block;
  background: var(--red, #C0392B);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.mjk-badge-navy {
  background: var(--navy, #0d1b2a);
}

.mjk-plan-top { margin-bottom: 20px; }

.mjk-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy, #0d1b2a);
  margin-bottom: 2px;
}
.mjk-plan-tagline {
  font-size: .82rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 14px;
}
.mjk-plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
}
.mjk-price-sym {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red, #C0392B);
  font-family: 'DM Sans', sans-serif;
}
.mjk-price-big {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--red, #C0392B);
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}
.mjk-price-per {
  font-size: .95rem;
  color: var(--text-muted, #6b7280);
  margin-left: 2px;
}
.mjk-plan-quota {
  display: inline-block;
  background: var(--red-pale, #fdf0ee);
  color: var(--red, #C0392B);
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'DM Sans', sans-serif;
}
.mjk-quota-unlimited {
  background: var(--navy, #0d1b2a);
  color: #fff;
}

/* Features list */
.mjk-plan-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  flex: 1;
}
.mjk-plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: .88rem;
  color: var(--text, #1a202c);
  border-bottom: 1px solid var(--grey-100, #f1f3f5);
}
.mjk-plan-feats li:last-child { border: none; }
.mjk-fc {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--red, #C0392B);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 900;
  margin-top: 1px;
}

/* Plan CTA button */
.mjk-plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding: 13px 20px !important;
  font-size: .93rem !important;
  border-radius: var(--r-md, 10px) !important;
}

/* ── TRUST BAR ───────────────────────────────────────────── */
.mjk-trust-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--text-muted, #6b7280);
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #e4e7eb);
}

/* ── COMPARE TABLE ───────────────────────────────────────── */
.mjk-compare-wrap {
  overflow-x: auto;
  margin-top: 32px;
}
.mjk-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 500px;
}
.mjk-compare-table thead th {
  background: var(--navy, #0d1b2a);
  color: #fff;
  padding: 14px 18px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
}
.mjk-compare-table thead th:first-child { text-align: left; border-radius: var(--r-sm,6px) 0 0 0; }
.mjk-compare-table thead th:last-child  { border-radius: 0 var(--r-sm,6px) 0 0; }
.mjk-compare-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border, #e4e7eb);
  text-align: center;
  color: var(--text, #1a202c);
}
.mjk-compare-table td:first-child  { text-align: left; font-weight: 600; color: var(--navy, #0d1b2a); }
.mjk-compare-table tbody tr:hover  { background: var(--red-pale, #fdf0ee); }
.mjk-col-feat {
  background: rgba(192,57,43,.05);
  font-weight: 700;
  color: var(--red, #C0392B) !important;
}
.mjk-compare-table thead .mjk-col-feat {
  background: var(--red, #C0392B);
  color: #fff !important;
}
.mjk-compare-table small {
  display: block;
  font-weight: 400;
  font-size: .75rem;
  opacity: .7;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.mjk-faq-list {
  max-width: 720px;
  margin-top: 32px;
}
.mjk-faq-item {
  border-bottom: 1.5px solid var(--border, #e4e7eb);
}
.mjk-faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-size: .97rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy, #0d1b2a);
  cursor: pointer;
  text-align: left;
}
.mjk-faq-q:hover { color: var(--red, #C0392B); }
.mjk-faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1.5px solid var(--grey-300, #cbd2da);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all .2s;
}
.mjk-faq-q[aria-expanded="true"] .mjk-faq-icon {
  background: var(--red, #C0392B);
  border-color: var(--red, #C0392B);
  color: #fff;
  content: '−';
}
.mjk-faq-a {
  padding: 0 0 18px;
  font-size: .9rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.7;
}
.mjk-faq-a[hidden] { display: none; }

/* ── BOTTOM CTA ─────────────────────────────────────────── */
.mjk-bottom-cta {
  position: relative;
  background: var(--navy, #0d1b2a);
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}
.mjk-bottom-cta-inner { position: relative; z-index: 1; }
.mjk-bottom-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 12px;
}
.mjk-bottom-cta p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ── JOB PAGE NOTICES ───────────────────────────────────── */
.mjk-autoapply-notice {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--r-md,10px);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .88rem;
  color: #166534;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mjk-upsell-notice {
  background: var(--red-pale, #fdf0ee);
  border: 1.5px solid rgba(192,57,43,.25);
  border-radius: var(--r-md,10px);
  padding: 11px 16px;
  margin-bottom: 18px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mjk-upsell-notice a { color: var(--red,#C0392B); font-weight: 700; }

/* ── CHECKOUT ────────────────────────────────────────────── */
.mjk-checkout-wrap { max-width: 640px; margin: 0 auto; padding: 40px 20px; }
.mjk-cps-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy,#0d1b2a);
  color: #fff;
  border-radius: var(--r-lg,16px);
  padding: 20px 28px;
  margin-bottom: 32px;
}
.mjk-cps-label { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.mjk-cps-plan  { font-size: 1.2rem; font-weight: 800; font-family: 'DM Sans',sans-serif; }
.mjk-cps-limit { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.mjk-cps-price { font-size: 2rem; font-weight: 900; font-family: 'DM Sans',sans-serif; color: var(--red-light,#e74c3c); }
.mjk-cps-price span { font-size: .9rem; font-weight: 400; color: rgba(255,255,255,.5); }

.mjk-checkout-form fieldset { border: 1.5px solid var(--border,#e4e7eb); border-radius: var(--r-md,10px); padding: 22px 22px 16px; margin-bottom: 20px; }
.mjk-checkout-form legend  { font-weight: 700; font-size: .92rem; color: var(--navy,#0d1b2a); padding: 0 8px; }
.mjk-checkout-form label   { display: block; font-size: .88rem; font-weight: 600; color: var(--grey-800,#1a202c); margin-bottom: 14px; }
.mjk-checkout-form input[type="text"],
.mjk-checkout-form input[type="email"],
.mjk-checkout-form input[type="tel"],
.mjk-checkout-form input[type="url"],
.mjk-checkout-form textarea,
.mjk-checkout-form select  {
  display: block; width: 100%; margin-top: 5px;
  padding: 10px 13px;
  border: 1.5px solid var(--grey-300,#cbd2da);
  border-radius: var(--r-sm,6px);
  font-size: .92rem; font-family: inherit;
  box-sizing: border-box; background: #fff;
  transition: border-color .15s;
}
.mjk-checkout-form input:focus,
.mjk-checkout-form textarea:focus,
.mjk-checkout-form select:focus { outline: none; border-color: var(--red,#C0392B); }
.mjk-checkout-form select[multiple] { min-height: 110px; }
.mjk-checkout-form small { display: block; font-size: .77rem; color: var(--text-muted,#6b7280); margin-top: 4px; font-weight: 400; }
.mjk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .mjk-form-row { grid-template-columns: 1fr; } }

.mjk-checkout-total { background: var(--grey-100,#f1f3f5); border-radius: var(--r-md,10px); padding: 16px 20px; margin-bottom: 20px; }
.mjk-ct-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; }
.mjk-ct-total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--border,#e4e7eb); margin-top: 8px; padding-top: 10px; }
.mjk-ct-note { font-size: .78rem; color: var(--text-muted,#6b7280); margin: 8px 0 0; }

.mjk-btn-checkout {
  display: block; width: 100%; padding: 16px;
  background: var(--red,#C0392B); color: #fff; border: none;
  border-radius: var(--r-md,10px); font-size: 1rem; font-weight: 700;
  font-family: 'DM Sans',sans-serif; cursor: pointer; transition: background .2s;
}
.mjk-btn-checkout:hover { background: var(--red-dark,#922b21); }

/* ── DASHBOARD ───────────────────────────────────────────── */
.mjk-dashboard { max-width: 880px; margin: 0 auto; padding: 40px 20px; }
.mjk-dash-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  background: var(--navy,#0d1b2a);
  border-radius: var(--r-lg,16px);
  padding: 18px 24px;
  margin-bottom: 28px;
}
.mjk-dsb-badge  { background: rgba(192,57,43,.35); color: #ff9f9f; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; display: inline-block; margin-bottom: 4px; }
.mjk-dsb-renews { font-size: .8rem; color: rgba(255,255,255,.55); }
.mjk-dsb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mjk-btn-sm { padding: 8px 16px; background: rgba(255,255,255,.12); color: #fff; border-radius: var(--r-sm,6px); font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,.2); }
.mjk-btn-sm:hover { background: rgba(255,255,255,.22); color: #fff; }
.mjk-btn-sm-outline { background: transparent; }

.mjk-dash-stats { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: center; margin-bottom: 28px; }
@media (max-width: 640px) { .mjk-dash-stats { grid-template-columns: 1fr 1fr; } }
.mjk-dash-stat { background: #fff; border: 1.5px solid var(--border,#e4e7eb); border-radius: var(--r-md,10px); padding: 18px 22px; text-align: center; }
.mjk-dash-stat-wide { text-align: left; }
.mjk-ds-num { display: block; font-size: 2rem; font-weight: 900; color: var(--red,#C0392B); font-family: 'DM Sans',sans-serif; line-height: 1; }
.mjk-ds-label { font-size: .78rem; color: var(--text-muted,#6b7280); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; display: block; }
.mjk-usage-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--navy,#0d1b2a); margin-bottom: 8px; }
.mjk-usage-bar { background: var(--grey-200,#e4e7eb); border-radius: 99px; height: 8px; overflow: hidden; }
.mjk-usage-fill { height: 100%; background: var(--red,#C0392B); border-radius: 99px; transition: width .4s; }
.mjk-usage-warn   { background: #f59e0b; }
.mjk-usage-danger { background: #dc2626; }
.mjk-unlimited-badge { background: var(--navy,#0d1b2a); color: #fff; display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; }

.mjk-dash-section { background: #fff; border: 1.5px solid var(--border,#e4e7eb); border-radius: var(--r-lg,16px); padding: 28px; margin-bottom: 24px; }
.mjk-ds-title { font-size: 1.05rem; font-weight: 700; font-family: 'DM Sans',sans-serif; color: var(--navy,#0d1b2a); margin: 0 0 20px; }
.mjk-cv-link { font-size: .82rem; color: var(--text-muted,#6b7280); margin: -8px 0 14px; }
.mjk-cv-link a { color: var(--red,#C0392B); }
.mjk-btn-save { padding: 13px 28px; background: var(--red,#C0392B); color: #fff; border: none; border-radius: var(--r-md,10px); font-size: .93rem; font-weight: 700; font-family: 'DM Sans',sans-serif; cursor: pointer; margin-top: 8px; }
.mjk-btn-save:hover { background: var(--red-dark,#922b21); }
.mjk-empty-log { color: var(--text-muted,#6b7280); font-size: .9rem; padding: 20px 0; }

.mjk-log-table-wrap { overflow-x: auto; }
.mjk-log-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mjk-log-table th { text-align: left; padding: 9px 12px; background: var(--grey-100,#f1f3f5); border-bottom: 2px solid var(--border,#e4e7eb); font-weight: 700; font-family: 'DM Sans',sans-serif; color: var(--navy,#0d1b2a); }
.mjk-log-table td { padding: 10px 12px; border-bottom: 1px solid var(--grey-100,#f1f3f5); vertical-align: top; }
.mjk-log-table a  { color: var(--red,#C0392B); text-decoration: none; }
.mjk-log-table a:hover { text-decoration: underline; }
.mjk-ls-sent    { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.mjk-ls-failed  { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.mjk-ls-pending { background: #fef9c3; color: #92400e; padding: 2px 8px; border-radius: 99px; font-size: .75rem; font-weight: 700; }

/* ── NOTICES ─────────────────────────────────────────────── */
.mjk-notice { padding: 14px 18px; border-radius: var(--r-md,10px); margin-bottom: 20px; font-size: .9rem; }
.mjk-notice-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.mjk-notice-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.mjk-notice-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ── SUCCESS PAGE ────────────────────────────────────────── */
.mjk-success-wrap { text-align: center; max-width: 480px; margin: 60px auto; padding: 20px; }
.mjk-success-icon { font-size: 5rem; margin-bottom: 16px; }
.mjk-success-wrap h2 { font-size: 2rem; font-weight: 800; font-family: 'DM Sans',sans-serif; color: var(--navy,#0d1b2a); margin-bottom: 12px; }
.mjk-success-wrap p  { color: var(--text-muted,#6b7280); margin-bottom: 28px; line-height: 1.6; }
