/* UNear Landing UX overhaul — 2026-05-19 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --primary-green: #10b981;
  --primary-green-bright: #00ff7e;
  --border-candidate: #06b6d4;
  --border-recruiter: #f59e0b;
  --border-company: #10b981;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --bg-surface-light: rgba(15, 23, 42, 0.55);
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
}

html.un-public { scroll-behavior: smooth; }

html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Inter', system-ui, sans-serif !important;
}

/* Floating phrase layer — reduce noise */
.un-phrase-chip {
  opacity: 0.07 !important;
  background: rgba(20, 30, 48, 0.35) !important;
  color: rgba(220, 235, 255, 0.45) !important;
}
.un-phrase-chip.tint-emerald,
.un-phrase-chip.tint-violet,
.un-phrase-chip.tint-cyan {
  opacity: 0.08 !important;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-lg);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #04130b;
  background: linear-gradient(135deg, var(--primary-green-bright) 0%, var(--primary-green) 100%);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.65);
}
.btn-primary:active { transform: scale(0.95); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-green);
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.45);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn-outline:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--primary-green);
}
.btn-outline:active { transform: scale(0.95); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-lg);
  font-weight: 800;
  font-size: 15px;
  color: #04130b;
  background: linear-gradient(135deg, var(--primary-green-bright), var(--primary-green));
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.55);
}
a.btn-sign-in-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0 !important;
  background: transparent !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
}
a.btn-sign-in-outline:hover {
  border-color: var(--primary-green) !important;
  color: #fff !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

/* Brand slogan */
.brand-u, .brand-near { color: var(--primary-green); }
.un-hero-slogan .brand-u,
.un-hero-slogan .brand-near {
  -webkit-text-fill-color: var(--primary-green);
  color: var(--primary-green);
}

/* Logo scale */
#site-header .un-brand img,
.un-landing-page footer .un-brand img {
  width: 2.75rem !important;
  height: 2.75rem !important;
  transform: scale(1.15);
  transform-origin: center;
}

/* Nav glass on scroll */
#site-header.nav-glass {
  background: rgba(11, 18, 32, 0.72) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.45);
  border-bottom-color: rgba(16, 185, 129, 0.15) !important;
}

/* Contrast — subheadings lighter */
.un-landing-page .text-slate-500 { color: var(--text-muted) !important; }
.un-landing-page .hero-sub,
.un-landing-page .text-slate-400:not(.un-foot *) {
  color: var(--text-sub) !important;
}

/* Role cards */
.pp-card { border-radius: var(--border-radius-lg); }
.pp-card.v-companies { border-color: var(--border-company); }
.pp-card.v-recruiters { border-color: var(--border-recruiter); }
.pp-card.v-candidates { border-color: var(--border-candidate); }
.pp-card .pp-icon [data-uicon] svg,
.pp-card .pp-icon svg { width: 34px !important; height: 34px !important; }
.pp-card:hover,
.pp-card:focus-within {
  transform: translateY(-5px) !important;
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.55) !important;
}
.role-cta.pp-cta-single { display: none !important; }
.pp-explore-btn { display: inline-flex !important; }

/* Section spacing + alternating surfaces */
.un-landing-page .spa-view > section {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}
.un-landing-page .section-alt {
  background: var(--bg-surface-light);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

/* KSA map section */
.ksa-map-bg { opacity: 0.1 !important; }

/* AI sparkle headings */
.un-ai-heading::after,
h3.un-ai-heading::after {
  content: " ✨";
  font-size: 0.85em;
  opacity: 0.9;
}

/* WhatsApp pulse */
.wa-pulse-icon {
  animation: wa-pulse 2.5s ease-in-out infinite;
  animation-delay: 5s;
}
@keyframes wa-pulse {
  0%, 92%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  94% { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.6)); }
  96% { transform: scale(1); }
}

/* Tier ladder */
.tier-progress-wrap {
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.tier-progress-wrap progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
}
.tier-progress-wrap progress::-webkit-progress-bar {
  background: #1e293b;
  border-radius: 999px;
}
.tier-progress-wrap progress::-webkit-progress-value {
  background: linear-gradient(90deg, #b45309, #fbbf24, #10b981);
  border-radius: 999px;
}
.tier-pct-gold {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
}
.tier-ladder-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .tier-ladder-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .tier-ladder-scroll > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}
.tier-payout-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-inline-end: 6px;
  color: #fbbf24;
}

