:root {
  color-scheme: dark;
  --ios-blue: #0a84ff;
  --ios-green: #30d158;
  --ios-red: #ff453a;
  --ios-orange: #ff9f0a;
  --ios-yellow: #ffd60a;
  --ios-gray: #8e8e93;
  --ios-separator: rgba(84, 84, 88, 0.58);
  --glass: rgba(46, 46, 50, 0.72);
  --wallpaper: #050606;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Arabic", "Geeza Pro", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#experience {
  --unlock-progress: 0;
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #020203;
  direction: rtl;
  touch-action: none;
  overscroll-behavior: none;
}

.wallpaper {
  position: absolute;
  inset: -3%;
  z-index: 0;
  background: var(--wallpaper);
  background-size: cover;
  background-position: center;
  filter: saturate(0.84) contrast(1.06);
  transform: scale(1.04);
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.08) 16%, rgba(0, 0, 0, 0.06) 68%, rgba(0, 0, 0, 0.06) 100%);
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.status-bar {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  height: 52px;
  direction: ltr;
  user-select: none;
  pointer-events: none;
}

.reference-statusbar {
  display: none;
}

.status-time {
  position: absolute;
  top: 15px;
  right: 23px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
  direction: rtl;
}

.status-time.carrier {
  direction: ltr;
  font-size: 15px;
  letter-spacing: 0;
}

