:root {
  --navy: #062b5b;
  --navy-2: #0a417e;
  --navy-3: #0b5ba7;
  --red: #f51b2b;
  --red-dark: #cf1022;
  --ink: #10253f;
  --muted: #69788b;
  --line: #dce5ef;
  --surface: #f5f8fc;
  --white: #ffffff;
  --green: #16865c;
  --amber: #f0a228;
  --shadow: 0 22px 70px rgba(6, 31, 63, .18);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 27, 43, .08), transparent 32%),
    radial-gradient(circle at 82% 75%, rgba(11, 91, 167, .11), transparent 31%),
    #eef3f8;
}
button, input { font: inherit; }
button { cursor: pointer; }

.prototype-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(390px, 460px) minmax(210px, 280px);
  gap: clamp(24px, 4vw, 68px);
  align-items: center;
  justify-content: center;
  padding: 42px;
}
.prototype-notes { align-self: center; }
.stage-logo { width: 260px; max-width: 100%; mix-blend-mode: multiply; margin-bottom: 28px; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.prototype-notes h1 { color: var(--navy); font-size: clamp(38px, 4vw, 62px); letter-spacing: -.055em; line-height: .98; margin: 0 0 18px; }
.stage-copy { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 30px; max-width: 310px; }
.prototype-meta { display: grid; gap: 13px; padding: 20px 0; border-top: 1px solid rgba(6, 43, 91, .14); border-bottom: 1px solid rgba(6, 43, 91, .14); }
.prototype-meta div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.prototype-meta span { color: var(--muted); }
.prototype-meta strong { color: var(--navy); text-align: right; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stage-button { border: 1px solid rgba(6,43,91,.2); background: rgba(255,255,255,.65); color: var(--navy); padding: 10px 13px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.stage-button.primary { background: var(--navy); color: white; border-color: var(--navy); }
.stage-hint { font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 18px; }

.phone-wrap { display: grid; place-items: center; }
.phone { width: min(100%, 430px); aspect-ratio: 430 / 895; border-radius: 54px; background: #07121e; padding: 10px; box-shadow: var(--shadow), 0 2px 0 rgba(255,255,255,.7) inset; }
.phone-bezel { position: relative; height: 100%; border-radius: 46px; background: var(--white); overflow: hidden; }
.statusbar { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 11px; font-weight: 700; color: var(--navy); background: white; position: relative; z-index: 20; }
.dynamic-island { width: 104px; height: 27px; border-radius: 20px; background: #07121e; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); }
.app { height: calc(100% - 38px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: var(--surface); }
.app::-webkit-scrollbar { display: none; }
.home-indicator { position: absolute; z-index: 50; width: 122px; height: 5px; border-radius: 5px; background: #07121e; bottom: 7px; left: 50%; transform: translateX(-50%); opacity: .82; }

.screen-index { max-height: 670px; align-self: center; }
.screen-index-head { display: flex; justify-content: space-between; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid rgba(6,43,91,.15); }
.screen-list { max-height: 620px; overflow-y: auto; scrollbar-width: thin; padding-top: 8px; }
.screen-link { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--muted); padding: 8px 4px; text-align: left; font-size: 12px; }
.screen-link span { width: 22px; color: #9aa8b8; font-variant-numeric: tabular-nums; }
.screen-link.active { color: var(--navy); font-weight: 700; }
.screen-link.active span { color: var(--red); }

.screen { min-height: 100%; padding: 0 18px 92px; background: var(--surface); animation: screenIn .24s ease; }
.screen.no-nav { padding-bottom: 24px; }
@keyframes screenIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.screen.rtl { direction: rtl; font-family: "Noto Kufi Arabic", sans-serif; }
.screen.rtl .back { transform: rotate(180deg); }

.app-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; background: white; margin: 0 -18px 12px; padding: 7px 18px; border-bottom: 1px solid #edf1f6; position: sticky; top: 0; z-index: 10; }
.app-header h2 { font-size: 16px; color: var(--navy); margin: 0; letter-spacing: -.01em; }
.icon-button { border: 0; background: transparent; color: var(--navy); font-size: 21px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.icon-button:active { background: #edf4fb; }
.header-logo { width: 184px; height: 45px; flex: 0 0 184px; object-fit: contain; object-position: left center; }
.rtl .header-logo { object-position: right center; }
.my-azhd-header { border: 0; border-radius: 9px; background: var(--navy); color: white; padding: 9px 10px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.public-welcome { margin: 8px 1px 15px; }
.public-welcome p { color: var(--red); font-size: 10px; font-weight: 700; margin: 0 0 5px; text-transform: uppercase; letter-spacing: .06em; }
.public-welcome h1 { color: var(--navy); font-size: 24px; margin: 0; letter-spacing: -.03em; }
.card.main-slider { min-height: 224px; padding: 21px; color: white; background: linear-gradient(135deg, #062b5b, #0b5ba7); position: relative; overflow: hidden; }
.main-slider::after { content: ""; position: absolute; width: 180px; height: 180px; border: 32px solid rgba(255,255,255,.06); border-radius: 50%; right: -100px; top: -78px; }
.main-slider .mini { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; opacity: .72; }
.main-slider h2 { max-width: 260px; font-size: 23px; line-height: 1.12; margin: 8px 0; letter-spacing: -.03em; }
.main-slider p { max-width: 255px; font-size: 10px; line-height: 1.5; opacity: .82; margin: 0 0 14px; }
.slider-symbol { position: absolute; right: 18px; bottom: 28px; color: rgba(255,255,255,.12); font-size: 95px; }
.rtl .slider-symbol { right: auto; left: 18px; }
.slider-dots { position: absolute; left: 21px; bottom: 13px; display: flex; gap: 5px; z-index: 2; }
.rtl .slider-dots { left: auto; right: 21px; }
.slider-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.4); }
.slider-dot.active { width: 20px; background: white; }
.latest-doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.latest-doctor { min-width: 0; padding: 10px 7px; text-align: center; color: var(--navy); }
.latest-doctor .avatar { width: 54px; height: 60px; margin: 0 auto 8px; font-size: 16px; }
.latest-doctor strong { display: block; font-size: 9px; line-height: 1.3; }
.latest-doctor span { display: block; color: var(--muted); font-size: 7px; line-height: 1.3; margin-top: 4px; }
.offer-list { display: grid; gap: 9px; }
.offer-card { padding: 13px; display: flex; align-items: center; gap: 11px; }
.offer-icon { width: 46px; height: 46px; border-radius: 50%; background: #edf5fc; color: var(--navy-3); display: grid; place-items: center; font-size: 21px; }
.offer-card strong { display: block; color: var(--red-dark); font-size: 10px; margin-top: 6px; }
.empty-header-space { width: 36px; }

.hero { background: linear-gradient(145deg, var(--navy), var(--navy-3)); color: white; margin: 0 -18px; padding: 24px 20px 28px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 170px; height: 170px; border: 36px solid rgba(255,255,255,.07); border-radius: 50%; right: -80px; top: -70px; }
.hero .kicker { font-size: 12px; opacity: .75; margin: 0 0 7px; }
.hero h1 { font-size: 27px; line-height: 1.14; margin: 0; letter-spacing: -.035em; max-width: 290px; }
.hero p { margin: 9px 0 0; font-size: 13px; opacity: .82; line-height: 1.5; }
.hero-logo { width: 178px; height: 64px; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 38px; }

.search-box { border: 1px solid var(--line); background: white; border-radius: 15px; display: flex; gap: 10px; align-items: center; padding: 13px 14px; color: var(--muted); font-size: 13px; box-shadow: 0 4px 15px rgba(22,49,81,.05); }
.search-box input { border: 0; outline: 0; width: 100%; color: var(--ink); background: transparent; }
.home-search { margin-top: -20px; position: relative; z-index: 3; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 1px 11px; }
.section-head h3 { font-size: 15px; color: var(--navy); margin: 0; }
.text-link { border: 0; background: transparent; color: var(--navy-3); font-weight: 700; font-size: 11px; padding: 0; }
.card { background: white; border: 1px solid #e1e8f0; border-radius: 17px; box-shadow: 0 4px 18px rgba(26,54,85,.04); }
.clickable { cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.clickable:active { transform: scale(.985); border-color: #b4c9df; }
.banner { padding: 18px; background: linear-gradient(135deg, #082e62, #0a5aa5); color: white; position: relative; overflow: hidden; }
.banner::after { content: "♥"; position: absolute; right: 14px; bottom: -23px; font-size: 100px; color: rgba(255,255,255,.1); }
.banner .mini { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.banner h3 { margin: 6px 0; font-size: 19px; max-width: 240px; }
.banner p { font-size: 11px; line-height: 1.45; opacity: .82; max-width: 240px; margin: 0 0 13px; }
.small-white-button { border: 0; background: white; color: var(--navy); border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: 10px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.quick-action { border: 1px solid var(--line); background: white; border-radius: 14px; min-height: 84px; padding: 10px 4px; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; font-size: 10px; font-weight: 700; }
.quick-action .glyph { font-size: 23px; color: var(--navy-3); }

.appointment-mini { padding: 14px; display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: var(--navy); background: linear-gradient(145deg, #edf5fc, #d7e6f5); border: 1px solid white; box-shadow: 0 3px 8px rgba(22,54,89,.1); }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.avatar.round { border-radius: 50%; }
.avatar.red { background: #fff0f1; color: var(--red-dark); }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 700; color: var(--navy); font-size: 13px; }
.subtitle { color: var(--muted); font-size: 10px; margin-top: 3px; line-height: 1.4; }
.appointment-time { color: var(--navy-3); font-size: 10px; font-weight: 700; text-align: right; }
.rtl .appointment-time { text-align: left; }

.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid #e2e9f1; z-index: 30; padding: 9px 8px 16px; backdrop-filter: blur(14px); }
.nav-button { border: 0; background: transparent; color: #7a8797; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9px; }
.nav-button .glyph { font-size: 19px; line-height: 1; }
.nav-button.active { color: var(--navy-3); font-weight: 700; }

.doctor-list, .result-list, .record-list { display: grid; gap: 10px; }
.doctor-card { padding: 12px; display: flex; gap: 12px; align-items: center; }
.doctor-card .avatar { width: 62px; height: 70px; border-radius: 12px; font-size: 19px; }
.doctor-card .doctor-meta { color: var(--navy-3); font-size: 9px; font-weight: 700; margin-top: 7px; }
.rating { color: var(--amber); font-size: 10px; margin-top: 7px; }
.available { color: var(--green); font-size: 9px; font-weight: 700; margin-top: 6px; }
.chevron { color: #8492a4; font-size: 18px; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; margin: 12px 0 16px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: white; color: var(--muted); padding: 8px 11px; border-radius: 99px; white-space: nowrap; font-size: 10px; }
.chip.active { background: var(--navy); border-color: var(--navy); color: white; }

.profile-hero { background: linear-gradient(145deg, #eef5fb, #fff); border-bottom: 1px solid var(--line); margin: 0 -18px; padding: 22px 20px; text-align: center; }
.profile-hero .avatar { margin: 0 auto 12px; width: 88px; height: 98px; font-size: 28px; }
.profile-hero h2 { margin: 0; color: var(--navy); font-size: 20px; }
.profile-hero p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 260px; margin: 15px auto 0; }
.stat { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 5px; }
.stat strong { display: block; color: var(--navy); font-size: 14px; }
.stat span { font-size: 9px; color: var(--muted); }
.bio { line-height: 1.55; font-size: 11px; color: var(--muted); }
.doctor-profile-content { padding-bottom: 8px; }
.doctor-bio { margin: 0 0 10px; font-size: 11px; line-height: 1.7; }
.doctor-profile-section { margin-top: 13px; padding: 16px; }
.doctor-profile-section h3 { margin: 0 0 11px; color: var(--navy); font-size: 14px; }
.doctor-profile-section ul { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--muted); }
.rtl .doctor-profile-section ul { padding-left: 0; padding-right: 18px; }
.doctor-profile-section li { padding-inline-start: 2px; font-size: 10px; line-height: 1.55; }
.doctor-profile-section li::marker { color: var(--red); }
.hospital-profile-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--navy-3); font-size: 10px; font-weight: 700; text-decoration: none; }
.hospital-profile-link span { font-size: 17px; color: var(--muted); }
.doctor-actions { margin-bottom: 8px; }

.primary-button, .secondary-button, .danger-button { width: 100%; border-radius: 13px; min-height: 48px; font-weight: 700; font-size: 13px; }
.primary-button { border: 0; color: white; background: var(--navy); box-shadow: 0 8px 18px rgba(6,43,91,.18); }
.primary-button.red { background: var(--red); box-shadow: 0 8px 18px rgba(245,27,43,.18); }
.secondary-button { border: 1px solid var(--line); color: var(--navy); background: white; }
.danger-button { border: 1px solid #ffd0d4; color: var(--red-dark); background: #fff5f6; }
.button-stack { display: grid; gap: 10px; margin-top: 18px; }

.date-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 12px 0 20px; }
.date { border: 1px solid var(--line); background: white; border-radius: 13px; padding: 9px 3px; text-align: center; color: var(--muted); font-size: 9px; }
.date strong { display: block; color: var(--navy); font-size: 15px; margin-top: 3px; }
.date.selected { background: var(--navy); color: rgba(255,255,255,.7); border-color: var(--navy); }
.date.selected strong { color: white; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.slot { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 4px; color: var(--navy); font-size: 11px; }
.slot.selected { background: #eaf3fc; border-color: var(--navy-3); color: var(--navy-3); font-weight: 700; }
.slot:disabled { background: #edf0f4; color: #a6afba; text-decoration: line-through; cursor: default; }

.summary-card { padding: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #edf1f5; font-size: 11px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: var(--muted); }
.summary-row strong { color: var(--navy); text-align: right; }
.rtl .summary-row strong { text-align: left; }
.notice { background: #edf6ff; color: #285778; border-radius: 12px; padding: 11px 12px; font-size: 10px; line-height: 1.5; margin-top: 13px; }
.success-mark { width: 86px; height: 86px; border-radius: 50%; background: #e7f8f1; color: var(--green); display: grid; place-items: center; font-size: 42px; margin: 34px auto 18px; }
.success-copy { text-align: center; }
.success-copy h1 { font-size: 24px; color: var(--navy); margin: 0 0 9px; }
.success-copy p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 auto; max-width: 280px; }

.tabbar { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.tabbar.three { grid-template-columns: repeat(3, 1fr); }
.tab { border: 0; background: transparent; padding: 12px 4px; color: var(--muted); font-size: 11px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--navy); border-bottom-color: var(--red); font-weight: 700; }
.list-card { padding: 14px; display: flex; align-items: center; gap: 12px; }
.result-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--navy-3); background: #edf5fc; font-size: 20px; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-weight: 700; margin-top: 6px; background: #e8f7f0; color: var(--green); }
.status-pill.attention { background: #fff3dd; color: #9a6207; }
.metric-card { padding: 18px; text-align: center; }
.metric-card .metric { font-size: 38px; letter-spacing: -.04em; color: var(--navy); font-weight: 700; }
.metric-card .unit { color: var(--muted); font-size: 12px; }
.metric-range { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #efc163 0 22%, #58b990 22% 76%, #efc163 76%); margin: 18px 8px 8px; position: relative; }
.metric-range::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid white; position: absolute; top: 50%; left: 58%; transform: translate(-50%,-50%); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }

.department-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.department { border: 1px solid var(--line); border-radius: 15px; background: white; min-height: 110px; padding: 14px; color: var(--navy); text-align: left; }
.rtl .department { text-align: right; }
.department .glyph { font-size: 28px; display: block; margin-bottom: 11px; }
.department strong { display: block; font-size: 11px; line-height: 1.3; }
.department span { color: var(--muted); font-size: 8px; }
.dept-hero { margin: 0 -18px 18px; padding: 30px 20px; background: linear-gradient(140deg, #eaf3fb, #fff); text-align: center; border-bottom: 1px solid var(--line); }
.dept-hero .glyph { font-size: 44px; }
.dept-hero h1 { color: var(--navy); margin: 9px 0 6px; font-size: 23px; }
.dept-hero p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }

.health-hero { background: linear-gradient(140deg, var(--navy), #0b5da9); color: white; border-radius: 18px; padding: 18px; }
.health-profile { display: flex; align-items: center; gap: 11px; }
.health-profile .avatar { width: 42px; height: 42px; }
.health-hero h2 { font-size: 17px; margin: 15px 0 4px; }
.health-hero p { opacity: .75; font-size: 10px; margin: 0; }
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.health-tile { padding: 15px; min-height: 116px; color: var(--navy); text-align: left; }
.rtl .health-tile { text-align: right; }
.health-tile .glyph { font-size: 25px; display: block; margin-bottom: 14px; }
.health-tile strong { display: block; font-size: 12px; }
.health-tile span { font-size: 9px; color: var(--muted); display: block; margin-top: 4px; }

.medication-card { padding: 15px; }
.medication-top { display: flex; align-items: center; gap: 12px; }
.pill-icon { width: 47px; height: 47px; border-radius: 13px; background: #fff0f1; color: var(--red); display: grid; place-items: center; font-size: 22px; }
.dose-row { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1f5; font-size: 10px; color: var(--muted); }
.timeline { border-left: 2px solid #dce6f0; margin: 8px 0 0 10px; padding-left: 19px; }
.rtl .timeline { border-left: 0; border-right: 2px solid #dce6f0; margin: 8px 10px 0 0; padding-left: 0; padding-right: 19px; }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 3px solid white; position: absolute; left: -26px; top: 2px; box-shadow: 0 0 0 1px #d5dfeb; }
.rtl .timeline-item::before { left: auto; right: -26px; }
.timeline-item strong { display: block; color: var(--navy); font-size: 11px; }
.timeline-item span { font-size: 9px; color: var(--muted); }

.profile-card { padding: 16px; display: flex; align-items: center; gap: 13px; }
.menu-list { margin-top: 14px; overflow: hidden; }
.menu-row { width: 100%; border: 0; border-bottom: 1px solid #edf1f5; background: white; padding: 15px; display: flex; align-items: center; gap: 12px; color: var(--navy); text-align: left; font-size: 12px; }
.rtl .menu-row { text-align: right; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .chevron { margin-left: auto; }
.rtl .menu-row .chevron { margin-left: 0; margin-right: auto; transform: rotate(180deg); }
.notification { padding: 15px; display: flex; gap: 12px; align-items: flex-start; }
.notification.unread { border-left: 3px solid var(--red); }
.rtl .notification.unread { border-left: 1px solid #e1e8f0; border-right: 3px solid var(--red); }
.notification time { color: var(--muted); font-size: 8px; display: block; margin-top: 7px; }

.language-screen, .welcome-screen, .login-screen { min-height: 100%; background: white; padding: 28px 22px; display: flex; flex-direction: column; }
.brand-lockup { width: 230px; max-height: 92px; object-fit: contain; object-position: left center; }
.rtl .brand-lockup { object-position: right center; }
.language-art { width: 172px; height: 172px; border-radius: 50%; margin: 56px auto 30px; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 52%, #f4f8fc 53% 68%, #e8f1f9 69%); }
.language-art img { width: 118px; height: 118px; }
.language-screen h1, .welcome-screen h1, .login-screen h1 { color: var(--navy); font-size: 27px; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 10px; }
.language-screen p, .welcome-screen p, .login-screen p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
.spacer { flex: 1; }
.language-options { display: grid; gap: 10px; margin-top: 25px; }
.language-option { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 14px; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.language-option.selected { border-color: var(--navy-3); background: #f0f7fd; }
.welcome-visual { height: 330px; margin: -28px -22px 28px; background: linear-gradient(155deg, #edf4fb, #fff 62%); display: grid; place-items: center; position: relative; overflow: hidden; }
.welcome-visual::before, .welcome-visual::after { content: ""; position: absolute; border: 34px solid rgba(8,72,133,.07); border-radius: 50%; }
.welcome-visual::before { width: 250px; height: 250px; left: -150px; top: -90px; }
.welcome-visual::after { width: 190px; height: 190px; right: -115px; bottom: -95px; }
.welcome-symbol { width: 145px; height: 145px; border-radius: 50%; background: white; box-shadow: 0 18px 50px rgba(6,43,91,.12); display: grid; place-items: center; color: var(--red); font-size: 65px; }
.pager { display: flex; gap: 5px; justify-content: center; margin: 20px 0; }
.pager span { width: 7px; height: 7px; border-radius: 8px; background: #d5dfe9; }
.pager span.active { width: 22px; background: var(--red); }
.form-field { margin-top: 15px; }
.form-field label { display: block; color: var(--navy); font-size: 10px; font-weight: 700; margin: 0 0 7px; }
.field { min-height: 49px; width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; display: flex; align-items: center; gap: 9px; background: white; }
.field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.otp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.otp-box { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; text-align: center; color: var(--navy); font-size: 23px; font-weight: 700; }
.permission-list { display: grid; gap: 12px; margin: 22px 0; }
.permission { padding: 14px; display: flex; align-items: center; gap: 12px; }
.switch { width: 39px; height: 23px; margin-left: auto; border-radius: 20px; background: var(--navy-3); position: relative; }
.rtl .switch { margin-left: 0; margin-right: auto; }
.switch::after { content: ""; width: 17px; height: 17px; border-radius: 50%; background: white; position: absolute; right: 3px; top: 3px; }
.profile-choice { padding: 15px; display: flex; align-items: center; gap: 12px; }
.profile-choice.selected { border-color: var(--navy-3); background: #f2f8fd; }
.radio-mark { width: 19px; height: 19px; border: 2px solid #aab8c6; border-radius: 50%; margin-left: auto; }
.rtl .radio-mark { margin-left: 0; margin-right: auto; }
.profile-choice.selected .radio-mark { border: 5px solid var(--navy-3); }
.emergency-call { margin-top: 16px; padding: 22px; text-align: center; background: linear-gradient(145deg, #fff4f5, #fff); border-color: #ffd9dc; }
.emergency-call .phone-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: white; margin: 0 auto 14px; font-size: 32px; box-shadow: 0 10px 25px rgba(245,27,43,.22); }
.emergency-call h2 { color: var(--navy); margin: 0; font-size: 21px; }
.emergency-call strong { display: block; color: var(--red); font-size: 24px; margin: 8px 0; }
.emergency-call p { color: var(--muted); font-size: 10px; line-height: 1.5; }

@media (max-width: 1000px) {
  .prototype-stage { grid-template-columns: minmax(390px, 460px) minmax(200px, 250px); }
  .prototype-notes { display: none; }
}
@media (max-width: 720px) {
  body { background: #07121e; }
  .prototype-stage { display: block; padding: 0; }
  .screen-index { display: none; }
  .phone-wrap { display: block; }
  .phone { width: 100%; min-height: 100vh; aspect-ratio: auto; border-radius: 0; padding: 0; box-shadow: none; }
  .phone-bezel { min-height: 100vh; border-radius: 0; }
  .statusbar, .home-indicator { display: none; }
  .app { height: 100vh; }
}
