/* ════════════════════════════════════
   GLOBALWORK — Mobile-First Stylesheet
   ════════════════════════════════════ */

:root {
  --bg:          #0b1526;
  --bg2:         #0f1e38;
  --bg3:         #152040;
  --gold1:       #5A3C00;
  --gold2:       #9A6F00;
  --gold-text:   #F0C040;
  --teal1:       #062E28;
  --teal2:       #0D5A4E;
  --teal-text:   #00E5C8;
  --purple1:     #1C0B48;
  --purple2:     #3A1A80;
  --purple-text: #A07AF0;
  --red1:        #4A0000;
  --red2:        #801A1A;
  --red-text:    #FF8080;
  --accent:      #D4AF37;
  --white:       #FFFFFF;
  --white70:     rgba(255,255,255,.70);
  --white40:     rgba(255,255,255,.40);
  --white15:     rgba(255,255,255,.15);
  --white08:     rgba(255,255,255,.08);
  --nav-h:       64px;
  --header-h:    54px;
  --radius:      14px;
  --radius-sm:   8px;
  --font:        'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: #050d1a;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select { font-family: var(--font); outline: none; }
a { cursor: pointer; text-decoration: none; }

/* ── Device shell (desktop centering) ── */
.device-shell {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 932px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 0 80px rgba(0,0,0,.8);
}
@media (min-width: 500px) {
  body { padding: 20px 0; }
  .device-shell { border-radius: 44px; height: calc(100vh - 40px); }
}

/* ── App container ── */
.app {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ════════════════════════════════════
   HEADER
   ════════════════════════════════════ */
.header {
  height: var(--header-h);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--white08);
  z-index: 10;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-globe { width: 26px; height: 26px; }
.header__logo span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.header__right { display: flex; align-items: center; gap: 10px; }
.flag-row { display: flex; align-items: center; gap: 5px; }
.flag-row img { border-radius: 2px; display: block; }
.currency {
  background: var(--white08);
  border: 1px solid var(--white15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .4px;
}

/* ════════════════════════════════════
   PAGES
   ════════════════════════════════════ */
.pages {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-bottom: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }
.page.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  padding: 28px 20px 20px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,.12) 0%, transparent 70%);
}
.hero__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .5px;
  color: var(--white);
  text-shadow: 0 0 40px rgba(212,175,55,.3);
}
.hero__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--white70);
  line-height: 1.5;
}
.apk-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: #fff;
  border-radius: 24px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 4px 20px rgba(67,160,71,.35);
  transition: transform .15s, box-shadow .15s;
}
.apk-hero-btn:active { transform: scale(.96); }

/* ════════════════════════════════════
   CATEGORY TABS
   ════════════════════════════════════ */
.cats {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white70);
  background: var(--white08);
  border: 1px solid transparent;
  transition: all .18s;
}
.cat.active {
  background: rgba(212,175,55,.18);
  border-color: var(--accent);
  color: var(--accent);
}

/* ════════════════════════════════════
   JOB CARDS
   ════════════════════════════════════ */
.jobs-feed { padding: 0 14px; display: flex; flex-direction: column; gap: 14px; }

.job-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  position: relative;
}
.job-card:active { transform: scale(.98); }

/* Card type colours */
.job-card.gulf   { background: linear-gradient(145deg, var(--gold1), var(--gold2)); box-shadow: 0 6px 30px rgba(154,111,0,.35); }
.job-card.remote { background: linear-gradient(145deg, var(--teal1), var(--teal2)); box-shadow: 0 6px 30px rgba(13,90,78,.45); }
.job-card.europe { background: linear-gradient(145deg, var(--purple1), var(--purple2)); box-shadow: 0 6px 30px rgba(58,26,128,.45); }
.job-card.canada { background: linear-gradient(145deg, var(--red1), var(--red2)); box-shadow: 0 6px 30px rgba(128,26,26,.45); }