.moon {
  display: inline-block;
  font-size: 19px;
  line-height: 1;
  transform: rotate(35deg);
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 35px;
  border-radius: 24px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.status-signals {
  position: absolute;
  top: 16px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  font-weight: 800;
}

.signal {
  position: relative;
  width: 29px;
  height: 15px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.signal::before {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #fff;
  box-shadow: 6px -2px 0 #fff, 12px -5px 0 #fff, 18px -8px 0 #fff;
}

.wifi {
  position: relative;
  width: 20px;
  height: 15px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.wifi::before,
.wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  border: solid #fff;
  border-width: 3px 3px 0 0;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

.wifi::before {
  top: 1px;
  width: 17px;
  height: 17px;
}

.wifi::after {
  top: 7px;
  width: 8px;
  height: 8px;
}

.battery {
  position: relative;
  display: block;
  width: 28px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 4px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: rgba(255, 255, 255, 0.65);
}

.battery i {
  display: block;
  width: 71%;
  height: 7px;
  margin: 1px;
  border-radius: 1.5px;
  background: #fff;
}

/* Lock screen */
.lock-screen {
  z-index: 30;
  transform: translate3d(0, var(--lock-y, 0px), 0);
  opacity: calc(1 - (var(--unlock-progress) * 0.15));
  transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.34s ease;
  will-change: transform;
}

.lock-screen.dragging {
  transition: none;
}

#experience.unlocked .lock-screen {
  transform: translate3d(0, -108%, 0);
  opacity: 0;
  pointer-events: none;
}

.lock-content {
  position: absolute;
  top: max(76px, calc(env(safe-area-inset-top) + 62px));
  left: 0;
  right: 0;
  text-align: center;
  user-select: none;
}

.lock-date {
  margin: 0 0 1px;
  color: rgba(228, 226, 234, 0.72);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.lock-time {
  margin: -7px 0 0;
  color: rgba(190, 188, 199, 0.76);
  font-size: clamp(98px, 27vw, 119px);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -8px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 5px 14px rgba(0, 0, 0, 0.3);
}

.lock-bottom {
  position: absolute;
  left: 55px;
  right: 55px;
  bottom: calc(48px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  direction: ltr;
}

.round-action {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  background: rgba(55, 55, 61, 0.47);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 4px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  cursor: pointer;
}

.round-action:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.28);
}

.flashlight-shape {
  display: block;
  font-size: 34px;
  line-height: 1;
  transform: scaleX(0.55);
}

.camera-shape {
  font-size: 33px;
  line-height: 1;
}

.focus-status {
  direction: rtl;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.focus-status span {
  display: inline-block;
  margin-inline-end: 3px;
  font-size: 21px;
  transform: rotate(35deg);
}

.swipe-hint {
  position: absolute;
  bottom: calc(23px + env(safe-area-inset-bottom));
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-50%);
  animation: hint-in 0.7s ease 1.3s forwards, hint-out 0.7s ease 4.1s forwards;
}

.home-indicator,
.app-home-indicator {
  position: absolute;
  bottom: calc(7px + env(safe-area-inset-bottom));
  left: 50%;
  width: 138px;
  height: 5px;
  border-radius: 99px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

@keyframes hint-in {
  to { opacity: 1; }
}

@keyframes hint-out {
  to { opacity: 0; }
}

/* Home screen */
.home-screen {
  z-index: 10;
  opacity: var(--unlock-progress);
  transform: scale(calc(0.965 + (var(--unlock-progress) * 0.035)));
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#experience.unlocked .home-screen {
  opacity: 1;
  transform: scale(1);
}

.home-grid {
  position: absolute;
  top: max(91px, calc(env(safe-area-inset-top) + 72px));
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  row-gap: 23px;
  align-items: start;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px;
  direction: rtl;
}

.app-icon-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;
}

.app-icon-button:active .app-icon {
  filter: brightness(0.72);
  transform: scale(0.94);
}

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

.app-icon {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 15.5px;
  box-shadow: inset 0 0 0 0.6px rgba(255, 255, 255, 0.26), 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.image-icon {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.app-icon-glyph {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  line-height: 1;
}

.app-label {
  max-width: 91px;
  overflow: hidden;
  color: #fff;
  font-size: 15.5px;
  font-weight: 420;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.files-icon {
  background: linear-gradient(180deg, #f4f8ff, #eef4ff);
}

.folder-body {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 44px;
  height: 27px;
  border-radius: 5px 6px 7px 7px;
  background: linear-gradient(180deg, #55baff, #087bff);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.folder-tab {
  position: absolute;
  top: 17px;
  left: 14px;
  width: 23px;
  height: 13px;
  border-radius: 5px 5px 0 0;
  background: #45adff;
}

.whatsapp-icon {
  background: linear-gradient(165deg, #5ced73, #13b746 70%);
}

.whatsapp-icon::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid white;
  border-radius: 50%;
}

.whatsapp-icon::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border-left: 3px solid white;
  transform: rotate(-28deg);
}

.whatsapp-icon span {
  z-index: 1;
  font-size: 31px;
  transform: rotate(-28deg);
}

.photos-icon {
  background: linear-gradient(145deg, #fff, #f4f4f4);
}

.photo-flower {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff7b00, #ffd21f, #61c84b, #0da6da, #6666db, #ba4cd1, #ff3f78, #ff7b00);
  filter: saturate(1.28);
}

.photo-flower::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 -14px 0 rgba(255, 255, 255, 0.17), 12px -7px 0 rgba(255, 255, 255, 0.13), 12px 7px 0 rgba(255, 255, 255, 0.14), 0 14px 0 rgba(255, 255, 255, 0.12), -12px 7px 0 rgba(255, 255, 255, 0.13), -12px -7px 0 rgba(255, 255, 255, 0.15);
}

.notes-icon {
  align-items: start;
  background: repeating-linear-gradient(180deg, #f4f4f3 0 13px, #d9d9d7 13px 14px);
}

.notes-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(180deg, #ffd94a, #fbc218);
}

.notes-icon span {
  position: absolute;
  top: 20px;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 3px;
  background: #c1c1c0;
  box-shadow: 0 11px 0 #c1c1c0, 0 22px 0 #c1c1c0;
}

.phone-icon {
  color: #fff;
  background: linear-gradient(160deg, #50ed71, #10b63a);
  font-size: 39px;
}

.clock-icon {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #f8f8f8;
}

.clock-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #4a4a4a 0deg 1deg, transparent 1deg 30deg);
}

.clock-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #f7f7f7;
}

.clock-hand {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  left: 33px;
  width: 2px;
  border-radius: 2px;
  background: #111;
  transform-origin: 50% 100%;
}

.clock-hand.hour { height: 16px; transform: rotate(40deg); }
.clock-hand.minute { height: 23px; transform: rotate(192deg); }
.clock-hand.second { width: 1px; height: 25px; background: #ff5a39; transform: rotate(78deg); }

.clock-icon i {
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
}

.facetime-icon,
.messages-icon,
.phone-icon {
  color: #fff;
  background: linear-gradient(160deg, #50ed71, #0fbd3e 72%);
}

.facetime-icon .app-icon-glyph {
  width: 38px;
  height: 27px;
  border-radius: 7px;
  color: transparent;
  background: #fff;
}

.facetime-icon .app-icon-glyph::after {
  content: "";
  position: absolute;
  right: -12px;
  width: 14px;
  height: 22px;
  background: #fff;
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 72%);
}

.mail-icon {
  color: #fff;
  background: linear-gradient(180deg, #52c7fb, #0a75f9);
  font-size: 42px;
}

.mail-icon .app-icon-glyph {
  transform: translateY(-2px) scaleX(1.18);
}

.camera-icon {
  background: linear-gradient(145deg, #f2f2f2, #bcbcc0);
}

.camera-icon .app-icon-glyph {
  width: 45px;
  height: 45px;
  border: 4px solid #303037;
  border-radius: 50%;
  color: transparent;
  background: radial-gradient(circle at 38% 35%, #9fd8ff 0 8%, #185087 18%, #07101c 42%, #000 61%);
  box-shadow: 0 0 0 5px rgba(40, 40, 46, 0.18);
}

.reminders-icon {
  color: #69696e;
  background: linear-gradient(145deg, #fff, #ebebed);
  font-size: 50px;
  font-weight: 300;
}

.reminders-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #388bff;
  box-shadow: 0 14px 0 #ff4d59, 0 28px 0 #ff9f35;
}

.reminders-icon .app-icon-glyph {
  transform: translate(7px, -4px) scaleX(1.1);
}

.maps-icon {
  color: #0b7cff;
  background: linear-gradient(90deg, #79df9f 0 31%, #fff 31% 54%, #76c8fa 54% 74%, #ffe150 74%);
  font-size: 36px;
}

.maps-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.8) 43% 50%, transparent 51%), linear-gradient(8deg, transparent 50%, #ff8ca1 51% 60%, transparent 61%);
}

.maps-icon .app-icon-glyph {
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1685ef;
  transform: rotate(-35deg);
}

.tv-icon {
  color: #fff;
  background: linear-gradient(145deg, #444, #080808 65%);
  font-size: 24px;
  font-weight: 750;
}

.tv-icon .app-icon-glyph {
  background: linear-gradient(90deg, #75c5ff, #df71ff, #f6e164, #8be28c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.podcasts-icon {
  color: #fff;
  background: radial-gradient(circle, #f5deff 0 9%, transparent 10% 23%, rgba(255,255,255,.52) 24% 27%, transparent 28% 41%, rgba(255,255,255,.36) 42% 45%, transparent 46%), linear-gradient(145deg, #c36bea, #7f28c6);
  font-size: 34px;
}

.health-icon {
  color: #ff2459;
  background: linear-gradient(145deg, #fff, #f2f2f2);
  font-size: 41px;
}

.appstore-icon {
  color: #fff;
  background: linear-gradient(160deg, #39bdf8, #0874ef);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 39px;
  font-weight: 300;
}

.wallet-icon {
  background: linear-gradient(145deg, #3f3f42, #111);
}

.wallet-icon .app-icon-glyph {
  width: 43px;
  height: 31px;
  border-radius: 5px;
  color: transparent;
  background: linear-gradient(180deg, #f7cc43 0 20%, #4bb9ff 20% 40%, #f26061 40% 60%, #f2b9a4 60%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.22);
}

.settings-icon {
  color: #ededee;
  background: linear-gradient(145deg, #b7b7bc, #626268);
  font-size: 47px;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.calendar-icon {
  align-items: end;
  padding-bottom: 5px;
  color: #111;
  background: linear-gradient(#fff, #f3f3f3);
  font-size: 40px;
}

.calendar-icon::before {
  content: "الثلاثاء";
  position: absolute;
  top: 6px;
  color: #ff3b30;
  font-size: 12px;
  font-weight: 700;
}

.safari-icon {
  color: #ef293d;
  background: radial-gradient(circle, #2bafff 0 47%, #fff 48% 61%, #d8eef9 62%);
  font-size: 38px;
}

.safari-icon .app-icon-glyph {
  transform: rotate(-42deg);
  text-shadow: -3px 2px 0 #fff;
}

.messages-icon {
  color: transparent;
}

.messages-icon .app-icon-glyph {
  width: 49px;
  height: 39px;
  border-radius: 50%;
  background: #fff;
}

.messages-icon .app-icon-glyph::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -5px;
  border: 8px solid transparent;
  border-top-color: #fff;
  transform: rotate(24deg);
}

.home-search {
  position: absolute;
  left: 50%;
  bottom: calc(136px + env(safe-area-inset-bottom));
  min-width: 88px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.73);
  background: rgba(48, 48, 54, 0.58);
  font-size: 15px;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  height: 109px;
  align-items: center;
  justify-content: center;
  gap: 73px;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(75, 75, 85, 0.58), rgba(112, 113, 155, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 7px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(27px) saturate(1.2);
  -webkit-backdrop-filter: blur(27px) saturate(1.2);
}

.dock-button .app-icon {
  width: 68px;
  height: 68px;
}

/* App shell */
.app-screen {
  z-index: 40;
  display: none;
  background: #000;
  transform: translate3d(0, var(--app-y, 0px), 0) scale(var(--app-scale, 1));
  transform-origin: 50% 50%;
  transition: transform 0.42s cubic-bezier(0.2, 0.82, 0.22, 1), border-radius 0.38s ease, opacity 0.32s ease;
  will-change: transform;
}

.app-screen.active {
  display: block;
  animation: app-open 0.36s cubic-bezier(0.18, 0.82, 0.22, 1) both;
}

.app-screen.dragging {
  transition: none;
  border-radius: 34px;
  overflow: hidden;
}

.app-screen.closing {
  animation: none;
  transform: translate3d(var(--close-x, 0), var(--close-y, -36%), 0) scale(0.08);
  opacity: 0;
  border-radius: 56px;
}

@keyframes app-open {
  from { opacity: 0; transform: scale(0.7) translateY(25%); border-radius: 48px; }
  to { opacity: 1; transform: scale(1) translateY(0); border-radius: 0; }
}

.ios-app {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.app-content {
  position: absolute;
  inset: 52px 0 0;
  overflow: hidden;
}

.app-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.app-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  padding: 2px 17px 6px;
}

.app-title {
  margin: 0;
  font-size: 35px;
  font-weight: 750;
  letter-spacing: -1.1px;
}

.glass-circle,
.top-action {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(43, 43, 46, 0.78);
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}

.top-actions {
  display: flex;
  gap: 11px;
  direction: ltr;
}

.search-pill {
  display: flex;
  height: 45px;
  align-items: center;
  gap: 9px;
  margin: 4px 16px 13px;
  padding: 0 15px;
  border-radius: 23px;
  color: #929297;
  background: #1c1c1e;
  font-size: 18px;
}

.search-pill span {
  font-size: 24px;
}

.section-caption {
  margin: 13px 18px 8px;
  color: #8e8e93;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-home-gesture {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 30px;
  touch-action: none;
  cursor: ns-resize;
}

.toast {
  position: absolute;
  z-index: 100;
  left: 50%;
  bottom: 122px;
  max-width: min(360px, calc(100% - 36px));
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: #fff;
  background: rgba(42, 42, 46, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: 0.25s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Files */
.files-app { background: #000; }
.files-location {
  margin: 2px 18px 14px;
  color: var(--ios-blue);
  font-size: 17px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  padding: 0 17px 17px;
}

.folder-card {
  position: relative;
  min-height: 113px;
  padding: 55px 13px 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #1c1c1e;
  text-align: right;
  cursor: pointer;
}

.folder-card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 15px;
  width: 48px;
  height: 32px;
  border-radius: 4px 5px 6px 6px;
  background: linear-gradient(#58bdff, #0a84ff);
}

.folder-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 17px;
  width: 25px;
  height: 13px;
  border-radius: 4px 4px 0 0;
  background: #4ab5ff;
}

.folder-card strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-card small { color: #8e8e93; }

.file-list {
  overflow: hidden;
  margin: 0 16px 72px;
  border-radius: 12px;
  background: #1c1c1e;
}

.file-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  min-height: 67px;
  padding: 8px 12px;
  direction: ltr;
  border-bottom: 0.5px solid var(--ios-separator);
}

.file-row:last-child { border-bottom: 0; }
.file-badge {
  display: grid;
  width: 38px;
  height: 45px;
  place-items: end center;
  padding-bottom: 5px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(160deg, #7c7c84, #4a4a50);
  font-size: 9px;
  font-weight: 800;
}

.file-copy {
  min-width: 0;
  padding: 0 10px;
  direction: rtl;
}

.file-copy strong,
.file-copy small { display: block; }
.file-copy strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { margin-top: 3px; color: #8e8e93; font-size: 12px; }

.download-button {
  display: grid;
  min-width: 39px;
  height: 36px;
  place-items: center;
  border-radius: 18px;
  color: var(--ios-blue);
  background: rgba(10, 132, 255, 0.14);
  font-size: 20px;
  text-decoration: none;
}

/* WhatsApp */
.whatsapp-app { background: #080808; }
.wa-title-row { align-items: end; padding-top: 4px; }
.wa-title-row .app-title { font-size: 40px; }
.wa-archive {
  display: flex;
  height: 53px;
  align-items: center;
  justify-content: space-between;
  margin: 0 16px;
  padding: 0 12px;
  border-bottom: 0.5px solid #232326;
  color: #a0a0a5;
  font-size: 17px;
}

.chat-list { padding-bottom: 94px; }
.chat-row {
  display: grid;
  width: calc(100% - 13px);
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 77px;
  margin-left: 13px;
  padding: 9px 0 9px 13px;
  direction: rtl;
  border: 0;
  border-bottom: 0.5px solid #252527;
  background: transparent;
  cursor: pointer;
}

.chat-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}

.chat-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-copy { min-width: 0; direction: rtl; text-align: right; }
.chat-copy strong { display: block; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.chat-copy p { margin: 4px 0 0; overflow: hidden; color: #939398; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta { align-self: start; min-width: 56px; padding-top: 5px; direction: rtl; color: #8d8d92; font-size: 12px; text-align: left; }
.unread-badge { display: inline-grid; min-width: 22px; height: 22px; margin-top: 7px; place-items: center; border-radius: 11px; color: #000; background: #25d366; font-weight: 700; }

.wa-bottom-nav {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 15px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 69px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 35px;
  background: rgba(35, 35, 37, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.wa-tab { display: grid; place-items: center; color: #8e8e93; font-size: 12px; }
.wa-tab span { display: block; font-size: 23px; line-height: 1; }
.wa-tab.active { color: #fff; background: rgba(255,255,255,.12); border-radius: 32px; }

.conversation {
  display: flex;
  flex-direction: column;
  height: auto;
  background-color: #090b0b;
  background-image:
    radial-gradient(circle at 18px 18px, transparent 0 9px, rgba(148,159,157,.09) 9.5px 10.5px, transparent 11px),
    radial-gradient(circle at 55px 59px, transparent 0 13px, rgba(148,159,157,.07) 13.5px 14.5px, transparent 15px),
    linear-gradient(35deg, transparent 46%, rgba(148,159,157,.055) 47% 49%, transparent 50%),
    linear-gradient(145deg, transparent 46%, rgba(148,159,157,.05) 47% 49%, transparent 50%);
  background-size: 82px 82px, 104px 104px, 62px 62px, 73px 73px;
}

.conversation-header {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 55px;
  align-items: center;
  min-height: 62px;
  padding: 3px 10px;
  direction: ltr;
  border-bottom: .5px solid rgba(255,255,255,.08);
  background: rgba(15,16,17,.97);
}

.conversation-person {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: rtl;
  font-size: 16px;
  font-weight: 650;
}

.conversation-person > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-person .chat-avatar { width: 39px; height: 39px; font-size: 15px; }
.conversation-calls { display: flex; width: 102px; height: 43px; align-items: center; justify-content: space-evenly; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; background: #202022; }
.conversation-calls button { display: grid; width: 44px; height: 39px; place-items: center; border: 0; color: #fff; background: transparent; font-size: 24px; }
.conversation-back { display: grid; width: 44px; height: 44px; place-items: center; justify-self: end; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #fff; background: #202022; font-size: 35px; }
.conversation-back span { transform: translateX(2px); }
.plain-back { border: 0; color: var(--ios-blue); background: transparent; font-size: 29px; cursor: pointer; }
.message-area { flex: 1; overflow-y: auto; padding: 13px 16px 92px; touch-action: pan-y; scrollbar-width: none; }
.day-separator { width: fit-content; margin: 0 auto 13px; padding: 4px 22px; border-radius: 12px; color: #f4f4f5; background: rgba(25,25,26,.94); font-size: 13px; font-weight: 650; }
.bubble { width: fit-content; max-width: 83%; margin-bottom: 8px; padding: 9px 11px 7px; border-radius: 12px; direction: rtl; font-size: 16.5px; line-height: 1.45; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.26); }
.bubble.featured { max-width: 84%; min-height: 210px; padding: 14px 16px 10px; background: #242626; font-size: 18px; line-height: 1.62; }
.bubble.me { margin-right: auto; margin-left: 0; background: #0c6449; border-top-left-radius: 4px; }
.bubble.them { margin-right: 0; margin-left: auto; background: #242626; border-top-right-radius: 4px; }
.bubble time { display: block; margin-top: 3px; direction: rtl; color: #a8b2b6; font-size: 10px; text-align: left; }
.composer { position: absolute; left: 8px; right: 8px; bottom: 27px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px 42px; align-items: center; gap: 5px; direction: ltr; }
.composer-field { position: relative; display: block; min-width: 0; }
.composer-field input { width: 100%; min-width: 0; height: 43px; padding: 0 39px 0 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 23px; outline: none; color: #fff; background: #242426; direction: rtl; }
.composer-field > span { position: absolute; right: 13px; top: 10px; color: #fff; font-size: 20px; }
.composer button { display: grid; width: 41px; height: 41px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: transparent; font-size: 23px; cursor: pointer; }
.composer .composer-add { font-size: 34px; font-weight: 260; }
.composer .composer-camera { font-size: 27px; }
.composer .composer-send { background: #1f6d55; font-size: 20px; }

/* Photos */
.photos-app { background: #000; }
.photos-heading { padding-bottom: 0; }
.photo-date { margin: -3px 18px 13px; color: #9b9ba0; font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding-bottom: 90px; direction: ltr; }
.photo-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; background: #222; cursor: pointer; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-viewer { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #000; }
.viewer-top { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; min-height: 58px; padding: 0 10px; }
.viewer-title { text-align: center; font-size: 15px; font-weight: 600; }
.viewer-stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; direction: ltr; touch-action: none; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; transform: translateX(var(--photo-drag, 0px)); transition: transform .25s ease; }
.viewer-stage.dragging img { transition: none; }
.viewer-arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(35,35,38,.72); font-size: 27px; cursor: pointer; }
.viewer-arrow.prev { left: 10px; }
.viewer-arrow.next { right: 10px; }
.viewer-bottom { display: flex; height: 63px; align-items: center; justify-content: space-around; padding-bottom: 13px; color: var(--ios-blue); font-size: 23px; }
.photos-bottom { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 8; display: flex; height: 64px; align-items: center; justify-content: space-around; border: 1px solid rgba(255,255,255,.12); border-radius: 32px; background: rgba(36,36,38,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.photos-bottom strong { color: #fff; font-size: 14px; }
.photos-bottom span { color: #8e8e93; font-size: 13px; }

/* Notes */
.notes-app { background: #000; }
.notes-list-wrap { padding: 0 14px 104px; }
.notes-nav { display: grid; grid-template-columns: 44px 1fr 44px; padding-inline: 0; }
.notes-app-caption { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.notes-app-caption strong { font-size: 18px; line-height: 1.25; }
.notes-app-caption small { color: #8e8e93; font-size: 13px; line-height: 1.25; }
.notes-section-title { margin: 2px 0 11px; font-size: 29px; font-weight: 750; }
.notes-card { overflow: hidden; border-radius: 18px; background: #1c1c1e; }
.note-row { display: block; width: 100%; min-height: 76px; padding: 12px 14px 10px; border: 0; border-bottom: .5px solid #3b3b3e; color: #fff; background: transparent; text-align: right; cursor: pointer; }
.note-row:last-child { border-bottom: 0; }
.note-row strong { display: block; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.note-row p { margin: 3px 0 0; overflow: hidden; color: #929297; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.notes-toolbar { position: absolute; left: 13px; right: 13px; bottom: 17px; z-index: 9; display: grid; grid-template-columns: 47px 1fr; gap: 12px; direction: ltr; }
.notes-toolbar .search-pill { height: 47px; margin: 0; direction: rtl; background: rgba(35,35,38,.94); border: 1px solid rgba(255,255,255,.1); }
.compose-note { display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(38,38,41,.95); font-size: 24px; }
.note-detail { height: auto; padding: 9px 20px 80px; overflow-y: auto; touch-action: pan-y; }
.note-detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.note-detail-head button { border: 0; color: var(--ios-yellow); background: transparent; font-size: 17px; }
.note-detail time { display: block; color: #8e8e93; font-size: 13px; text-align: center; }
.note-body { margin: 0; color: #f5f5f7; font-size: 19px; line-height: 1.6; white-space: pre-wrap; }

/* Phone */
.phone-app { background: #000; }
.phone-edit { border: 0; color: var(--ios-blue); background: transparent; font-size: 17px; cursor: pointer; }
.phone-segment { display: flex; width: 194px; height: 31px; margin: 0 auto 12px; padding: 2px; border-radius: 9px; background: #2c2c2e; }
.phone-segment button { flex: 1; border: 0; border-radius: 7px; color: #fff; background: transparent; font-size: 13px; }
.phone-segment button.active { background: #636366; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.call-list { margin-right: 16px; padding-bottom: 86px; }
.call-row { display: grid; grid-template-columns: 31px 1fr auto 29px; min-height: 61px; align-items: center; direction: ltr; border-bottom: .5px solid #2d2d30; }
.call-direction { color: #8e8e93; font-size: 17px; }
.call-copy { direction: rtl; text-align: right; }
.call-copy strong { display: block; font-size: 17px; }
.call-copy small { color: #8e8e93; font-size: 13px; }
.call-row.missed .call-copy strong { color: var(--ios-red); }
.call-time { color: #8e8e93; font-size: 13px; }
.info-button { border: 0; color: var(--ios-blue); background: transparent; font-size: 23px; }
.phone-tabs { position: absolute; left: 0; right: 0; bottom: 13px; z-index: 10; display: grid; grid-template-columns: repeat(2, 1fr); height: 63px; padding: 3px 30px 10px; border-top: .5px solid #2c2c2e; background: rgba(18,18,19,.96); }
.phone-tab { border: 0; color: #8e8e93; background: transparent; font-size: 12px; }
.phone-tab span { display: block; font-size: 24px; }
.phone-tab.active { color: var(--ios-blue); }
.dialer { display: flex; height: calc(100% - 40px); flex-direction: column; align-items: center; padding-top: 23px; }
.dial-number { min-height: 47px; margin-bottom: 16px; font-size: 30px; letter-spacing: 1px; direction: ltr; }
.dial-grid { display: grid; grid-template-columns: repeat(3, 74px); gap: 14px 24px; direction: ltr; }
.dial-key { display: grid; width: 74px; height: 74px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #333336; font-size: 30px; cursor: pointer; }
.dial-key > span { display: flex; flex-direction: column; align-items: center; line-height: .92; }
.dial-key small { display: block; min-height: 9px; margin-top: 5px; font-size: 8px; line-height: 1; letter-spacing: 2px; }
.call-button { display: grid; width: 72px; height: 72px; margin-top: 16px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #30d158; font-size: 34px; transform: rotate(-25deg); }

/* Clock */
.clock-app { background: #000; }
.clock-edit { border: 0; color: var(--ios-orange); background: transparent; font-size: 17px; }
.alarm-list { margin: 4px 17px 80px; border-top: .5px solid #2b2b2e; }
.alarm-row { display: grid; grid-template-columns: 1fr 52px; align-items: center; min-height: 103px; border-bottom: .5px solid #2b2b2e; direction: ltr; }
.alarm-copy { direction: rtl; text-align: right; }
.alarm-time { display: flex; align-items: baseline; gap: 5px; direction: rtl; font-size: 48px; font-weight: 300; letter-spacing: -2px; }
.alarm-time small { font-size: 20px; letter-spacing: 0; }
.alarm-copy p { margin: -1px 0 0; color: #b7b7bc; font-size: 14px; }
.ios-switch { position: relative; width: 51px; height: 31px; border: 0; border-radius: 17px; background: #39393d; cursor: pointer; transition: background .2s ease; }
.ios-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform .2s ease; }
.ios-switch.on { background: #30d158; }
.ios-switch.on::after { transform: translateX(20px); }
.clock-tabs { position: absolute; left: 0; right: 0; bottom: 13px; display: grid; grid-template-columns: repeat(4, 1fr); height: 66px; padding: 3px 8px 10px; border-top: .5px solid #2c2c2e; background: rgba(16,16,17,.96); }
.clock-tab { color: #8e8e93; font-size: 11px; text-align: center; }
.clock-tab span { display: block; margin-bottom: 1px; font-size: 23px; }
.clock-tab.active { color: var(--ios-orange); }

@media (min-width: 700px) {
  .home-grid {
    top: 105px;
    max-width: 650px;
    padding-inline: 40px;
  }

  .app-icon,
  .dock-button .app-icon {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
    border-radius: 17px;
  }

  .dock {
    max-width: 560px;
  }

  .app-content > .app-scroll,
  .conversation,
  .note-detail {
    width: min(760px, 100%);
    margin-inline: auto;
  }

  .app-topbar,
  .search-pill,
  .files-location,
  .wa-archive,
  .phone-segment {
    max-width: 760px;
    margin-inline: auto;
  }

  .lock-bottom {
    left: max(12vw, 80px);
    right: max(12vw, 80px);
  }
}

@media (max-width: 520px) {
  .lock-screen > .status-bar {
    display: none;
  }

  .reference-statusbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 51;
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
  }
}

@media (max-height: 720px) {
  .home-grid { top: 67px; row-gap: 9px; }
  .home-grid .app-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px; }
  .home-grid .app-label { font-size: 12px; }
  .home-search { display: none; }
  .dock { height: 92px; }
  .dock-button .app-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .lock-content { top: 62px; }
  .lock-time { font-size: 86px; }
  .dial-grid { grid-template-columns: repeat(3, 61px); gap: 9px 20px; }
  .dial-key { width: 61px; height: 61px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026 restoration: real device chrome, reference home/lock, and WhatsApp */
#experience {
  min-height: 0;
  background: #05070d;
  touch-action: manipulation;
}

.wallpaper {
  inset: 0;
  filter: none;
  transform: none;
}

.wallpaper::after {
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.08) 58%, rgba(0,0,0,.2));
}

/* The site deliberately renders no status-bar substitute. */
.status-bar,
.reference-statusbar,
.dynamic-island,
.status-signals,
.status-time {
  display: none !important;
}

/* Lock screen */
.lock-screen {
  touch-action: none;
}

.lock-content {
  top: max(26px, env(safe-area-inset-top));
  z-index: 2;
}

.lock-date {
  margin: 0;
  color: rgba(239,238,244,.86);
  font-size: clamp(17px, 4.4vw, 20px);
  font-weight: 590;
  letter-spacing: -.2px;
}

.lock-time {
  margin: -4px 0 0;
  color: rgba(240,239,246,.9);
  font-size: clamp(83px, 25vw, 108px);
  font-weight: 470;
  line-height: 1;
  letter-spacing: -7px;
}

.lost-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding-inline: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.lost-copy strong {
  font-size: 21px;
  font-weight: 700;
}

.lost-copy span {
  color: rgba(235,233,242,.8);
  font-size: 15px;
}

.lock-notifications {
  position: absolute;
  top: max(224px, calc(env(safe-area-inset-top) + 204px));
  left: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  gap: 8px;
}

.lock-notification {
  position: relative;
  display: grid;
  min-height: 68px;
  grid-template-columns: 47px minmax(0,1fr) 50px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 23px;
  color: #fff;
  background: rgba(24,24,31,.66);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.07), 0 8px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  text-align: right;
  cursor: pointer;
}

.lock-notification:active { transform: scale(.985); }

.notification-avatar {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
}

.notification-copy { min-width: 0; }
.notification-copy strong,
.notification-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy strong { font-size: 16px; }
.notification-copy span { margin-top: 2px; color: rgba(255,255,255,.88); font-size: 14px; }
.lock-notification time { align-self: start; padding-top: 5px; color: rgba(235,234,242,.58); font-size: 12px; text-align: left; }
.whatsapp-mini { position: absolute; right: 45px; bottom: 7px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 5px; color: #fff; background: #26d467; font-size: 9px; }

.lock-bottom {
  left: 44px;
  right: 44px;
  bottom: calc(27px + env(safe-area-inset-bottom));
  grid-template-columns: 56px 1fr 56px;
}

.round-action {
  width: 56px;
  height: 56px;
  border-color: rgba(255,255,255,.1);
  background: rgba(26,24,33,.62);
}

.lock-bottom .swipe-hint {
  position: static;
  color: rgba(255,255,255,.62);
  font-size: 15px;
  opacity: 1;
  transform: none;
  animation: none;
  text-align: center;
}

.home-indicator,
.app-home-indicator {
  bottom: calc(5px + env(safe-area-inset-bottom));
  width: 132px;
  height: 5px;
}

/* Reference home screen */
.home-grid {
  top: max(36px, calc(env(safe-area-inset-top) + 18px));
  left: 24px;
  right: 24px;
  max-width: none;
  grid-template-columns: repeat(4, 68px);
  grid-template-rows: repeat(4, 94px);
  grid-template-areas:
    "clock calendar . ."
    "photos notes . ."
    "settings weather files camera"
    ". calculator maps terminal";
  justify-content: space-between;
  row-gap: 2px;
  margin: 0;
  padding: 0;
  direction: ltr;
}

.app-icon-button {
  gap: 5px;
  direction: rtl;
}

.app-icon {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-radius: 16px;
}

.replaceable-icon,
.app-icon > img {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.app-icon > img[hidden] { display: none; }

.app-label {
  max-width: 88px;
  font-size: 13.5px;
  font-weight: 450;
}

.icon-badge {
  position: absolute;
  top: -10px;
  right: -7px;
  z-index: 15;
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  padding-inline: 6px;
  border-radius: 15px;
  color: #fff;
  background: #ff3b30;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.notes-widget {
  position: absolute;
  top: max(36px, calc(env(safe-area-inset-top) + 18px));
  right: 24px;
  display: flex;
  width: 166px;
  height: 164px;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: #202023;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  text-align: right;
  cursor: pointer;
}

.widget-head {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-radius: 24px 24px 0 0;
  color: #fff;
  background: #ffd10a;
  font-size: 18px;
}
.widget-folder { font-size: 23px; }
.widget-body { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 14px 14px 9px; }
.widget-body strong { font-size: 17px; }
.widget-body small { display: -webkit-box; overflow: hidden; color: #aaa9af; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.widget-label { position: absolute; top: 169px; left: 0; right: 0; color: #fff; font-size: 13.5px; text-align: center; text-shadow: 0 1px 3px #000; }

.home-search {
  bottom: calc(113px + env(safe-area-inset-bottom));
  min-width: 82px;
  padding: 6px 12px;
  border: 0;
  background: rgba(56,53,62,.7);
  font-size: 15px;
}

.home-search span { font-size: 18px; }

.dock {
  left: 13px;
  right: 13px;
  bottom: calc(11px + env(safe-area-inset-bottom));
  display: flex;
  width: auto;
  height: 92px;
  max-width: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 18px;
  border-radius: 40px;
  background: rgba(61,58,69,.62);
  direction: rtl;
}

.dock-button .app-icon {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border-radius: 15px;
}

.weather-icon { color: #fff; background: linear-gradient(180deg,#3aa8ff,#2175de); font-size: 31px; }
.weather-icon::before { content:""; position:absolute; top:16px; right:12px; width:22px; height:22px; border-radius:50%; background:#ffd447; }
.weather-icon .app-icon-glyph { transform: translate(-4px,8px); filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.calculator-icon { color:#ff9f0a; background:#2c2c2e; font-size:27px; font-weight:700; }
.calculator-icon::before { content:""; position:absolute; inset:12px; background:radial-gradient(circle,#8e8e93 0 4px,transparent 5px); background-size:16px 16px; }
.calculator-icon .app-icon-glyph { opacity:0; }
.terminal-icon { color:#fff; background:#252527; font-size:27px; font-family:ui-monospace,monospace; }
.terminal-icon .app-icon-glyph { width:54px; height:49px; border:1px solid #666; border-radius:8px; background:#080809; }
.music-icon { color:#fff; background:linear-gradient(145deg,#ff5770,#ff2d55); font-size:43px; font-weight:700; }

/* App transition: the home screen stays rendered behind this layer. */
.app-screen {
  display: none;
  background: transparent;
  transform: translate3d(0, var(--app-y, 0px), 0) scale(var(--app-scale, 1));
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.2,.82,.22,1), border-radius .4s ease, opacity .4s ease;
}

.app-screen.active { display: block; animation: app-open-restored .4s cubic-bezier(.2,.82,.22,1) both; }
.app-screen.opened { animation: none; }
.app-screen.dragging { border-radius: clamp(0px, calc((1 - var(--app-scale, 1)) * 160px), 38px); transition: none; }
.app-screen.closing {
  animation: none;
  transform: translate3d(var(--close-x,0), var(--close-y,0), 0) scale(var(--close-scale-x,.09), var(--close-scale-y,.09));
  border-radius: 24px;
  opacity: .2;
}

@keyframes app-open-restored {
  from {
    opacity: .35;
    transform: translate3d(var(--open-x,0),var(--open-y,0),0) scale(var(--open-scale-x,.12),var(--open-scale-y,.08));
    border-radius: 24px;
  }
  to { opacity:1; transform:translate3d(0,0,0) scale(1,1); border-radius:0; }
}

.ios-app { overflow: hidden; }
.app-content { inset: 0; }
.app-home-gesture { height: 24px; }

/* WhatsApp list */
.whatsapp-app { background:#000; }
.wa-actions {
  display:flex;
  height:52px;
  align-items:center;
  justify-content:space-between;
  padding:8px 16px 0;
  direction:ltr;
}
.wa-actions button { display:grid; width:38px; height:38px; place-items:center; border:1px solid #2f2f33; border-radius:50%; color:#fff; background:#202023; font-size:22px; }
.wa-left-actions { display:flex; gap:10px; }
.wa-left-actions button:first-child { color:#07130c; background:#20d46b; font-size:28px; }
.wa-main-title { margin:5px 16px 10px; font-size:41px; line-height:1; letter-spacing:-1.5px; }
.wa-search { height:42px; margin:0 16px 10px; background:#1d1d20; }
.wa-filters { display:flex; gap:8px; padding:0 16px 12px; overflow:hidden; white-space:nowrap; }
.wa-filters span { padding:8px 13px; border:1px solid #36363a; border-radius:21px; color:#c7c7cc; font-size:14px; }
.wa-filters .active { border-color:#0b4c38; color:#8de1b5; background:#0c3d2c; }
.wa-archive { height:45px; margin:0; padding:0 20px; border-top:.5px solid #262629; border-bottom:.5px solid #262629; color:#d0d0d4; }
.chat-list { padding-bottom:82px; }
.chat-row { width:calc(100% - 16px); min-height:72px; grid-template-columns:58px minmax(0,1fr) 58px; margin-left:0; margin-right:16px; padding:7px 0 7px 10px; }
.chat-avatar { width:52px; height:52px; }
.chat-copy strong { font-size:17px; }
.chat-copy p { font-size:14px; }
.chat-meta { display:flex; flex-direction:column; align-items:flex-end; color:#18bf6a; }
.unread-badge { min-width:22px; padding-inline:6px; color:#06130b; }
.wa-bottom-nav { left:0; right:0; bottom:0; grid-template-columns:repeat(5,1fr); height:72px; border:0; border-radius:0; background:rgba(18,18,20,.98); }
.wa-tab.active { color:#fff; background:transparent; }
.wa-tab.active > span { position:relative; }
.wa-tab.active > span::after { content:"٢٠"; position:absolute; top:-7px; right:-15px; display:grid; min-width:21px; height:18px; place-items:center; padding-inline:3px; border-radius:10px; color:#07120b; background:#21ce68; font-size:10px; }

/* WhatsApp conversation */
.conversation {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  margin:0;
  background-color:#080a0a;
  background-image:
    radial-gradient(circle at 18px 18px,transparent 0 9px,rgba(152,160,158,.08) 9.5px 10.5px,transparent 11px),
    radial-gradient(circle at 55px 59px,transparent 0 13px,rgba(152,160,158,.065) 13.5px 14.5px,transparent 15px),
    linear-gradient(35deg,transparent 46%,rgba(152,160,158,.045) 47% 49%,transparent 50%),
    linear-gradient(145deg,transparent 46%,rgba(152,160,158,.04) 47% 49%,transparent 50%);
  background-size:82px 82px,104px 104px,62px 62px,73px 73px;
}
.conversation-header { position:absolute; top:0; left:0; right:0; z-index:8; min-height:67px; grid-template-columns:92px minmax(0,1fr) 58px; padding:5px 10px; background:rgba(18,18,20,.985); }
.conversation-calls { width:88px; height:42px; border:0; background:transparent; }
.conversation-calls button { width:42px; font-size:25px; }
.conversation-person { justify-content:flex-end; gap:8px; }
.conversation-person > span:last-child { display:flex; min-width:0; flex-direction:column; text-align:right; }
.conversation-person strong { overflow:hidden; font-size:17px; text-overflow:ellipsis; white-space:nowrap; }
.conversation-person small { overflow:hidden; color:#8e8e93; font-size:12px; font-weight:450; text-overflow:ellipsis; white-space:nowrap; }
.conversation-person .chat-avatar { width:43px; height:43px; }
.conversation-back { display:flex; width:55px; gap:2px; border:0; background:transparent; font-size:34px; }
.back-count { font-size:15px; }
.message-area { position:absolute; top:67px; bottom:70px; left:0; right:0; padding:13px 9px 17px; }
.encryption-notice { width:calc(100% - 54px); margin:0 auto 14px; padding:10px 12px; border-radius:12px; color:#e3bd58; background:rgba(49,42,21,.68); font-size:12px; line-height:1.45; text-align:center; }
.day-separator { margin:8px auto 13px; padding:5px 15px; }
.bubble { max-width:86%; margin-bottom:8px; padding:8px 11px 6px; border-radius:12px; font-size:16px; line-height:1.42; }
.bubble-text { white-space:pre-wrap; }
.bubble-meta { display:flex; align-items:center; justify-content:flex-end; gap:3px; margin-top:1px; direction:ltr; }
.bubble-meta time { color:#aab1b4; font-size:10px; }
.receipts { color:#aab1b4; font-size:11px; letter-spacing:-3px; }
.receipts.read { color:#46b9e8; }
.bubble.me { background:#0d5b43; }
.bubble.them { background:#272729; }
.unread-divider { display:flex; align-items:center; gap:9px; margin:12px -9px; color:#e4e4e7; font-size:12px; }
.unread-divider::before,.unread-divider::after { content:""; flex:1; height:1px; background:#2b2b2e; }
.unread-divider span { padding:5px 11px; border-radius:12px; background:#202022; }
.missed-call-row { display:flex; width:fit-content; max-width:80%; flex-direction:column; gap:2px; margin:8px 0 8px auto; padding:8px 12px; border-radius:11px; color:#ff6159; background:#272729; font-size:13px; }
.missed-call-row time { color:#9e9ea4; font-size:10px; }
.composer { left:8px; right:8px; bottom:20px; z-index:9; grid-template-columns:42px minmax(0,1fr) 42px 42px; }
.composer-field input { height:43px; border:0; background:#252527; }
.composer-send { color:#fff!important; background:transparent!important; }

@media (max-height: 700px) {
  .lock-content { top:max(14px,env(safe-area-inset-top)); }
  .lock-time { font-size:78px; }
  .lost-copy { margin-top:5px; }
  .lock-notifications { top:194px; gap:5px; }
  .lock-notification { min-height:60px; padding-block:6px; }
  .lock-notifications .lock-notification:last-child { display:none; }
  .home-grid { top:22px; grid-template-rows:repeat(4,83px); }
  .notes-widget { top:22px; height:145px; }
  .widget-label { top:150px; }
}

@media (min-width:700px) {
  #experience { min-height:680px; }
  .home-grid { left:50%; right:auto; width:min(650px,calc(100% - 48px)); transform:translateX(-50%); grid-template-columns:repeat(4,76px); justify-content:space-between; }
  .notes-widget { right:calc(50% - 325px); width:270px; }
  .lock-notifications { width:min(660px,calc(100% - 40px)); left:50%; right:auto; transform:translateX(-50%); }
  .dock { width:min(650px,calc(100% - 40px)); left:50%; right:auto; transform:translateX(-50%); }
}
