/* ============================================================
   محاكي الجوال — نظام iOS
   ============================================================ */

:root{
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Segoe UI", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  --status-h: 54px;
  --blue: #0a84ff;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --teal: #64d2ff;
  --purple: #bf5af2;
  --pink: #ff375f;

  --bg-grouped: #1c1c1e;
  --bg-elevated: #2c2c2e;
  --bg-tertiary: #3a3a3c;
  --label: #ffffff;
  --label-2: rgba(235,235,245,.62);
  --label-3: rgba(235,235,245,.32);
  --separator: rgba(84,84,88,.65);
  --fill-1: rgba(120,120,128,.24);
  --fill-2: rgba(120,120,128,.16);
}

*,*::before,*::after{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 620px at 20% -10%, #1e2a44 0%, transparent 62%),
    radial-gradient(760px 600px at 92% 112%, #2b1b3d 0%, transparent 60%),
    #06070a;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  display: grid;
  place-items: center;
}

input, textarea{ user-select: text; -webkit-user-select: text; font-family: inherit; }
button{
  font-family: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
img{ display: block; max-width: 100%; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p{ margin: 0; }

/* ============================================================
   الجهاز
   ============================================================ */

.stage{
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.device{
  position: relative;
  width: min(392px, 100%, calc((100dvh - 48px) * 0.464));
}

.hw{
  position: absolute;
  z-index: 2;
  border-radius: 2px;
  background: linear-gradient(180deg, #8a8a8f, #3a3a3c 55%, #6d6d72);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.6);
}
.hw--action{ inset-inline-start: -3px; top: 128px; width: 4px; height: 30px; }
.hw--vol-up{ inset-inline-start: -3px; top: 186px; width: 4px; height: 62px; }
.hw--vol-down{ inset-inline-start: -3px; top: 262px; width: 4px; height: 62px; }
.hw--power{ inset-inline-end: -3px; top: 200px; width: 4px; height: 100px; }

.device__frame{
  position: relative;
  padding: 11px;
  border-radius: 60px;
  background: linear-gradient(145deg, #9a9aa0 0%, #3a3a3c 16%, #1b1b1d 48%, #4a4a4e 80%, #a0a0a6 100%);
  box-shadow:
    0 44px 90px -24px rgba(0,0,0,.92),
    0 0 0 1px rgba(255,255,255,.09) inset,
    0 2px 3px rgba(255,255,255,.22) inset;
}

.screen{
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 50px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px #000 inset;
  isolation: isolate;
}

@media (max-width: 520px), (max-height: 780px){
  .stage{ padding: 0; }
  .device{ width: 100%; height: 100dvh; }
  .device__frame{ padding: 0; border-radius: 0; height: 100%; background: none; box-shadow: none; }
  .screen{ height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .island{ display: none; }
  .hw{ display: none; }
}

.wallpaper{
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg,#221046 0%,#3c1f6e 35%,#123a63 70%,#071021 100%);
  transition: background .3s;
}

.dim{
  position: absolute;
  inset: 0;
  z-index: 87;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}

/* ============================================================
   شريط الحالة والجزيرة
   ============================================================ */

.status-bar{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 38px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1px;
  z-index: 90;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.status-bar__icons{ display: flex; align-items: center; gap: 6px; }
.sb-ic{ width: 18px; height: 12px; }
.battery{
  width: 25px; height: 12px;
  border: 1.2px solid rgba(255,255,255,.55);
  border-radius: 4px;
  padding: 1.5px;
  position: relative;
  display: block;
}
.battery i{ display: block; height: 100%; background: #fff; border-radius: 2px; }
.battery::after{
  content: "";
  position: absolute;
  right: -3.5px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 4.5px;
  border-radius: 0 2px 2px 0;
  background: rgba(255,255,255,.5);
}

.island{
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 33px;
  border-radius: 20px;
  background: #000;
  z-index: 91;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: width .35s cubic-bezier(.32,.72,0,1), height .35s cubic-bezier(.32,.72,0,1), border-radius .35s;
  overflow: hidden;
}
.island__cam{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #22303f, #05070a 70%);
  box-shadow: 0 0 0 1px rgba(80,110,150,.22);
  flex: 0 0 auto;
}
.island__call{
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 14px;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}
.island__dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(48,209,88,.85);
  flex: 0 0 auto;
}
.island__name{
  max-width: 44%;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.island__timer{ color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.island.is-call{
  width: min(320px, 84%);
  height: 38px;
  border-radius: 22px;
  padding-right: 0;
  justify-content: center;
}
.island.is-call .island__cam{ display: none; }
.island.is-call .island__call{ display: flex; }

/* ============================================================
   الشاشة الرئيسية
   ============================================================ */

.home{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--status-h) + 12px);
  transition: transform .4s cubic-bezier(.32,.72,0,1), opacity .3s, filter .4s;
}
.home.is-behind{
  transform: scale(.9);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.home__widgets{
  padding: 6px 22px 20px;
  display: flex;
  gap: 14px;
}

.widget{
  border-radius: 24px;
  background: rgba(30,30,34,.5);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12);
}
.widget--calendar{
  width: 132px;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.widget__day{ font-size: 14px; font-weight: 700; color: var(--red); letter-spacing: .4px; }
.widget__num{ font-size: 54px; font-weight: 300; line-height: 1.02; letter-spacing: -1px; }
.widget__month{ font-size: 12.5px; font-weight: 600; color: var(--label-2); }

.widget--clock{
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}
.widget__clock{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

.app-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 10px;
  padding: 0 20px;
  align-content: start;
}

.app-icon{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  transition: transform .12s;
}
.app-icon:active{ transform: scale(.92); }
.app-icon__art{
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 .5px 1px rgba(0,0,0,.4), 0 0 0 .5px rgba(255,255,255,.12) inset;
}
.app-icon__art svg{ width: 40px; height: 40px; }
.app-icon__art svg.icon-full{ width: 100%; height: 100%; }
.app-icon__label{
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .1px;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
  max-width: 74px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home__bottom{
  margin-top: auto;
  padding-bottom: 4px;
}

.page-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.page-dots span{
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.32);
}
.page-dots span.is-on{ background: rgba(255,255,255,.92); }

.home-search{
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  border-radius: 16px;
  background: rgba(120,120,128,.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}
.home-search svg{ width: 12px; height: 12px; }
.home-search:active{ background: rgba(120,120,128,.5); }

.dock{
  margin: 0 12px 8px;
  padding: 11px 12px;
  border-radius: 34px;
  background: rgba(120,120,128,.3);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12);
}
.dock .app-icon__label{ display: none; }
.dock .app-icon__art{ width: 56px; height: 56px; border-radius: 13px; }

/* ============================================================
   شاشة القفل
   ============================================================ */

.screen.is-locked .home,
.screen.is-locked .app-layer{
  opacity: 0 !important;
  pointer-events: none !important;
}

.lock-screen{
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--status-h) + 30px) 24px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.02) 32%, rgba(0,0,0,.5));
  transition: opacity .45s, transform .6s cubic-bezier(.32,.72,0,1);
}
.lock-screen.is-unlocked{
  opacity: 0;
  transform: translateY(-70px) scale(1.04);
  pointer-events: none;
}
.lock__top{ text-align: center; }
.lock__date{
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 1px;
}
.lock__time{
  font-size: 82px;
  font-weight: 200;
  letter-spacing: -3px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lock__spacer{ flex: 1; }
.lock__hint{
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}
.lock__chev{ font-size: 17px; animation: bob 2s ease-in-out infinite; }
@keyframes bob{
  0%,100%{ transform: translateY(2px); opacity: .5; }
  50%{ transform: translateY(-4px); opacity: 1; }
}
.lock__actions{
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px;
  margin-bottom: 26px;
}
.lock__btn{
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(120,120,128,.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14);
  transition: background .2s, transform .12s;
}
.lock__btn svg{ width: 22px; height: 22px; }
.lock__btn:active{ transform: scale(.92); }
.lock__btn.is-on{ background: #fff; color: #111; }

.home-indicator{
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.85);
  z-index: 70;
  cursor: pointer;
}
.home-indicator:active{ background: rgba(255,255,255,.5); }

/* ============================================================
   مركز التحكم + مركز الإشعارات
   ============================================================ */

.cc-layer,
.nc-layer{
  position: absolute;
  inset: 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.nc-layer{ z-index: 60; }
.cc-layer.is-open,
.nc-layer.is-open{ opacity: 1; pointer-events: auto; }

.cc-panel{
  padding: calc(var(--status-h) + 8px) 14px 26px;
  transform: translateY(-14px);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
}
.cc-layer.is-open .cc-panel{ transform: none; }

.cc-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cc-module{
  background: rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  place-items: center;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
}

.cc-circle{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(120,120,128,.4);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .18s, color .18s, transform .12s;
}
.cc-circle svg{ width: 23px; height: 23px; }
.cc-circle:active{ transform: scale(.94); }
.cc-circle.is-on{ background: var(--blue); color: #fff; }
.cc-circle.is-on-green{ background: var(--green); color: #fff; }
.cc-circle.is-on-orange{ background: var(--orange); color: #111; }

.cc-quick{
  background: rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  place-items: center;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
}

.cc-slider{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-bottom: 10px;
  padding: 0 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.cc-slider svg{ width: 18px; height: 18px; color: rgba(255,255,255,.75); flex: 0 0 auto; }
.cc-slider__track{
  position: relative;
  flex: 1;
  height: 32px;
  border-radius: 16px;
  background: rgba(120,120,128,.42);
  overflow: hidden;
  cursor: pointer;
}
.cc-slider__fill{
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  transition: width .04s linear;
}
.cc-slider__label{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  mix-blend-mode: difference;
  pointer-events: none;
}

.cc-hint{
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  padding-top: 12px;
}

.nc-panel{
  padding: calc(var(--status-h) + 12px) 16px 26px;
  transform: translateY(-14px);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
}
.nc-layer.is-open .nc-panel{ transform: none; }

.nc-time{
  text-align: center;
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -2px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.nc-date{
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 26px;
}
.nc-empty{
  text-align: center;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.9;
  padding: 34px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08);
}

/* ============================================================
   Spotlight
   ============================================================ */

.spotlight{
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--status-h) + 12px) 16px 20px;
  background: rgba(10,10,12,.86);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  min-height: 0;
}
.spotlight__bar{
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(120,120,128,.28);
  flex: 0 0 auto;
}
.spotlight__bar svg{ width: 17px; height: 17px; color: var(--label-2); }
.spotlight__field{
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  min-width: 0;
}
.spotlight__field::placeholder{ color: var(--label-3); }
.spotlight__list{
  margin-top: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spotlight__item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: start;
  font-size: 15px;
  font-weight: 500;
}
.spotlight__item:active{ background: rgba(255,255,255,.09); }
.spotlight__item .app-icon__art{ width: 42px; height: 42px; border-radius: 10px; }
.spotlight__item .app-icon__art svg{ width: 28px; height: 28px; }
.spotlight__empty{
  text-align: center;
  color: var(--label-3);
  padding: 40px 0;
  font-size: 13.5px;
}

/* ============================================================
   طبقة التطبيقات
   ============================================================ */

.app-layer{
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: 0;
  transform: scale(.88);
  border-radius: 46px;
  pointer-events: none;
  overflow: hidden;
  transition: transform .36s cubic-bezier(.32,.72,0,1), opacity .24s, border-radius .36s;
}
.app-layer.is-open{
  opacity: 1;
  transform: none;
  border-radius: 0;
  pointer-events: auto;
}

.app-screen{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}
.app-screen[data-app="whatsapp"]{ background: #000; }
.app-screen[data-app="notes"]{ background: #000; }

.app-view{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   مكوّنات iOS المشتركة
   ============================================================ */

.app-header{
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding-top: calc(var(--status-h) + 2px);
  background: rgba(10,10,12,.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: .5px solid rgba(255,255,255,.14);
}
[data-app="whatsapp"] .app-header{ background: rgba(12,20,24,.78); }

.app-header__row{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 8px;
  min-height: 44px;
}
.app-header__title{
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.7px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.15;
}
.app-header__title--sm{
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.app-header__actions{ display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.hbtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  padding: 0 3px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity .15s, transform .12s;
}
.hbtn:active{ opacity: .45; }
.hbtn--icon{ width: 32px; font-size: 16px; padding: 0; }
.hbtn--accent{ color: var(--blue); font-weight: 600; }
.hbtn[disabled]{ opacity: .3; }

.ic{ width: 20px; height: 20px; display: block; }
.ic--sm{ width: 16px; height: 16px; }

.app-body{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 26px;
}
.app-body--tabbed{ padding-bottom: 88px; }

.empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 32px;
  text-align: center;
  color: var(--label-2);
}
.empty__icon{
  width: 66px; height: 66px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(120,120,128,.2);
  color: var(--label-2);
  margin-bottom: 2px;
}
.empty__icon svg{ width: 32px; height: 32px; }
.empty__title{ font-size: 19px; font-weight: 600; color: var(--label); }
.empty__text{ font-size: 13.5px; line-height: 1.8; max-width: 270px; }
.empty .btn{ margin-top: 6px; }

.btn{
  height: 50px;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter .15s, transform .12s, opacity .15s;
}
.btn:active{ opacity: .7; }
.btn--primary{ background: var(--blue); color: #fff; }
.btn--ghost{ background: rgba(120,120,128,.26); color: #fff; }
.btn--danger{ background: #3a1d1d; color: var(--red); }
.btn--wide{ width: 100%; }

/* ---------- الأوراق والتنبيهات ---------- */

.overlay{
  position: absolute;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity .24s;
}
.overlay.is-in{ opacity: 1; }
.overlay--center{ justify-content: center; align-items: center; padding: 22px; }
.overlay--full{ justify-content: stretch; align-items: stretch; background: rgba(0,0,0,.6); }

.sheet{
  position: relative;
  background: rgba(28,28,30,.98);
  border-radius: 14px 14px 0 0;
  padding: 22px 14px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(26px);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  max-height: 88%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.sheet::before{
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 5px;
  border-radius: 3px;
  background: rgba(235,235,245,.3);
}
.overlay.is-in .sheet{ transform: none; }

.sheet__title{
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 0 10px;
  color: var(--label-2);
}
.sheet__subtitle{
  font-size: 13px;
  font-weight: 600;
  color: var(--label-2);
  padding: 18px 6px 8px;
}
.sheet__list{
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(120,120,128,.2);
}
.sheet__item{
  min-height: 52px;
  font-size: 17px;
  font-weight: 400;
  padding: 10px 16px;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  border-radius: 0;
  position: relative;
}
.sheet__item + .sheet__item::before{
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 0; right: 0;
  height: .5px;
  background: var(--separator);
}
.sheet__item:active{ background: rgba(255,255,255,.1); }
.sheet__item.is-danger{ color: var(--red); }
.sheet__empty{
  font-size: 13px;
  color: var(--label-2);
  text-align: center;
  padding: 18px 0;
}
.sheet__cancel{
  margin-top: 8px;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: rgba(120,120,128,.28);
  font-weight: 600;
  font-size: 17px;
  color: var(--blue);
}
.sheet__cancel:active{ background: rgba(120,120,128,.4); }
.sheet__form{ display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }

.dialog{
  width: min(286px, 100%);
  background: rgba(44,44,46,.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
  transform: scale(.92);
  transition: transform .22s;
}
.overlay.is-in .dialog{ transform: none; }
.dialog h3{
  font-size: 17px;
  font-weight: 600;
  padding: 19px 16px 2px;
}
.dialog p{
  font-size: 13px;
  line-height: 1.5;
  color: var(--label-2);
  padding: 4px 16px 18px;
}
.dialog .input{
  margin: 4px 16px 16px;
  width: calc(100% - 32px);
  background: rgba(120,120,128,.28);
  border: 0;
  border-radius: 8px;
  text-align: center;
}
.dialog__actions{
  display: flex;
  border-top: .5px solid var(--separator);
}
.dialog__actions .btn{
  flex: 1;
  height: 45px;
  border-radius: 0;
  background: none;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
}
.dialog__actions .btn--primary{ color: var(--blue); font-weight: 600; background: none; }
.dialog__actions .btn--danger{ color: var(--red); background: none; }
.dialog__actions .btn + .btn{ border-inline-start: .5px solid var(--separator); }
.dialog__actions .btn:active{ background: rgba(255,255,255,.08); }

/* ---------- الحقول ---------- */

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  text-align: start;
}
.field > span{
  font-size: 13px;
  color: var(--label-2);
  font-weight: 400;
  padding-inline-start: 4px;
}
.input{
  width: 100%;
  background: rgba(120,120,128,.2);
  border: 0;
  border-radius: 10px;
  padding: 13px 14px;
  color: #fff;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus{ background: rgba(120,120,128,.3); }
select.input{ padding-inline-end: 32px; }

.avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  background: var(--bg-tertiary);
}
.avatar img{ width: 100%; height: 100%; object-fit: cover; }
.avatar--sm{ width: 32px; height: 32px; font-size: 14px; }
.avatar--lg{ width: 54px; height: 54px; font-size: 21px; }
.avatar--xl{ width: 110px; height: 110px; font-size: 42px; }

.row-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  font-size: 16px;
  font-weight: 400;
}

.switch{
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: rgba(120,120,128,.32);
  position: relative;
  flex: 0 0 auto;
  transition: background .22s;
}
.switch::after{
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.switch.is-on{ background: var(--green); }
.switch.is-on::after{ transform: translateX(-20px); }

.chip{
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--label-2);
  transition: background .18s, color .18s;
  max-width: 45vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chip.is-on{
  background: #3a3a3c;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.search-bar{ padding: 0 14px 8px; }
.search-bar input{
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: rgba(120,120,128,.2);
  color: #fff;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-bar input::placeholder{ color: var(--label-3); }

.hint{
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--label-2);
}

/* ============================================================
   الصور
   ============================================================ */

.album-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  padding: 16px;
}
.album{ display: flex; flex-direction: column; gap: 5px; text-align: start; }
.album:active .album__cover{ transform: scale(.97); }
.album__cover{
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: grid;
  place-items: center;
  transition: transform .15s;
}
.album__cover img{ width: 100%; height: 100%; object-fit: cover; }
.album__ph{ color: var(--label-3); display: block; }
.album__ph svg{ width: 34px; height: 34px; }
.album__name{ font-size: 14px; font-weight: 500; }
.album__count{ font-size: 12px; color: var(--label-2); }
.album--new .album__cover{
  border: 1.5px dashed rgba(255,255,255,.2);
  background: rgba(120,120,128,.14);
  color: var(--blue);
}
.album--new .album__cover svg{ width: 28px; height: 28px; }

.photo-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}
.ph{
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1c;
  cursor: pointer;
}
.ph img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.ph:active img{ opacity: .75; }
.ph__fav{
  position: absolute;
  top: 4px; inset-inline-start: 5px;
  font-size: 12px; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.ph__tools{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 4px;
}
.ph__tool{
  flex: 1 1 0;
  min-width: 0;
  height: 22px;
  border-radius: 6px;
  background: rgba(120,120,128,.6);
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
}
.ph__tool[disabled]{ opacity: .28; }
.ph__tool--danger{ flex: 1 0 100%; background: rgba(255,69,58,.85); height: 21px; }

.viewer{
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000;
  min-height: 0;
}
.viewer__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--status-h) + 2px) 14px 10px;
  flex: 0 0 auto;
}
.viewer__bar--bottom{ padding: 10px 14px 32px; }
.viewer__btn{
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(120,120,128,.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 14px;
  font-size: 17px;
  font-weight: 600;
}
.viewer__btn.is-on{ color: var(--pink); background: rgba(255,55,95,.16); }
.viewer__btn--text{ flex: 1; border-radius: 12px; font-size: 15px; }
.viewer__btn--danger{ color: var(--red); }
.viewer__count{ font-size: 14px; font-weight: 600; color: var(--label-2); }
.viewer__stage{
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px;
}
.viewer__stage img{ max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.viewer__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 58px;
  display: grid;
  place-items: center;
  background: rgba(120,120,128,.35);
  color: #fff;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.viewer__nav--prev{ inset-inline-end: 8px; }
.viewer__nav--next{ inset-inline-start: 8px; }

/* ============================================================
   واتساب
   ============================================================ */

.chat-list{ display: flex; flex-direction: column; }
.chat-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  position: relative;
}
.chat-row + .chat-row::before{
  content: "";
  position: absolute;
  inset-inline-start: 66px;
  top: 0; right: 0;
  height: .5px;
  background: rgba(255,255,255,.1);
}
.chat-row:active{ background: rgba(255,255,255,.06); }
.chat-row__main{ flex: 1; min-width: 0; }
.chat-row__top{ display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-row__name{
  font-size: 16px;
  font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.chat-row__time{ font-size: 12px; color: var(--label-2); flex: 0 0 auto; }
.chat-row__msg{
  font-size: 14px;
  color: var(--label-2);
  margin-top: 2px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.chat-header .app-header__row{ gap: 6px; }
.chat-header__info{ flex: 1; min-width: 0; text-align: start; }
.chat-header__name{
  font-size: 16px; font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.chat-header__sub{ font-size: 12px; color: var(--label-2); }

.chat-body{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(48,209,88,.05), transparent 60%),
    #0b141a;
}
.msg-day{ display: flex; justify-content: center; margin: 10px 0 8px; }
.msg-day span{
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: rgba(120,120,128,.28);
  padding: 4px 12px;
  border-radius: 10px;
}
.bubble{
  max-width: 79%;
  padding: 6px 9px 5px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.bubble.is-me{ align-self: flex-start; background: #005c4b; border-start-start-radius: 5px; }
.bubble.is-them{ align-self: flex-end; background: #202c33; border-start-end-radius: 5px; }
.bubble__text{
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: start;
}
.bubble__meta{
  font-size: 10.5px;
  color: rgba(255,255,255,.5);
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.ticks{ color: #53bdeb; font-size: 10px; letter-spacing: -2px; }

.chat-empty{
  margin: auto;
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  line-height: 1.9;
  padding: 30px 20px;
}
.chat-empty__icon{
  width: 60px; height: 60px;
  border-radius: 22px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(120,120,128,.24);
  color: var(--label-2);
}
.chat-empty__icon svg{ width: 30px; height: 30px; }

.composer{
  flex: 0 0 auto;
  background: #0b141a;
  border-top: .5px solid rgba(255,255,255,.1);
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
}
.composer__mode{
  display: flex;
  gap: 2px;
  padding: 2px;
  margin: 0 2px 8px;
  border-radius: 9px;
  background: rgba(120,120,128,.24);
}
.composer__label{
  display: none;
}
.composer__row{ display: flex; align-items: flex-end; gap: 8px; }
.composer__input{
  flex: 1;
  min-height: 40px;
  max-height: 110px;
  resize: none;
  border: .5px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #1f2c34;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  padding: 9px 14px;
  outline: none;
  overflow-y: auto;
}
.composer__input::placeholder{ color: rgba(255,255,255,.4); }
.send{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #00a884;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  transition: transform .12s, opacity .15s;
}
.send:active{ transform: scale(.92); opacity: .8; }
.send svg{ width: 20px; height: 20px; margin-inline-start: -2px; }

.avatar-pick{ display: flex; align-items: center; gap: 10px; }
.avatar-pick__preview{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(120,120,128,.24);
  display: grid;
  place-items: center;
  color: var(--label-2);
  font-size: 18px;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar-pick__preview img{ width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   الهاتف
   ============================================================ */

.tab-bar{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,20,22,.86);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: .5px solid rgba(255,255,255,.12);
}
.tab{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
}
.tab svg{ width: 24px; height: 24px; }
.tab.is-on{ color: var(--blue); }

.call-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  position: relative;
}
.call-row + .call-row::before{
  content: "";
  position: absolute;
  inset-inline-start: 58px;
  top: 0; right: 0;
  height: .5px;
  background: rgba(255,255,255,.1);
}
.call-row:active{ background: rgba(255,255,255,.06); }
.call-row__icon{
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(120,120,128,.24);
  color: #8fd3a8;
  flex: 0 0 auto;
}
.call-row__icon.is-missed{ color: var(--red); }
.call-row__icon.is-out{ color: var(--blue); }
.call-row__icon svg{ width: 15px; height: 15px; }
.call-row__main{ flex: 1; min-width: 0; }
.call-row__name{
  font-size: 16px; font-weight: 500;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.call-row__name.is-missed{ color: var(--red); }
.call-row__meta{ font-size: 12.5px; color: var(--label-2); margin-top: 1px; }
.call-row__time{
  font-size: 13px;
  color: var(--label-2);
  text-align: end;
  flex: 0 0 auto;
  line-height: 1.6;
}

.contact-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  width: 100%;
  text-align: start;
  position: relative;
}
.contact-row + .contact-row::before{
  content: "";
  position: absolute;
  inset-inline-start: 60px;
  top: 0; right: 0;
  height: .5px;
  background: rgba(255,255,255,.1);
}
.contact-row:active{ background: rgba(255,255,255,.06); }
.contact-row__main{ flex: 1; min-width: 0; }
.contact-row__name{
  font-size: 16px; font-weight: 500;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.contact-row__sub{ font-size: 13px; color: var(--label-2); margin-top: 1px; }

.contact-detail{ text-align: center; padding: 6px 12px 4px; }
.contact-detail__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0 18px;
}
.contact-detail__name{ font-size: 22px; font-weight: 600; }
.contact-detail__phone{ font-size: 15px; color: var(--label-2); direction: ltr; }
.contact-actions{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.contact-actions .hbtn{
  flex-direction: column;
  height: 62px;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 12px;
  background: rgba(120,120,128,.24);
  color: var(--blue);
}
.contact-actions .hbtn svg{ width: 22px; height: 22px; }

.keypad{
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 22px calc(88px + env(safe-area-inset-bottom));
  min-height: 0;
}
.keypad__display{
  flex: 0 0 auto;
  text-align: center;
  padding: 12px 0 6px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.keypad__number{
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 1.5px;
  direction: ltr;
  min-height: 42px;
  word-break: break-all;
  line-height: 1.2;
  overflow: hidden;
}
.keypad__number.is-empty{ font-size: 18px; color: var(--label-3); letter-spacing: 0; }
.keypad__grid{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: center;
  padding: 4px 0;
}
.key{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  background: rgba(120,120,128,.28);
  aspect-ratio: 1;
  max-height: 70px;
  width: 100%;
  max-width: 70px;
  justify-self: center;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  transition: background .1s, transform .1s;
}
.key:active{ background: rgba(120,120,128,.55); transform: scale(.95); }
.key__sub{
  font-size: 9.5px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.6);
  height: 11px;
  font-weight: 500;
}
.keypad__actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-top: 6px;
}
.call-btn{
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(48,209,88,.25);
}
.call-btn svg{ width: 29px; height: 29px; }
.call-btn:active{ transform: scale(.94); opacity: .85; }
.keypad__back{
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
}
.keypad__back svg{ width: 22px; height: 22px; }

.call-screen{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--status-h) + 56px) 24px 46px;
  background:
    radial-gradient(500px 400px at 50% 0%, rgba(48,209,88,.16), transparent 65%),
    linear-gradient(170deg,#16261d,#0a1216 55%,#04060a);
  text-align: center;
}
.call-screen__top{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.call-screen__name{ font-size: 30px; font-weight: 500; letter-spacing: -.5px; }
.call-screen__status{
  font-size: 15px;
  color: rgba(255,255,255,.6);
  direction: ltr;
  min-height: 20px;
  font-variant-numeric: tabular-nums;
}
.call-screen__actions{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 300px;
}
.call-act{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}
.call-act__circle{
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(120,120,128,.35);
  display: grid;
  place-items: center;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.call-act__circle svg{ width: 26px; height: 26px; }
.call-act.is-on .call-act__circle{ background: #fff; color: #111; }
.call-act--end .call-act__circle{ background: var(--red); }

/* ============================================================
   الملاحظات
   ============================================================ */

.notes-list{ display: flex; flex-direction: column; padding: 4px 0; }
.note-card{
  padding: 11px 16px;
  text-align: start;
  width: 100%;
  cursor: pointer;
  position: relative;
}
.note-card + .note-card::before,
.notes-list li + li .note-card::before{
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: 0; right: 0;
  height: .5px;
  background: rgba(255,255,255,.1);
}
.note-card:active{ background: rgba(255,255,255,.05); }
.note-card__title{
  font-size: 16px; font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.note-card__preview{
  font-size: 13.5px;
  color: var(--label-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.note-card__meta{
  font-size: 11.5px;
  color: var(--label-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.note-card__pin{ color: var(--yellow); font-size: 11px; }

.editor{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 0;
}
.editor__title{
  border: 0;
  background: none;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  outline: none;
  padding: 6px 0 8px;
  font-family: inherit;
}
.editor__body{
  flex: 1;
  min-height: 0;
  border: 0;
  background: none;
  color: #e8e8ed;
  font-size: 16.5px;
  line-height: 1.85;
  outline: none;
  resize: none;
  padding: 4px 0 24px;
  font-family: inherit;
}
.editor__meta{
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--label-3);
  padding: 6px 0 calc(14px + env(safe-area-inset-bottom));
  border-top: .5px solid rgba(255,255,255,.08);
  text-align: center;
}

/* ============================================================
   الإعدادات
   ============================================================ */

.settings{
  padding: 12px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card{
  background: var(--bg-grouped);
  border-radius: 12px;
  padding: 12px 14px;
  border: 0;
}
.card--muted{ background: rgba(120,120,128,.14); text-align: center; padding: 12px; }
.card__title{
  font-size: 13px;
  font-weight: 400;
  color: var(--label-2);
  margin-bottom: 8px;
  letter-spacing: 0;
  padding-inline-start: 2px;
}
.card .btn--wide{ margin-top: 6px; }
.card .field:last-child{ margin-bottom: 0; }

.wall-picker{ display: flex; gap: 10px; flex-wrap: wrap; }
.wall{
  width: 46px; height: 62px;
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.14);
  transition: transform .12s;
}
.wall:active{ transform: scale(.94); }
.wall.is-on{ border-color: #fff; }

.storage{ display: flex; flex-direction: column; gap: 8px; }
.storage__bar{
  height: 7px;
  border-radius: 4px;
  background: rgba(120,120,128,.32);
  overflow: hidden;
}
.storage__bar i{
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--blue);
  transition: width .3s;
}
.storage span{ font-size: 12.5px; color: var(--label-2); }

/* ============================================================
   التنبيهات
   ============================================================ */

.toast-stack{
  position: absolute;
  bottom: 34px;
  left: 0; right: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 24px;
}
.toast{
  max-width: 88%;
  background: rgba(44,44,46,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .24s, transform .24s;
  text-align: center;
  line-height: 1.5;
}
.toast.is-in{ opacity: 1; transform: none; }

/* ============================================================
   تقليل الحركة
   ============================================================ */

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* ============================================================
   X (تويتر سابقًا)
   ============================================================ */

.app-screen[data-app="twitter"]{ background: #000; }

.tw-feed{ padding-bottom: 96px; }
.tw-feed--reply{ padding-bottom: 96px; }

.tw-me{
  width: 36px; height: 36px;
  display: grid; place-items: center;
}

/* ---------- المنشورات ---------- */

.tw-post{
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: .5px solid rgba(255,255,255,.12);
  text-align: start;
  cursor: pointer;
}
.tw-post:active{ background: rgba(255,255,255,.035); }
.tw-post__avatar{
  flex: 0 0 auto;
  display: block;
}
.tw-post__main{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tw-post__head{
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.tw-post__name{
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  max-width: 44%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tw-post__handle{
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tw-post__dot{ color: rgba(255,255,255,.4); font-size: 13px; }
.tw-post__time{
  font-size: 13px;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  flex: 0 0 auto;
}
.tw-post__more{
  margin-inline-start: auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.45);
  flex: 0 0 auto;
}
.tw-post__more svg{ width: 16px; height: 16px; }
.tw-post__text{
  font-size: 15px;
  line-height: 1.5;
  color: #e7e9ea;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 1px;
}
.tw-post__text--big{ font-size: 17.5px; line-height: 1.55; }
.tw-post__re{
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  margin-bottom: 2px;
}
.tw-post__img{
  margin-top: 7px;
  border-radius: 14px;
  overflow: hidden;
  border: .5px solid rgba(255,255,255,.1);
}
.tw-post__img img{
  width: 100%;
  display: block;
  max-height: 440px;
  object-fit: cover;
}
.tw-post__actions{
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 7px;
}
.tw-act{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
}
.tw-act svg{ width: 18px; height: 18px; }
.tw-act [data-n]:empty{ display: none; }
.tw-act--like.is-on{ color: #f91880; }
.tw-act--repost.is-on{ color: #00ba7c; }
.tw-act:active{ opacity: .6; }

/* ---------- شريط التبويب ---------- */

.tw-tabbar{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10,10,10,.9);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: .5px solid rgba(255,255,255,.12);
}
.tw-tab{
  display: grid;
  place-items: center;
  height: 44px;
  color: rgba(255,255,255,.55);
}
.tw-tab svg{ width: 25px; height: 25px; }
.tw-tab.is-on{ color: #fff; }
.tw-tab--compose{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 0 16px;
}
.tw-tab--compose svg{ width: 22px; height: 22px; }

/* ---------- الكتابة ---------- */

.tw-compose{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}
.tw-compose__bar{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--status-h) + 4px) 14px 10px;
  border-bottom: .5px solid rgba(255,255,255,.12);
}
.tw-compose__cancel{ font-size: 16px; color: #fff; padding: 6px; }
.tw-compose__publish{
  height: 34px;
  padding: 0 18px;
  border-radius: 17px;
  background: #fff;
  color: #000;
  font-size: 14.5px;
  font-weight: 700;
}
.tw-compose__publish[disabled]{ opacity: .32; }
.tw-compose__re{
  padding: 10px 16px 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.tw-compose__who{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px 0;
}
.tw-compose__whoname{
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.tw-compose__whoname b{ font-size: 14.5px; font-weight: 700; }
.tw-compose__whoname span{ font-size: 13px; color: rgba(255,255,255,.5); }
.tw-compose__who .hbtn{ margin-inline-start: auto; }
.tw-compose__body{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tw-compose__ta{
  flex: 1 1 auto;
  min-height: 140px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 19px;
  line-height: 1.5;
  outline: none;
  resize: none;
  padding: 10px 0;
  font-family: inherit;
}
.tw-compose__ta::placeholder{ color: rgba(255,255,255,.35); }
.tw-compose__img{
  position: relative;
  margin: 4px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  border: .5px solid rgba(255,255,255,.12);
}
.tw-compose__img img{
  width: 100%;
  display: block;
  max-height: 340px;
  object-fit: cover;
}
.tw-compose__img button{
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tw-compose__img button svg{ width: 15px; height: 15px; }
.tw-compose__foot{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: .5px solid rgba(255,255,255,.12);
}
.tw-iconbtn{
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
}
.tw-iconbtn svg{ width: 22px; height: 22px; }
.tw-count{
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  font-variant-numeric: tabular-nums;
}
.tw-count.is-warn{ color: var(--yellow); }
.tw-count.is-over{ color: var(--red); }

/* ---------- شريط الرد ---------- */

.tw-replybar{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,10,.92);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: .5px solid rgba(255,255,255,.12);
}
.tw-replybar__btn{
  flex: 1;
  height: 38px;
  border-radius: 19px;
  background: rgba(120,120,128,.24);
  color: rgba(255,255,255,.45);
  font-size: 14.5px;
  text-align: start;
  padding: 0 16px;
}

/* ---------- ملف الحساب ---------- */

.tw-profile__banner{ height: 132px; }
.tw-profile__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: -44px;
}
.tw-profile__avatar{
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 3px solid #000;
  overflow: hidden;
  background: #000;
  flex: 0 0 auto;
}
.tw-profile__avatar .avatar{ width: 80px; height: 80px; border-radius: 50%; }
.tw-profile__actions{
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
}
.tw-profile__info{ padding: 10px 16px 14px; }
.tw-profile__name{ font-size: 21px; font-weight: 800; }
.tw-profile__handle{
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-top: 1px;
}
.tw-profile__bio{
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 9px;
  white-space: pre-wrap;
}
.tw-profile__meta{
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.tw-profile__meta b{ color: #fff; font-weight: 700; }
.tw-profile__sep{ height: .5px; background: rgba(255,255,255,.12); }

/* ---------- عناصر مساعدة ---------- */

.tw-account{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  text-align: start;
  border-bottom: .5px solid rgba(255,255,255,.1);
}
.tw-account:active{ background: rgba(255,255,255,.04); }
.tw-account__main{
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  text-align: start;
}
.tw-account__main b{ font-size: 15px; font-weight: 600; }
.tw-account__main span{ font-size: 12.5px; color: rgba(255,255,255,.5); }
.tw-check{
  margin-inline-start: auto;
  color: var(--blue);
  font-weight: 700;
}
.tw-section-title{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  padding: 14px 16px 6px;
}
.tw-thread__hint{
  padding: 12px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  border-bottom: .5px solid rgba(255,255,255,.12);
}
.tw-xicon svg{ width: 28px; height: 28px; color: #fff; }


/* ============================================================
   واتساب — المجموعات والتحكم بالأوقات
   ============================================================ */

.composer__mode{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 8px;
  margin: 0;
  border-radius: 0;
  background: none;
  overflow-x: auto;
}

.composer__label{
  display: inline;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}

.chip{
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(120,120,128,.24);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  max-width: 46vw;
}

.chip.is-on{
  background: rgba(37,211,102,.2);
  color: #6ff0a0;
  box-shadow: none;
}

.chip--who{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 52%;
  color: #6ff0a0;
  background: rgba(37,211,102,.16);
}

.chip__chev{ opacity: .6; font-size: 9px; }

.composer__time{
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: rgba(120,120,128,.2);
  color: rgba(255,255,255,.75);
  font-size: 11.5px;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
}
.composer__time svg{ width: 13px; height: 13px; }
.composer__time.is-set{ color: #6ff0a0; background: rgba(37,211,102,.16); }

.bubble.is-me{
  align-self: flex-end;
  background: #005c4b;
  border-start-start-radius: 14px;
  border-start-end-radius: 5px;
}

.bubble.is-them{
  align-self: flex-start;
  background: #202c33;
  border-start-end-radius: 14px;
  border-start-start-radius: 5px;
}

.bubble__sender{
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
  text-align: start;
}

.avatar--group svg{ width: 56%; height: 56%; }
.avatar-pick__preview svg{ width: 24px; height: 24px; opacity: .7; }

/* قائمة اختيار الأعضاء */
.pick-list{
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: rgba(120,120,128,.16);
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
}
.pick-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  width: 100%;
  text-align: start;
  position: relative;
}
.pick-row + .pick-row::before{
  content: "";
  position: absolute;
  inset-inline-start: 58px;
  top: 0; right: 0;
  height: .5px;
  background: rgba(255,255,255,.1);
}
.pick-row.is-on{ background: rgba(37,211,102,.07); }
.pick-row__check{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.32);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pick-row.is-on .pick-row__check{
  background: #25d366;
  border-color: #25d366;
}
.pick-row.is-on .pick-row__check::after{
  content: "✓";
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.pick-row__main{
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
  text-align: start;
}
.pick-row__main b{ font-size: 14.5px; font-weight: 600; }
.pick-row__main span{ font-size: 12px; color: rgba(255,255,255,.5); }

/* منتقي الوقت */
.dt__quick{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.dt__chip{
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(120,120,128,.24);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.dt__chip:active{ background: rgba(120,120,128,.4); }

input.input[type="date"],
input.input[type="time"]{
  -webkit-appearance: auto;
  appearance: auto;
  min-height: 46px;
}


/* ============================================================
   ضبط أحجام أيقونات SVG (إصلاح الأيقونات الضخمة)
   ============================================================ */

svg{
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  display: block;
}

.hbtn svg{ width: 21px; height: 21px; }
.hbtn--icon svg{ width: 19px; height: 19px; }
.viewer__btn svg{ width: 20px; height: 20px; }
.viewer__nav svg{ width: 20px; height: 20px; }
.sheet__item svg{ width: 20px; height: 20px; }


/* ============================================================
   أزرار أوضح + أزرار واتساب
   ============================================================ */

.hbtn{ min-width: 0; }
.app-header__actions{ min-width: 0; }

.hbtn--icon{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(120,120,128,.26);
  color: #fff;
}
.hbtn--icon:active{ background: rgba(120,120,128,.45); opacity: 1; }
.hbtn--icon svg{ width: 19px; height: 19px; }

.wa-add{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.wa-add:active{ opacity: .75; transform: scale(.95); }

.wa-fab{
  position: absolute;
  bottom: 24px;
  inset-inline-end: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
  z-index: 7;
}
.wa-fab:active{ transform: scale(.94); }

.wa-list-body{ padding-bottom: 104px; }

.wa-more{
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.chat-header__avatar-btn{
  display: block;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 50%;
}


/* ============================================================
   قفل المحتوى (عرض فقط)
   ============================================================ */

.locked-bar{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: #0b141a;
  border-top: .5px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.locked-bar svg{ width: 15px; height: 15px; }

.tw-tab--compose.is-disabled{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(120,120,128,.28);
  color: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 0 16px;
}
.tw-tab--compose.is-disabled svg{ width: 20px; height: 20px; }


/* صور الألبوم: الغطاء يغطي البطاقة كاملة مع بديل عند فشل التحميل */
.album__cover img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* بديل الصورة داخل الشبكة + إزالة إطار التركيز من الأزرار */
.ph__ph{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.2);
}
.ph__ph svg{ width: 26px; height: 26px; }
.ph img{ position: relative; z-index: 1; }

button:focus,
button:focus-visible,
.app-icon:focus{
  outline: none;
}


.locked-bar__btn{
  margin-inline-start: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  background: rgba(37,211,102,.2);
  color: #6ff0a0;
  font-size: 12px;
  font-weight: 700;
}


/* ============================================================
   رمز الدخول (شاشة القفل)
   ============================================================ */

.passcode{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(var(--status-h) + 20px) 24px 36px;
  background: rgba(6,8,12,.42);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}

.lock-screen.is-code .passcode{ opacity: 1; pointer-events: auto; }
.lock-screen.is-code .lock__top,
.lock-screen.is-code .lock__actions,
.lock-screen.is-code .lock__hint{
  opacity: 0;
  transition: opacity .2s;
}

.passcode__lock{
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(120,120,128,.25);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 2px;
}
.passcode__title{ font-size: 16px; font-weight: 600; margin-bottom: 4px; }

.passcode__dots{
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  height: 14px;
}
.passcode__dots i{
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
}
.passcode__dots i.on{ background: #fff; border-color: #fff; }

.passcode.is-error{ animation: shake .4s; }
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-8px); }
  40%{ transform: translateX(8px); }
  60%{ transform: translateX(-5px); }
  80%{ transform: translateX(5px); }
}

.passcode__pad{
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 16px;
  margin-bottom: 8px;
}
.pk{
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  transition: background .12s, transform .1s;
}
.pk:active{ background: rgba(255,255,255,.34); transform: scale(.95); }
.pk--blank{ background: none; pointer-events: none; }
.pk--del{ background: none; font-size: 15px; font-weight: 600; }
.passcode__cancel{
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 8px 16px;
}
.passcode__hint{ font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* حقل ملفات أصلي فوق الزر: يضمن عمل اختيار الصور على iPhone */
.upload-btn{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.upload-btn input[type="file"]{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 100px;
}


/* ============================================================
   تحسين مناطق اللمس (بعد الفحص)
   ============================================================ */

/* مساحة لمس أكبر حول شريط المؤشر مع الحفاظ على شكله */
.home-indicator{
  position: absolute;
}
.home-indicator::after{
  content: "";
  position: absolute;
  left: -46px;
  right: -46px;
  top: -26px;
  bottom: -12px;
  border-radius: 12px;
}

/* مساحة لمس أوسع لأيقونات الشاشة الرئيسية */
.app-icon{
  padding: 6px 2px 8px;
  cursor: pointer;
  border-radius: 16px;
}
.app-icon:active{
  background: rgba(255,255,255,.06);
}

/* رفع التنبيهات حتى لا تغطي الدوك أو لوحة الكتابة */
.toast-stack{
  bottom: 96px;
}
