/* ============================================================
   Vstudios — téléphone 3D interactif (page Scripts)
   Apparence : iPhone 18 Pro Max rouge titane, écran GTA 5 RP.
   ============================================================ */

/* ------------------------------------------------ carte mise en avant */
.script-featured {
  position: relative;
  border-color: rgba(255, 70, 70, 0.28);
  background:
    radial-gradient(600px 400px at 82% 34%, rgba(176, 12, 12, 0.34), transparent 70%),
    radial-gradient(420px 280px at 8% 96%, rgba(224, 16, 16, 0.18), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.008));
}
.script-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(70% 90% at 82% 42%, #000, transparent 72%);
  mask-image: radial-gradient(70% 90% at 82% 42%, #000, transparent 72%);
}
.script-featured-copy,
.script-phone {
  position: relative;
  z-index: 1;
}
.script-featured .script-tags span {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

/* ------------------------------------------------ scène 3D */
.script-phone {
  --phone-w: 248px;
  --phone-h: 538px;
  --phone-depth: 14px;
  --phone-radius: 42px;
  --phone-red: #e01010;
  --phone-red-bright: #ff3b3b;
  --phone-red-soft: #ffb3b3;
  --phone-red-deep: #7a0b0b;
  position: relative;
  display: grid;
  place-items: center;
  padding-bottom: 30px;
  perspective: 1500px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.script-phone.is-grabbing {
  cursor: grabbing;
}
.phone-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.phone-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 16, 16, 0.36), rgba(255, 59, 59, 0.12) 44%, transparent 68%);
  filter: blur(26px);
  pointer-events: none;
}
.phone-stage {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  height: var(--phone-h);
  transform-style: preserve-3d;
}
.phone-shadow {
  position: absolute;
  bottom: -24px;
  left: 50%;
  z-index: 0;
  width: 224px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24) 46%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.phone-float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: phone-float 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes phone-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(-0.35deg);
  }
  50% {
    transform: translate3d(0, -9px, 0) rotateZ(0.35deg);
  }
}
.phone-device {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--phone-rx, -3deg)) rotateY(var(--phone-ry, -11deg));
  transform-style: preserve-3d;
  will-change: transform;
}
/* La profondeur est assurée par les tranches et les deux faces.
   Pas de plaque arrière : elle passait devant la face arrière en 3D. */

