:root {
  --saudi-green: #006c35;
  --saudi-green-dark: #004d25;
  --saudi-green-deep: #002e17;
  --saudi-green-light: #0b8846;
  --saudi-green-soft: #eef7f2;
  --saudi-green-line: #c8e4d3;
  --saudi-gold: #c5a059;
  --saudi-gold-light: #e4c98e;
  --saudi-gold-dark: #9a7736;
  --saudi-gold-soft: #fcf9ee;
  --saudi-gold-line: #edd9a6;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #14231b;
  --text-secondary: #35473d;
  --muted: #5e7367;
  --line: #dfebe3;
  --danger: #c92a2a;
  --danger-soft: #fff5f5;
  --danger-line: #ffc9c9;
  --success: #0b8846;
  --success-soft: #eefbf3;
  --footer: #032112;
  --shadow: 0 16px 36px rgba(0, 60, 30, 0.08);
  --shadow-soft: 0 8px 20px rgba(0, 60, 30, 0.05);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --container: 480px;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(0, 108, 53, 0.06), transparent 30%),
    linear-gradient(180deg, #f7faf8 0%, #edf3ef 100%);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

.mobile-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 46, 23, 0.04);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--saudi-green) 0%, var(--saudi-gold) 50%, var(--saudi-green) 100%);
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup__image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 108, 53, 0.15);
  border: 1.5px solid var(--saudi-gold-light);
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--saudi-green-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--saudi-green-soft);
  border: 1px solid var(--saudi-green-line);
  color: var(--saudi-green-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saudi-green);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* Page Main */
.page-main {
  flex: 1 0 auto;
  padding: var(--space-3) 0 var(--space-4);
}

.page-shell {
  display: grid;
  gap: var(--space-3);
}

.page-shell > * {
  min-width: 0;
}

/* Promo Card & Hero */
.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(197, 160, 89, 0.3);
}

.promo-hero {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Grant Highlight Section */
.grant-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #024823 0%, #006c35 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 108, 53, 0.22);
  border: 1px solid var(--saudi-gold);
}

.grant-highlight__box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grant-highlight__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--saudi-gold-light);
  flex-shrink: 0;
}

.grant-highlight__text {
  display: flex;
  flex-direction: column;
}

.grant-highlight__text strong {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.grant-amount {
  font-size: 20px;
  font-weight: 900;
  color: #fff9e6;
  letter-spacing: -0.02em;
}

.grant-amount span {
  font-size: 13px;
  font-weight: 700;
  color: var(--saudi-gold-light);
  margin-right: 4px;
}

.grant-highlight__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.22);
  border: 1px solid var(--saudi-gold-light);
  color: #fff8e8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Notices */
.notice-stack {
  display: grid;
  gap: 10px;
}

.notice-card {
  min-height: 54px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid;
  box-shadow: var(--shadow-soft);
}

.notice-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.notice-card__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.notice-card--royal {
  background: var(--saudi-gold-soft);
  border-color: var(--saudi-gold-line);
  color: #574116;
}

.notice-card--royal .notice-card__icon {
  color: var(--saudi-gold-dark);
  background: rgba(197, 160, 89, 0.25);
}

.notice-card--info {
  background: var(--saudi-green-soft);
  border-color: var(--saudi-green-line);
  color: var(--saudi-green-deep);
}

.notice-card--info .notice-card__icon {
  color: var(--saudi-green);
  background: rgba(0, 108, 53, 0.15);
}

/* Form Shell & Card */
.form-shell {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.form-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 22px 18px;
}

.form-copy {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-copy__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--saudi-green-soft);
  color: var(--saudi-green-dark);
  border: 1px solid var(--saudi-green-line);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-copy__badge--error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-line);
}

.form-copy__badge--success {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--saudi-green-line);
}

.form-copy h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.form-copy__lead,
.hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hint strong {
  color: var(--text);
}

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.alert--error {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: var(--danger);
}

/* Form Fields */
.field-stack {
  display: grid;
  gap: 7px;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: all 160ms ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23006c35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 38px;
  cursor: pointer;
}

select:disabled {
  background-color: var(--surface-soft);
  cursor: not-allowed;
}

