:root {
  --primary: #4A3AFF;
  --primary-soft: #ece9ff;
  --green: #00C49F;
  --yellow: #FFBB28;
  --orange: #FF8042;
  --text: #1a1d29;
  --muted: #8a90a2;
  --bg: #f5f6fa;
  --card: #fff;
  --border: #eceef3;
  --shadow: 0 8px 30px rgba(20,24,60,.08);
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Heebo', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
.btn { border: none; background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; transition: .15s; }
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn.ghost { background: rgba(22, 26, 43, 0.06); color: var(--text); }
.btn.green { background: var(--green); }
.btn.sm { width: auto; padding: 9px 17px; font-size: 13px; }

/* ---------- Auth (עיצוב זכוכית על נוף) ---------- */
.auth-wrap {
  min-height: 100vh; padding: 40px 5vw;
  display: flex; align-items: center; justify-content: center; gap: 60px;
}
.auth-hero { flex: 1; max-width: 560px; color: #fff; text-shadow: 0 2px 18px rgba(10, 20, 45, .45); }
.auth-hero-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; margin-bottom: 34px; }
.auth-hero-brand img { height: 110px; filter: drop-shadow(0 8px 26px rgba(10, 20, 45, .45)); }
.auth-hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.auth-hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.auth-hero p { font-size: 16px; line-height: 1.7; opacity: .95; max-width: 460px; }
.auth-hero-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-hero-points .hp {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600;
}
.auth-hero-points .hp span { display: inline-flex; color: #7dffd8; filter: drop-shadow(0 1px 4px rgba(0,0,0,.3)); }

/* ---------- סרטון רקע מונפש על כל המסך במסך ההתחברות ---------- */
.auth-body { overflow-x: hidden; }
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #061226;
}
.auth-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(7px) brightness(0.7) saturate(1.05);
  animation: authBgIn 1.6s ease .15s forwards, authBgDrift 34s ease-in-out 1.6s infinite;
}
/* שכבת כהות + ויניטה כדי שהטקסט והטופס יבלטו מעל הרקע החי */
.auth-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 30%, rgba(6, 18, 38, 0.20), rgba(6, 18, 38, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 18, 38, 0.45) 0%, rgba(6, 18, 38, 0.35) 45%, rgba(6, 18, 38, 0.60) 100%);
}
.auth-wrap { position: relative; z-index: 1; }
@keyframes authBgIn {
  to { opacity: 1; }
}
@keyframes authBgDrift {
  0%, 100% { transform: scale(1.08) translate(0, 0); }
  50% { transform: scale(1.13) translate(-1%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-bg-video { animation: authBgIn .5s ease forwards; transform: scale(1.08); }
}

.auth-card {
  width: 460px; max-width: 100%; flex: none;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px; box-shadow: 0 30px 80px rgba(15, 25, 55, 0.30);
  padding: 34px; max-height: 90vh; overflow-y: auto;
}
.auth-card::-webkit-scrollbar { width: 5px; }
.auth-card::-webkit-scrollbar-thumb { background: rgba(22, 26, 43, 0.18); border-radius: 99px; }
.auth-card::-webkit-scrollbar-track { background: transparent; }
.auth-card .brand-row { display: none; }
.brand-row { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 8px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7b6cff);
  color: #fff; font-weight: 800; font-size: 24px; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(74, 58, 255, .35);
}
.brand-title { font-size: 26px; font-weight: 800; }
.auth-card-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-card-logo img { height: 64px; width: auto; max-width: 80%; object-fit: contain; }
.auth-sub { text-align: center; color: var(--text); margin-bottom: 22px; font-size: 17px; font-weight: 800; }
.tabs { display: flex; background: rgba(22, 26, 43, 0.06); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.tab-btn { flex: 1; padding: 11px; border: none; background: transparent; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .18s; }
.tab-btn.active { background: var(--dark, #161a2b); color: #fff; box-shadow: 0 6px 16px rgba(22, 26, 43, 0.25); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid rgba(20, 30, 60, 0.10);
  border-radius: 14px; font-family: inherit; font-size: 14px; outline: none; transition: .15s;
  background: rgba(255, 255, 255, 0.85);
}
.field input:focus, .field select:focus { border-color: var(--primary); background: #fff; }

/* ----- שדה העלאת קובץ מעוצב ----- */
.file-native { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.field .file-drop {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  border: 1.5px solid rgba(20, 30, 60, 0.12); border-radius: 14px;
  padding: 9px 11px; background: #fff; margin: 0;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field .file-drop:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(74, 58, 255, .1); }
.file-drop .file-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary);
}
.file-drop .file-texts { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.file-drop .file-title { font-size: 13px; font-weight: 700; color: var(--text); }
.file-drop .file-name {
  font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-drop .file-btn {
  flex: none; font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 9px; padding: 7px 12px;
}
.file-drop.has-file { border-color: #15b87f; background: rgba(21, 184, 127, 0.06); }
.file-drop.has-file .file-ic { background: rgba(21, 184, 127, 0.14); color: #0e9c68; }
.file-drop.has-file .file-name { color: #0e9c68; font-weight: 700; }
.file-drop.has-file .file-btn { color: #0e9c68; background: rgba(21, 184, 127, 0.14); }

/* ----- שדה תאריך מעוצב ----- */
.date-field { position: relative; }
.date-field .date-ic {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: var(--primary); pointer-events: none; display: flex; z-index: 1;
}
.field .date-field input[type="date"] { padding-inline-start: 42px; background: #fff; }
.date-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.date-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.role-opt {
  border: 1.5px solid rgba(20, 30, 60, 0.10); border-radius: 18px; padding: 16px 12px;
  text-align: center; cursor: pointer; transition: .15s; background: rgba(255, 255, 255, 0.7);
}
.role-opt:hover { transform: translateY(-2px); }
.role-opt.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 8px 22px rgba(74, 58, 255, .15); }
.role-opt .ic { color: var(--primary, #4A3AFF); display: flex; justify-content: center; }
.ico { vertical-align: -2px; flex: none; }
.role-opt .nm { font-weight: 700; font-size: 14px; margin-top: 6px; }
.role-opt .ds { font-size: 11px; color: var(--muted); }
.checkbox-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; background: rgba(22, 26, 43, 0.05); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.chk:hover { background: rgba(74, 58, 255, 0.08); }
.hint { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.error { background: #ffe8e0; color: #cc5028; }
.alert.success { background: #e0f8f2; color: #00997b; }
.alert.info { background: #e0f0ff; color: #0066cc; }
/* מסך הצלחה לאחר הרשמה */
.success-screen { text-align: center; padding: 10px 6px; }
.success-check { width: 92px; height: 92px; margin: 0 auto 22px; }
.success-check svg { width: 92px; height: 92px; }
.success-check circle { stroke: var(--green); stroke-width: 3; stroke-dasharray: 166; stroke-dashoffset: 166; animation: dash 0.7s ease-in-out forwards; }
.success-check path { stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: dash 0.4s 0.6s ease-in-out forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success-screen h2 { font-size: 24px; margin-bottom: 10px; }
.success-screen p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.success-screen p b { color: var(--text); }
.success-steps { text-align: right; background: rgba(22, 26, 43, 0.05); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }
.sstep { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; font-weight: 500; }
.sdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #fff; color: var(--muted); border: 2px solid var(--border); }
.sdot.done { background: var(--green); color: #fff; border-color: var(--green); }
.sdot.wait { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.success-note { font-size: 13px !important; margin-bottom: 20px; }

.demo-creds { margin-top: 20px; padding: 15px 17px; background: rgba(22, 26, 43, 0.05); border-radius: 16px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.demo-creds b { color: var(--text); }
.demo-creds code { background: rgba(255, 255, 255, 0.9); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ---------- Provider Portal (עיצוב זכוכית) ---------- */
:root {
  --dark: #161a2b;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow-soft: 0 4px 18px rgba(30, 50, 90, 0.07);
}
.portal { max-width: 1080px; margin: 0 auto; padding: 22px 20px 50px; }
.portal-header {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  color: var(--text); padding: 26px 28px; border-radius: 28px;
  box-shadow: var(--shadow);
}
/* ============ provider בסגנון mobile (שכבת התאמה) ============ */
/* פס צבע עליון ייחודי ל-provider על גבי ה-tabbar של המובייל */
.theme-provider .tabbar { position: sticky; overflow: hidden; }
.theme-provider .tabbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 55%, #06b6d4 100%);
  z-index: 3;
}
.theme-provider .tb-brand img { height: 40px; }
/* פעמון התראות עם נקודת ספירה */
.theme-provider .tab-bell { position: relative; }
.theme-provider .tab-dot {
  position: absolute; top: -2px; inset-inline-start: -2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: #ff5a3c; color: #fff; font-size: 9px; font-weight: 800; line-height: 1;
  display: grid; place-items: center; border: 2px solid #fff;
}
/* כפתור "עוד" + ותפריט צף - מוצגים בנייד בלבד */
.prov-more { display: none; }
.prov-more-menu { display: none; }
@media (min-width: 641px) {
  .prov-more, .prov-more-menu { display: none !important; }
}
.prov-more-menu.open { display: block; }
.prov-more-menu {
  position: fixed; inset: 0; z-index: 60;
}
.prov-more-menu::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 14, 40, 0.38);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.pmm-card {
  position: absolute; left: 12px; right: 12px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 24px; padding: 16px;
  box-shadow: 0 22px 54px rgba(10, 14, 40, 0.32);
  animation: pmm-up .2s ease;
}
@keyframes pmm-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.pmm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pmm-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 15px 6px; border: none; border-radius: 18px;
  background: #f4f6fb; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; color: #2a2f45;
  transition: background .15s, transform .15s;
}
.pmm-item:hover { background: #e9edfb; transform: translateY(-1px); }
.pmm-ic {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #2563eb; box-shadow: 0 5px 14px rgba(20, 30, 60, 0.10);
}
.pmm-danger { background: #fdf0f4; color: #d23f6a; }
.pmm-danger:hover { background: #fbe3eb; }
.pmm-danger .pmm-ic { color: #e0577f; }
.pmm-item .tab-dot {
  position: absolute; top: 8px; inset-inline-start: 8px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: #ff5a3c; color: #fff; font-size: 9px; font-weight: 800; line-height: 1;
  display: grid; place-items: center; border: 2px solid #fff;
}
/* תוכן הטאב מיושר לרוחב הסקשנים של המובייל */
.theme-provider .m-section > .provider-hero { margin-top: 0; }
.theme-provider .welcome-card .status-pill { margin-top: 12px; }
.theme-provider .phone-screen { padding-bottom: 40px; }

@media (min-width: 641px) {
  /* בדסקטופ: ניווט עליון אופקי שניתן לגלילה אם יש הרבה טאבים */
  .theme-provider .tb-nav { overflow-x: auto; scrollbar-width: none; }
  .theme-provider .tb-nav::-webkit-scrollbar { display: none; }
  .theme-provider .tb-nav .tab { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 640px) {
  /* בנייד: בר תחתון נקי - טאבים עיקריים + כפתור "+" מרכזי */
  .theme-provider .tabbar {
    position: fixed; top: auto; bottom: 0;
    justify-content: space-around;
    overflow: visible;
  }
  .theme-provider .tabbar::before { display: none; }
  /* הסתרת טאבים משניים, פעמון ויציאה מהבר - הם בתפריט ה"עוד" */
  .theme-provider .tab.prov-sec,
  .theme-provider #prov-bell,
  .theme-provider #logout-btn { display: none; }
  /* סדר הפריטים עם כפתור ה+ במרכז */
  .theme-provider .tab { order: var(--m-order, 0); flex: 1; min-width: 0; }
  .theme-provider .tab[data-tab] { white-space: normal; text-align: center; line-height: 1.12; }
  .theme-provider .prov-more { order: 3; }
  .theme-provider .tab.active,
  .theme-provider .tab.active span { color: #2563eb; }
  /* ריווח תחתון כדי שהתוכן לא ייחבא מאחורי הבר */
  .theme-provider .phone-screen { padding-bottom: 96px; }
  /* כפתור "+" מרכזי מורם */
  .theme-provider .prov-more {
    display: flex; flex: none; position: relative;
    width: 56px; height: 56px; border-radius: 50%;
    padding: 0; gap: 0; font-size: 0; color: #fff;
    transform: translateY(-16px); border: 4px solid #fff;
    background: linear-gradient(145deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
    transition: transform .2s ease;
  }
  .theme-provider .prov-more svg { width: 25px; height: 25px; }
  .theme-provider .prov-more.active { transform: translateY(-16px) rotate(45deg); }
  .theme-provider .prov-more.tab-on {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3), 0 12px 26px rgba(37, 99, 235, 0.45);
  }
}
.portal-header .ph-top { display: flex; align-items: center; gap: 18px; }
.ph-meta { flex: 1; min-width: 0; }
.ph-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.ph-logo { height: 62px; filter: drop-shadow(0 4px 14px rgba(20, 30, 60, .25)); }
@media (max-width: 640px) { .ph-logo { height: 46px; } }
.portal-header .hi { font-size: 25px; font-weight: 800; }
.portal-header .role { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ph-avatar { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-soft); object-fit: cover; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px;
  border-radius: 999px; font-size: 13px; font-weight: 700; margin-top: 14px;
  background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-soft);
}
.logout {
  background: rgba(22, 26, 43, 0.06); color: var(--text); border: none;
  padding: 10px 16px; border-radius: 999px; font-family: inherit;
  font-weight: 700; cursor: pointer; font-size: 13px; transition: all .15s;
}
.logout:hover { background: rgba(204, 80, 40, 0.12); color: #cc5028; }
.prov-bell {
  position: relative; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--glass-border);
  border-radius: 50%; width: 44px; height: 44px; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
  box-shadow: var(--shadow-soft); transition: all .18s;
}
.prov-bell:hover { transform: translateY(-2px); }
.prov-dot {
  position: absolute; top: -3px; left: -3px; background: #ff5a3c; color: #fff;
  font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid #fff;
}
.prov-overlay {
  position: fixed; inset: 0; background: rgba(18, 22, 40, 0.40);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px;
}
.prov-sheet {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  width: 100%; max-width: 540px; max-height: 80vh; overflow-y: auto;
  border-radius: 26px; padding: 24px;
  box-shadow: 0 40px 100px rgba(20, 24, 60, 0.35);
}
.prov-sheet h3 { margin-bottom: 12px; }
.prov-sheet .btn { margin-top: 14px; }
.prov-notif { padding: 13px 0; border-bottom: 1px solid #eef0f6; }
.prov-notif.unread { background: rgba(236, 233, 255, 0.8); margin: 0 -12px; padding: 13px 12px; border-radius: 14px; border-bottom: none; margin-bottom: 6px; }
.prov-notif p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* כרטיס הצעה לחיץ + חלון פרטי טיול מלאים */
.job-clickable { cursor: pointer; }
.jd-status { display: flex; justify-content: center; margin-bottom: 10px; }
.jd-sheet .jd-actions .btn[href^="tel:"] { text-decoration: none; }
.jd-sheet .jd-price {
  display: flex; align-items: center; gap: 7px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 14px; padding: 11px 14px; font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}
.jd-sheet .jd-price b { font-size: 16px; }
.jd-list { display: flex; flex-direction: column; }
.jd-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.jd-row:last-child { border-bottom: none; }
.jd-l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.jd-v { font-weight: 700; font-size: 14px; text-align: left; }
.jd-notes {
  margin-top: 14px; background: #fffaf0; border: 1px solid #f0d9a8;
  border-radius: 16px; padding: 14px;
}
.jd-notes b { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 6px; }
.jd-notes p { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.jd-actions { display: flex; gap: 10px; margin-top: 18px; }
.jd-actions .btn { margin-top: 0; flex: 1; }
.portal-tabs { display: flex; gap: 8px; margin: 26px 0 22px; overflow-x: auto; padding-bottom: 4px; }
.ptab {
  flex: 0 0 auto; padding: 11px 19px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--muted);
  cursor: pointer; box-shadow: var(--shadow-soft); transition: all .18s;
}
.ptab:hover { color: var(--text); transform: translateY(-1px); }
.ptab.active { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: 0 8px 20px rgba(22, 26, 43, 0.28); }

/* ---------- אזור ראשי לנותן שירות ---------- */
.provider-hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 28px;
  padding: 24px 24px 22px;
  color: #f7fcff;
  background:
    radial-gradient(360px 190px at 90% -8%, rgba(255, 255, 255, 0.24), transparent 62%),
    radial-gradient(340px 170px at 10% 108%, rgba(46, 221, 187, 0.30), transparent 70%),
    linear-gradient(145deg, #061e43 0%, #0a2f64 52%, #114f98 100%);
  box-shadow: 0 24px 48px rgba(8, 29, 66, 0.34);
  border: 1px solid rgba(188, 229, 255, 0.22);
}
.provider-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 22, 49, 0.36), transparent 52%);
  pointer-events: none;
}
.provider-hero > * { position: relative; z-index: 1; }
.provider-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.provider-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #bbebff; }
.provider-hero-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.provider-hero h2 { font-size: 30px; line-height: 1.2; margin-bottom: 6px; }
.provider-hero p { font-size: 14px; color: rgba(231, 246, 255, 0.92); max-width: 720px; line-height: 1.6; }
.provider-hero-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.provider-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 10px;
}
.provider-stat .n { font-size: 24px; font-weight: 800; color: #5fffe3; line-height: 1; }
.provider-stat .l { margin-top: 5px; font-size: 12px; color: rgba(231, 246, 255, 0.92); }
.provider-hero-actions { margin-top: 14px; display: flex; gap: 10px; }
.provider-hero-actions .btn {
  width: auto;
  background: #54ead0;
  color: #08224d;
  box-shadow: 0 8px 20px rgba(84, 234, 208, 0.28);
}
.provider-hero-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #edf8ff;
  box-shadow: none;
}
.theme-provider .provider-hero {
  background:
    radial-gradient(360px 190px at 90% -8%, rgba(255, 255, 255, 0.24), transparent 62%),
    radial-gradient(340px 170px at 10% 108%, rgba(40, 210, 192, 0.28), transparent 70%),
    linear-gradient(145deg, #08214b 0%, #0a2f64 52%, #104886 100%);
}

.p-card {
  background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 22px; box-shadow: var(--shadow-soft); margin-bottom: 16px;
}
.p-card h3 { font-size: 17px; margin-bottom: 14px; font-weight: 800; }
.job { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.job:last-child { border-bottom: none; }
.job-info .jt { font-weight: 700; font-size: 15px; }
.job-info .jm { color: var(--muted); font-size: 13px; margin-top: 4px; }
.job-price { font-weight: 800; color: var(--primary); white-space: nowrap; }
.p-card .job:hover { background: rgba(22, 26, 43, 0.03); border-radius: 12px; padding-inline: 10px; margin-inline: -10px; }
.pending-box { text-align: center; padding: 50px 20px; }
.pending-box .big-ic { color: var(--primary); display: flex; justify-content: center; margin-bottom: 8px; }
.pending-box h2 { margin: 14px 0 8px; }
.pending-box p { color: var(--muted); max-width: 380px; margin: 0 auto; }
.fin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 16px; }
.fin-box {
  background: var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft); text-align: center;
}
.fin-box .fv { font-size: 24px; font-weight: 800; }
.fin-box .fl { color: var(--muted); font-size: 13px; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.approved, .badge.active, .badge.paid { background: #e0f8f2; color: #00997b; }
.badge.pending { background: #fff5e0; color: #b88600; }
.badge.in_progress { background: #e0f0ff; color: #0066cc; }
.badge.completed { background: #efeafb; color: #6a5acd; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.p-form { display: flex; flex-direction: column; gap: 12px; }
.pf-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pf-field input, .pf-field select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 14px; outline: none; background: #fff; }
.pf-field input:focus, .pf-field select:focus { border-color: var(--primary); }
.pf-field .pf-check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.pf-field .pf-check input { width: auto; }
.p-form-msg { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.p-form-msg.success { color: #00997b; }
.p-form-msg.error { color: #cc5028; }
.topnav { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; padding: 16px; }
.topnav .links a { margin-inline-start: 14px; text-decoration: none; font-weight: 600; font-size: 14px; }

/* ---------- סלייד-בר תחתון ---------- */
.provider-bottom-slider { display: none; }

/* ---------- רספונסיביות (נייד) ---------- */
@media (max-width: 980px) {
  .auth-wrap { flex-direction: column; gap: 30px; padding: 36px 18px; }
  .auth-hero { max-width: 520px; text-align: center; }
  .auth-hero-brand { justify-content: center; margin-bottom: 20px; }
  .auth-hero h1 { font-size: 36px; }
  .auth-hero p { margin: 0 auto; font-size: 15px; }
  .auth-hero-points { align-items: center; }
  .auth-card { max-height: none; }
}
@media (max-width: 640px) {
  .portal { padding: 14px 12px 110px; }
  .portal-header { padding: 10px 12px 10px; border-radius: 20px; }
  .portal-header .ph-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .ph-logo { height: 28px; opacity: 0.95; }
  .ph-meta { min-width: 0; width: 100%; }
  .ph-actions {
    width: 100%;
    justify-content: center;
    gap: 8px;
    padding-top: 6px;
    margin-top: 0;
    border-top: 1px solid rgba(20, 30, 60, 0.06);
  }
  .portal-header .hi { font-size: 19px; line-height: 1.15; }
  .portal-header .role { font-size: 11px; margin-top: 2px; }
  .status-pill { margin-top: 6px; font-size: 10.5px; padding: 4px 10px; }
  .ph-avatar { width: 34px; height: 34px; border-width: 2px; }
  .logout { padding: 7px 11px; font-size: 10.5px; }
  .prov-bell { width: 33px; height: 33px; }
  .prov-dot { min-width: 16px; height: 16px; font-size: 9px; }
  .provider-hero { margin-top: 10px; padding: 14px 12px 12px; border-radius: 20px; }
  .provider-hero-head { margin-bottom: 8px; }
  .provider-hero-kicker { font-size: 11px; }
  .provider-hero-pill { font-size: 10px; padding: 4px 8px; }
  .provider-hero h2 { font-size: 19px; margin-bottom: 4px; }
  .provider-hero p { font-size: 12px; line-height: 1.45; }
  .provider-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
  .provider-stat { padding: 8px 6px; text-align: center; }
  .provider-stat .n { font-size: 20px; }
  .provider-stat .l { font-size: 10.5px; margin-top: 3px; line-height: 1.25; }
  .provider-hero-actions { margin-top: 9px; gap: 8px; }
  .provider-hero-actions .btn { width: 50%; justify-content: center; padding: 8px 10px; font-size: 11px; }
  .portal-tabs { display: none; }
  .provider-bottom-slider {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 12px;
    z-index: 120;
    border-radius: 999px;
    padding: 8px;
    background: rgba(10, 17, 36, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(6, 11, 28, 0.45);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .pbs-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
  }
  .pbs-track::-webkit-scrollbar { display: none; }
  .pbs-item {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: rgba(236, 245, 255, 0.72);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all .18s ease;
  }
  .pbs-item.active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .pbs-ic { display: inline-flex; }
  .fin-grid { grid-template-columns: 1fr; }
  .prov-overlay { align-items: flex-end; padding: 0; }
  .prov-sheet { max-width: none; max-height: 90vh; border-radius: 26px 26px 0 0; }
  .auth-hero h1 { font-size: 30px; }
  .auth-hero-points { display: none; }
  .auth-card { padding: 26px 20px; border-radius: 26px; }
}