/* ------------------------------------------------ tranches rouge titane */
.phone-rail {
  position: absolute;
  z-index: 0;
  display: block;
  background: linear-gradient(90deg, #1a0303 0%, #5c0c0c 24%, #d84a4a 47%, #8a1616 62%, #2a0505 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  backface-visibility: visible;
}
.phone-rail--left,
.phone-rail--right {
  top: 34px;
  width: var(--phone-depth);
  height: calc(100% - 68px);
}
.phone-rail--left {
  left: 0;
  transform-origin: left center;
  transform: translateZ(calc(var(--phone-depth) / 2)) rotateY(90deg);
  border-radius: 3px 0 0 3px;
}
.phone-rail--right {
  right: 0;
  transform-origin: right center;
  transform: translateZ(calc(var(--phone-depth) / 2)) rotateY(-90deg);
  border-radius: 0 3px 3px 0;
}
.phone-rail--top,
.phone-rail--bottom {
  left: 34px;
  width: calc(100% - 68px);
  height: var(--phone-depth);
  background: linear-gradient(180deg, #1a0303 0%, #5c0c0c 24%, #d84a4a 47%, #8a1616 62%, #2a0505 100%);
}
.phone-rail--top {
  top: 0;
  transform-origin: center top;
  transform: translateZ(calc(var(--phone-depth) / 2)) rotateX(-90deg);
  border-radius: 3px 3px 0 0;
}
.phone-rail--bottom {
  bottom: 0;
  transform-origin: center bottom;
  transform: translateZ(calc(var(--phone-depth) / 2)) rotateX(90deg);
  border-radius: 0 0 3px 3px;
}
.phone-key {
  position: absolute;
  left: -1px;
  z-index: 0;
  width: 4px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #d84a4a, #7a1010 45%, #2a0505);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35);
}
.phone-key--action {
  top: 104px;
  height: 22px;
}
.phone-key--volup {
  top: 142px;
  height: 36px;
}
.phone-key--voldown {
  top: 186px;
  height: 36px;
}
.phone-key--power {
  right: -1px;
  left: auto;
  top: 154px;
  height: 50px;
  cursor: pointer;
}
.phone-key--power::after {
  content: '';
  position: absolute;
  inset: -12px -14px;
}
.phone-key--power:focus-visible {
  outline: 2px solid #ffb3b3;
  outline-offset: 3px;
}

/* ------------------------------------------------ faces avant / arrière */
.phone-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--phone-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.phone-face > * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.phone-face--front {
  transform: translateZ(calc(var(--phone-depth) / 2));
  background: linear-gradient(155deg, #2a0808 0%, #0a0202 38%, #160404 72%, #240606 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 179, 0.22),
    inset 0 0 0 2px rgba(0, 0, 0, 0.45),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.phone-face--back {
  transform: rotateY(180deg) translateZ(calc(var(--phone-depth) / 2));
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 96, 96, 0.36), transparent 55%),
    radial-gradient(100% 70% at 100% 100%, rgba(122, 11, 11, 0.62), transparent 65%),
    linear-gradient(145deg, #a51d1d 0%, #6e1010 28%, #3d0808 62%, #220404 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 190, 190, 0.22),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.phone-face--back::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
}
.phone-face--back::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 24%, rgba(255, 255, 255, 0.13) 42%, transparent 56%),
    radial-gradient(80% 60% at 50% 100%, rgba(224, 16, 16, 0.2), transparent 70%);
  pointer-events: none;
}
.phone-back-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 78% 12%, rgba(255, 255, 255, 0.12), transparent 70%);
}

/* ------------------------------------------------ module photo arrière */
.phone-camera {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 138px;
  height: 138px;
  border-radius: 34px;
  background: linear-gradient(145deg, #8a1a1a 0%, #5a0d0d 45%, #340606 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -8px 14px rgba(0, 0, 0, 0.45),
    0 12px 22px -12px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone-lens {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #c25555;
  background:
    radial-gradient(circle at 34% 28%, #9a6f6f 0%, #3a1414 34%, #0c0202 62%, #030101 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(0, 0, 0, 0.9),
    0 4px 8px -3px rgba(0, 0, 0, 0.8);
}
.phone-lens::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(150, 190, 255, 0.5), rgba(64, 14, 14, 0.92) 46%, #060101 78%);
  box-shadow: inset 0 0 8px #000;
}
.phone-lens::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 11px;
  width: 13px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), transparent);
  transform: rotate(-25deg);
  filter: blur(0.3px);
}
.phone-lens--a {
  top: 10px;
  left: 10px;
}
.phone-lens--b {
  bottom: 10px;
  left: 10px;
}
.phone-lens--c {
  top: 46px;
  right: 10px;
}
.phone-flash {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #fff6da 0%, #ffe3a1 34%, #c99a4e 70%, #6e4d1c 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(255, 226, 160, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.35);
}
.phone-flash::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #fffdf5, #ffe8b5 70%, #d7ae61);
}
.phone-lidar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #4a2a2a 0%, #1d0808 55%, #080101 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 4px rgba(0, 0, 0, 0.9);
}
.phone-lidar::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 70, 70, 0.5), rgba(24, 3, 3, 0.92) 70%);
}
.phone-mic {
  position: absolute;
  top: 66px;
  right: 21px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0a0202;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.phone-apple {
  position: absolute;
  top: 57%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.74);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}
