/* =========================================================
   iOS 27 — Liquid Glass simulation
   Vanilla CSS · mobile + desktop · iPhone Fold ready
   Pager (Today / 3 app pages / App Library)
========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
body { user-select: none; -webkit-user-select: none; }

:root {
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;

  --bg: #0b0d12;
  --ink: #fff;
  --muted: rgba(255,255,255,.72);
  --glass-bg: rgba(255,255,255,.22);
  --glass-bg-strong: rgba(255,255,255,.34);
  --glass-stroke: rgba(255,255,255,.42);
  --glass-blur: 32px;
  --glass-saturation: 200%;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --tap: cubic-bezier(.2,.8,.2,1);
  --liquid-opacity: .60;
}

html.light {
  --bg: #eef1f6;
  --ink: #0d1117;
  --muted: rgba(0,0,0,.65);
  --glass-bg: rgba(255,255,255,.55);
  --glass-bg-strong: rgba(255,255,255,.72);
  --glass-stroke: rgba(255,255,255,.65);
}

body {
  font-family: var(--sf);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, #2b3a8f 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 100%, #5a2a8a 0%, transparent 55%),
    linear-gradient(160deg, #0a0c14 0%, #11141f 60%, #060812 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
html.light body {
  background:
    radial-gradient(1100px 700px at 80% -10%, #c7d4ff 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 110%, #ffd7eb 0%, transparent 55%),
    linear-gradient(160deg, #eaf0fb 0%, #f6f3ff 60%, #fff 100%);
}

.stage { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  width: 100vw;
  height: 100vh; 
  padding: 12px; 
  overflow: hidden; 
  box-sizing: border-box;
}

.phone[data-fold="true"] .dynamic-island {
  display: none !important;
}

/* ===== iPhone frame ===== */
.phone {
  --w: 390px; --h: 844px;
  position: relative; width: var(--w); height: var(--h);
  border-radius: 56px; padding: 14px;
  background: linear-gradient(140deg, #2a2c30 0%, #0e0f12 50%, #2a2c30 100%);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 6px #000;
  transition: width .6s var(--tap), height .6s var(--tap), border-radius .6s var(--tap);
}
.phone-key { position: absolute; background: linear-gradient(90deg, #1a1c20, #3a3d44); border-radius: 2px; }
.key-power  { right: -3px; top: 200px; width: 4px; height: 86px; }
.key-volup  { left:  -3px; top: 180px; width: 4px; height: 56px; }
.key-voldn  { left:  -3px; top: 250px; width: 4px; height: 56px; }
.key-action { left:  -3px; top: 120px; width: 4px; height: 32px; }
.phone-hinge { position: absolute; top: 14px; bottom: 14px; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.18) 30%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.18) 70%, transparent); transform: translateX(-50%); opacity: 0; pointer-events: none; z-index: 100; }

/* Fold mode */
.phone[data-fold="true"] { --w: 760px; --h: 580px; border-radius: 32px; }
.phone[data-fold="true"] .phone-hinge { opacity: 1; }
.phone[data-fold="true"] .screen { border-radius: 22px; }
.phone[data-fold="true"] .key-power { top: 100px; height: 70px; }
.phone[data-fold="true"] .key-volup { top: 90px;  height: 46px; }
.phone[data-fold="true"] .key-voldn { top: 150px; height: 46px; }

.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #000; isolation: isolate; transition: border-radius .6s var(--tap); }