input::placeholder {
  color: #9cb0a4;
  font-size: 13.5px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.input-decor {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  transition: all 160ms ease;
}

.input-decor:focus-within {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.input-decor__flag {
  font-size: 14px;
  font-weight: 700;
  color: var(--saudi-green-dark);
  background: var(--saudi-green-soft);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--saudi-green-line);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.input-decor input {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-decor input:focus {
  box-shadow: none;
}

.input-invalid,
.input-invalid:focus,
.input-decor.input-invalid,
.input-decor.input-invalid:focus-within {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 42, 42, 0.12);
}

.error-message {
  margin: 0;
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Buttons */
button,
.btn-royal,
.button-link {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-light) 100%);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 108, 53, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

button:hover,
.btn-royal:hover,
.button-link:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 14px 28px rgba(0, 108, 53, 0.35);
}

button:disabled,
.btn-royal:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-link--secondary {
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  color: var(--text-secondary);
  box-shadow: none;
}

.button-link--secondary:hover {
  background: var(--line);
  color: var(--text);
  box-shadow: none;
}

/* OTP Grid */
.otp-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.otp-fieldset legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.otp-box {
  min-height: 64px;
  padding: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--saudi-green-dark);
}

.otp-box:focus {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.16);
}

/* Summary Card (Confirm View) */
.summary-card {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.summary-block {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  gap: 4px;
}

.summary-block label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.summary-block--highlight {
  background: var(--saudi-green-soft);
  border-color: var(--saudi-green-line);
  box-shadow: 0 4px 12px rgba(0, 108, 53, 0.06);
}

.grant-value {
  color: var(--saudi-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.confirm-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  position: relative;
}

/* Password Input & Toggler */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 6px 0 14px;
  transition: all 160ms ease;
}

.password-input-wrap:focus-within {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.password-input-wrap input {
  border: none;
  background: transparent;
  padding: 12px 0;
  min-height: 48px;
  font-size: 15px;
  flex: 1;
  box-shadow: none !important;
}

.password-input-wrap input:focus {
  outline: none;
  box-shadow: none !important;
}

.password-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: auto;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: color 150ms ease, background-color 150ms ease;
}

.password-toggle-btn:hover {
  color: var(--saudi-green-dark);
  background-color: var(--saudi-green-soft);
  transform: none;
}

/* OTP Meta & Helpers */
.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 1px dashed var(--saudi-green-line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.otp-meta__phone {
  font-weight: 800;
  color: var(--saudi-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.otp-meta__change {
  color: var(--saudi-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-size: 11.5px;
  transition: color 150ms ease;
}

.otp-meta__change:hover {
  color: var(--saudi-green-dark);
}

.otp-attempts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

/* Success Card & Official Receipt */
.success-card {
  text-align: center;
  padding: 24px 18px;
  display: grid;
  place-items: center;
  gap: 16px;
  position: relative;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saudi-green-soft) 0%, #d4ede0 100%);
  border: 2px solid var(--saudi-green-line);
  color: var(--saudi-green);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 108, 53, 0.16);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.receipt-box {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.receipt-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saudi-green) 0%, var(--saudi-gold) 50%, var(--saudi-green) 100%);
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.receipt-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.receipt-row__label {
  color: var(--muted);
  font-weight: 600;
}

.receipt-row__val {
  color: var(--text);
  font-weight: 800;
}

.receipt-row__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--saudi-green-line);
  font-size: 11.5px;
  font-weight: 800;
}

.success-notice {
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--saudi-gold-soft);
  border: 1px solid var(--saudi-gold-line);
  font-size: 12px;
  color: #574116;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Error Card Enhancements */
.error-card {
  padding: 24px 20px;
  display: grid;
  gap: 14px;
  text-align: center;
  position: relative;
}

.error-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--danger-soft);
  border: 2px solid var(--danger-line);
  color: var(--danger);
  display: grid;
  place-items: center;
}

.error-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--danger);
  font-weight: 700;
  margin: 0;
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--saudi-green-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--saudi-green);
}

/* Toast Notifications */
.toast-layer {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  pointer-events: none;
}

.toast-card {
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--saudi-green-line);
  border-right: 5px solid var(--saudi-green);
  box-shadow: 0 16px 36px rgba(0, 46, 23, 0.16);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  pointer-events: none;
  direction: rtl;
}

.toast-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--saudi-green-soft);
  color: var(--saudi-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-card__body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--saudi-green-dark);
  line-height: 1.3;
}