.phone-edition {
  position: absolute;
  top: calc(57% + 42px);
  left: 50%;
  color: rgba(255, 255, 255, 0.34);
  font-size: 5.5px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ------------------------------------------------ écran */
.phone-screen-ui {
  position: absolute;
  inset: 6px;
  overflow: hidden;
  border-radius: calc(var(--phone-radius) - 6px);
  background: #0d0202;
  color: #fff;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ios-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: saturate(1.08) contrast(1.02) brightness(1.01);
  transform: scale(1.015);
  transform-origin: 50% 42%;
}
.ios-wallpaper-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 62% at 50% 38%, transparent 38%, rgba(26, 0, 0, 0.24) 100%),
    linear-gradient(180deg, rgba(12, 1, 1, 0.4) 0%, rgba(12, 1, 1, 0.03) 21%, rgba(12, 1, 1, 0.06) 52%, rgba(12, 1, 1, 0.58) 100%);
}
.ios-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 1, 1, 0.08) 0%, rgba(14, 1, 1, 0.02) 46%, rgba(14, 1, 1, 0.34) 100%);
  pointer-events: none;
}
.phone-glare {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: var(--phone-radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 17%, transparent 37%),
    linear-gradient(300deg, rgba(255, 59, 59, 0.09), transparent 46%);
  mix-blend-mode: screen;
}

/* ------------------------------------------------ barre d'état + dynamic island */
.ios-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 15px;
  color: #fff;
}
.ios-time {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ios-island {
  position: absolute;
  top: 7px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 78px;
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.22, 0.75, 0.2, 1), height 0.35s cubic-bezier(0.22, 0.75, 0.2, 1);
}
.ios-island i {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4d6a9e, #05070d 65%);
  box-shadow: 0 0 0 1px rgba(120, 160, 220, 0.18);
}
.ios-island i:last-of-type {
  width: 4px;
  height: 4px;
  background: #0f2d1b;
  box-shadow: 0 0 5px rgba(52, 211, 153, 0.85), inset 0 0 2px #34d399;
}
.island-info {
  display: none;
  align-items: baseline;
  gap: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 5.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.island-info b {
  color: #fff;
  font-size: 7px;
  font-weight: 800;
}
.ios-island.is-expanded {
  width: 146px;
  height: 30px;
  justify-content: flex-start;
  padding: 0 9px;
}
.ios-island.is-expanded .island-info {
  display: flex;
}
.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ios-signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}
.ios-signal i {
  width: 2px;
  border-radius: 1px;
  background: #fff;
}
.ios-signal i:nth-child(1) {
  height: 3px;
}
.ios-signal i:nth-child(2) {
  height: 4.5px;
}
.ios-signal i:nth-child(3) {
  height: 6px;
}
.ios-signal i:nth-child(4) {
  height: 8px;
}
.ios-5g {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ios-battery {
  position: relative;
  width: 18px;
  height: 9px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 2.5px;
}
.ios-battery::after {
  content: '';
  position: absolute;
  top: 2.5px;
  right: -2.5px;
  width: 1.5px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.62);
}
.ios-battery i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 1px;
  background: #fff;
}