/* Card type header bar */
.card-type {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.card-type-icon { font-size: 16px; }

.gulf   .card-type { color: #FFD87A; }
.remote .card-type { color: #7FFFF0; }
.europe .card-type { color: #C8A8FF; }
.canada .card-type { color: #FFB0B0; }

/* Badge */
.card-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: .6px;
}
.badge-urgent { background: #FF4444; color: #fff; }
.badge-hot    { background: #FF7700; color: #fff; }
.badge-new    { background: #00BB77; color: #fff; }

/* Card body */
.card-body { padding: 12px 14px 14px; }
.card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 2px;
}
.card-sub {
  font-size: 11px;
  color: var(--white70);
  margin-bottom: 10px;
}
.card-salary-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.salary-label { font-size: 11px; color: var(--white70); font-weight: 500; }
.salary-amount {
  font-size: 16px;
  font-weight: 800;
}
.gulf   .salary-amount { color: var(--gold-text); }
.remote .salary-amount { color: var(--teal-text); }
.europe .salary-amount { color: var(--purple-text); }
.canada .salary-amount { color: var(--red-text); }

/* Tags */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.16);
  color: var(--white);
  letter-spacing: .2px;
}

/* Card footer */
.card-footer {
  padding: 8px 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--white70);
}
.card-footer i { margin-right: 4px; }
.card-apply-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  color: var(--white);
  transition: background .15s;
}
.card-apply-btn:hover { background: rgba(255,255,255,.28); }

/* ════════════════════════════════════
   SEARCH PAGE
   ════════════════════════════════════ */
.pg-title {
  font-size: 20px;
  font-weight: 800;
  padding: 20px 18px 14px;
}
.search-wrap {
  position: relative;
  margin: 0 14px 12px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white40);
  font-size: 14px;
}
.search-input {
  width: 100%;
  background: var(--white08);
  border: 1px solid var(--white15);
  border-radius: 12px;
  padding: 12px 14px 12px 40px;
  color: var(--white);
  font-size: 14px;
}
.search-input::placeholder { color: var(--white40); }

.filter-row {
  display: flex;
  gap: 10px;
  padding: 0 14px 16px;
}
.sel {
  flex: 1;
  background: var(--white08);
  border: 1px solid var(--white15);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--white70);
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
}
.sel option { background: #0f1e38; color: var(--white); }
.sel--full { width: 100%; flex: unset; }

/* ════════════════════════════════════
   ACCOUNT / AUTH FORMS
   ════════════════════════════════════ */
.auth-tabs {
  display: flex;
  margin: 0 14px 20px;
  background: var(--white08);
  border-radius: 10px;
  padding: 3px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white70);
  transition: all .18s;
}
.auth-tab.active {
  background: var(--accent);
  color: #000;
}
.auth-form { padding: 0 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--white70);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--white08);
  border: 1px solid var(--white15);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 14px;
  transition: border-color .18s;
}
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--white40); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white40);
  cursor: pointer;
  font-size: 14px;
}
.btn-main {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-top: 6px;
  transition: opacity .15s, transform .15s;
}
.btn-main:active { transform: scale(.98); opacity: .9; }
.link-small {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--accent);
}
.hidden { display: none !important; }

/* ════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════ */
.profile-top { text-align: center; padding: 24px 18px 16px; }
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white08);
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 12px;
}
.profile-name { font-size: 18px; font-weight: 800; }
.profile-sub  { font-size: 12px; color: var(--white70); margin-top: 4px; }

.profile-stats {
  display: flex;
  gap: 1px;
  margin: 16px 14px;
  background: var(--white08);
  border-radius: 14px;
  overflow: hidden;
}
.pstat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
}
.pstat-n { display: block; font-size: 22px; font-weight: 900; color: var(--accent); }
.pstat-l { display: block; font-size: 11px; color: var(--white70); margin-top: 2px; }

.profile-nav { padding: 0 14px; }
.pnav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--white08);
  font-size: 14px;
  color: var(--white70);
  transition: color .15s;
}
.pnav-link i:first-child { width: 20px; text-align: center; color: var(--accent); }
.pnav-link span { flex: 1; }
.pnav-arr { font-size: 11px; color: var(--white40); }
.pnav-link:hover { color: var(--white); }