.toast-card__body p {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-card__body small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.toast-card__close {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #9cb0a4;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.toast-card__close:hover {
  color: var(--text);
  transform: none;
}

/* Loading Splash Overlay */
.form-splash {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.form-splash strong {
  font-size: 17px;
  color: var(--saudi-green-dark);
}

.form-splash p {
  margin: 0;
  max-width: 26ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.form-splash__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3.5px solid rgba(0, 108, 53, 0.15);
  border-top-color: var(--saudi-green);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 28px 0 32px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.9);
  border-top: 2px solid var(--saudi-gold);
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--saudi-gold);
  object-fit: cover;
}

.footer-brand h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--saudi-gold-light);
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* Accessibility & polish */
:focus-visible {
  outline: 3px solid rgba(197, 160, 89, 0.7);
  outline-offset: 2px;
}

.promo-card,
.form-shell,
.grant-highlight,
.trust-item {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.promo-card:hover,
.form-shell:hover {
  box-shadow: 0 20px 44px rgba(0, 60, 30, 0.12);
}

.form-card {
  animation: fadeUp 360ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-copy h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--saudi-gold), var(--saudi-gold-light));
}

.btn-royal {
  width: 100%;
}

.footer-links {
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) {
  :root {
    --container: 520px;
  }

  .page-main {
    padding-top: var(--space-4);
  }

  .form-card {
    padding: 28px 26px;
  }
}

/* Responsive */
@media (max-width: 420px) {
  .brand-sub,
  .gov-badge span:last-child {
    font-size: 10px;
  }

  .grant-highlight {
    flex-wrap: wrap;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: calc(100% - 16px);
  }

  .grant-amount {
    font-size: 17px;
  }

  .otp-box {
    min-height: 56px;
    font-size: 22px;
    border-radius: 12px;
  }

  .toast-layer {
    left: 8px;
    right: 8px;
    bottom: 12px;
  }

  .toast-card {
    width: 100%;
  }
}

/* ========================================================
   SAUDI ARABIA NATIONAL JOBS PORTAL - STYLES
   ======================================================== */

.wide-container,
.wide-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--saudi-green-dark);
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-back-btn:hover {
  background: var(--saudi-green);
  color: #ffffff;
  border-color: var(--saudi-green);
  transform: translateX(2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-dark) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 108, 53, 0.2);
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 108, 53, 0.32);
}

/* Jobs Hero */
.jobs-hero {
  position: relative;
  padding: 56px 0 48px;
  background: #031c0e;
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 24px;
}

.jobs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.jobs-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.3) contrast(1.1);
}

.jobs-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(3, 33, 18, 0.75) 0%, rgba(2, 23, 12, 0.96) 100%);
}

.jobs-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
}

.jobs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.16);
  border: 1px solid var(--saudi-gold);
  color: var(--saudi-gold-light);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.flag-icon {
  font-size: 16px;
}

.jobs-hero__title {
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.jobs-hero__lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: #e2ede6;
  margin: 0 0 32px;
}

.jobs-hero__lead strong {
  color: var(--saudi-gold-light);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--saudi-gold);
}

.stat-card__number {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--saudi-gold-light);
}

.stat-card__label {
  font-size: 12px;
  font-weight: 600;
  color: #cbdad1;
}

/* Alert Bar */
.alert-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f7f3 0%, #e6f3eb 100%);
  border: 1px solid var(--saudi-green-line);
  color: var(--saudi-green-dark);
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0, 108, 53, 0.06);
}

.alert-bar__icon {
  color: var(--saudi-green);
  flex-shrink: 0;
}

.alert-bar__text {
  font-size: 13.5px;
  line-height: 1.6;
}

/* Section Headings */
.jobs-section {
  padding: 8px 0 48px;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
}

.section-heading__badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--saudi-green-soft);
  color: var(--saudi-green-dark);
  border: 1px solid var(--saudi-green-line);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-heading__title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.section-heading__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Filter Controls */
.filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  right: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 14.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.clear-search {
  position: absolute;
  left: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  border-color: var(--saudi-green-line);
  background: var(--saudi-green-soft);
  color: var(--saudi-green-dark);
}

.cat-tab.is-active {
  background: var(--saudi-green);
  color: #ffffff;
  border-color: var(--saudi-green);
  box-shadow: 0 4px 12px rgba(0, 108, 53, 0.22);
}

/* Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 48px;
}

.job-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 46, 23, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 108, 53, 0.14);
  border-color: var(--saudi-green-line);
}

.job-card__media {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0d281a;
}

.job-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.job-card:hover .job-card__img {
  transform: scale(1.06);
}

.job-card__category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(3, 33, 18, 0.88);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.job-card__seats-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--saudi-green-dark);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.pulse-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saudi-green);
  animation: pulseDot 1.8s infinite ease-in-out;
}

.job-card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.job-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.job-card__emoji {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.job-card__title {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px;
  line-height: 1.3;
}

.job-card__subtitle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: block;
}

.salary-box {
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #024823 0%, #006c35 100%);
  color: #ffffff;
  margin-bottom: 16px;
  border: 1.5px solid var(--saudi-gold);
  box-shadow: 0 6px 16px rgba(0, 108, 53, 0.18);
}

.salary-box__label {
  font-size: 11.5px;
  color: var(--saudi-gold-light);
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.salary-box__val {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  display: block;
}

.salary-box__note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
  display: block;
}

.job-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-specs li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
}

.job-specs li svg {
  color: var(--saudi-green);
  flex-shrink: 0;
}

.job-card__description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}

.perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.perk-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--saudi-green-soft);
  color: var(--saudi-green-dark);
  border: 1px solid var(--saudi-green-line);
}

.job-card__action {
  margin-top: auto;
}

.btn-apply-job {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-dark) 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 108, 53, 0.22);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-apply-job:hover {
  background: linear-gradient(135deg, #0b8846 0%, #004d25 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 108, 53, 0.35);
  color: #ffffff;
}

.btn-apply-job svg {
  transition: transform 0.25s ease;
}

.btn-apply-job:hover svg {
  transform: translateX(-3px);
}

/* Selected Job Spotlight */
.selected-job-spotlight {
  background: var(--surface);
  border-radius: 18px;
  border: 1.5px solid var(--saudi-gold);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.selected-job-spotlight__media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

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

.spotlight-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(3, 33, 18, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.selected-job-spotlight__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spotlight-emoji {
  font-size: 28px;
}

.spotlight-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--saudi-gold-dark);
  display: block;
}

.spotlight-title {
  font-size: 18px;
  font-weight: 800;
  margin: 1px 0;
  color: var(--text);
}

.spotlight-sub {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.spotlight-salary {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--saudi-green-soft);
  border: 1px solid var(--saudi-green-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-salary__label {
  font-size: 12px;
  color: var(--saudi-green-dark);
  font-weight: 700;
}

.spotlight-salary__val {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--saudi-green-dark);
}

.spotlight-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.spotlight-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--saudi-green);
  text-decoration: none;
  margin-top: 4px;
}

.spotlight-change-btn:hover {
  text-decoration: underline;
}

/* Job Applied Banner in OTP / 2FA */
.job-applied-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--saudi-green-soft);
  border: 1px solid var(--saudi-green-line);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--saudi-green-dark);
}

.job-applied-banner__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--saudi-gold-dark);
}

/* Selected Job Box in phone_form */
.selected-job-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f7f3 0%, #e6f3eb 100%);
  border: 1.5px solid var(--saudi-green-line);
  margin-bottom: 20px;
}

.selected-job-box__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.selected-job-box__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selected-job-box__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--saudi-gold-dark);
}

.selected-job-box__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--saudi-green-dark);
}

.selected-job-box__salary {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--saudi-green);
}

/* Benefits Section */
.benefits-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #edf3ef 0%, #f4f7f5 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 46, 23, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 108, 53, 0.1);
  border-color: var(--saudi-green-line);
}

.benefit-card__icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.benefit-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Process Section */
.process-section {
  padding: 56px 0 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.process-step {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.process-step__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-dark) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(0, 108, 53, 0.25);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}

.process-step p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.process-cta {
  display: flex;
  justify-content: center;
}