/* ------------------------------------------------ widgets */
.ios-widgets {
  position: absolute;
  top: 40px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 8px;
  height: 76px;
}
.ios-widget {
  position: relative;
  overflow: hidden;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px -12px rgba(0, 0, 0, 0.7);
}
.ios-widget--server {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 90, 90, 0.34), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}
.w-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.w-live {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #7dffb0;
}
.w-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.w-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 3px;
}
.w-count b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.w-count span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 5.5px;
}
.w-bar {
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}
.w-bar i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e01010, #ff6b6b);
}
.ios-widget--weather {
  background:
    radial-gradient(100% 90% at 80% 8%, rgba(244, 114, 182, 0.3), transparent 65%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}
.w-city {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ios-widget--weather b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.ios-widget--weather small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 5px;
}

/* ------------------------------------------------ notification */
.ios-notif {
  position: absolute;
  top: 124px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ios-notif:hover {
  background: rgba(255, 255, 255, 0.2);
}
.n-ic {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: linear-gradient(145deg, #34d399, #0b8f5a);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.n-copy {
  display: grid;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.n-copy b {
  font-size: 6.5px;
  font-weight: 800;
}
.n-copy span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 5.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.n-time {
  align-self: flex-start;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 5px;
}

/* ------------------------------------------------ applis */
.ios-apps {
  position: absolute;
  top: 166px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 10px;
  row-gap: 9px;
}
.ios-app {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ios-app em {
  max-width: 48px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 6.4px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 7px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.app-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 6px 12px -6px rgba(0, 0, 0, 0.85);
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.22s ease;
}
.ios-app:hover .app-ic,
.ios-app:focus-visible .app-ic {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.08);
}
.ios-app:active .app-ic {
  transform: scale(0.94);
}
.ios-app:focus-visible {
  outline: 2px solid rgba(255, 179, 179, 0.8);
  outline-offset: 3px;
  border-radius: 14px;
}
.app-ic svg {
  width: 21px;
  height: 21px;
}
.app-ic--msg {
  background: linear-gradient(160deg, #6ee787, #0f9d58);
}
.app-ic--phone {
  background: linear-gradient(160deg, #5ee07a, #0a8f45);
}
.app-ic--contacts {
  background: linear-gradient(160deg, #c3c8d4, #6b7280);
}
.app-ic--life {
  background: linear-gradient(160deg, #55b3ff, #0a5bd6);
}
.app-ic--news {
  background: linear-gradient(160deg, #ff7b7b, #c1121f);
}
.app-ic--garage {
  background: linear-gradient(160deg, #ffc247, #e06d00);
}
.app-ic--bank {
  background: linear-gradient(160deg, #3ddc97, #0b8f5a);
}
.app-ic--maps {
  background: linear-gradient(160deg, #7dd3fc, #0a7fd6);
}
.app-ic--jobs {
  background: linear-gradient(160deg, #ff5a5a, #a30d0d);
}
.app-ic--lspd {
  background: linear-gradient(160deg, #60a5fa, #1e40af);
}
.app-ic--tuner {
  background: linear-gradient(160deg, #fb7185, #be123c);
}
.app-ic--settings {
  background: linear-gradient(160deg, #a8b3c4, #475569);
}
.app-letter {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.06em;
  line-height: 1;
}
.app-letter--bank {
  font-size: 20px;
  letter-spacing: 0;
}
.ios-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border: 1.5px solid #241030;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

/* ------------------------------------------------ événement + recherche + pages */
.ios-event {
  position: absolute;
  top: 348px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 44px;
  padding: 0 9px;
  border: 1px solid rgba(255, 179, 179, 0.22);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(224, 16, 16, 0.3), rgba(255, 59, 59, 0.15));
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ios-event:hover {
  border-color: rgba(255, 179, 179, 0.4);
  background: linear-gradient(120deg, rgba(224, 16, 16, 0.42), rgba(255, 59, 59, 0.2));
}
.e-ic {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ff5a5a, #7a0b0b);
  color: #fff;
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.e-copy {
  display: grid;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.e-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.e-copy b {
  overflow: hidden;
  font-size: 6.6px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.e-time {
  color: #f3e8ff;
  font-size: 6px;
  font-weight: 700;
}
.ios-search {
  position: absolute;
  top: 402px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 116px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 5.8px;
  transform: translateX(-50%);
}
.ios-search svg {
  width: 8px;
  height: 8px;
}
.ios-dots {
  position: absolute;
  top: 430px;
  left: 50%;
  display: flex;
  gap: 3px;
  transform: translateX(-50%);
}
.ios-dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.ios-dots i.on {
  background: #fff;
}

/* ------------------------------------------------ dock + barre d'accueil */
.ios-dock {
  position: absolute;
  right: 10px;
  bottom: 22px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 54px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ios-dock .app-ic {
  width: 38px;
  height: 38px;
}
.ios-homebar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 30;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 179, 179, 0.82);
  transform: translateX(-50%);
  pointer-events: none;
}

/* ------------------------------------------------ applis ouvertes */
.ios-appview {
  position: absolute;
  top: 34px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(224, 16, 16, 0.16), transparent 62%),
    linear-gradient(180deg, #1c0404, #080101);
  animation: app-in 0.28s cubic-bezier(0.22, 0.75, 0.2, 1);
}
.ios-appview[hidden] {
  display: none;
}
@keyframes app-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.appview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 32px;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.appview-back {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #ffb3b3;
  cursor: pointer;
}
.appview-back svg {
  width: 10px;
  height: 10px;
}
.appview-title {
  flex: 1;
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appview-time {
  color: rgba(255, 255, 255, 0.45);
  font-size: 5.5px;
  font-weight: 700;
}
.appview-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 11px 32px;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.appview-body::-webkit-scrollbar {
  display: none;
}
.appview-toast {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 4;
  max-width: 190px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 179, 179, 0.28);
  border-radius: 999px;
  background: rgba(64, 8, 8, 0.94);
  color: #f3e8ff;
  font-size: 5.8px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.appview-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- contenu générique des applis --- */
.appv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 6px;
}
.appv-head b {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.appv-head span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 5.2px;
}
.appv-sub {
  margin: -2px 0 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 5.5px;
  line-height: 1.5;
}
.appv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 179, 179, 0.28);
  border-radius: 8px;
  background: rgba(224, 16, 16, 0.24);
  color: #f3e8ff;
  font: inherit;
  font-size: 5.8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.appv-btn:hover {
  border-color: rgba(255, 179, 179, 0.48);
  background: rgba(224, 16, 16, 0.36);
}
.appv-btn:active {
  transform: scale(0.96);
}
.appv-btn--green {
  border-color: rgba(110, 231, 135, 0.3);
  background: rgba(16, 185, 129, 0.24);
  color: #d1fae5;
}
.appv-btn--green:hover {
  background: rgba(16, 185, 129, 0.36);
}
.appv-btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}
.appv-btn.is-on {
  border-color: rgba(110, 231, 135, 0.4);
  background: rgba(16, 185, 129, 0.3);
  color: #d1fae5;
}
.appv-actions {
  display: flex;
  gap: 5px;
  margin: 7px 0;
}
.appv-empty {
  padding: 14px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 5.8px;
  text-align: center;
}

/* --- messages --- */
.convo {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-bottom: 5px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}
.convo:hover {
  background: rgba(255, 255, 255, 0.1);
}
.convo-av {
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--av, #e01010);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}
.convo-copy {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
.convo-copy b {
  font-size: 6.8px;
  font-weight: 800;
}
.convo-copy span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 5.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.convo-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  flex: 0 0 auto;
}
.convo-meta em {
  color: rgba(255, 255, 255, 0.38);
  font-size: 5px;
  font-style: normal;
}
.convo-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e01010;
  box-shadow: 0 0 5px rgba(224, 16, 16, 0.7);
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.thread-head div {
  display: grid;
  gap: 1px;
  flex: 1;
}
.thread-head b {
  font-size: 7px;
  font-weight: 800;
}
.thread-head span {
  color: #6ee7a0;
  font-size: 5.2px;
}
.thread-back {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb3b3;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.bubbles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}
.bubble {
  max-width: 82%;
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 6.2px;
  line-height: 1.45;
}
.bubble.in {
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.bubble.out {
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  background: linear-gradient(145deg, #e01010, #a30d0d);
  color: #fff;
}
.thread-form {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.thread-form input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 6px;
}
.thread-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.thread-form button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff5a5a, #a30d0d);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

/* --- lifeinvader --- */
.post {
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}
.post-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.post-head div {
  display: grid;
  gap: 0;
}
.post-head b {
  font-size: 6.5px;
  font-weight: 800;
}
.post-head span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 5px;
}
.post p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 5.9px;
  line-height: 1.55;
}
.post p b {
  color: #ffb3b3;
}
.post-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.post-actions button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 5.4px;
  font-weight: 600;
  cursor: pointer;
}
.post-actions button.is-liked {
  color: #ff6b6b;
}

/* --- maze bank --- */
.bank-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(110, 231, 135, 0.22);
  border-radius: 13px;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(110, 231, 135, 0.22), transparent 60%),
    linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(6, 40, 30, 0.6));
}
.bank-card > span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 5.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bank-balance {
  display: block;
  margin: 3px 0 1px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.bank-card small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 5px;
}
.tx-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.tx-row:last-child {
  border-bottom: 0;
}
.tx-ic {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #6ee7a0;
  font-size: 8px;
}
.tx-copy {
  display: grid;
  flex: 1;
  gap: 0;
}
.tx-copy b {
  font-size: 5.8px;
  font-weight: 700;
}
.tx-copy span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 4.8px;
}
.tx-amount {
  color: #6ee7a0;
  font-size: 6px;
  font-weight: 800;
}
.tx-amount.neg {
  color: #fca5a5;
}

/* --- garage --- */
.garage-card {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(100% 100% at 80% 0%, rgba(251, 146, 60, 0.18), transparent 65%),
    rgba(255, 255, 255, 0.055);
}
.garage-car {
  display: grid;
  place-items: center;
  height: 58px;
  margin-bottom: 4px;
  color: #ffc247;
}
.garage-car svg {
  width: 92px;
  height: 52px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}
.garage-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.garage-name b {
  font-size: 7.5px;
  font-weight: 800;
}
.garage-name span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 5px;
}
.garage-status {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 2px 0 6px;
  color: #6ee7a0;
  font-size: 5.2px;
  font-weight: 700;
}
.garage-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 5px #34d399;
}
.garage-status.is-out {
  color: #fbbf24;
}
.garage-status.is-out i {
  background: #fbbf24;
  box-shadow: 0 0 5px #fbbf24;
}

/* --- maps --- */
.map-card {
  position: relative;
  height: 150px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(120% 100% at 70% 20%, rgba(59, 130, 246, 0.18), transparent 60%),
    #0d1424;
  background-size: 18px 18px, 18px 18px, auto, auto;
}
.map-card::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 8%;
  width: 84%;
  height: 140%;
  border: 2px solid rgba(125, 211, 252, 0.18);
  border-radius: 45% 55% 40% 60%;
  transform: rotate(-12deg);
}
.map-route {
  position: absolute;
  top: 22%;
  left: 26%;
  width: 52%;
  height: 56%;
  border-right: 2px dashed rgba(255, 179, 179, 0.65);
  border-bottom: 2px dashed rgba(255, 179, 179, 0.65);
  border-radius: 0 0 30px 0;
  transform: rotate(8deg);
}
.map-pin {
  position: absolute;
  top: 64%;
  left: 63%;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e01010;
  box-shadow: 0 0 0 5px rgba(224, 16, 16, 0.18), 0 0 12px rgba(224, 16, 16, 0.8);
  transform: translate(-50%, -50%);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 179, 179, 0.4);
  border-radius: 50%;
  animation: map-pulse 2s ease-out infinite;
}
@keyframes map-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
.map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
}
.map-meta b {
  font-size: 6.8px;
  font-weight: 800;
}
.map-meta span {
  color: #ffb3b3;
  font-size: 5.6px;
  font-weight: 700;
}

/* --- téléphone --- */
.dialer {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding-top: 4px;
}
.dial-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 26px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.dial-number.is-empty {
  color: rgba(255, 255, 255, 0.28);
  font-size: 8px;
  letter-spacing: 0.02em;
}
.dialpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
}
.dialpad button {
  display: grid;
  place-items: center;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}
.dialpad button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.dialpad button small {
  display: block;
  color: rgba(255, 255, 255, 0.35);
  font-size: 3.8px;
  letter-spacing: 0.12em;
  line-height: 1;
}
.dial-call {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #4ade80, #0f9d58);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 5px 12px -4px rgba(16, 185, 129, 0.7);
}
.dial-call svg {
  width: 15px;
  height: 15px;
}

/* --- jobs / lspd / weazel / tuner --- */
.job-row,
.dispatch-row,
.news-row,
.setting-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.job-ic {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(224, 16, 16, 0.24);
  color: #ffb3b3;
  font-size: 9px;
}
.job-copy,
.dispatch-copy,
.news-copy,
.setting-copy {
  display: grid;
  flex: 1;
  gap: 0;
  min-width: 0;
}
.job-copy b,
.dispatch-copy b,
.news-copy b,
.setting-copy b {
  font-size: 6px;
  font-weight: 800;
}
.job-copy span,
.dispatch-copy span,
.news-copy span,
.setting-copy span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 4.9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-pay {
  color: #6ee7a0;
  font-size: 5.8px;
  font-weight: 800;
}
.dispatch-row {
  align-items: flex-start;
}
.dispatch-prio {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  font-size: 4.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.dispatch-prio.med {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}
.dispatch-prio.low {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}
.news-row {
  align-items: flex-start;
}
.news-thumb {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(145deg, #ff7b7b, #7f1d1d);
}
.news-thumb.alt {
  background: linear-gradient(145deg, #ff5a5a, #4a0808);
}
.news-thumb.alt2 {
  background: linear-gradient(145deg, #7dd3fc, #0c4a6e);
}
.tuner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.tuner-row div {
  display: grid;
  gap: 0;
}
.tuner-row b {
  font-size: 6px;
  font-weight: 800;
}
.tuner-row span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 4.9px;
}
.tuner-row .appv-btn {
  padding: 4px 6px;
  font-size: 5px;
}

/* --- réglages --- */
.setting-row {
  padding: 7px 6px;
}
.setting-row .switch {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s ease;
}
.setting-row .switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.setting-row .switch[aria-pressed='true'] {
  background: #e01010;
}
.setting-row .switch[aria-pressed='true']::after {
  transform: translateX(11px);
}

/* ------------------------------------------------ écran verrouillé */
.ios-lock {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(90% 60% at 50% 22%, rgba(224, 16, 16, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(24, 4, 4, 0.5), rgba(8, 1, 1, 0.82));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lock-in 0.32s ease;
  cursor: pointer;
}
.ios-lock[hidden] {
  display: none;
}
@keyframes lock-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lock-date {
  color: rgba(255, 255, 255, 0.68);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lock-time {
  margin: 1px 0 14px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.lock-notif {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.13);
}
.lock-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  color: rgba(255, 255, 255, 0.45);
  font-size: 5.4px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.lock-hint::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* ------------------------------------------------ légende sous le téléphone */
.phone-hint {
  position: absolute;
  bottom: -26px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.phone-hint svg {
  width: 11px;
  height: 11px;
  color: #ff5a5a;
}
.phone-hint.is-hidden {
  opacity: 0;
}

/* ------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .script-phone {
    margin-top: 8px;
  }
}
@media (max-width: 420px) {
  .phone-halo {
    width: 320px;
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone-float {
    animation: none;
  }
  .ios-island,
  .ios-app .app-ic,
  .ios-notif,
  .ios-event,
  .appview-toast,
  .phone-hint {
    transition: none;
  }
  .map-pin::after,
  .ios-appview,
  .ios-lock {
    animation: none;
  }
}