/* Saudization section */
.un-saud-section .nitaqat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.nitaqat-platinum { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.nitaqat-green { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.nitaqat-yellow { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.nitaqat-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.nitaqat-neutral { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

/* Smart intake demo */
.un-demo-video {
  width: 100%;
  max-width: 560px;
  margin: 1rem auto 0;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: #0f172a;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Bottom CTA banner */
.un-bottom-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.15));
  border-block: 1px solid rgba(16, 185, 129, 0.2);
  text-align: center;
  padding: 4rem 1.5rem;
}
.un-bottom-cta h2 { color: #f8fafc; margin-bottom: 1rem; }

/* Footer grid */
.un-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .un-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Announcement bar */
#announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 48px 8px 16px;
  font-size: 13px;
  color: #e2e8f0;
  text-align: center;
}
#announcement-bar[hidden] { display: none !important; }
#announcement-bar .ann-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
html[dir="rtl"] #announcement-bar .ann-dismiss {
  right: auto;
  left: 12px;
}
body.has-announcement #site-header { top: 40px; }
body.has-announcement main.pt-20 { padding-top: 6.5rem !important; }

/* Scroll to top */
#scroll-top-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--primary-green);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
#scroll-top-fab.visible { display: inline-flex; }
#scroll-top-fab:active { transform: scale(0.95); }
html[dir="rtl"] #scroll-top-fab { right: auto; left: 24px; }

/* Apply page */
.un-dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.35);
  border-radius: var(--border-radius-lg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.un-dropzone:hover,
.un-dropzone.is-dragover {
  border-color: var(--primary-green);
  background: rgba(16, 185, 129, 0.05);
  animation: marching-ants 1s linear infinite;
}
@keyframes marching-ants {
  to { stroke-dashoffset: -16; }
}
.un-dropzone.is-dragover {
  box-shadow: inset 0 0 0 2px var(--primary-green);
}

.un-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}
.un-skeleton .sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
}
.un-skeleton .sk-line.w80 { width: 80%; }
.un-skeleton .sk-line.w60 { width: 60%; }
.un-skeleton .sk-line.w40 { width: 40%; }
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.un-loading-msg {
  font-size: 14px;
  color: var(--text-sub);
  text-align: center;
  padding: 2rem;
}

.un-combobox { position: relative; }
.un-combobox-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  color: #f1f5f9;
  font-size: 14px;
}
.un-combobox-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--border-radius-md);
  z-index: 20;
  display: none;
}
.un-combobox.open .un-combobox-list { display: block; }
.un-combobox-option {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.un-combobox-option:hover,
.un-combobox-option[aria-selected="true"] {
  background: rgba(16, 185, 129, 0.12);
}
.un-combobox-option .job-salary { color: var(--primary-green); font-weight: 600; }

body.apply-focus-mode .un-apply-nav,
body.apply-focus-mode .un-apply-footer {
  display: none !important;
}
body.apply-focus-mode main {
  max-width: 42rem;
  margin: 0 auto;
  padding-top: 2rem;
}

.un-trust-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.un-field-error {
  display: block;
  color: #f87171;
  font-size: 12px;
  margin-top: 4px;
}

input[type="checkbox"] { accent-color: var(--primary-green); }

.un-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--border-radius-lg);
}
.un-empty-state svg { margin: 0 auto 1rem; opacity: 0.5; }

.card, .un-card, .un-input, .btn-primary, .btn-outline {
  border-radius: var(--border-radius-md);
}

img[loading="lazy"] { content-visibility: auto; }

.un-intake-demo { position: relative; line-height: 0; }
.un-intake-demo .un-intake-video { display: block; width: 100%; }
.un-intake-demo .un-intake-fallback { display: none; width: 100%; height: auto; }
.un-intake-demo.no-video .un-intake-video { display: none; }
.un-intake-demo.no-video .un-intake-fallback { display: block; }