/* ===== Wallpapers ===== */
.wallpaper { position: absolute; inset: 0; transition: opacity .5s ease; z-index: 0; }
.phone[data-wallpaper="aurora"] .wallpaper { background: radial-gradient(60% 50% at 30% 30%, #7e6cff 0%, transparent 60%), radial-gradient(60% 50% at 80% 70%, #28d7ff 0%, transparent 60%), radial-gradient(60% 60% at 50% 100%, #6cffb1 0%, transparent 65%), linear-gradient(170deg, #0a0f30, #050614); }
.phone[data-wallpaper="dune"]   .wallpaper { background: radial-gradient(70% 60% at 20% 20%, #ffb36c 0%, transparent 55%), radial-gradient(60% 60% at 80% 70%, #ff6cab 0%, transparent 60%), radial-gradient(60% 60% at 50% 100%, #7e6cff 0%, transparent 60%), linear-gradient(170deg, #2a1230, #160a20); }
.phone[data-wallpaper="tide"]   .wallpaper { background: radial-gradient(70% 60% at 30% 20%, #1e88ff 0%, transparent 55%), radial-gradient(70% 60% at 80% 80%, #6cffe1 0%, transparent 60%), linear-gradient(170deg, #02112e, #050a18); }
.phone[data-wallpaper="solar"]  .wallpaper { background: radial-gradient(60% 50% at 30% 25%, #fff36c 0%, transparent 55%), radial-gradient(70% 60% at 80% 75%, #ff7a3d 0%, transparent 60%), radial-gradient(60% 60% at 50% 100%, #ff3b8a 0%, transparent 60%), linear-gradient(170deg, #3a1500, #1a0810); }
.wallpaper-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.40) 100%); z-index: 1; }

/* Liquid Glass */
.glass {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.12) 48%, rgba(255,255,255,.22)),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) contrast(1.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)) contrast(1.08);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -18px 34px rgba(255,255,255,.08),
    0 12px 34px rgba(0,0,0,.24);
  color: var(--ink);
}
.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.glass::before {
  background:
    radial-gradient(140% 100% at 14% 0%, rgba(255,255,255,.62), transparent 42%),
    linear-gradient(120deg, rgba(255,255,255,.26), transparent 34%, rgba(255,255,255,.12) 72%, rgba(255,255,255,.34));
  opacity: .55;
  mix-blend-mode: screen;
}
.glass::after {
  inset: 1px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 0 22px rgba(255,255,255,.08);
}
.screen .glass {
  background:
    linear-gradient(145deg, rgba(255,255,255, calc(var(--liquid-opacity) * .52)), rgba(255,255,255, calc(var(--liquid-opacity) * .16))),
    rgba(255,255,255, calc(var(--liquid-opacity) * .30));
}
html.light .screen .glass {
  background:
    linear-gradient(145deg, rgba(255,255,255, calc(var(--liquid-opacity) * .92)), rgba(255,255,255, calc(var(--liquid-opacity) * .52))),
    rgba(255,255,255, calc(var(--liquid-opacity) * .78));
}
.glass > * { position: relative; z-index: 1; }

/* Status bar */
.status-bar { position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 55; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 0; color: #fff; font-weight: 600; font-size: 15px; pointer-events: none; }
.sb-right { display: inline-flex; gap: 6px; align-items: center; pointer-events: auto; }
.sb-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sb-signal i { width: 3px; background: #fff; border-radius: 1px; }
.sb-signal i:nth-child(1){ height: 4px; } .sb-signal i:nth-child(2){ height: 6px; } .sb-signal i:nth-child(3){ height: 8px; } .sb-signal i:nth-child(4){ height: 10px; }
.sb-carrier { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0; line-height: 1; }
.sb-battery svg { width: 26px; height: 12px; color: #fff; display: block; }
.phone[data-fold="true"] .status-bar { padding: 12px 22px 0; height: 42px; }

/* Dynamic Island */
.dynamic-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); height: 36px; background: #000; color: #fff; border-radius: 24px; z-index: 60; display: flex; align-items: center; justify-content: center; transition: width .35s var(--tap), height .35s var(--tap), border-radius .35s var(--tap); box-shadow: 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; width: 124px; cursor: pointer; }
.dynamic-island .di-content,
.dynamic-island .di-search,
.dynamic-island .di-ticket { display: none; gap: 10px; align-items: center; padding: 0 16px; width: 100%; height: 100%; }
.dynamic-island[data-mode="siri"] { width: 320px; height: 64px; border-radius: 28px; background: linear-gradient(120deg, #000 0%, #160030 50%, #001a30 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 30px rgba(120, 80, 255, .55); }
.dynamic-island[data-mode="siri"] .di-idle { display: none; }
.dynamic-island[data-mode="siri"] .di-content { display: flex; }

/* Search-or-Ask expanded pill */
.dynamic-island[data-mode="search"] {
  width: 320px; height: 50px; border-radius: 25px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 40px rgba(0,0,0,.55);
}
.dynamic-island[data-mode="search"] .di-idle { display: none; }
.dynamic-island[data-mode="search"] .di-search {
  display: flex; padding: 0 8px 0 18px;
}
.di-search .di-cursor {
  width: 2.5px; height: 18px;
  background: linear-gradient(180deg, #ff6cab, #7e6cff 50%, #28d7ff);
  border-radius: 2px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: .3; } }
.di-search .di-search-label { flex: 1; opacity: .55; font-size: 15px; }
.di-search .di-mic {
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 0; color: #fff;
  display: grid; place-items: center; cursor: pointer; opacity: .85;
}
.di-search .di-mic svg { width: 16px; height: 16px; }

/* Ticket detected layout */
.dynamic-island[data-mode="ticket"] {
  width: 280px; height: 50px; border-radius: 25px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 24px rgba(52,199,89,.35);
}
.dynamic-island[data-mode="ticket"] .di-idle { display: none; }
.dynamic-island[data-mode="ticket"] .di-ticket {
  display: flex; padding: 0 16px;
}
.di-ticket-icon svg { width: 22px; height: 22px; display: block; }
.di-ticket-text { display: flex; flex-direction: column; line-height: 1.1; }
.di-ticket-text b { font-size: 13px; font-weight: 600; }
.di-ticket-text small { font-size: 11px; opacity: .65; }

/* DI dropdown panel */
.di-dropdown {
  position: absolute;
  top: 70px; left: 50%; transform: translateX(-50%);
  width: 220px;
  padding: 6px;
  background: rgba(40,40,48,.85);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  backdrop-filter: blur(24px) saturate(200%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  z-index: 59;
  animation: ddIn .2s var(--tap);
}
@keyframes ddIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.di-dropdown button {
  display: block; width: 100%;
  padding: 12px 14px;
  background: transparent; color: #fff;
  text-align: left; border: 0; cursor: pointer;
  font-family: var(--sf); font-size: 15px; font-weight: 500;
  border-radius: 12px;
}
.di-dropdown button:hover { background: rgba(255,255,255,.08); }
.di-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.di-icon svg { width: 22px; height: 22px; }
.di-text { font-size: 14px; opacity: .92; white-space: nowrap; }
.di-wave { display: inline-flex; gap: 3px; align-items: center; margin-left: auto; }
.di-wave i { width: 3px; background: linear-gradient(180deg, #b3a8ff, #6cffe1); border-radius: 2px; animation: waveBar 1.1s ease-in-out infinite; }
.di-wave i:nth-child(1){ height: 8px;  animation-delay: -.05s; }
.di-wave i:nth-child(2){ height: 14px; animation-delay: .05s; }
.di-wave i:nth-child(3){ height: 22px; animation-delay: .15s; }
.di-wave i:nth-child(4){ height: 14px; animation-delay: .25s; }
.di-wave i:nth-child(5){ height: 8px;  animation-delay: .35s; }
@keyframes waveBar { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1.2); } }

/* ===== Lock screen ===== */
.lock-screen { position: absolute; inset: 0; z-index: 4; padding: 60px 22px 28px; display: flex; flex-direction: column; color: #fff; }
.lock-top { text-align: center; margin-top: 6px; }
.lock-date { font-size: 14px; letter-spacing: .12em; opacity: .9; margin-top: 8px; }
.lock-time { font-weight: 250; font-size: 96px; line-height: 1; letter-spacing: 0; margin: 2px 0 12px; text-shadow: 0 4px 30px rgba(0,0,0,.35); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.lock-weather { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; }
.lock-weather .lw-icon { width: 18px; height: 18px; color: #fff; }
.lock-widgets { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 12px; }
.lw-card { padding: 14px; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 4px; min-height: 96px; }
.lw-label { font-size: 10px; letter-spacing: .12em; opacity: .8; }
.lw-card strong { font-size: 14px; font-weight: 600; }
.lw-card small { font-size: 11px; opacity: .8; }
.rings { display: inline-flex; gap: 6px; margin: 4px 0; }
.rings span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid transparent; }
.rings span:nth-child(1){ border-color: #fa3d5a; border-top-color: transparent; transform: rotate(45deg); }
.rings span:nth-child(2){ border-color: #a4f000; border-top-color: transparent; transform: rotate(120deg); }
.rings span:nth-child(3){ border-color: #2cd6ff; border-top-color: transparent; transform: rotate(200deg); }
.lock-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 6px 14px; position: relative; z-index: 6; }
.lock-fab { width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); cursor: pointer; }
.lock-fab svg { width: 22px; height: 22px; }
.lock-hint { flex: 1; text-align: center; opacity: .9; }
.lock-bar { width: 130px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.9); margin: 0 auto 8px; animation: pulseBar 1.6s ease-in-out infinite; }
@keyframes pulseBar { 0%,100% { opacity:.55; transform: scaleX(.92); } 50% { opacity: 1; transform: scaleX(1); } }
.swipe-catcher { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; cursor: pointer; z-index: 1; }
/* keep the lock action buttons clickable above swipe-catcher */
.lock-fab { position: relative; z-index: 6; cursor: pointer; }

/* ===== Home screen ===== */
.home-screen { position: absolute; inset: 0; z-index: 3; padding: 56px 0 0; display: flex; flex-direction: column; }

/* Pager — horizontal scroll snap */
.pager {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pager::-webkit-scrollbar { display: none; }

.page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 18px 0;
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }

/* Home weather widget — uses bundled weather artwork as full image */
.home-weather-widget {
  display: block; padding: 0; margin: 0 0 14px;
  border-radius: 18px; overflow: hidden;
  background-image: url('assets/icons/weaather2.png');
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(7,17,42,.72);
  height: 150px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
}
.home-weather-widget .hww-left,
.home-weather-widget .hww-chart { display: none; }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 12px; padding: 6px 0 0; align-content: start; }
.phone[data-fold="true"] .page { overflow: hidden; padding: 6px 24px 0; }
.phone[data-fold="true"] .app-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
  height: 100%;
  padding: 0;
  align-content: center;
}
.phone[data-fold="true"] .app { min-width: 0; justify-content: center; }

.app { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; cursor: pointer; transition: transform .18s var(--tap); }
.app:active { transform: scale(.92); }
.app-label { font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.45); font-weight: 400; }
.icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #1c1c1e; box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; position: relative; }
.icon svg { width: 36px; height: 36px; color: #fff; }

/* ===== App icons (Apple HIG style — original artwork) ===== */
.icon-siri { background: radial-gradient(circle at 30% 30%, #fff, #b8a8ff 30%, #6a4ff5 65%, #1a0a4a 100%); }
.siri-orb { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 25% 30%, #fff, transparent 35%), conic-gradient(from 0deg, #ff6cab, #7e6cff, #28d7ff, #6cffb1, #ffd06c, #ff6cab); filter: blur(.3px); animation: orbSpin 4s linear infinite; box-shadow: 0 0 14px rgba(255,255,255,.4) inset; }
@keyframes orbSpin { to { transform: rotate(360deg); } }

.icon-photos { background: #fff; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,1fr); padding: 8px; gap: 3px; }
.icon-photos span { border-radius: 4px; }
.icon-photos span:nth-child(1){ background: #ffd54a; }
.icon-photos span:nth-child(2){ background: #ff6cab; }
.icon-photos span:nth-child(3){ background: #28d7ff; }
.icon-photos span:nth-child(4){ background: #6cffb1; }
.icon-photos span:nth-child(5){ background: #fff; border: 1px solid #eaeaea; }
.icon-photos span:nth-child(6){ background: #7e6cff; }

.icon-camera   { background: linear-gradient(180deg, #2a2a2c, #0a0a0c); }
.icon-messages { background: linear-gradient(180deg, #5af575, #1bbf45); }
.icon-weather  { background: linear-gradient(180deg, #1ea0ff, #003a8e); }
.icon-safari   { background: radial-gradient(circle at 40% 40%, #f6fbff, #cfe2ff 60%, #1e88ff 100%); }
.icon-wallet   { background: linear-gradient(180deg, #444, #111); }
.icon-calendar { background: #fff; color: #ff3b30; display: grid; place-items: center; text-align: center; position: relative; }
.icon-calendar small { position: absolute; top: 8px; left: 0; right: 0; font-size: 9px; font-weight: 700; letter-spacing: .14em; color: #ff3b30; }
.icon-calendar strong { font-size: 28px; font-weight: 300; color: #1c1c1e; margin-top: 6px; }
.icon-health   { background: #fff; }
.icon-appstore { background: linear-gradient(180deg, #cfe6ff, #79c1ff); }
.icon-shortcuts { background: linear-gradient(135deg, #ff5c93 0%, #7e6cff 50%, #28d7ff 100%); position: relative; }
.icon-shortcuts::before, .icon-shortcuts::after { content:""; position:absolute; width: 24px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.95); }
.icon-shortcuts::before { top: 14px; left: 10px; transform: rotate(-12deg); }
.icon-shortcuts::after  { bottom: 14px; right: 10px; transform: rotate(-12deg); }
.icon-settings { background: linear-gradient(180deg, #c6c8cc, #5a5d65); }
.icon-phone    { background: linear-gradient(180deg, #5af575, #1bbf45); }
.icon-music    { background: linear-gradient(135deg, #ff2d55, #ff5e85); }
.icon-mail     { background: linear-gradient(180deg, #62b8ff, #0a84ff); }
.icon-notes    { background: linear-gradient(180deg, #fff5b0, #ffd84d); }
.icon-maps     { background: linear-gradient(180deg, #d6eaff, #4ea0ff); }
.icon-clock    { background: #fff; padding: 4px; overflow: hidden; }
.icon-clock svg { width: 52px; height: 52px; }
.icon-stocks   { background: linear-gradient(180deg, #050505, #2d2d2d); }
.icon-podcasts { background: linear-gradient(180deg, #d4a3ff, #6a32c9); }
.icon-tv       { background: linear-gradient(180deg, #1c1c1e, #050505); }
.icon-files    { background: #fff; }
.icon-news     { background: #fff; }
.icon-reminders{ background: #fff; }
.icon-translate{ background: linear-gradient(180deg, #d8f3ff, #4ea0ff); }
.icon-find     { background: linear-gradient(180deg, #cfe6ff, #1e88ff); }
.icon-fitness  { background: #000; }
.icon-home     { background: linear-gradient(180deg, #ffd4a3, #ff7a3d); }
.icon-instagram{ background: linear-gradient(45deg, #ffd14a 0%, #ff7a3d 20%, #ff3b8a 45%, #c13594 65%, #5e5ce6 90%); }
.icon-fold { background: linear-gradient(135deg, #fff 0%, #d0d6e0 100%); display: grid; place-items: center; }
.icon-fold::before, .icon-fold::after { content: ""; position: absolute; width: 18px; height: 32px; border-radius: 4px; background: linear-gradient(180deg, #1c1c1e, #050608); border: 1.5px solid #2c2e33; }
.icon-fold::before { left: 12px; }
.icon-fold::after  { right: 12px; }

/* Page dots */
.page-dots { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 10px 0 6px; }
.page-dots .pd-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .2s, color .2s;
  flex: 0 0 auto;
  display: inline-block;
}
.page-dots .pd-dot.active { background: #fff; }
.page-dots .pd-dot.pd-search {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
}
.page-dots .pd-dot.pd-search svg { width: 10px; height: 10px; display: block; }
.page-dots .pd-dot.pd-search.active { background: #fff; color: #000; }

/* Dock */
.dock { margin: 6px 14px 14px; padding: 12px; border-radius: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phone[data-fold="true"] .dock {
  width: min(420px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(4, 1fr);
}
.dock-app .icon { width: 58px; height: 58px; }

/* Home indicator */
.home-indicator { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.9); z-index: 65; cursor: pointer; }
.home-indicator.light { background: rgba(255,255,255,.95); }

/* =========================================================
   TODAY VIEW — widgets
========================================================= */
.today-view { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 100px; color: #fff; }
.tw-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 14px; color: rgba(255,255,255,.7);
}
.tw-search svg { width: 16px; height: 16px; }

.tw-stack { border-radius: 22px; padding: 16px; background: rgba(255,255,255, calc(var(--liquid-opacity) * .35)); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255,255,255,.18); }

/* Weather widget */
.tw-weather { display: flex; align-items: stretch; justify-content: space-between; }
.tw-weather .wx-now b { font-size: 36px; font-weight: 300; letter-spacing: 0; }
.tw-weather .wx-now { display: flex; flex-direction: column; gap: 2px; }
.tw-weather .wx-now small { font-size: 12px; opacity: .8; }
.tw-weather .wx-chart { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.tw-weather .wx-chart i { width: 6px; background: linear-gradient(180deg, #ffd14a, #ff7a3d); border-radius: 3px; opacity: .9; }

/* Calendar widget */
.tw-calendar h4 { margin: 0 0 8px; font-size: 12px; opacity: .65; letter-spacing: .1em; text-transform: uppercase; }
.tw-cal-row { display: grid; grid-template-columns: 7px 60px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.tw-cal-row:last-child { border: 0; }
.tw-cal-row .bar { width: 4px; height: 30px; border-radius: 2px; }
.tw-cal-row b { font-size: 13px; font-weight: 600; }
.tw-cal-row .ti { font-size: 11px; opacity: .7; }
.tw-cal-row .tt { font-size: 12px; opacity: .75; display: block; }

/* Music widget */
.tw-music { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.tw-music .art { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, #ff6cab, #7e6cff 60%, #28d7ff); position: relative; }
.tw-music .art::after { content: "♫"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: rgba(255,255,255,.8); }
.tw-music .info b { display: block; font-size: 14px; font-weight: 600; }
.tw-music .info small { display: block; font-size: 12px; opacity: .7; margin-bottom: 6px; }
.tw-music .prog { height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.tw-music .prog i { display: block; width: 35%; height: 100%; background: #fff; border-radius: 3px; }
.tw-music .play { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 14px; }

/* Fitness widget */
.tw-fitness { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.tw-rings { position: relative; width: 90px; height: 90px; }
.tw-rings .ring { position: absolute; inset: 0; border-radius: 50%; }
.tw-rings .ring.r1 { background: conic-gradient(#fa3d5a 0deg 270deg, rgba(255,255,255,.08) 0deg); mask: radial-gradient(circle, transparent 32px, #000 33px); -webkit-mask: radial-gradient(circle, transparent 32px, #000 33px); }
.tw-rings .ring.r2 { inset: 8px; background: conic-gradient(#a4f000 0deg 200deg, rgba(255,255,255,.08) 0deg); mask: radial-gradient(circle, transparent 24px, #000 25px); -webkit-mask: radial-gradient(circle, transparent 24px, #000 25px); }
.tw-rings .ring.r3 { inset: 16px; background: conic-gradient(#2cd6ff 0deg 150deg, rgba(255,255,255,.08) 0deg); mask: radial-gradient(circle, transparent 16px, #000 17px); -webkit-mask: radial-gradient(circle, transparent 16px, #000 17px); }
.tw-fit-info b { font-size: 13px; display: block; font-weight: 600; }
.tw-fit-info .fline { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; opacity: .8; border-bottom: 1px solid rgba(255,255,255,.08); }

/* World clock widget */
.tw-clocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.tw-clocks .city { font-size: 11px; opacity: .8; margin-bottom: 6px; }
.tw-clock-face { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); position: relative; background: rgba(255,255,255,.05); }
.tw-clock-face::before, .tw-clock-face::after { content: ""; position: absolute; top: 50%; left: 50%; background: #fff; transform-origin: 0 0; border-radius: 1px; }
.tw-clock-face::before { width: 2px; height: 18px; transform: translate(-1px, 0) rotate(var(--hour, 30deg)); }
.tw-clock-face::after { width: 1.5px; height: 22px; transform: translate(-.75px, 0) rotate(var(--min, 110deg)); }
.tw-clocks .tz { font-size: 12px; opacity: .65; }

/* Notes widget */
.tw-notes h4 { font-size: 12px; opacity: .7; margin: 0 0 8px; }
.tw-notes p { margin: 0; font-size: 13px; line-height: 1.4; opacity: .92; }

/* =========================================================
   APP LIBRARY (rightmost page)
========================================================= */
.app-library { padding-bottom: 100px; }
.al-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; color: #fff; }
.al-search input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 14px; font-family: var(--sf); }
.al-search svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); }

.al-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.al-folder {
  background: rgba(255,255,255, calc(var(--liquid-opacity) * .25));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 8px;
  cursor: pointer;
}
.al-folder h5 { margin: 0 0 6px; font-size: 11px; opacity: .8; letter-spacing: .02em; padding: 0 4px; color: #fff; font-weight: 500; }
.al-folder .mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.al-folder .mini { width: 100%; aspect-ratio: 1/1; border-radius: 10px; background: #1c1c1e; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; position: relative; display: grid; place-items: center; }
.al-folder .mini svg { width: 22px; height: 22px; color: #fff; }
.al-folder .mini-grid .mini.more { font-size: 18px; color: rgba(255,255,255,.7); }

/* Search filter list */
.al-search-results { padding-top: 6px; }
.al-search-results .row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; cursor: pointer; color: #fff; }
.al-search-results .row:hover { background: rgba(255,255,255,.06); }
.al-search-results .row .icon { width: 36px; height: 36px; border-radius: 8px; }
.al-search-results .row .icon svg { width: 22px; height: 22px; }

/* ===== Control Center ===== */
.control-center { position: absolute; inset: 0; z-index: 50; padding: 60px 14px 20px; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(36px) saturate(180%); backdrop-filter: blur(36px) saturate(180%); animation: ccIn .32s var(--tap); }
@keyframes ccIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 78px; gap: 10px; }
.cc-tile { border-radius: 22px; padding: 10px; position: relative; display: flex; color: #fff; overflow: hidden; }
.cc-conn { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; place-items: center; }
.cc-conn .cc-btn { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.cc-conn .cc-btn.active { background: #0a84ff; }
.cc-btn svg { width: 24px; height: 24px; }
.cc-music { grid-column: span 2; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.ccm-art { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #ff6cab, #7e6cff 60%, #28d7ff); }
.ccm-info strong { display: block; font-size: 13px; }
.ccm-info small { display: block; font-size: 11px; opacity: .85; }
.ccm-play { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; border: 0; cursor: pointer; }
.cc-orient, .cc-focus, .cc-flash, .cc-timer, .cc-calc, .cc-cam { display: grid; place-items: center; }
.cc-orient button, .cc-focus button, .cc-flash button, .cc-timer button, .cc-calc button, .cc-cam button { width: 100%; height: 100%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; gap: 4px; cursor: pointer; font-size: 11px; }
.cc-slider { grid-row: span 3; align-items: flex-end; justify-content: center; padding: 14px 10px; flex-direction: column; }
.cc-slider svg { width: 22px; height: 22px; z-index: 2; margin: 8px 0 0; align-self: center; }
.ccs-fill { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; opacity: .9; transition: height .15s linear; }
.cc-liquid { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cc-liquid .cc-label { font-size: 11px; opacity: .85; }
.cc-liquid input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 6px 0 2px; }
.cc-liquid input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.cc-liquid small { font-size: 10px; opacity: .75; }

/* ===== App stage ===== */
.app-stage { position: absolute; inset: 0; z-index: 40; background: #000; animation: appOpen .35s var(--tap); }
@keyframes appOpen { from { transform: scale(.6); opacity: 0; border-radius: 80px; } to { transform: none; opacity: 1; border-radius: 44px; } }
.app-frame { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #000; color: #fff; }
.app-stage[data-split="true"] .app-frame { right: 50%; }
.app-stage[data-split="true"] .app-frame-right { left: 50%; right: 0; display: block; }
.fold-seam { display: none; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.18) 30%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.18) 70%, transparent); transform: translateX(-50%); z-index: 70; pointer-events: none; }
.phone[data-fold="true"] .app-stage[data-split="true"] .fold-seam { display: block; }

.weather-app   { background: linear-gradient(180deg, #1976ff 0%, #06173e 100%); min-height: 100%; }
.siri-app      { background: #06060c; min-height: 100%; position: relative; }
.photos-app    { background: #0b0b0d; min-height: 100%; position: relative; }
.camera-app    { background: #000; min-height: 100%; position: relative; overflow: hidden; }
.safari-app    { background: #1c1c1e; min-height: 100%; position: relative; }
.wallet-app    { background: #000; min-height: 100%; }
.messages-app  { background: #000; min-height: 100%; position: relative; }
.calendar-app  { background: #0b0b0d; min-height: 100%; }
.settings-app  { background: #000; min-height: 100%; }
.simple-app    { background: #0b0b0d; min-height: 100%; }
.maps-app      { background: #0b0b0d; min-height: 100%; position: relative; display: flex; flex-direction: column; }

/* Toast */
.toast { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); padding: 10px 16px; font-size: 13px; color: #fff; border-radius: 999px; z-index: 80; pointer-events: none; animation: toastIn .25s var(--tap); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* App bars */
.app-bar { position: sticky; top: 0; z-index: 5; padding: 56px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.app-bar h2 { font-size: 28px; letter-spacing: 0; margin: 0; font-weight: 700; }
.app-bar .ab-actions { display: flex; gap: 8px; }
.app-bar .ab-actions button { background: rgba(120,120,128,.32); color: #fff; border: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; font-family: var(--sf); font-weight: 500; }
.app-body { padding: 6px 18px 100px; }
.section-title { font-size: 13px; opacity: .55; margin: 20px 4px 8px; letter-spacing: .02em; text-transform: uppercase; font-weight: 500; }
.list { background: rgba(28,28,30,.7); border-radius: 12px; overflow: hidden; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.list .row:last-child { border-bottom: 0; }
.list .row .ri { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: #0a84ff; color: #fff; font-size: 13px; }
.list .row .rt { flex: 1; font-size: 14px; }
.list .row .rv { color: rgba(255,255,255,.55); font-size: 13px; }

/* =========================================================
   SIRI APP — redesigned (Search or Ask + past conversations)
========================================================= */
.siri-app .app-bar { background: rgba(6,6,12,.55); }

.siri-search {
  margin: 6px 18px 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.92);
  cursor: text;
  position: relative;
}
.siri-search .ss-glyph {
  width: 3px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #7e6cff, #28d7ff);
  animation: pulseBar 1.2s ease-in-out infinite;
}
.siri-search input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-family: var(--sf); font-size: 15px; }
.siri-search .mic { background: transparent; border: 0; color: #fff; cursor: pointer; }
.siri-search .mic svg { width: 18px; height: 18px; }

.siri-providers {
  margin: 0 18px 12px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(40,40,48,.85);
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  display: none;
}
.siri-providers.open { display: block; }
.siri-providers button { display: block; width: 100%; padding: 12px 14px; background: transparent; color: #fff; text-align: left; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; cursor: pointer; font-family: var(--sf); font-weight: 500; }
.siri-providers button:last-child { border-bottom: 0; }

.siri-past-title { padding: 14px 22px 8px; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.siri-cards { padding: 0 14px 100px; columns: 2; column-gap: 10px; }
.sc-card {
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(32,32,38,.85);
  border: 1px solid rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-family: var(--sf);
}
.sc-card .sc-when { font-size: 11px; opacity: .55; }
.sc-card h6 { margin: 4px 0 6px; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.sc-card p { margin: 0; font-size: 12px; line-height: 1.4; opacity: .85; }

.sc-fab {
  position: absolute; right: 18px; bottom: 28px;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, #c4c4cc);
  color: #1c1c1e; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}
.sc-fab.search-fab { left: 18px; right: auto; }
.sc-fab svg { width: 22px; height: 22px; }

/* Siri chat detail */
.siri-chat { padding: 6px 18px 100px; }
.siri-chat-back { background: rgba(120,120,128,.32); color: #fff; border: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; font-family: var(--sf); margin: 0 18px; }
.sc-q { display: flex; justify-content: flex-end; padding: 12px 0 16px; }
.sc-q span { background: rgba(255,255,255,.14); padding: 10px 16px; border-radius: 20px; border-bottom-right-radius: 6px; font-size: 14px; max-width: 80%; color: #fff; border: 1px solid rgba(255,255,255,.08); }
.sc-a { padding: 12px 4px; color: #fff; font-size: 14px; line-height: 1.4; }
.sc-a b { font-weight: 600; }
.sc-source { font-size: 11px; opacity: .6; margin: 6px 0 14px; }
.sc-hero-image { margin: 8px 0; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #28d7ff, #7e6cff); min-height: 140px; color: #fff; display: flex; align-items: flex-end; font-weight: 600; }
.sc-hero-image.park   { background: radial-gradient(circle at 50% 40%, #94e3a3 0%, #2c8a47 35%, #1a4a2c 100%); }
.sc-hero-image.golden { background: linear-gradient(180deg, #ffd14a 0%, #ff7a3d 60%, #aa3e1c 100%); }
.sc-hero-image.tokyo  { background: linear-gradient(180deg, #ff3b8a 0%, #5e5ce6 100%); }
.sc-hero-image.amalfi { background: linear-gradient(180deg, #28d7ff 0%, #1e88ff 60%, #ffd14a 100%); }

.siri-composer {
  position: absolute; left: 14px; right: 14px; bottom: 28px;
  display: flex; gap: 8px; align-items: center;
  padding: 8px 6px 8px 14px;
  background: rgba(28,28,32,.85);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.siri-composer .sc-attach { background: transparent; border: 0; color: rgba(255,255,255,.65); cursor: pointer; padding: 2px 6px; }
.siri-composer input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 15px; outline: none; font-family: var(--sf); }
.siri-composer .ask-pill { background: linear-gradient(90deg, transparent, #ff6cab 25%, #7e6cff 50%, #28d7ff 75%, transparent); padding: 1px; border-radius: 999px; }
.siri-composer .ask-pill input { padding: 8px 14px; background: #1c1c1e; border-radius: 999px; min-width: 160px; }
.siri-composer .mic-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; }
.siri-composer .mic-btn svg { width: 18px; height: 18px; }

/* =========================================================
   PHOTOS
========================================================= */
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.photos-grid .ph { aspect-ratio: 1/1; cursor: pointer; position: relative; background-size: cover; background-position: center; }
.ph.placeholder.p1 { background: linear-gradient(135deg, #ff7a3d, #ff3b8a); }
.ph.placeholder.p2 { background: linear-gradient(135deg, #28d7ff, #7e6cff); }
.ph.placeholder.p3 { background: linear-gradient(135deg, #6cffb1, #1e88ff); }
.ph.placeholder.p4 { background: linear-gradient(135deg, #ffd14a, #ff7a3d); }
.ph.placeholder.p5 { background: linear-gradient(135deg, #5e5ce6, #28d7ff); }
.ph.placeholder.p6 { background: linear-gradient(135deg, #ff3b8a, #7e6cff); }
.ph.placeholder.p7 { background: linear-gradient(135deg, #1e88ff, #050614); }
.ph.placeholder.p8 { background: linear-gradient(135deg, #6cffe1, #2cd6ff); }
.ph.placeholder.p9 { background: linear-gradient(135deg, #ffb36c, #ff6cab); }

.photo-detail { display: flex; flex-direction: column; }
.pd-image { height: 360px; background-size: cover; background-position: center; position: relative; }
.pd-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 16px; }
.pd-tool { border-radius: 14px; padding: 14px 10px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.1); cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 12px; font-family: var(--sf); }
.pd-tool svg { width: 22px; height: 22px; }
.pd-tool b { font-size: 12px; font-weight: 600; }
.pd-tool small { opacity:.7; font-size: 10px; text-align: center; }
.pd-bottombar { display: flex; gap: 18px; justify-content: center; padding: 12px 0 100px; color: rgba(255,255,255,.6); font-size: 11px; }
.pd-bottombar div { display: grid; place-items: center; gap: 2px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.pd-bottombar div.active { color: #ffd14a; background: rgba(255,255,255,.04); }
.pd-bottombar svg { width: 18px; height: 18px; }
.pd-result { margin: 8px 16px 24px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(126,108,255,.25), rgba(40,215,255,.15)); border: 1px solid rgba(126,108,255,.4); font-size: 13px; color: #fff; }
.pd-result b { display: block; margin-bottom: 4px; font-weight: 600; }

/* =========================================================
   CAMERA
========================================================= */
.viewfinder { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, #2d2d3a 0%, transparent 60%), linear-gradient(180deg, #0a0a10, #000 70%); }
.viewfinder.photo { background-image: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.3)), radial-gradient(60% 50% at 50% 40%, #5a8c3d 0%, transparent 60%), linear-gradient(180deg, #1a2615, #0a0f08); }
.vf-grid { position: absolute; inset: 80px 18px 220px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.vf-grid::before, .vf-grid::after, .vf-grid > i, .vf-grid > i + i { content: ""; position: absolute; background: rgba(255,255,255,.1); }
.vf-grid::before { top: 33.3%; left: 0; right: 0; height: 1px; }
.vf-grid::after  { top: 66.6%; left: 0; right: 0; height: 1px; }
.vf-grid > i     { left: 33.3%; top: 0; bottom: 0; width: 1px; }
.vf-grid > i + i { left: 66.6%; }
.vf-scan { position: absolute; left: 30%; right: 30%; top: 38%; height: 36%; border: 2px solid #ffd14a; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); animation: scanPulse 1.6s ease-in-out infinite; }
@keyframes scanPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.02); opacity: 1; } }
.vf-scan-label { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.cam-modes { position: absolute; bottom: 110px; left: 0; right: 0; display: flex; gap: 18px; justify-content: center; color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.cam-modes .mode { cursor: pointer; padding: 4px 10px; border-radius: 999px; }
.cam-modes .mode.active { color: #ffd14a; background: rgba(255,255,255,.04); }
.cam-widgets { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 8px; border-radius: 999px; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.08); }
.cam-widgets button { background: transparent; color: #fff; border: 0; padding: 6px; cursor: pointer; opacity: .8; display: grid; place-items: center; }
.cam-widgets button svg { width: 18px; height: 18px; }
.cam-widgets button.on { opacity: 1; color: #ffd14a; }
.cam-edit-btn { position: absolute; top: 60px; right: 14px; background: rgba(0,0,0,.45); color: #fff; border: 0; border-radius: 999px; padding: 6px 10px; font-size: 11px; cursor: pointer; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.cam-shutter-row { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.cam-thumb { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #ff7a3d, #ff3b8a); background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.4); cursor: pointer; }
.cam-shutter { width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 4px solid rgba(255,255,255,.4); cursor: pointer; }
.cam-flip { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.cam-flip svg { width: 22px; height: 22px; }
.cam-siri-overlay { position: absolute; inset: 0; pointer-events: none; }
.cam-siri-actions { position: absolute; left: 0; right: 0; bottom: 200px; display: flex; justify-content: center; gap: 32px; align-items: center; pointer-events: auto; }
.cam-siri-actions .siri-btn { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.cam-siri-actions .siri-btn.center {
  width: 78px; height: 78px;
  background: rgba(60,60,72,.45);
  background-image: url('assets/icons/siri2.png');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.cam-siri-actions .siri-btn.center svg { display: none; }
.cam-siri-actions .siri-btn svg { width: 22px; height: 22px; }
.cam-siri-actions .siri-btn.center svg { width: 36px; height: 36px; }
.cam-siri-pill { position: absolute; left: 18px; right: 18px; top: 60px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(20,20,28,.8); color: #fff; font-size: 14px; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,.1); pointer-events: auto; }
.cam-siri-pill .glyph { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #7e6cff, #28d7ff); }
.cam-siri-pill svg { width: 20px; height: 20px; margin-left: auto; opacity: .8; }
/* Yellow QR-style detection pill */
.cam-detect-pill {
  position: absolute; left: 50%; bottom: 200px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffd60a;
  color: #000;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  font-family: var(--sf); font-weight: 600; font-size: 14px;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: toastIn .3s var(--tap);
  cursor: pointer;
  z-index: 30;
}
.cam-detect-pill .pill-icon {
  width: 20px; height: 20px; display: grid; place-items: center;
  color: #000;
}
.cam-detect-pill .pill-icon svg { width: 18px; height: 18px; }
.cam-detect-pill .pill-text { padding-right: 4px; }
.cam-detect-pill .pill-close {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.0);
  border: 0; color: #000; cursor: pointer;
  margin-left: 2px;
}
.cam-detect-pill .pill-close svg { width: 14px; height: 14px; }

.cam-result { position: absolute; left: 14px; right: 14px; bottom: 200px; padding: 12px 14px; background: rgba(20,20,24,.85); color: #fff; border-radius: 14px; font-size: 12px; border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); animation: toastIn .3s var(--tap); }
.cam-result b { display:block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.cam-result .nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.cam-result .nutri span { background: rgba(255,255,255,.08); padding: 6px; border-radius: 8px; text-align: center; }
.cam-result .nutri b { display:block; font-size: 11px; margin: 0; opacity:.75; }

/* =========================================================
   WEATHER
========================================================= */
.weather-app .app-bar { background: transparent; }
.wx-hero { text-align: center; padding: 16px 0 8px; color: #fff; }
.wx-place { font-size: 28px; font-weight: 600; letter-spacing: 0; }
.wx-temp { font-size: 88px; font-weight: 200; line-height: 1; margin-top: 4px; letter-spacing: 0; }
.wx-cond { opacity: .9; font-size: 14px; margin: 4px 0; }
.wx-hilo { opacity: .8; font-size: 14px; }
.wx-conditions { margin: 16px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.wx-conditions h3 { font-size: 12px; letter-spacing: .14em; margin: 0 0 10px; opacity: .9; text-transform: uppercase; font-weight: 600; }
.wx-cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx-cell { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.10); display: flex; flex-direction: column; gap: 2px; }
.wx-cell span { font-size: 11px; opacity: .8; }
.wx-cell b { font-size: 18px; font-weight: 500; }
.wx-cell small { opacity: .75; font-size: 11px; }
.wx-hour { display: flex; gap: 14px; padding: 6px 16px 0; overflow-x: auto; color: #fff; }
.wx-hour div { text-align: center; font-size: 12px; min-width: 44px; }
.wx-hour b { font-size: 16px; font-weight: 500; display: block; margin-top: 2px; }
.wx-hour i { display:block; width: 20px; height: 20px; margin: 6px auto; border-radius: 50%; background: linear-gradient(135deg,#ffd14a,#ff7a3d); }
.wx-city-picker { padding: 0 18px; }
.wx-city-picker button { background: rgba(255,255,255,.16); color: #fff; border: 0; padding: 6px 14px; border-radius: 999px; font-size: 12px; margin: 4px 6px 4px 0; cursor: pointer; font-family: var(--sf); }
.wx-city-picker button.active { background: #fff; color: #003a8e; }

/* =========================================================
   SAFARI
========================================================= */
.safari-url { margin: 6px 14px 8px; padding: 8px 14px; border-radius: 12px; font-size: 13px; background: rgba(120,120,128,.24); color: #fff; display: flex; gap: 8px; align-items: center; }
.safari-url input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 13px; font-family: var(--sf); }
.safari-tabs-bar { margin: 4px 14px; display: flex; gap: 8px; overflow-x: auto; }
.safari-tabs-bar button { background: rgba(120,120,128,.2); color: #fff; border: 0; padding: 6px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; white-space: nowrap; font-family: var(--sf); }
.safari-tabs-bar button.active { background: #0a84ff; }
.start-section { padding: 8px 14px; }
.start-section h3 { font-size: 11px; letter-spacing: .14em; opacity: .65; margin: 16px 4px 8px; text-transform: uppercase; font-weight: 600; }
.start-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.start-card { aspect-ratio: 1/1; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 11px; cursor: pointer; text-align: center; padding: 6px; background: rgba(120,120,128,.2); font-weight: 500; }
.start-card.apple    { background: linear-gradient(135deg, #ff6cab, #7e6cff); }
.start-card.macrum   { background: linear-gradient(135deg, #ff3b30, #ff8e3b); }
.start-card.youtube  { background: linear-gradient(135deg, #ff0000, #b30000); }
.start-card.github   { background: linear-gradient(135deg, #444, #111); }
.start-card.figma    { background: linear-gradient(135deg, #f24e1e, #a259ff); }
.start-card.icloud   { background: linear-gradient(135deg, #28d7ff, #1e88ff); }
.start-card.notion   { background: linear-gradient(135deg, #fff, #ccc); color: #000; }
.start-card.linear   { background: linear-gradient(135deg, #5e6ad2, #2b3270); }
.safari-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 28px; background: rgba(28,28,30,.85); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.safari-bottom button { background: transparent; color: #fff; border: 0; padding: 6px 10px; cursor: pointer; font-family: var(--sf); }

/* =========================================================
   WALLET
========================================================= */
.pass { margin: 0 16px 14px; padding: 16px; border-radius: 18px; color: #fff; position: relative; min-height: 110px; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.6); transition: transform .2s var(--tap); }
.pass:hover { transform: translateY(-2px); }
.pass.applepay { background: linear-gradient(135deg, #1e1e22, #5b5b66); }
.pass.applepay::after { content: "Apple Pay"; position: absolute; top: 12px; right: 14px; font-weight: 600; opacity: .85; }
.pass.boarding { background: linear-gradient(135deg, #1976ff, #5e5ce6); }
.pass.coffee   { background: linear-gradient(135deg, #6f4e37, #c89568); }
.pass.event    { background: linear-gradient(135deg, #ff3b8a, #7e6cff); }
.pass small { opacity: .8; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.pass strong { display: block; font-size: 18px; margin-top: 4px; font-weight: 600; }
.pass .pass-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; opacity: .9; }
.wallet-add { margin: 16px; padding: 14px; border: 1px dashed rgba(255,255,255,.3); border-radius: 16px; text-align: center; background: rgba(255,255,255,.04); cursor: pointer; color: #fff; }
.wallet-add b { display: block; margin-bottom: 4px; font-weight: 600; }
.wallet-add small { opacity: .7; font-size: 12px; }
.pass-detail { padding: 14px; border-radius: 16px; background: rgba(28,28,32,.85); color: #fff; margin: 14px 18px; }
.pass-detail h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.pass-detail .pd-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.pass-detail .pd-row:last-child { border: 0; }
.pass-detail .qr { width: 140px; height: 140px; margin: 14px auto; background: repeating-linear-gradient(0deg, #fff 0px, #fff 4px, #000 4px, #000 8px), repeating-linear-gradient(90deg, transparent 0px, transparent 6px, rgba(0,0,0,.4) 6px, rgba(0,0,0,.4) 10px); border-radius: 8px; }

/* =========================================================
   MESSAGES
========================================================= */
.mx-list .row { padding: 14px; }
.mx-list .ri { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #7e6cff, #28d7ff); font-weight: 600; }
.mx-list .ri.c2 { background: linear-gradient(135deg, #ff6cab, #ffd14a); }
.mx-list .ri.c3 { background: linear-gradient(135deg, #6cffb1, #1e88ff); }
.mx-list .ri.c4 { background: linear-gradient(135deg, #ff7a3d, #ff3b30); }
.mx-list .ri.c5 { background: linear-gradient(135deg, #5e5ce6, #af52de); }
.mx-list .ri.c6 { background: linear-gradient(135deg, #34c759, #28d7ff); }
.mx-list .rt b { display:block; font-size: 15px; font-weight: 600; }
.mx-list .rt small { color: rgba(255,255,255,.5); font-size: 13px; }
.mx-list .rv { font-size: 11px; color: rgba(255,255,255,.5); }

.autodelete-card { margin: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(126,108,255,.25), rgba(40,215,255,.18)); border: 1px solid rgba(126,108,255,.4); font-size: 13px; color: #fff; }
.autodelete-card b { display: block; margin-bottom: 6px; font-weight: 600; }
.autodelete-card .seg { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 8px; }
.autodelete-card .seg button { border: 0; background: rgba(255,255,255,.1); color: #fff; padding: 8px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: var(--sf); }
.autodelete-card .seg button.active { background: #0a84ff; }

/* Chat detail view */
.chat-detail { display: flex; flex-direction: column; min-height: 100%; }
.chat-header { display: flex; flex-direction: column; align-items: center; padding: 50px 14px 12px; border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.chat-header .back { position: absolute; left: 14px; top: 50px; color: #0a84ff; background: transparent; border: 0; font-size: 16px; cursor: pointer; font-family: var(--sf); }
.chat-header .info-btn { position: absolute; right: 14px; top: 50px; color: #0a84ff; background: transparent; border: 0; font-size: 16px; cursor: pointer; font-family: var(--sf); }
.chat-header .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px; }
.chat-header b { font-size: 12px; margin-top: 4px; opacity: .9; }
.chat-header b svg { width: 10px; height: 10px; vertical-align: middle; opacity: .6; }
.chat-body { flex: 1; padding: 16px 14px 100px; display: flex; flex-direction: column; gap: 4px; }
.chat-day { text-align: center; font-size: 11px; color: rgba(255,255,255,.5); margin: 16px 0 4px; font-weight: 600; }
.chat-bubble { max-width: 76%; padding: 8px 14px; border-radius: 18px; font-size: 14px; line-height: 1.35; word-wrap: break-word; }
.chat-bubble.from-them { align-self: flex-start; background: rgba(120,120,128,.32); color: #fff; border-bottom-left-radius: 6px; }
.chat-bubble.from-me   { align-self: flex-end; background: linear-gradient(135deg, #0a84ff, #5e5ce6); color: #fff; border-bottom-right-radius: 6px; }
.chat-bubble + .chat-bubble.from-them { border-top-left-radius: 8px; }
.chat-bubble + .chat-bubble.from-me { border-top-right-radius: 8px; }
.chat-input-row { position: absolute; left: 12px; right: 12px; bottom: 28px; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; background: rgba(28,28,32,.85); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.chat-input-row input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 14px; outline: none; font-family: var(--sf); }
.chat-input-row .send-btn { width: 32px; height: 32px; border-radius: 50%; background: #0a84ff; color: #fff; border: 0; cursor: pointer; }
.chat-input-row .send-btn:disabled { background: rgba(120,120,128,.32); cursor: default; }
.chat-input-row .plus { background: transparent; border: 0; color: #0a84ff; font-size: 18px; cursor: pointer; }

/* =========================================================
   CALENDAR
========================================================= */
.cal-month { padding: 0 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-grid .d { aspect-ratio: 1/1; display: grid; place-items: center; font-size: 13px; color: #fff; border-radius: 50%; cursor: pointer; transition: background .15s; }
.cal-grid .d:hover { background: rgba(255,255,255,.08); }
.cal-grid .d.head { color: rgba(255,255,255,.5); font-size: 10px; aspect-ratio: auto; font-weight: 600; cursor: default; }
.cal-grid .d.head:hover { background: transparent; }
.cal-grid .d.today { background: #ff3b30; font-weight: 700; }
.cal-grid .d.muted { opacity: .35; }
.cal-grid .d.selected { background: rgba(255,255,255,.16); font-weight: 700; }
.cal-events { padding: 8px 14px; }
.cal-event { display: grid; grid-template-columns: 4px 60px 1fr; gap: 10px; padding: 12px 12px; align-items: center; background: rgba(120,120,128,.18); border-radius: 12px; margin-bottom: 8px; color: #fff; cursor: pointer; }
.cal-event .bar { width: 4px; height: 36px; border-radius: 2px; background: #ff3b30; }
.cal-event.ai { background: linear-gradient(135deg, rgba(126,108,255,.2), rgba(40,215,255,.15)); border: 1px solid rgba(126,108,255,.4); }
.cal-event small { display: block; font-size: 11px; opacity:.7; }
.cal-event b { font-size: 14px; font-weight: 600; }

/* =========================================================
   SETTINGS
========================================================= */
.settings-app .list { background: rgba(28,28,30,.7); border: 1px solid rgba(255,255,255,.06); }
.settings-app .row .ri.r-blue { background: #0a84ff; }
.settings-app .row .ri.r-green { background: #34c759; }
.settings-app .row .ri.r-orange { background: #ff9500; }
.settings-app .row .ri.r-purple { background: #af52de; }
.settings-app .row .ri.r-red { background: #ff3b30; }
.settings-app .row .ri.r-pink { background: linear-gradient(135deg, #ff6cab, #7e6cff); }
.toggle { width: 50px; height: 30px; border-radius: 999px; background: #34c759; position: relative; cursor: pointer; }
.toggle::after { content: ""; position: absolute; left: 22px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .18s var(--tap); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.toggle.off { background: rgba(120,120,128,.4); }
.toggle.off::after { left: 2px; }
.ai-card { margin: 12px 0; border-radius: 18px; padding: 14px; background: linear-gradient(135deg, rgba(126,108,255,.25), rgba(40,215,255,.18)); border: 1px solid rgba(126,108,255,.4); color: #fff; }
.ai-card .ai-title { display: flex; align-items: center; gap: 10px; }
.ai-card .ai-title strong { font-size: 16px; font-weight: 600; }
.ai-card .ai-sub { font-size: 12px; opacity:.75; margin: 6px 0 10px; }
.ai-pick { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.ai-pick button { background: rgba(0,0,0,.3); color: #fff; border: 1px solid rgba(255,255,255,.12); padding: 10px 8px; border-radius: 12px; font-size: 12px; cursor: pointer; font-family: var(--sf); }
.ai-pick button.active { background: #0a84ff; border-color: #0a84ff; }

/* =========================================================
   MAPS (OpenStreetMap with Apple-style overlay)
========================================================= */
.maps-app { display: flex; flex-direction: column; }
.maps-iframe-wrap { position: absolute; inset: 0; overflow: hidden; }
.maps-iframe-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(.95); }
.maps-overlay { position: absolute; inset: 0; pointer-events: none; }
.maps-overlay > * { pointer-events: auto; }
.maps-search-pill {
  position: absolute; top: 56px; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(28,28,32,.7);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff; font-size: 15px;
}
.maps-search-pill svg { width: 18px; height: 18px; opacity: .65; }
.maps-search-pill input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px; font-family: var(--sf); }
.maps-search-pill input::placeholder { color: rgba(255,255,255,.55); }
.maps-search-pill button { background: transparent; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: 4px; display: grid; place-items: center; }
.maps-fab-stack { position: absolute; right: 14px; top: 120px; display: flex; flex-direction: column; gap: 8px; }
.maps-fab {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(28,28,32,.75);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.maps-fab svg { width: 22px; height: 22px; }
.maps-bottom-card {
  position: absolute; left: 14px; right: 14px; bottom: 28px;
  padding: 14px 16px;
  background: rgba(28,28,32,.85);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: #fff;
}
.mbc-handle { width: 36px; height: 4px; background: rgba(255,255,255,.32); border-radius: 99px; margin: -4px auto 10px; }
.mbc-row { display: flex; align-items: center; gap: 12px; }
.mbc-marker { width: 36px; height: 36px; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(255,59,48,.5); }
.mbc-marker::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mbc-info { flex: 1; }
.mbc-info b { display: block; font-size: 16px; font-weight: 600; }
.mbc-info small { display: block; font-size: 12px; opacity: .65; }
.mbc-go { background: #0a84ff; color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--sf); }

/* Instagram (fake login) */
.instagram-app {
  min-height: 100%;
  background: linear-gradient(180deg, #000 0%, #060606 100%);
  color: #fff; padding: 0; display: flex; flex-direction: column;
}
.ig-status-spacer { height: 64px; }
.ig-logo {
  text-align: center; margin: 24px 0 36px;
  font-family: var(--sf); font-weight: 700; font-size: 44px; letter-spacing: 0;
  background: linear-gradient(45deg, #ffd14a 0%, #ff7a3d 20%, #ff3b8a 45%, #c13594 65%, #5e5ce6 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ig-form { padding: 0 32px; display: grid; gap: 12px; }
.ig-input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; padding: 14px 14px;
  border-radius: 8px; font-size: 14px;
  font-family: var(--sf); outline: none;
}
.ig-input:focus { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.ig-btn {
  background: #0a84ff; color: #fff; border: 0;
  padding: 12px; border-radius: 8px; font-size: 14px;
  font-family: var(--sf); font-weight: 600; cursor: pointer;
  margin-top: 4px;
}
.ig-btn:disabled { opacity: .55; cursor: default; }
.ig-forgot { text-align: center; color: #fff; font-size: 12px; opacity: .85; margin-top: 14px; cursor: pointer; }
.ig-forgot b { font-weight: 600; }
.ig-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 32px;
  color: rgba(255,255,255,.4); font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.ig-divider::before, .ig-divider::after {
  content:""; flex: 1; height: 1px; background: rgba(255,255,255,.12);
}
.ig-fb { margin: 0 32px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #0a84ff; font-size: 13px; font-weight: 600; cursor: pointer; }
.ig-fb svg { width: 16px; height: 16px; }
.ig-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.ig-bottom b { color: #fff; font-weight: 600; cursor: pointer; }

/* Simple empty app */
.empty { padding: 80px 24px; text-align: center; opacity: .7; color: #fff; }
.empty .e-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(126,108,255,.4), rgba(40,215,255,.3)); font-size: 38px; }
.empty .e-icon svg { width: 44px; height: 44px; color: #fff; }
.empty h3 { margin: 4px 0; font-size: 18px; font-weight: 600; }
.empty p { font-size: 13px; }

/* Wallpaper picker (Settings) */
.wp { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.wp[data-set-wp="aurora"] { background: linear-gradient(135deg, #7e6cff, #28d7ff 60%, #6cffb1); }
.wp[data-set-wp="dune"]   { background: linear-gradient(135deg, #ffb36c, #ff6cab 60%, #7e6cff); }
.wp[data-set-wp="tide"]   { background: linear-gradient(135deg, #0a2a5e, #1e88ff 60%, #6cffe1); }
.wp[data-set-wp="solar"]  { background: linear-gradient(135deg, #fff36c, #ff7a3d 60%, #ff3b8a); }
.wp.active { border-color: #0a84ff; }

/* Theme segmented in Settings */
.segmented { display: inline-flex; background: rgba(120,120,128,.32); border-radius: 9px; padding: 2px; }
.segmented button { background: transparent; border: 0; color: #fff; padding: 6px 14px; font-size: 13px; cursor: pointer; border-radius: 7px; font-family: var(--sf); font-weight: 500; }
.segmented button.active { background: rgba(255,255,255,.18); }

/* Camera video viewfinder */
.viewfinder video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Clock app */
.clock-app { background: #000; min-height: 100%; color: #fff; position: relative; }
.clock-tabs { position: absolute; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 28px; background: rgba(20,20,24,.85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,.06); }
.clock-tabs button { background: transparent; color: rgba(255,255,255,.7); border: 0; padding: 6px; cursor: pointer; font-size: 11px; display: grid; place-items: center; gap: 2px; font-family: var(--sf); }
.clock-tabs button.active { color: #ff9500; }
.clock-tabs svg { width: 24px; height: 24px; }
.clock-list { padding: 6px 18px 100px; }
.clock-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.clock-row:last-child { border-bottom: 0; }
.clock-row .city-name { font-size: 16px; font-weight: 500; }
.clock-row .city-tz { font-size: 11px; opacity: .55; }
.clock-row .city-time { font-size: 42px; font-weight: 200; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.clock-row .city-period { font-size: 14px; opacity: .6; margin-left: 4px; }
.clock-face {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  position: relative;
  background: rgba(255,255,255,.04);
}
.clock-face::before, .clock-face::after, .clock-face .sec {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform-origin: 0 0;
  border-radius: 1px;
  background: #fff;
}
.clock-face::before {
  /* hour hand */
  width: 2.5px; height: 18px;
  transform: translate(-1.25px, 0) rotate(var(--h, 0deg));
}
.clock-face::after {
  /* minute hand */
  width: 1.5px; height: 26px;
  transform: translate(-.75px, 0) rotate(var(--m, 0deg));
}
.clock-face .sec {
  display: block; width: 1px; height: 28px;
  background: #ff9500;
  transform: translate(-.5px, 0) rotate(var(--s, 0deg));
}
.clock-face .pivot {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff9500;
  transform: translate(-3px, -3px);
}

/* PNG icon override */
.icon.png-icon {
  background-image: none;
  background-size: cover; background-position: center;
  padding: 0;
}
.icon.png-icon > * { display: none; }
.icon.png-icon::before, .icon.png-icon::after { display: none; }

/* SVG icon override — embedded SVG fills the tile, keeps the built-in tile color */
.icon.svg-icon { padding: 8px; }
.icon.svg-icon > svg { width: 100% !important; height: 100% !important; display: block; }
.icon.svg-icon > svg * { color: #fff; fill: currentColor; }
.icon.svg-icon::before, .icon.svg-icon::after { display: none; }
/* If user prefers a generic neutral tile when supplying SVG, opt-in: */
.icon.svg-icon.neutral { background: #1c1c1e; }

/* Responsive */
@media (max-width: 900px) {
  .stage { padding: 0; }
  .phone:not([data-fold="true"]) { --w: 100vw; --h: 100vh; width: 100vw; height: 100vh; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  .phone[data-fold="true"] { --w: 100vw; --h: min(100vh, 580px); width: var(--w); height: var(--h); border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  .phone .phone-key { display: none; }
  .phone .screen { border-radius: 0; }
  .lock-time { font-size: 84px; }
  .bottom-dock { bottom: 8px; padding: 6px 10px; }
}
@media (max-width: 420px) {
  .bd-pill { padding: 5px 10px; font-size: 11px; }
  .bd-pill span { display: none; }
}