.apk-section { padding: 24px 14px 10px; text-align: center; }
.apk-label { font-size: 12px; color: var(--white70); margin-bottom: 12px; }
.apk-big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 24px rgba(67,160,71,.4);
  transition: transform .15s, box-shadow .15s;
}
.apk-big-btn i { font-size: 20px; }
.apk-big-btn:active { transform: scale(.97); }
.apk-version { font-size: 11px; color: var(--white40); margin-top: 8px; }

/* ════════════════════════════════════
   BOTTOM NAVIGATION
   ════════════════════════════════════ */
.bottom-nav {
  height: var(--nav-h);
  background: #080f1e;
  border-top: 1px solid var(--white08);
  display: flex;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.bnav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--white40);
  font-size: 10px;
  font-weight: 500;
  transition: color .18s;
  position: relative;
}
.bnav i { font-size: 20px; }
.bnav.active { color: var(--accent); }
.bnav.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

/* ════════════════════════════════════
   MODAL — Job Detail
   ════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal__back {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  background: var(--bg2);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1,.4,1);
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
.modal__box::-webkit-scrollbar { display: none; }
.modal.open .modal__box { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white15);
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.modal__close:hover { background: var(--white40); }

/* Modal content styles */
.modal-header { padding: 22px 18px 14px; }
.modal-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.gulf.modal-type   { background: rgba(154,111,0,.3);  color: var(--gold-text); }
.remote.modal-type { background: rgba(13,90,78,.4);   color: var(--teal-text); }
.europe.modal-type { background: rgba(58,26,128,.4);  color: var(--purple-text); }
.canada.modal-type { background: rgba(128,26,26,.4);  color: var(--red-text); }

.modal-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.modal-location { font-size: 13px; color: var(--white70); display: flex; align-items: center; gap: 6px; }
.modal-salary-box {
  margin: 16px 18px;
  padding: 14px 16px;
  background: var(--white08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.msal-label { font-size: 12px; color: var(--white70); margin-bottom: 4px; }
.msal-value { font-size: 20px; font-weight: 900; }
.gulf   .msal-value { color: var(--gold-text); }
.remote .msal-value { color: var(--teal-text); }
.europe .msal-value { color: var(--purple-text); }
.canada .msal-value { color: var(--red-text); }

.msal-slots { text-align: right; }
.msal-slots-num { font-size: 20px; font-weight: 900; color: var(--white); }
.msal-slots-label { font-size: 12px; color: var(--white70); }

.modal-section { padding: 0 18px 14px; }
.modal-section-title { font-size: 13px; font-weight: 700; color: var(--white70); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.modal-desc { font-size: 14px; line-height: 1.65; color: var(--white70); }

.req-list { display: flex; flex-direction: column; gap: 8px; }
.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--white70);
}
.req-item i { color: var(--accent); width: 16px; text-align: center; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }

.modal-actions { padding: 0 18px 24px; display: flex; gap: 10px; }
.btn-apply {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
  box-shadow: 0 4px 16px rgba(67,160,71,.35);
}
.btn-save {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--white08);
  border: 1px solid var(--white15);
  color: var(--white70);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.btn-save:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════
   APK MODAL
   ════════════════════════════════════ */
.apk-modal__box {
  border-radius: 24px 24px 0 0;
  padding: 30px 20px 32px;
}
.apk-modal-content { text-align: center; }
.apk-modal-icon {
  font-size: 56px;
  color: #43A047;
  margin-bottom: 14px;
}
.apk-modal-content h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.apk-modal-content > p { font-size: 13px; color: var(--white70); line-height: 1.55; margin-bottom: 20px; }
.apk-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.apk-feat {
  background: var(--white08);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--white70);
  display: flex;
  align-items: center;
  gap: 8px;
}
.apk-feat i { color: var(--accent); }
.apk-dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(67,160,71,.4);
  transition: transform .15s;
}
.apk-dl-btn i { font-size: 22px; }
.apk-dl-btn:active { transform: scale(.97); }
.apk-size { font-size: 11px; font-weight: 400; opacity: .7; }
.apk-note { margin-top: 12px; font-size: 11px; color: var(--white40); line-height: 1.5; }

/* ════════════════════════════════════
   TOAST
   ════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e2e50;
  border: 1px solid var(--white15);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
  pointer-events: none;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════
   SCROLLBAR & MISC
   ════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--white40);
}
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }
