:root {
  --ink: #16273d;
  --muted: #717c8a;
  --line: #e3e7ec;
  --surface: #ffffff;
  --canvas: #f5f8f7;
  --teal: #0b3670;
  --teal-dark: #072957;
  --mint: #e4eaf3;
  --coral: #629ae4;
  --coral-soft: #ebf4ff;
  --yellow: #67a3f3;
  --shadow: 0 18px 45px rgba(21, 88, 176, .10);
  --shadow-sm: 0 8px 22px rgba(21, 88, 176, .08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .brand-copy strong {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; }
.mini-profile > svg { width: 16px; height: 16px; color: #8a96a5; margin-right: auto; }

.app-shell { min-height: 100vh; position: relative; overflow: hidden; }
.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.app-shell::before { width: 460px; height: 460px; top: -250px; left: -160px; background: #e4ebf4; opacity: .72; }
.app-shell::after { width: 380px; height: 380px; right: -180px; top: 520px; background: #e9f2ff; opacity: .64; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.4px; }
.brand-mark {
  width: 96px; height: 96px; display: grid; place-items: center;
  border-radius: 14px; color: #fff; background: var(--teal);
  box-shadow: 0 10px 22px rgba(21, 88, 176, .22);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 18px; }
.brand-copy span { color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-link { color: var(--muted); font-size: 13px; border: 0; background: transparent; padding: 9px 10px; }
.topbar-link:hover { color: var(--teal); }

.btn {
  border: 0; border-radius: 13px; min-height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 13px; transition: .2s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: var(--teal); box-shadow: 0 10px 22px rgba(21, 88, 176, .18); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { color: var(--teal); background: var(--mint); }
.btn-secondary:hover { background: #d6e0ee; }
.btn-coral { color: #fff; background: var(--coral); box-shadow: 0 10px 22px rgba(21, 88, 176, .2); }
.btn-coral:hover { filter: brightness(.97); transform: translateY(-1px); }
.btn-ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c1cbd8; color: var(--teal); background: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 12px; border-radius: 11px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 12px; display: grid; place-items: center; }
.icon-btn:hover { border-color: #b6c3d4; color: var(--teal); }

.eyebrow { color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.section-title { margin: 8px 0 12px; font-size: clamp(24px, 3vw, 38px); line-height: 1.32; letter-spacing: -1px; }
.section-lead { max-width: 570px; color: var(--muted); font-size: 15px; margin: 0; }
.muted { color: var(--muted); }

/* landing */
.landing-hero { padding: 45px 0 64px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.hero-copy h1 { font-size: clamp(35px, 5.3vw, 65px); line-height: 1.15; letter-spacing: -2px; margin: 12px 0 20px; max-width: 690px; }
.hero-copy h1 em { color: var(--teal); font-style: normal; position: relative; }
.hero-copy h1 em::after { content: ""; position: absolute; height: 9px; right: 0; bottom: -4px; left: 0; background: #c5d4e8; z-index: -1; border-radius: 8px; transform: rotate(-1deg); }
.hero-copy p { max-width: 560px; color: var(--muted); font-size: 16px; margin: 0 0 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span { width: 28px; height: 28px; border: 2px solid var(--canvas); border-radius: 50%; margin-left: -8px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }
.avatar-stack span:nth-child(1) { background: #71a0de; }
.avatar-stack span:nth-child(2) { background: #6b819d; }
.avatar-stack span:nth-child(3) { background: #7c96b8; }
.avatar-stack span:nth-child(4) { background: #407fd2; }
.hero-visual { position: relative; min-height: 425px; display: grid; place-items: center; }
.visual-orb { width: 390px; height: 390px; border-radius: 50%; background: #e2e9f2; position: absolute; }
.visual-card { position: relative; width: min(390px, 100%); background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); transform: rotate(2deg); }
.visual-card::before { content: ""; position: absolute; width: 100px; height: 100px; left: -35px; top: -35px; border-radius: 24px; background: #ecf4ff; z-index: -1; }
.visual-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.visual-card-head strong { font-size: 15px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 6px 10px; background: #ecf1f8; color: #284a77; font-size: 11px; font-weight: 700; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3d73bb; }
.mini-profile { display: flex; align-items: center; gap: 11px; padding: 13px; background: #f7faf9; border-radius: 16px; }
.mini-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7c95b7, #43628b); font-weight: 800; }
.mini-profile strong { display: block; font-size: 13px; }
.mini-profile span { color: var(--muted); font-size: 11px; }
.mini-row { display: flex; gap: 10px; margin-top: 13px; }
.mini-stat { flex: 1; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.mini-stat strong { display: block; font-size: 20px; }
.mini-stat span { color: var(--muted); font-size: 10px; }
.mini-request { margin-top: 13px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.mini-request-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mini-request-top strong { font-size: 12px; }
.mini-request-top span { color: var(--coral); font-size: 11px; font-weight: 700; }
.mini-request p { color: var(--muted); font-size: 11px; margin: 6px 0 12px; }
.progress-track { height: 6px; border-radius: 50px; background: #edeff1; overflow: hidden; }
.progress-track i { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--teal); }
.float-note { position: absolute; right: 0; bottom: 35px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; color: #354457; background: #fff; box-shadow: var(--shadow-sm); font-size: 11px; transform: rotate(-4deg); }
.float-note svg { color: var(--coral); width: 18px; height: 18px; }

.role-section { padding: 40px 0 74px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.role-card { text-align: right; padding: 21px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.86); transition: .22s ease; position: relative; overflow: hidden; }
.role-card::after { content: ""; width: 100px; height: 100px; border-radius: 50%; background: var(--mint); position: absolute; left: -40px; bottom: -46px; opacity: .55; }
.role-card:hover { transform: translateY(-4px); border-color: #b8c6d8; box-shadow: var(--shadow-sm); }
.role-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 17px; color: var(--teal); background: var(--mint); }
.role-card:nth-child(2) .role-icon { color: #1657ae; background: #dcebff; }
.role-card:nth-child(3) .role-icon { color: #4771a8; background: var(--coral-soft); }
.role-card:nth-child(4) .role-icon { color: #5b779b; background: #ebf2fb; }
.role-icon svg { width: 23px; height: 23px; }
.role-card h3 { font-size: 15px; margin: 0 0 7px; }
.role-card p { min-height: 49px; color: var(--muted); font-size: 11px; margin: 0 0 16px; line-height: 1.85; }
.text-link { color: var(--teal); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.text-link svg { width: 14px; height: 14px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 0 75px; }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 17px; border-radius: 17px; background: #fff; border: 1px solid var(--line); }
.trust-item > svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--teal); }
.trust-item strong { display: block; font-size: 12px; }
.trust-item span { color: var(--muted); font-size: 10px; }
.footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 15px; }

/* auth */
.auth-page { padding: 12px 0 60px; }
.back-link { border: 0; background: transparent; padding: 7px 0; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.back-link:hover { color: var(--teal); }
.back-link svg { width: 15px; height: 15px; }
.auth-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 23px; align-items: stretch; margin-top: 22px; }
.auth-aside { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 31px; color: #fff; background: linear-gradient(148deg, #0b3670 0%, #102b4e 100%); min-height: 590px; }
.auth-aside::before { content: ""; width: 260px; height: 260px; border-radius: 50%; background: rgba(21, 88, 176, .14); position: absolute; left: -95px; bottom: -85px; }
.auth-aside::after { content: ""; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); position: absolute; right: -55px; top: 82px; }
.auth-aside .eyebrow { color: #9cbae2; }
.auth-aside h2 { font-size: 29px; line-height: 1.45; margin: 10px 0 12px; position: relative; z-index: 1; }
.auth-aside > p { color: rgba(255,255,255,.68); font-size: 13px; max-width: 285px; position: relative; z-index: 1; }
.aside-points { display: grid; gap: 12px; margin-top: 33px; position: relative; z-index: 1; }
.aside-point { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.86); }
.aside-point i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.13); color: #adcaf0; font-style: normal; }
.aside-point svg { width: 14px; height: 14px; }
.aside-quote { position: absolute; right: 31px; left: 31px; bottom: 30px; z-index: 1; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.07); }
.aside-quote p { margin: 0 0 8px; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.9; }
.aside-quote span { color: rgba(255,255,255,.55); font-size: 10px; }
.auth-card { background: #fff; border-radius: var(--radius-xl); padding: 31px; box-shadow: var(--shadow-sm); border: 1px solid rgba(21, 88, 176,.9); }
.auth-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.auth-card-head h1 { margin: 0 0 5px; font-size: 23px; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.role-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); background: var(--mint); border-radius: 11px; padding: 8px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.role-badge svg { width: 15px; height: 15px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.step { display: flex; align-items: center; gap: 7px; color: #a0a7b1; font-size: 11px; font-weight: 700; white-space: nowrap; }
.step i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d9dee4; border-radius: 50%; font-style: normal; font-size: 10px; }
.step.active { color: var(--teal); }
.step.active i { color: #fff; border-color: var(--teal); background: var(--teal); }
.step.done { color: #42628c; }
.step.done i { color: #fff; border-color: #7594bd; background: #7594bd; }
.step-line { flex: 1; height: 1px; background: var(--line); min-width: 18px; }
.form-section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; font-size: 14px; }
.form-section-title svg { width: 18px; height: 18px; color: var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; color: #4d5a6b; font-weight: 700; }
.field label small { color: #9aa1ab; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce1e7; border-radius: 12px; min-height: 44px; padding: 9px 12px; background: #fbfdfc; color: var(--ink); outline: 0; font-size: 12px; transition: .2s ease; }
.field textarea { min-height: 89px; resize: vertical; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #b3b9c1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7592b9; box-shadow: 0 0 0 3px rgba(21, 88, 176,.14); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc8c79; box-shadow: 0 0 0 3px rgba(21, 88, 176,.1); }
.error-text { color: #c15c45; font-size: 10px; display: none; }
.field.has-error .error-text { display: block; }
.hint { color: #9199a3; font-size: 10px; margin: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 19px; border-top: 1px solid #eef0f3; }
.form-actions .right-actions, .form-actions .left-actions { display: flex; gap: 9px; align-items: center; }
.required-note { color: #9ca4ae; font-size: 10px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.upload-box { min-height: 117px; padding: 15px; border: 1px dashed #b7c3d4; background: #fbfefd; border-radius: 16px; position: relative; transition: .2s ease; }
.upload-box:hover { border-color: var(--teal); background: #f3f6fb; }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-content { display: grid; justify-items: center; gap: 5px; text-align: center; pointer-events: none; }
.upload-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--teal); background: var(--mint); }
.upload-icon svg { width: 17px; height: 17px; }
.upload-content strong { font-size: 11px; }
.upload-content span { color: var(--muted); font-size: 9px; }
.upload-file { display: none; color: var(--teal); font-size: 10px; font-weight: 700; margin-top: 7px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-box.has-file .upload-file { display: block; }
.avatar-upload { display: flex; align-items: center; gap: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.avatar-preview { width: 63px; height: 63px; flex: 0 0 63px; border-radius: 19px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #839cbd, #41608a); font-size: 21px; font-weight: 800; overflow: hidden; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-text { display: grid; gap: 4px; }
.avatar-upload-text strong { font-size: 12px; }
.avatar-upload-text span { color: var(--muted); font-size: 10px; }
.avatar-label { color: var(--teal); font-size: 11px; font-weight: 800; cursor: pointer; }
.avatar-label input { display: none; }
.consent { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 17px; }
.consent input { margin-top: 3px; accent-color: var(--teal); }
.switch-auth { text-align: center; color: var(--muted); font-size: 11px; margin: 20px 0 0; }
.switch-auth button { border: 0; background: transparent; color: var(--teal); font-weight: 800; padding: 0 3px; }
.login-hint { display: flex; align-items: center; gap: 7px; padding: 11px 12px; margin-top: 16px; border-radius: 12px; color: #6a7380; background: #f6f8fa; font-size: 10px; }
.login-hint svg { width: 15px; height: 15px; color: var(--teal); flex: 0 0 15px; }
.notif-count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-right: 2px; padding: 0 4px; border-radius: 99px; color: #fff; background: var(--coral); font-size: 9px; }

/* dashboard */
.dashboard-page { padding-bottom: 55px; }
.dashboard-topbar { background: rgba(255,255,255,.74); border-bottom: 1px solid rgba(21, 88, 176,.8); }
.dashboard-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #849cbc, #436189); font-size: 13px; font-weight: 800; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-text { display: grid; line-height: 1.3; }
.user-menu-text strong { font-size: 14px; }
.user-menu-text span { color: var(--muted); font-size: 11px; }
.dashboard-main { padding-top: 28px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 23px; }
.dashboard-header h1 { margin: 4px 0 7px; font-size: 31px; line-height: 1.45; letter-spacing: -.7px; }
.dashboard-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.dashboard-header-actions { display: flex; gap: 8px; }
.nurse-hero { align-items: center; padding: 22px 26px; border-radius: 23px; background: linear-gradient(110deg, #e9eef5, #f8fbf9); overflow: hidden; }
.nurse-hero-copy { position: relative; z-index: 1; }
.nurse-hero .dashboard-header-actions { margin-top: 16px; }
.role-hero-photo { flex: 0 0 240px; width: 240px; height: 180px; border-radius: 20px; background-image: url('care-team-header.jpg'); background-repeat: no-repeat; background-size: auto 335%; box-shadow: 0 12px 28px rgba(21, 88, 176, .14); }
.nurse-photo { background-position: 0% 0%; }
.elder-photo { background-position: 25% 15%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.stat-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 19px; min-height: 116px; }
.stat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.stat-head svg { width: 18px; height: 18px; color: var(--teal); }
.stat-card strong { display: block; font-size: 30px; line-height: 1.25; margin-top: 10px; }
.stat-card em { color: #396094; font-size: 11px; font-style: normal; font-weight: 700; margin-right: 5px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 23px; }
.panel + .panel { margin-top: 17px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 18px; line-height: 1.55; }
.panel-head p { color: var(--muted); margin: 4px 0 0; font-size: 12px; line-height: 1.85; }
.panel-head .text-link { font-size: 12px; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 14px; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; padding: 8px 14px; font-size: 12px; font-weight: 500; }
.filter-chip.active, .filter-chip:hover { color: var(--teal); border-color: #9fb4cf; background: #eef3f9; }
.request-list { display: grid; gap: 11px; }
.request-card { border: 1px solid #e7eaef; border-radius: 18px; padding: 17px; transition: .2s ease; }
.request-card:hover { border-color: #b6c5d8; box-shadow: 0 5px 17px rgba(21, 88, 176,.06); }
.request-card.reserved { background: #f7f9fc; border-color: #b9c9de; }
.request-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.request-person { display: flex; gap: 10px; align-items: center; }
.request-avatar { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: #749fd7; font-size: 13px; font-weight: 800; }
.request-card:nth-child(2n) .request-avatar { background: #7792b6; }
.request-card:nth-child(3n) .request-avatar { background: #869ebd; }
.request-person strong { display: block; font-size: 15px; line-height: 1.65; }
.request-person span { color: var(--muted); font-size: 12px; line-height: 1.9; }
.request-pay { text-align: left; }
.request-pay strong { display: block; color: var(--teal); font-size: 15px; line-height: 1.55; }
.request-pay span { color: var(--muted); font-size: 11px; }
.request-title { margin: 14px 0 9px; font-size: 15px; line-height: 1.9; }
.request-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.request-meta span { display: inline-flex; align-items: center; gap: 4px; }
.request-meta svg { width: 13px; height: 13px; color: #8492a4; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.tag { color: #525f71; background: #f0f3f7; border-radius: 7px; padding: 5px 8px; font-size: 11px; }
.request-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #eef0f3; }
.request-bottom small { color: var(--muted); font-size: 11px; line-height: 1.85; }
.reserve-btn.is-reserved { color: #315482; background: #e6edf6; box-shadow: none; }
.reserve-btn.is-unavailable { color: #828992; background: #f3f6f5; border-color: #e0e4e9; box-shadow: none; cursor: not-allowed; }
.empty-state { padding: 30px 15px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state svg { width: 35px; height: 35px; margin: 0 auto 8px; color: #9fb0c6; }
.profile-card { text-align: center; }
.profile-card .user-avatar { width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 21px; font-size: 22px; }
.profile-card h3 { margin: 0 0 4px; font-size: 17px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.completion { padding: 15px 0 4px; text-align: right; }
.completion-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.completion-top strong { color: var(--teal); }
.completion .progress-track i { width: 86%; }
.profile-links { display: grid; gap: 7px; margin-top: 15px; }
.profile-link { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 11px; color: #526073; background: #f8fbfa; font-size: 12px; }
.profile-link span { display: inline-flex; align-items: center; gap: 7px; }
.profile-link svg { width: 14px; height: 14px; color: #7a8ca3; }
.profile-link > svg { width: 13px; height: 13px; }
.availability { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 15px; background: #f5f7fa; margin-top: 17px; }
.availability strong { display: block; font-size: 13px; }
.availability span { display: block; color: var(--muted); font-size: 11px; }
.toggle { width: 39px; height: 22px; position: relative; border: 0; border-radius: 99px; background: #c9cfd8; padding: 0; transition: .2s ease; }
.toggle::after { content: ""; width: 16px; height: 16px; position: absolute; top: 3px; right: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.1); transition: .2s ease; }
.toggle.on { background: #5f84b4; }
.toggle.on::after { right: 20px; }
.bottom-nav { display: none; }

/* non-nurse dashboard */
.welcome-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; color: #fff; background: linear-gradient(120deg, #0b3670, #284d7f); border-radius: 23px; margin-bottom: 20px; overflow: hidden; position: relative; }
.welcome-banner::after { content: ""; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; position: absolute; left: -65px; top: -70px; }
.welcome-banner h2 { margin: 0 0 6px; font-size: 20px; position: relative; z-index: 1; }
.welcome-banner p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; position: relative; z-index: 1; }
.welcome-banner .btn { position: relative; z-index: 1; color: var(--teal); background: #fff; box-shadow: none; }
.elder-hero { min-height: 215px; }
.elder-hero-copy { position: relative; z-index: 1; max-width: 540px; }
.elder-hero .btn { margin-top: 16px; }
.elder-hero .role-hero-photo { flex-basis: 220px; width: 220px; height: 175px; }
.simple-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.service-form { display: grid; gap: 14px; }
.service-form .field textarea { min-height: 105px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 22px 1fr; gap: 11px; position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; width: 1px; background: #d9e0e9; top: 20px; bottom: 0; right: 10px; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--mint); z-index: 1; }
.timeline-dot svg { width: 11px; height: 11px; }
.timeline-item strong { display: block; font-size: 13px; line-height: 1.75; }
.timeline-item span { color: var(--muted); font-size: 11px; line-height: 1.9; }

/* modal + toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(21, 88, 176, .42); backdrop-filter: blur(4px); }
.modal { width: min(510px, 100%); max-height: min(700px, calc(100vh - 36px)); overflow: auto; background: #fff; border-radius: 24px; padding: 23px; box-shadow: 0 25px 70px rgba(21, 88, 176, .24); }
.request-modal { width: min(760px, 100%); max-height: calc(100vh - 28px); }
.request-modal .form-section-title { margin: 21px 0 13px; }
.request-modal .field textarea { min-height: 95px; }
.map-picker { margin-top: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbfa; }
.map-picker-head { display: grid; gap: 3px; margin-bottom: 10px; }
.map-picker-head strong { font-size: 13px; }
.map-picker-head span, .map-status { color: var(--muted); font-size: 11px; }
.request-map { height: 300px; border-radius: 12px; background: #e4e8ee; direction: ltr; overflow: hidden; }
.iran-vector-map { position: relative; background: linear-gradient(155deg, #e9eef5, #d7dee8); }
.iran-vector-map svg { width: 100%; height: 100%; }
.iran-province { fill: #d0d9e6; stroke: #69809e; stroke-width: .85; cursor: crosshair; transition: fill .15s ease; }
.iran-province:hover, .iran-province:focus { fill: #adbfd6; }
.iran-city { pointer-events: none; }
.iran-city circle { fill: #0b3670; stroke: #fff; stroke-width: 1; }
.iran-city text { fill: #31435a; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 16px; paint-order: stroke; stroke: #eff3f8; stroke-width: 3px; }
.iran-map-pin { fill: #629ae4; stroke: #fff; stroke-width: 3px; pointer-events: none; filter: drop-shadow(0 2px 4px #425164); }
.iran-map-credit { position: absolute; bottom: 6px; left: 8px; padding: 3px 6px; border-radius: 6px; color: #455468; background: rgba(255,255,255,.88); font-size: 9px; }
.map-provider { display: grid; gap: 7px; margin: 12px 0; padding: 11px; border-radius: 11px; background: #eef1f5; }
.map-provider label { color: #4d5a6b; font-size: 11px; font-weight: 700; }
.map-provider > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.map-provider input { min-width: 150px; flex: 1; min-height: 37px; padding: 7px 10px; border: 1px solid #dce1e7; border-radius: 9px; background: #fff; }
.map-status { min-height: 20px; margin: 10px 0; }
.map-coordinates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.map-coordinates label { display: grid; gap: 5px; color: #4d5a6b; font-size: 11px; font-weight: 700; }
.map-coordinates input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #dce1e7; border-radius: 10px; color: var(--ink); background: #fff; direction: ltr; }
.request-state { align-self: flex-start; border-radius: 20px; padding: 5px 10px; color: #40679a; background: #e6f1ff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.request-state.reserved { color: #284a77; background: #e9eff7; }
.request-state.cancelled { color: #8a8f95; background: #f1f3f3; }
.elder-request.is-cancelled { opacity: .75; }
.request-summary { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-grid > div { display: grid; gap: 4px; padding: 11px; border-radius: 10px; background: #f7faf9; }
.detail-grid span { color: var(--muted); font-size: 10px; }
.detail-grid strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.detail-grid .detail-wide { grid-column: 1 / -1; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.modal-head h3 { margin: 0 0 4px; font-size: 17px; }
.modal-head p { color: var(--muted); margin: 0; font-size: 10px; }
.modal-body { color: #535e6c; font-size: 12px; line-height: 1.9; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
#toast-root { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 240px; max-width: 340px; display: flex; align-items: center; gap: 9px; color: #fff; background: #162942; border-radius: 13px; padding: 12px 14px; box-shadow: 0 13px 30px rgba(21, 88, 176, .2); font-size: 11px; animation: toast-in .25s ease both; }
.toast svg { width: 17px; height: 17px; color: #94b5e1; flex: 0 0 17px; }
.toast.error svg { color: #ffb09a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .landing-hero { gap: 32px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 265px; }
  .aside-quote { max-width: 390px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; align-items: start; }
  .dashboard-side .panel + .panel { margin-top: 0; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), 560px); }
  .topbar { min-height: 68px; }
  .topbar-link { display: none; }
  .hero-visual { min-height: 365px; margin-top: 4px; }
  .visual-orb { width: 300px; height: 300px; }
  .visual-card { max-width: 335px; }
  .float-note { right: 5px; bottom: 24px; }
  .landing-hero { padding: 28px 0 38px; display: block; }
  .hero-copy h1 { font-size: 39px; letter-spacing: -1.4px; }
  .hero-copy p { font-size: 14px; }
  .section-head { display: block; }
  .section-head .section-lead { margin-top: 7px; }
  .role-section { padding: 30px 0 48px; }
  .role-grid { gap: 10px; }
  .role-card { padding: 16px; border-radius: 18px; }
  .role-card p { min-height: 68px; font-size: 10px; }
  .trust-strip { grid-template-columns: 1fr; padding-bottom: 46px; }
  .footer { display: grid; gap: 5px; }
  .auth-page { padding-top: 6px; }
  .auth-aside { min-height: 230px; padding: 23px; border-radius: 24px; }
  .auth-aside h2 { font-size: 23px; }
  .aside-points { grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 18px; }
  .aside-point { font-size: 10px; }
  .aside-quote { display: none; }
  .auth-card { padding: 21px 16px; border-radius: 24px; }
  .auth-card-head { display: block; }
  .role-badge { margin-top: 13px; }
  .stepper { gap: 5px; }
  .step { font-size: 9px; gap: 4px; }
  .step i { width: 22px; height: 22px; font-size: 9px; }
  .form-grid, .upload-grid { grid-template-columns: 1fr; gap: 13px; }
  .field.full { grid-column: auto; }
  .form-actions { display: grid; gap: 11px; }
  .form-actions .right-actions, .form-actions .left-actions { width: 100%; }
  .form-actions .right-actions .btn, .form-actions .left-actions .btn { flex: 1; }
  .required-note { order: 3; }
  .dashboard-main { padding-top: 20px; }
  .dashboard-header { display: block; }
  .dashboard-header-actions { margin-top: 14px; }
  .dashboard-header-actions .btn { flex: 1; }
  .dashboard-header h1 { font-size: 26px; line-height: 1.5; }
  .dashboard-header p { font-size: 13px; }
  .nurse-hero { display: flex; padding: 17px; align-items: center; }
  .nurse-hero .role-hero-photo { flex: 0 0 105px; width: 105px; height: 126px; border-radius: 15px; }
  .nurse-hero .dashboard-header-actions { flex-wrap: wrap; }
  .nurse-hero .dashboard-header-actions .btn { flex: 0 1 auto; }
  .nurse-hero h1 { font-size: 21px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-card { min-height: 104px; padding: 15px; }
  .stat-head { font-size: 11px; }
  .stat-card strong { font-size: 25px; margin-top: 8px; }
  .dashboard-side { grid-template-columns: 1fr; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel-head h2 { font-size: 17px; }
  .panel-head p, .panel-head .text-link { font-size: 11px; }
  .filter-chip { padding: 8px 13px; font-size: 11px; }
  .request-card { padding: 15px; }
  .request-person strong { font-size: 14px; }
  .request-person span, .request-meta { font-size: 11px; }
  .request-pay strong { font-size: 14px; }
  .request-pay span, .request-bottom small { font-size: 10px; }
  .request-title { font-size: 14px; }
  .tag { font-size: 10px; }
  .profile-card h3 { font-size: 16px; }
  .profile-card p, .completion-top, .profile-link { font-size: 11px; }
  .bottom-nav { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 10; display: flex; justify-content: space-around; padding: 8px 5px; border: 1px solid rgba(21, 88, 176,.92); border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 14px 32px rgba(21, 88, 176, .13); backdrop-filter: blur(10px); }
  .bottom-nav button { border: 0; color: #9aa1ab; background: transparent; display: grid; justify-items: center; gap: 3px; padding: 4px 10px; font-size: 11px; }
  .bottom-nav button.active { color: var(--teal); }
  .bottom-nav svg { width: 17px; height: 17px; }
  .welcome-banner { display: block; padding: 20px; }
  .welcome-banner .btn { margin-top: 14px; }
  .elder-hero { display: flex; align-items: center; min-height: 185px; }
  .elder-hero .role-hero-photo { flex: 0 0 105px; width: 105px; height: 140px; border-radius: 14px; }
  .elder-hero h2 { font-size: 17px; }
  .simple-grid { grid-template-columns: 1fr; }
  .request-map { height: 240px; }
  .request-modal { padding: 18px 14px; }
  .detail-grid, .map-coordinates { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero-copy h1 { font-size: 34px; }
  .role-card h3 { font-size: 13px; }
  .role-card p { min-height: 82px; }
  .request-bottom { align-items: flex-start; flex-direction: column; }
  .request-bottom .btn { width: 100%; }
}

/* Refined landing and functional panels */
.landing-hero { gap: 44px; padding: 42px 0 74px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { display: inline-flex; background: #e9f2ff; padding: 7px 14px; border-radius: 30px; }
.hero-copy h1 { font-size: clamp(41px, 5vw, 68px); line-height: 1.27; }
.hero-copy p { font-size: 17px; line-height: 2; }
.hero-trust { padding: 13px 15px; border-radius: 14px; background: #e9eef4; color: #31445d; max-width: 510px; }
.hero-trust svg { flex: 0 0 20px; color: var(--teal); }
.hero-visual { min-height: 490px; padding: 15px 24px; }
.hero-visual::before { content: ''; position: absolute; inset: 34px 0 25px 35px; background: #dce4ee; border-radius: 42% 58% 43% 57%; transform: rotate(-8deg); }
.hero-photo { position: relative; width: 100%; height: 455px; border-radius: 130px 30px 110px 30px; background: url('care-team-header.jpg') 16% 25% / auto 200% no-repeat; box-shadow: 0 30px 55px rgba(21, 88, 176,.17); }
.hero-photo-caption { position: absolute; right: -12px; bottom: 23px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.hero-photo-caption strong, .hero-photo-caption span { display: block; }
.hero-photo-caption span { font-size: 11px; color: var(--muted); }
.hero-photo-caption strong { font-size: 15px; color: var(--ink); }
.caption-symbol { width: 38px; height: 38px; display: grid!important; place-items: center; border-radius: 12px; background: var(--mint); color: var(--teal)!important; }
.hero-floating-step { position: absolute; left: 0; top: 32px; display: flex; gap: 7px; align-items: center; border-radius: 99px; padding: 10px 14px; background: #fff; color: var(--teal); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.role-card { transition: transform .2s, box-shadow .2s; }
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.wallet-panel { margin-bottom: 20px; }
.wallet-totals { display: flex; flex-wrap: wrap; gap: 16px; background: var(--mint); padding: 14px; border-radius: 14px; margin-bottom: 14px; }
.wallet-totals span { display: grid; gap: 3px; font-size: 11px; }
.wallet-totals strong { font-size: 16px; }
.wallet-row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.wallet-row small { display: block; color: var(--muted); margin-top: 4px; }
.elder-documents { margin-bottom: 18px; }
.document-grid { display: grid; gap: 10px; }
.document-card { display: grid; gap: 5px; padding: 13px; border: 1px dashed #bac6d7; border-radius: 15px; background: #fbfefd; min-width: 0; }
.document-card strong { font-size: 13px; }
.document-card small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.document-card input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.document-icon { color: var(--teal); }
.document-actions { display: flex; gap: 12px; }
.request-state.completed { background: #e4eaf3; color: #20416c; }
@media (max-width: 700px) {
  .hero-visual { min-height: 345px; padding: 14px 16px; }
  .hero-photo { height: 320px; border-radius: 85px 20px 80px 20px; }
  .hero-photo-caption { right: 4px; bottom: 8px; }
  .hero-floating-step { top: 5px; }
  .wallet-row { flex-direction: column; }
}


