/* =========================================================
   iOS 27 Simülatörü — sistem katmanı (cihaz, kabuk, Liquid Glass)
   ========================================================= */
:root {
  --W: 402px; --H: 874px; --R: 62px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(1400px 900px at 50% -10%, #2b2f45 0%, #11131b 55%, #07080b 100%); color: #fff; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg.i { width: 1em; height: 1em; display: block; flex: none; }

#stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#device {
  position: relative; flex: none; padding: 13px;
  width: calc(var(--W) + 26px); height: calc(var(--H) + 26px);
  border-radius: calc(var(--R) + 13px);
  background: #030303;
  box-shadow:
    0 0 0 1.5px #1d1d1f,
    0 0 0 4px #5f5d5a,
    0 0 0 5.5px #a9a6a0,
    0 0 0 7px #3b3a38,
    0 50px 100px rgba(0,0,0,.55), 0 20px 40px rgba(0,0,0,.4);
  transform-origin: center center;
}
.hw { position: absolute; width: 5px; border-radius: 2px; background: linear-gradient(90deg, #6d6b67, #b9b5ae 50%, #6d6b67); z-index: -1; }
.hw:active { filter: brightness(.8); }
.hw-action { left: -10px; top: 160px; height: 34px; }
.hw-volup { left: -10px; top: 225px; height: 62px; }
.hw-voldown { left: -10px; top: 300px; height: 62px; }
.hw-side { right: -10px; top: 250px; height: 102px; }
.hw-camctl { right: -8px; top: 560px; height: 72px; width: 3px; background: linear-gradient(90deg, #444, #8a8780); }
#hint { position: fixed; left: 20px; bottom: 18px; max-width: 320px; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.45); display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
#hint b { color: rgba(255,255,255,.75); font-weight: 600; font-size: 13px; margin-bottom: 3px; }
kbd { font-family: inherit; font-size: 11px; padding: 0 4px; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); }
@media (max-width: 1100px) { #hint { display: none; } }

#screen {
  position: relative; width: var(--W); height: var(--H); border-radius: var(--R); overflow: hidden;
  background: #000; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: none;
  --kb: 0px;
  --bg: #fff; --grouped: #f2f2f7; --card: #fff; --card2: #f2f2f7; --text: #000; --text2: rgba(60,60,67,.6); --text3: rgba(60,60,67,.3);
  --sep: rgba(60,60,67,.18); --fill: rgba(120,120,128,.12); --fill2: rgba(120,120,128,.2); --blue: #007aff; --green: #34c759; --red: #ff3b30;
  --orange: #ff9500; --yellow: #ffcc00; --purple: #af52de; --pink: #ff2d55; --teal: #30b0c7; --indigo: #5856d6; --gray: #8e8e93;
  --glass: rgba(255,255,255,.62); --glass-border: rgba(255,255,255,.75); --glass-shadow: rgba(0,0,0,.12);
  --bubble-them: #e9e9eb;
  color: var(--text);
}
#screen.dark {
  --bg: #000; --grouped: #000; --card: #1c1c1e; --card2: #2c2c2e; --text: #fff; --text2: rgba(235,235,245,.6); --text3: rgba(235,235,245,.3);
  --sep: rgba(84,84,88,.55); --fill: rgba(120,120,128,.24); --fill2: rgba(120,120,128,.32); --blue: #0a84ff; --green: #30d158; --red: #ff453a;
  --orange: #ff9f0a; --yellow: #ffd60a; --purple: #bf5af2; --pink: #ff375f; --teal: #40c8e0; --indigo: #5e5ce6;
  --glass: rgba(44,44,48,.6); --glass-border: rgba(255,255,255,.14); --glass-shadow: rgba(0,0,0,.45);
  --bubble-them: #26262a;
}
#screen.bold { font-weight: 500; }
body.fullscreen #device { padding: 0; border-radius: 0; box-shadow: none; width: 100vw; height: 100dvh; background: #000; }
body.fullscreen #screen { width: 100vw; height: 100dvh; border-radius: 0; }
body.fullscreen .hw, body.fullscreen #hint { display: none; }

/* ---------- Liquid Glass ---------- */
.glass {
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 0 .5px rgba(255,255,255,.22), 0 8px 30px rgba(0,0,0,.16);
}
.glass-dark {
  background: rgba(30,30,32,.38);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 .5px rgba(255,255,255,.12), 0 8px 30px rgba(0,0,0,.25);
}
.gl {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--glass-border), inset 0 0 0 .5px var(--glass-border), 0 4px 18px var(--glass-shadow);
}

/* ---------- Duvar kağıtları ---------- */
#wallpaper { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: filter .5s, transform .5s; }
.wp-0 { background:
  radial-gradient(60% 45% at 18% 22%, rgba(110,200,255,.95) 0%, rgba(110,200,255,0) 70%),
  radial-gradient(55% 40% at 85% 38%, rgba(160,110,255,.9) 0%, rgba(160,110,255,0) 70%),
  radial-gradient(70% 45% at 40% 78%, rgba(255,120,170,.75) 0%, rgba(255,120,170,0) 70%),
  radial-gradient(60% 40% at 90% 95%, rgba(255,170,90,.8) 0%, rgba(255,170,90,0) 70%),
  linear-gradient(165deg, #0a1a52 0%, #1d2f8f 40%, #3d1e7a 75%, #1a0e3a 100%); }
.wp-1 { background:
  radial-gradient(70% 50% at 50% 100%, #ffb36b 0%, rgba(255,179,107,0) 70%),
  radial-gradient(70% 50% at 20% 60%, #ff5e7e 0%, rgba(255,94,126,0) 70%),
  radial-gradient(60% 40% at 80% 30%, #9b5cff 0%, rgba(155,92,255,0) 70%),
  linear-gradient(180deg, #2a0b3d 0%, #6a1f5c 45%, #d9465f 80%, #ffa45c 100%); }
.wp-2 { background:
  radial-gradient(80% 40% at 30% 30%, rgba(80,255,190,.75) 0%, rgba(80,255,190,0) 70%),
  radial-gradient(70% 40% at 80% 50%, rgba(60,170,255,.7) 0%, rgba(60,170,255,0) 70%),
  radial-gradient(70% 40% at 40% 80%, rgba(140,90,255,.6) 0%, rgba(140,90,255,0) 70%),
  linear-gradient(180deg, #021a1a 0%, #053a3a 40%, #0b1d3d 100%); }
.wp-3 { background:
  radial-gradient(70% 40% at 50% 15%, rgba(120,120,130,.45) 0%, rgba(120,120,130,0) 70%),
  radial-gradient(70% 50% at 50% 90%, rgba(70,70,80,.6) 0%, rgba(70,70,80,0) 70%),
  linear-gradient(180deg, #0a0a0c 0%, #1b1b20 50%, #050506 100%); }
.wp-4 { background:
  radial-gradient(60% 40% at 20% 20%, #ffd3e8 0%, rgba(255,211,232,0) 70%),
  radial-gradient(60% 45% at 85% 45%, #c7d8ff 0%, rgba(199,216,255,0) 70%),
  radial-gradient(70% 45% at 30% 85%, #ffe7b8 0%, rgba(255,231,184,0) 70%),
  linear-gradient(180deg, #f4d9ff 0%, #d6e4ff 50%, #ffe3d0 100%); }
.wp-5 { background:
  radial-gradient(50% 35% at 70% 25%, rgba(255,220,120,.9) 0%, rgba(255,220,120,0) 70%),
  linear-gradient(180deg, #0f3b7a 0%, #2f78c4 45%, #9cc9ef 70%, #f2d7a6 100%); }

/* ---------- Durum çubuğu ---------- */
#statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 60; display: flex; align-items: center; justify-content: space-between; pointer-events: none; color: #fff; transition: color .35s, opacity .3s; }
#statusbar.dark { color: #000; }
#statusbar .sb-left { width: 138px; padding: 5px 0 0 12px; text-align: center; font-weight: 600; font-size: 17px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
#statusbar .sb-right { display: flex; gap: 6px; align-items: center; padding: 5px 30px 0 0; }
#statusbar .sb-right svg { display: block; }
.sb-5g { font-size: 14px; font-weight: 600; }
.sb-batt { position: relative; display: flex; align-items: center; }
.sb-batt b { position: absolute; left: 0; width: 25px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: -.3px; line-height: 13px; top: 0; }
#statusbar.hide-time .sb-time { opacity: 0; }
#statusbar.hidden { opacity: 0; }
.sb-loc { width: 12px; height: 12px; margin-left: 4px; display: inline-block; vertical-align: -1px; }

/* ---------- Dynamic Island ---------- */
#island {
  position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; z-index: 90;
  transition: width .55s cubic-bezier(.3,1.3,.45,1), height .55s cubic-bezier(.3,1.3,.45,1), margin-left .55s cubic-bezier(.3,1.3,.45,1), border-radius .5s, top .5s;
  overflow: hidden; color: #fff; cursor: default; box-shadow: 0 0 0 .5px rgba(255,255,255,.04);
}
#island .is-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; opacity: 0; animation: isIn .35s .12s forwards; }
@keyframes isIn { to { opacity: 1; } }
#island.compact { cursor: pointer; }
.is-left, .is-right { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.is-green { color: #30d158; } .is-orange { color: #ff9f0a; } .is-red { color: #ff453a; }
.is-art { width: 22px; height: 22px; border-radius: 6px; }
.is-eq { display: flex; gap: 2px; align-items: center; height: 16px; }
.is-eq i { width: 3px; border-radius: 2px; background: #ff375f; animation: eq 0.9s ease-in-out infinite; }
.is-eq i:nth-child(2) { animation-delay: -.3s; } .is-eq i:nth-child(3) { animation-delay: -.6s; } .is-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 15px; } }
.is-faceid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; color: #fff; }
.is-faceid svg { stroke-width: 1.4; }
.is-faceid.scan svg { animation: fidScan 1s ease-in-out; }
@keyframes fidScan { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.05); } 100% { transform: scale(1); } }
.is-faceid.ok { color: #30d158; }
.is-call-x { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 16px; }
.is-call-x .avatar { flex: none; }
.is-call-x .meta { flex: 1; min-width: 0; }
.is-call-x .meta small { display: block; color: rgba(255,255,255,.6); font-size: 13px; }
.is-call-x .meta b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-call-x .cbtn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; }
.is-silent { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; width: 100%; font-size: 14px; font-weight: 600; }
.is-silent .bell { width: 30px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; }

/* ---------- Bölgeler ---------- */
.zone { position: absolute; top: 0; height: 46px; z-index: 75; }
#zone-nc { left: 0; width: 62%; }
#zone-cc { right: 0; width: 38%; }
#zone-home { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 95; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; touch-action: none; }
#home-bar { width: 140px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.95); transition: background .3s, opacity .3s; pointer-events: none; }
#zone-home.dark #home-bar { background: rgba(0,0,0,.85); }
#zone-home.off { pointer-events: none; }
#zone-home.off #home-bar { opacity: 0; }

/* ---------- Açılış ---------- */
#boot { position: absolute; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .6s; }
#boot.hidden { opacity: 0; pointer-events: none; }
#boot .apple-logo { width: 88px; height: 88px; color: #fff; opacity: 0; transform: translateY(-6px); transition: opacity .6s ease; }
#boot.show-logo .apple-logo { opacity: 1; }
#boot .boot-off { position: absolute; bottom: 70px; font-size: 13px; color: rgba(255,255,255,.35); text-align: center; line-height: 1.6; }

/* ---------- Ekran kapalı / AOD / parlaklık ---------- */
#aod { position: absolute; inset: 0; z-index: 150; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; }
#aod.on { opacity: 1; pointer-events: auto; }
#aod.on.aod { opacity: .72; }
#dim { position: absolute; inset: 0; z-index: 140; background: #000; opacity: 0; pointer-events: none; }
#dim.night { background: #ff9a3c; mix-blend-mode: multiply; }

/* ---------- Kilit ekranı ---------- */
#lock { position: absolute; inset: 0; z-index: 50; color: #fff; overflow: hidden; }
#lock.hidden { display: none; }
#lock .lock-wall { position: absolute; inset: 0; }
#lock .lock-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.lock-pad { margin-top: 60px; font-size: 19px; height: 22px; opacity: .95; transition: transform .4s; }
.lock-pad svg { width: 19px; height: 22px; }
.lock-pad.open { animation: padOpen .5s; }
@keyframes padOpen { 40% { transform: translateY(-3px) scale(1.12); } }
.lock-date { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.2px; text-shadow: 0 1px 8px rgba(0,0,0,.15); display: flex; gap: 8px; align-items: center; opacity: .92; }
.lock-time {
  font-family: var(--round); font-weight: 700; font-size: 112px; line-height: 1; letter-spacing: -4px; margin-top: 0; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.78));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.18));
}
.lock-widgets { display: flex; gap: 12px; margin-top: 8px; }
.lw { width: 72px; height: 72px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; gap: 2px; }
.lw b { font-size: 21px; font-weight: 700; }
.lw small { font-size: 10px; opacity: .8; font-weight: 600; }
.lock-notifs { position: absolute; left: 12px; right: 12px; bottom: 120px; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: hidden; justify-content: flex-end; }
.lock-media { position: absolute; left: 12px; right: 12px; top: 330px; border-radius: 28px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lock-media .lm-top { display: flex; gap: 12px; align-items: center; }
.lock-media .lm-art { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.lock-media .lm-meta b { display: block; font-size: 15px; } .lock-media .lm-meta small { font-size: 14px; opacity: .7; }
.lock-media .lm-ctrl { display: flex; justify-content: center; gap: 46px; font-size: 26px; }
.lock-bottom { position: absolute; left: 46px; right: 46px; bottom: 52px; display: flex; justify-content: space-between; }
.lock-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: #fff; transition: transform .2s, background .2s; }
.lock-btn:active { transform: scale(1.15); }
.lock-btn.on { background: #fff; color: #000; }
.lock-hint { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .3s; }
.lock-hint.show { opacity: .75; }

/* parola */
.passcode { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 110px; opacity: 0; pointer-events: none; transition: opacity .35s; -webkit-backdrop-filter: blur(30px) brightness(.7); backdrop-filter: blur(30px) brightness(.7); }
.passcode.show { opacity: 1; pointer-events: auto; }
.passcode .pc-lock { font-size: 22px; margin-bottom: 18px; }
.passcode h3 { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.pc-dots { display: flex; gap: 22px; margin-bottom: 52px; }
.pc-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.3px solid #fff; transition: background .1s; }
.pc-dots i.f { background: #fff; }
.pc-dots.shake { animation: shake .45s; }
@keyframes shake { 15%,55% { transform: translateX(-14px); } 35%,75% { transform: translateX(14px); } 90% { transform: translateX(-4px); } }
.pc-pad { display: grid; grid-template-columns: repeat(3, 80px); gap: 16px 26px; }
.pc-key { width: 80px; height: 80px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: background .25s; }
.pc-key:active { background: rgba(255,255,255,.55); transition: none; }
.pc-key b { font-size: 36px; font-weight: 400; line-height: 1; }
.pc-key small { font-size: 10px; font-weight: 600; letter-spacing: 2px; margin-top: 2px; }
.pc-foot { position: absolute; bottom: 48px; left: 50px; right: 50px; display: flex; justify-content: space-between; font-size: 16px; }

/* ---------- Ana ekran ---------- */
#home { position: absolute; inset: 0; z-index: 2; padding-top: 70px; transform-origin: 50% 50%; }
#home.away { opacity: 0; transform: scale(1.12); pointer-events: none; }
#home.blurred { filter: blur(22px) brightness(.72); transform: scale(1.04); pointer-events: none; }
#home.edit .app-icon .icon { animation: jiggle .28s infinite alternate; }
#home.edit .app-icon:nth-child(odd) .icon { animation-delay: -.14s; }
@keyframes jiggle { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
.home-pages { position: absolute; inset: 70px 0 0 0; display: flex; transition: transform .45s cubic-bezier(.32,.72,0,1); }
.home-page { flex: none; width: 100%; }
.home-grid { display: grid; grid-template-columns: repeat(4, 64px); grid-auto-rows: 84px; justify-content: space-between; row-gap: 22px; padding: 4px 30px 0; }
.app-icon { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; position: relative; }
.icon { width: 64px; height: 64px; border-radius: 15px; overflow: hidden; position: relative; flex: none; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.icon svg { width: 100%; height: 100%; display: block; }
.icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1.2px 1px rgba(255,255,255,.6), inset 0 -1px 1px rgba(0,0,0,.08), inset 0 0 0 .5px rgba(255,255,255,.18);
  background: linear-gradient(155deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,0) 38%); }
.app-icon:active .icon { filter: brightness(.72); }
.app-icon .label { font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); max-width: 82px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.1px; font-weight: 500; }
.badge { position: absolute; top: -6px; right: -7px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #ff3b30; color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); z-index: 2; }
.widget { grid-column: span 2; grid-row: span 2; height: 170px; border-radius: 24px; padding: 15px 16px; position: relative; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.widget-label { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.widget-wrap { grid-column: span 2; grid-row: span 2; position: relative; }
.wg-weather { background: linear-gradient(180deg, #2a7fd9, #5aaaf0); color: #fff; }
.wg-weather.night { background: linear-gradient(180deg, #0d1736, #2b3c6d); }
.wg-weather.cloudy { background: linear-gradient(180deg, #4f6377, #8396ab); }
.wg-weather .w-city { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.wg-weather .w-city svg { width: 10px; height: 10px; }
.wg-weather .w-temp { font-size: 46px; font-weight: 300; line-height: 1.05; letter-spacing: -1px; }
.wg-weather .w-icon { margin-top: auto; width: 22px; height: 22px; }
.wg-weather .w-desc { font-size: 14px; font-weight: 600; }
.wg-weather .w-hl { font-size: 14px; font-weight: 500; opacity: .9; }
.wg-cal { background: #fff; color: #000; }
.wg-cal .c-day { color: #ff3b30; font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.wg-cal .c-num { font-size: 40px; font-weight: 400; line-height: 1.05; letter-spacing: -1px; }
.wg-cal .c-ev { margin-top: auto; border-left: 3.5px solid #ff9500; padding-left: 7px; font-size: 13px; line-height: 1.3; }
.wg-cal .c-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-cal .c-ev span { color: rgba(60,60,67,.6); }
.wg-cal .c-none { margin-top: auto; font-size: 13px; color: rgba(60,60,67,.6); font-weight: 500; }
#screen.dark .wg-cal { background: #1c1c1e; color: #fff; }
#screen.dark .wg-cal .c-ev span, #screen.dark .wg-cal .c-none { color: rgba(235,235,245,.6); }
.home-search { position: absolute; left: 50%; bottom: 124px; transform: translateX(-50%); height: 32px; padding: 0 14px; border-radius: 16px; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; }
.home-search svg { width: 12px; height: 12px; stroke-width: 3; }
.home-dots { position: absolute; left: 0; right: 0; bottom: 132px; display: flex; justify-content: center; gap: 8px; }
.dock { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 96px; border-radius: 40px; display: flex; align-items: center; justify-content: space-around; padding: 0 12px; }
.dock .app-icon .label { display: none; }
.home-done { position: absolute; top: 58px; right: 20px; z-index: 5; padding: 6px 14px; border-radius: 16px; font-size: 15px; font-weight: 600; color: #fff; display: none; }
#home.edit .home-done { display: block; }

/* ---------- Uygulama görünümleri ---------- */
#apps { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.app-view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; display: none; pointer-events: auto; transform-origin: 0 0; contain: layout paint; }
.app-view.visible { display: block; }
.app-view.in-switcher { border-radius: 60px; box-shadow: 0 20px 60px rgba(0,0,0,.4); transition: transform .42s cubic-bezier(.25,.9,.3,1), opacity .3s; }
.app-view.in-switcher > * { pointer-events: none !important; }
.app-view.dragging { border-radius: 60px; transition: none; }
.app-ghost { position: absolute; z-index: 11; pointer-events: none; transform-origin: 0 0; }
#screen.kb-open .app-view.visible:not(.in-switcher) { height: calc(100% - var(--kb) + 26px); }

/* ---------- Uygulama değiştirici ---------- */
#switcher { position: absolute; inset: 0; z-index: 30; display: none; }
#switcher.open { display: block; }
.sw-label { position: absolute; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; pointer-events: none; transition: transform .42s cubic-bezier(.25,.9,.3,1), opacity .3s; transform-origin: 0 0; }
.sw-label .icon { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.sw-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 16px; }

/* ---------- Arama (Spotlight) ---------- */
#spotlight { position: absolute; inset: 0; z-index: 45; display: none; color: #fff; -webkit-backdrop-filter: blur(34px) brightness(.62) saturate(1.3); backdrop-filter: blur(34px) brightness(.62) saturate(1.3); }
#spotlight.open { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.sp-body { position: absolute; top: 60px; left: 0; right: 0; bottom: calc(var(--kb) + 74px); overflow-y: auto; padding: 0 16px 20px; touch-action: pan-y; }
.sp-title { font-size: 15px; font-weight: 600; opacity: .7; margin: 18px 6px 10px; }
.sp-apps { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 16px; justify-items: center; }
.sp-card { border-radius: 22px; overflow: hidden; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.sp-row + .sp-row { border-top: .5px solid rgba(255,255,255,.12); }
.sp-row .icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: none; }
.sp-row .avatar { width: 36px; height: 36px; }
.sp-row .sp-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.18); }
.sp-row b { font-weight: 500; font-size: 16px; display: block; }
.sp-row small { opacity: .6; font-size: 13px; }
.sp-bar { position: absolute; left: 14px; right: 14px; bottom: calc(var(--kb) + 14px); height: 50px; border-radius: 25px; display: flex; align-items: center; gap: 8px; padding: 0 16px; transition: bottom .3s; }
.sp-bar input { flex: 1; background: none; border: 0; outline: 0; font-size: 17px; color: #fff; min-width: 0; }
.sp-bar input::placeholder { color: rgba(255,255,255,.6); }
.sp-bar svg { font-size: 18px; opacity: .7; }

/* ---------- Bildirim afişleri ---------- */
#banners { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 85; pointer-events: none; }
.notif { border-radius: 26px; padding: 13px 14px; display: flex; gap: 11px; align-items: flex-start; color: var(--text); cursor: pointer; pointer-events: auto; }
.notif.on-wall { color: #fff; }
.notif .icon { width: 38px; height: 38px; border-radius: 9px; box-shadow: none; flex: none; }
.notif .n-body { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.notif .n-head { display: flex; justify-content: space-between; gap: 8px; }
.notif .n-head b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif .n-head small { font-size: 13px; opacity: .55; flex: none; }
.notif .n-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.banner { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-140%); transition: transform .55s cubic-bezier(.3,1.25,.45,1); }
.banner.in { transform: translateY(0); }
.banner.out { transform: translateY(-140%); transition: transform .35s ease-in; }
.notif.light-glass { background: rgba(250,250,252,.72); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 10px 40px rgba(0,0,0,.18), inset 0 0 0 .5px rgba(255,255,255,.7); }
#screen.dark .notif.light-glass { background: rgba(50,50,54,.72); box-shadow: 0 10px 40px rgba(0,0,0,.4), inset 0 0 0 .5px rgba(255,255,255,.12); }

/* ---------- Bildirim Merkezi ---------- */
#nc { position: absolute; inset: 0; z-index: 80; color: #fff; display: none; transform: translateY(-100%); transition: transform .45s cubic-bezier(.32,.72,0,1); }
#nc.open { transform: none; }
#nc.show { display: block; }
#nc .nc-bg { position: absolute; inset: 0; -webkit-backdrop-filter: blur(36px) brightness(.7); backdrop-filter: blur(36px) brightness(.7); background: rgba(0,0,0,.12); }
#nc .nc-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
#nc .lock-date { margin-top: 82px; }
#nc .nc-list { position: absolute; top: 300px; bottom: 100px; left: 12px; right: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; touch-action: pan-y; }
.nc-head { display: flex; justify-content: space-between; align-items: center; margin: 0 6px 4px; font-size: 20px; font-weight: 700; }
.nc-head button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.nc-empty { text-align: center; opacity: .55; font-size: 16px; margin-top: 30px; }

/* ---------- Denetim Merkezi ---------- */
#cc { position: absolute; inset: 0; z-index: 82; display: none; color: #fff; }
#cc.show { display: block; }
#cc .cc-bg { position: absolute; inset: 0; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); opacity: 0; transition: opacity .35s; }
#cc.open .cc-bg { opacity: 1; }
#cc .cc-wrap { position: absolute; left: 0; right: 0; top: 0; padding: 66px 28px 0; transform: translateY(-30px) scale(.94); opacity: 0; transform-origin: 80% 0; transition: transform .45s cubic-bezier(.3,1.2,.45,1), opacity .3s; }
#cc.open .cc-wrap { transform: none; opacity: 1; }
.cc-top { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 16px; }
.cc-top button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; }
.cc-grid { display: grid; grid-template-columns: repeat(4, 74px); grid-auto-rows: 74px; gap: 14px; justify-content: space-between; }
.cc-m { border-radius: 26px; position: relative; overflow: hidden; }
.cc-m.round { border-radius: 50%; }
.cc-2x2 { grid-column: span 2; grid-row: span 2; border-radius: 34px; }
.cc-2x1 { grid-column: span 2; border-radius: 37px; }
.cc-1x2 { grid-row: span 2; border-radius: 37px; }
.cc-conn { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 16px; gap: 14px; justify-items: center; align-items: center; }
.cc-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; color: #fff; background: rgba(255,255,255,.18); transition: background .2s, color .2s, transform .15s; }
.cc-btn:active { transform: scale(.92); }
.cc-m.cc-tile { display: grid; place-items: center; font-size: 25px; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.cc-m.cc-tile:active { transform: scale(.93); }
.cc-btn.on.c-orange, .cc-tile.on.c-orange { background: #ff9f0a; }
.cc-btn.on.c-green, .cc-tile.on.c-green { background: #30d158; }
.cc-btn.on.c-blue, .cc-tile.on.c-blue { background: #0a84ff; }
.cc-tile.on.c-white { background: #fff; color: #000; }
.cc-tile.on.c-purple { background: #5e5ce6; }
.cc-tile.on.c-red { background: #ff453a; }
.cc-tile.on.c-yellow { background: #ffd60a; color: #000; }
.cc-music { padding: 16px; display: flex; flex-direction: column; }
.cc-music .ccm-art { width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,.2); }
.cc-music .ccm-meta { margin-top: 10px; font-size: 14px; line-height: 1.25; min-height: 36px; }
.cc-music .ccm-meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-music .ccm-meta span { opacity: .6; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-music .ccm-ctrl { margin-top: auto; display: flex; justify-content: space-between; font-size: 22px; padding: 0 6px; }
.cc-slider { cursor: ns-resize; touch-action: none; }
.cc-slider .fill { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; transition: height .08s; }
.cc-slider .si { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; font-size: 25px; color: #8e8e93; mix-blend-mode: normal; }
.cc-focus { display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.cc-focus .fi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: rgba(255,255,255,.18); }
.cc-focus.on .fi { background: #5e5ce6; }
.cc-focus small { display: block; font-weight: 500; opacity: .6; font-size: 12px; }
.cc-pages { position: absolute; right: 10px; top: 50%; display: none; }

/* ---------- Ses HUD ---------- */
#volume-hud { position: absolute; left: 10px; top: 200px; width: 46px; height: 150px; border-radius: 23px; z-index: 120; overflow: hidden; background: rgba(60,60,64,.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transform: translateX(-70px) scale(.9); transition: transform .4s cubic-bezier(.3,1.3,.45,1), opacity .3s; pointer-events: none; }
#volume-hud.show { opacity: 1; transform: none; }
#volume-hud .vh-fill { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; transition: height .15s; }
#volume-hud .vh-icon { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; color: #8e8e93; font-size: 20px; }

/* ---------- Siri ---------- */
#siri { position: absolute; inset: 0; z-index: 110; display: none; pointer-events: none; }
#siri.open { display: block; pointer-events: auto; }
.siri-glow { position: absolute; inset: 0; border-radius: var(--R); pointer-events: none; padding: 10px;
  background: conic-gradient(from var(--a, 0deg), #ff5ec4, #ff9a3c, #ffd84d, #4dd7ff, #7a5cff, #ff5ec4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(9px); opacity: .95; animation: siriSpin 3s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes siriSpin { to { --a: 360deg; } }
.siri-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); }
.siri-resp { position: absolute; left: 14px; right: 14px; bottom: calc(var(--kb) + 82px); border-radius: 26px; padding: 16px 18px; color: #fff; font-size: 17px; line-height: 1.35; display: none; }
.siri-resp.show { display: block; animation: fadeUp .35s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.siri-bar { position: absolute; left: 14px; right: 14px; bottom: calc(var(--kb) + 16px); height: 52px; border-radius: 26px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px; color: #fff; }
.siri-bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; color: #fff; }
.siri-bar input::placeholder { color: rgba(255,255,255,.65); }
.siri-orb { width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(from 0deg, #ff5ec4, #ffb347, #4dd7ff, #7a5cff, #ff5ec4); animation: spin 2s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Genel katman (uyarılar, sayfalar) ---------- */
#overlay { position: absolute; inset: 0; z-index: 100; pointer-events: none; }
#overlay > * { pointer-events: auto; }

/* ---------- Klavye ---------- */
#keyboard { position: absolute; left: 0; right: 0; bottom: 0; z-index: 105; transform: translateY(105%); transition: transform .38s cubic-bezier(.32,.72,0,1); padding: 6px 4px 34px; color: #000;
  background: rgba(214,216,222,.82); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 .5px 0 rgba(255,255,255,.7); border-radius: 26px 26px 0 0; }
#keyboard.open { transform: none; }
#screen.dark #keyboard { background: rgba(44,44,46,.86); color: #fff; box-shadow: inset 0 .5px 0 rgba(255,255,255,.12); }
.kb-sugg { height: 40px; display: flex; align-items: center; margin: 0 4px 6px; font-size: 16px; }
.kb-sugg button { flex: 1; height: 34px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; position: relative; }
.kb-sugg button + button::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(0,0,0,.15); }
#screen.dark .kb-sugg button + button::before { background: rgba(255,255,255,.15); }
.kb-sugg button.q { font-weight: 400; }
.kb-rows { display: flex; flex-direction: column; gap: 11px; }
.kb-row { display: flex; gap: 5px; justify-content: center; }
.kb-row.pad { padding: 0 16px; }
.kb-key { flex: 1 1 0; height: 44px; border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(0,0,0,.22); font-size: 23px; display: grid; place-items: center; position: relative; color: inherit; min-width: 0; }
.kb-key.fn { background: rgba(255,255,255,.42); font-size: 16px; }
.kb-key.fn svg { font-size: 21px; }
.kb-key.wide { flex: 1.35 1 0; }
.kb-key.sp { flex: 5 1 0; font-size: 16px; }
.kb-key.ret { flex: 2.4 1 0; font-size: 16px; }
.kb-key.ret.primary { background: #0a84ff; color: #fff; }
.kb-key.mode { flex: 1.25 1 0; font-size: 16px; }
.kb-key.down { background: rgba(255,255,255,.55); }
.kb-key.fn.down { background: #fff; }
.kb-key.lit { background: #fff; color: #000; }
#screen.dark .kb-key { background: rgba(110,110,115,.75); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
#screen.dark .kb-key.fn { background: rgba(70,70,74,.85); }
#screen.dark .kb-key.lit { background: #fff; color: #000; }
.kb-pop { position: absolute; bottom: 30px; left: 50%; width: 56px; height: 62px; margin-left: -28px; border-radius: 12px 12px 10px 10px; background: #fff; color: #000; display: grid; place-items: center; font-size: 34px; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; z-index: 3; }
#screen.dark .kb-pop { background: #6e6e73; color: #fff; }
.kb-bottom { display: flex; justify-content: space-between; padding: 10px 22px 0; font-size: 25px; color: rgba(0,0,0,.6); }
#screen.dark .kb-bottom { color: rgba(255,255,255,.7); }
.kb-num-row .kb-key { height: 50px; flex-direction: column; font-size: 26px; }
.kb-num-row .kb-key small { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; margin-top: -4px; }
.kb-emoji { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; height: 185px; overflow-y: auto; font-size: 28px; padding: 0 6px; touch-action: pan-y; }
.kb-emoji button { height: 40px; }

/* ---------- Mobil: tam ekran izin kapısı ---------- */
#gate { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px calc(40px + env(safe-area-inset-bottom)); font-family: var(--font); }
body.gated #gate { display: flex; }
body.gated #stage { visibility: hidden; }
#gate .g-icon { width: 96px; height: 96px; border-radius: 22px; background: url(../icons/icon-192.png) center/cover; box-shadow: 0 10px 40px rgba(90,110,255,.35); margin-bottom: 26px; }
#gate h1 { font-size: 28px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.3px; }
#gate p { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.65); margin: 0 0 28px; max-width: 320px; }
#gate .g-btn { height: 56px; padding: 0 34px; border-radius: 28px; background: #0a84ff; color: #fff; font-size: 18px; font-weight: 600; box-shadow: 0 8px 26px rgba(10,132,255,.4); }
#gate .g-btn:active { transform: scale(.96); }
#gate ol { text-align: left; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.85); padding-left: 22px; margin: 0 0 18px; max-width: 320px; }
#gate ol li { margin-bottom: 10px; }
#gate ol svg { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; color: #0a84ff; }
#gate small { font-size: 13px; color: rgba(255,255,255,.4); max-width: 300px; line-height: 1.4; }
#gate .g-err { color: #ff6961; font-size: 14px; margin-top: 16px; min-height: 18px; }

/* Gerçek cihazda tam ekran */
body.fullscreen { background: #000; }
body.fullscreen #zone-home { height: 64px; }
body.ios-standalone #statusbar .sb-left, body.ios-standalone #statusbar .sb-right { visibility: hidden; }
body.ios-standalone #home-bar { opacity: 0; }
@media (max-height: 860px) {
  body.fullscreen #home { padding-top: 60px; }
  body.fullscreen .home-grid { row-gap: 12px; }
  body.fullscreen .widget { height: 160px; }
  body.fullscreen .home-search { bottom: 118px; }
}
@media (max-height: 700px) {
  body.fullscreen .home-grid { grid-auto-rows: 78px; row-gap: 6px; }
  body.fullscreen .icon { width: 58px; height: 58px; border-radius: 13px; }
  body.fullscreen .widget { height: 148px; }
  body.fullscreen .home-search { display: none; }
}