.btn-royal--large {
  max-width: 420px;
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Trust Banner */
.trust-banner-section {
  padding: 0 0 56px;
}

.trust-box {
  background: linear-gradient(135deg, #023d1e 0%, #005a2c 100%);
  border-radius: 22px;
  padding: 36px 32px;
  color: #ffffff;
  text-align: center;
  border: 1.5px solid var(--saudi-gold);
  box-shadow: 0 16px 40px rgba(0, 60, 30, 0.16);
}

.trust-box__badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--saudi-gold-light);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.trust-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

.trust-box p {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #dbebe0;
}

.trust-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.trust-badge-item svg {
  color: var(--saudi-gold-light);
}

/* Responsive Breakpoints for Jobs Grid */
@media (max-width: 1040px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .jobs-portal, .mobile-page {
    overflow-x: hidden;
    width: 100%;
  }

  .wide-container,
  .wide-header {
    width: min(100% - 24px, 520px);
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* Header Mobile */
  .site-header__inner,
  .wide-header {
    min-height: 60px;
    padding: 8px 0;
    gap: 10px;
  }

  .brand-lockup {
    gap: 10px;
    min-width: 0;
    flex: 1;
    align-items: center;
  }

  .brand-lockup__image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-sub {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
  }

  .brand-back-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .gov-badge {
    display: none;
  }

  .btn-header-cta {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 999px;
  }

  .btn-header-cta svg {
    width: 15px;
    height: 15px;
  }

  /* Hero Section Mobile */
  .jobs-hero {
    padding: 34px 0 28px;
    margin-bottom: 24px;
  }

  .jobs-hero__badge {
    font-size: 11.5px;
    padding: 6px 14px;
    margin-bottom: 14px;
    gap: 8px;
    line-height: 1.4;
    text-align: center;
    max-width: 95%;
  }

  .jobs-hero__title {
    font-size: clamp(20px, 5.4vw, 24px);
    line-height: 1.4;
    margin: 0 0 12px;
  }

  .jobs-hero__lead {
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0 0 24px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  .stat-card {
    padding: 13px 12px;
    border-radius: 14px;
    gap: 4px;
  }

  .stat-card__number {
    font-size: clamp(16px, 4.2vw, 19px);
    font-weight: 800;
  }

  .stat-card__label {
    font-size: 11px;
    text-align: center;
    line-height: 1.35;
  }

  /* Alert Bar */
  .alert-bar {
    padding: 14px 16px;
    gap: 12px;
    margin-bottom: 28px;
    border-radius: 14px;
    align-items: flex-start;
  }

  .alert-bar__icon {
    margin-top: 2px;
    flex-shrink: 0;
  }

  .alert-bar__text {
    font-size: 12.5px;
    line-height: 1.6;
  }

  /* Section Heading */
  .jobs-section {
    padding: 0 0 36px;
  }

  .section-heading {
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .section-heading__badge {
    font-size: 11.5px;
    padding: 4px 14px;
    margin-bottom: 8px;
  }

  .section-heading__title {
    font-size: clamp(20px, 5.2vw, 24px);
    margin: 0 0 8px;
    line-height: 1.35;
  }

  .section-heading__desc {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Search & Filter Tabs */
  .filter-wrapper {
    gap: 14px;
    margin-bottom: 28px;
  }

  .search-input {
    padding: 13px 44px 13px 38px;
    font-size: 14px;
    min-height: 48px;
    border-radius: 999px;
  }

  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px 2px;
    gap: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .cat-tab {
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 999px;
  }

  /* Jobs Grid & Cards */
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 40px;
  }

  .job-card {
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0, 46, 23, 0.08);
  }

  .job-card__media {
    height: 200px;
  }

  .job-card__category-badge {
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 4px 11px;
  }

  .job-card__seats-badge {
    bottom: 12px;
    right: 12px;
    font-size: 11px;
    padding: 4px 11px;
  }

  .job-card__body {
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .job-card__title-row {
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
  }

  .job-card__emoji {
    font-size: 28px;
    line-height: 1.1;
    flex-shrink: 0;
  }

  .job-card__title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 3px;
  }

  .job-card__subtitle {
    font-size: 12.5px;
  }

  .salary-box {
    padding: 13px 16px;
    border-radius: 13px;
    margin-bottom: 16px;
  }

  .salary-box__label {
    font-size: 11.5px;
    margin-bottom: 4px;
    display: block;
  }

  .salary-box__val {
    font-size: clamp(16px, 4.4vw, 19px);
    font-weight: 800;
    line-height: 1.3;
    display: block;
  }

  .salary-box__note {
    font-size: 11.5px;
    line-height: 1.5;
    margin-top: 4px;
    display: block;
  }

  .job-specs {
    gap: 10px;
    margin-bottom: 16px;
  }

  .job-specs li {
    font-size: 12.5px;
    gap: 9px;
    line-height: 1.45;
  }

  .job-card__description {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .perks-list {
    gap: 7px;
    margin-bottom: 22px;
  }

  .perk-tag {
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: 7px;
  }

  .btn-apply-job {
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 800;
    border-radius: 12px;
    min-height: 50px;
    gap: 8px;
  }

  /* Form & Login on Mobile */
  .page-main {
    padding: 16px 0 32px;
  }

  .page-shell {
    gap: 18px;
    width: min(var(--container), calc(100% - 24px));
  }

  .selected-job-spotlight {
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 26px rgba(0, 46, 23, 0.08);
  }

  .selected-job-spotlight__media {
    height: 175px;
  }

  .selected-job-spotlight__body {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .spotlight-header {
    gap: 12px;
    align-items: flex-start;
  }

  .spotlight-emoji {
    font-size: 28px;
    line-height: 1;
  }

  .spotlight-title {
    font-size: 17.5px;
    font-weight: 800;
    margin: 2px 0;
    line-height: 1.35;
  }

  .spotlight-sub {
    font-size: 12px;
  }

  .spotlight-salary {
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .spotlight-salary__label {
    font-size: 11.5px;
  }

  .spotlight-salary__val {
    font-size: 16.5px;
    font-weight: 800;
  }

  .spotlight-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
  }

  .spotlight-change-btn {
    font-size: 12.5px;
    padding: 4px 0;
    margin-top: 4px;
  }

  .form-shell {
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0, 46, 23, 0.08);
  }

  .form-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .form-copy {
    padding-bottom: 14px;
  }

  .form-copy h2 {
    font-size: 18.5px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
  }

  .form-copy__lead {
    font-size: 13px;
    line-height: 1.6;
  }

  .field-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
  }

  .field-stack label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
  }

  .field-stack input,
  .field-stack select {
    padding: 12px 14px;
    font-size: 14.5px;
    border-radius: 12px;
    min-height: 50px;
  }

  .input-decor {
    min-height: 50px;
    border-radius: 12px;
    padding: 0 12px;
    gap: 10px;
  }

  .input-decor input {
    font-size: 15px;
    min-height: 48px;
  }

  .input-decor__flag {
    padding: 5px 9px;
    font-size: 13px;
    border-radius: 8px;
  }

  .field-hint {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 3px;
  }

  .btn-royal {
    min-height: 52px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px 18px;
  }

  .notice-card {
    padding: 12px 14px;
    font-size: 12px;
    min-height: 48px;
    border-radius: 12px;
    gap: 10px;
  }

  .notice-card p {
    font-size: 12px;
    line-height: 1.55;
  }

  .otp-meta {
    padding: 12px 14px;
    border-radius: 12px;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 16px;
  }

  .otp-grid {
    gap: 8px;
    margin-bottom: 16px;
  }

  .otp-box {
    min-height: 56px;
    font-size: 22px;
    border-radius: 12px;
  }

  .password-input-wrap {
    min-height: 50px;
    border-radius: 12px;
    padding: 0 8px 0 14px;
  }

  .password-input-wrap input {
    min-height: 48px;
    font-size: 15px;
  }

  .summary-card {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .summary-block {
    padding: 12px 14px;
    border-radius: 10px;
    gap: 5px;
  }

  .summary-value {
    font-size: 14px;
  }

  .receipt-box {
    padding: 16px 14px;
    gap: 10px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .receipt-row {
    padding: 8px 0;
    font-size: 13px;
  }

  .trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
  }

  .trust-item {
    padding: 11px 12px;
    font-size: 12px;
    border-radius: 11px;
  }

  .benefits-section,
  .process-section {
    padding: 42px 0 32px;
  }

  .benefit-card,
  .process-step {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .benefits-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card__icon {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .benefit-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
  }

  .benefit-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  .process-step__number {
    width: 42px;
    height: 42px;
    font-size: 17px;
    margin-bottom: 12px;
  }

  .process-step h4 {
    font-size: 16px;
    margin: 0 0 6px;
  }

  .process-step p {
    font-size: 13px;
    line-height: 1.6;
  }

  .trust-box {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .trust-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .trust-box p {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .trust-icons-row {
    flex-direction: column;
    gap: 12px;
  }

  .trust-badge-item {
    font-size: 13.5px;
  }

  .toast-layer {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast-card {
    width: 100%;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .hero-stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 10px 8px;
  }

  .stat-card__number {
    font-size: 15px;
  }

  .form-card {
    padding: 18px 14px;
  }

  .btn-header-cta {
    padding: 7px 10px;
    font-size: 11px;
  }
}


