/* =========================================================
   emrah.web — portfolyo işletim sistemi
   1. Temel  2. Duvar kağıdı  3. Açılış & kilit  4. Masaüstü
   5. Pencereler  6. Mobil  7. Uygulamalar  8. Ortak parçalar
   ========================================================= */

/* ---------- 1. Temel ---------- */
:root {
  --acc: #b8ff4d;
  --acc-ink: #101a00;
  --bg: #0a0918;
  --panel: rgba(19, 17, 42, .74);
  --panel-solid: #14122b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --tx: #f3f1ff;
  --mut: #a9a4cc;
  --dim: #77739b;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --disp: 'Unbounded', 'Manrope', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
#os[data-accent="cyan"]   { --acc: #4de8ff; --acc-ink: #00171c; }
#os[data-accent="orange"] { --acc: #ffa53d; --acc-ink: #1c0d00; }
#os[data-accent="pink"]   { --acc: #ff6fae; --acc-ink: #1f0010; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--bg); overflow: hidden; overscroll-behavior: none; }
body { font: 500 14px/1.5 var(--font); color: var(--tx); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--acc); color: var(--acc-ink); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

#os { position: fixed; inset: 0; height: 100dvh; overflow: hidden; user-select: none; }
#shell { position: absolute; inset: 0; z-index: 2; }

/* ---------- 2. Duvar kağıdı ---------- */
.wall {
  --s1: #150b3a; --s2: #5a1f7a; --s3: #e0457b; --s4: #ff9a4a;
  --sun-a: #ffe27a; --sun-b: #ff5d8f; --sun-glow: rgba(255, 120, 90, .55);
  --m1: #0d0820; --m2: #2a1150; --m3: #5b2380;
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 42%, var(--s3) 70%, var(--s4) 92%);
  transition: filter .5s;
}
#os[data-wall="midnight"] .wall {
  --s1: #03040f; --s2: #0a1238; --s3: #1b2a6b; --s4: #3b4fa8;
  --sun-a: #f4f7ff; --sun-b: #b9c6ff; --sun-glow: rgba(150, 175, 255, .4);
  --m1: #04050f; --m2: #0b1030; --m3: #17205a;
}
#os[data-wall="aurora"] .wall {
  --s1: #020c14; --s2: #06303a; --s3: #0b5a5c; --s4: #1e8f7a;
  --sun-a: #d9fff2; --sun-b: #6dffd0; --sun-glow: rgba(90, 255, 200, .35);
  --m1: #020a0f; --m2: #06222b; --m3: #0c4046;
}
#os[data-wall="ember"] .wall {
  --s1: #120408; --s2: #4a0f1c; --s3: #b8321f; --s4: #ffb347;
  --sun-a: #fff0b0; --sun-b: #ff7a2f; --sun-glow: rgba(255, 140, 50, .5);
  --m1: #0e0406; --m2: #2e0a12; --m3: #6b1a1a;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(#000 30%, transparent 72%); mask-image: linear-gradient(#000 30%, transparent 72%); }
.sun {
  position: absolute; left: 64%; bottom: 20%; width: min(34vw, 46vh); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-a), var(--sun-b));
  box-shadow: 0 0 120px 40px var(--sun-glow);
  -webkit-mask-image: linear-gradient(#000 52%, transparent 52%, transparent 55%, #000 55%, #000 63%, transparent 63%, transparent 67%, #000 67%, #000 74%, transparent 74%, transparent 79%, #000 79%, #000 85%, transparent 85%, transparent 91%, #000 91%);
          mask-image: linear-gradient(#000 52%, transparent 52%, transparent 55%, #000 55%, #000 63%, transparent 63%, transparent 67%, #000 67%, #000 74%, transparent 74%, transparent 79%, #000 79%, #000 85%, transparent 85%, transparent 91%, #000 91%);
  animation: sunrise 2.4s var(--ease) both;
}
#os[data-wall="midnight"] .sun { width: min(16vw, 22vh); left: 72%; bottom: 52%; -webkit-mask-image: none; mask-image: none; }
#os[data-wall="aurora"] .sun { display: none; }
@keyframes sunrise { from { transform: translateY(18%); opacity: 0; } }
.aurora { position: absolute; inset: -10% -10% 30%; opacity: 0; transition: opacity .6s; filter: blur(50px);
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(80, 255, 190, .55), transparent 70%),
    radial-gradient(35% 45% at 60% 30%, rgba(90, 160, 255, .5), transparent 70%),
    radial-gradient(30% 40% at 82% 50%, rgba(190, 110, 255, .45), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate; }
#os[data-wall="aurora"] .aurora { opacity: 1; }
@keyframes drift { to { transform: translate3d(-5%, 4%, 0) scale(1.12) skewX(-6deg); } }
.mnt { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.mnt .m3 { fill: var(--m3); opacity: .85; }
.mnt .m2 { fill: var(--m2); }
.mnt .m1 { fill: var(--m1); }
.haze { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(5, 4, 16, .55)), linear-gradient(transparent 70%, rgba(5, 4, 16, .6)); }
#os.is-mobile .mnt { height: 34%; }
#os.is-mobile[data-wall="sunset"] .sun, #os.is-mobile[data-wall="ember"] .sun { width: 64vw; left: 18vw; bottom: 24%; }
#os.dim .wall { filter: brightness(.55) blur(6px); }

/* ---------- 3. Açılış & kilit ---------- */
#boot { position: absolute; inset: 0; z-index: 1000; background: #05040d; display: grid; place-items: center; transition: opacity .5s; cursor: pointer; }
#boot.off { opacity: 0; pointer-events: none; }
.boot-in { width: min(420px, 84vw); display: grid; gap: 22px; justify-items: center; }
.logo-mark { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #0d0b20; border: 1px solid var(--line-2); color: var(--acc); box-shadow: 0 0 60px -10px var(--acc); animation: pop .7s var(--ease) both; }
@keyframes pop { from { transform: scale(.5) rotate(-20deg); opacity: 0; } }
.boot-name { font: 700 22px var(--disp); letter-spacing: .14em; }
.boot-name span { color: var(--acc); }
.boot-bar { width: 100%; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 3px; animation: load 1.9s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.boot-log { width: 100%; min-height: 96px; font: 400 12px/1.9 var(--mono); color: var(--dim); }
.boot-log b { color: var(--acc); font-weight: 500; }
.boot-skip { font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }

#lock { position: absolute; inset: 0; z-index: 900; display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 9vh 24px 7vh; cursor: pointer;
  background: rgba(8, 6, 22, .45); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  transition: transform .55s var(--ease), opacity .45s; }
#lock.off { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.lock-top { text-align: center; }
.lock-time { font: 700 clamp(64px, 14vw, 132px)/1 var(--disp); letter-spacing: -.02em; }
.lock-date { margin-top: 10px; font-size: clamp(15px, 2.2vw, 20px); color: rgba(255,255,255,.82); font-weight: 600; }
.lock-note { margin: 34px auto 0; max-width: 340px; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid var(--line); }
.lock-note b { display: block; font-size: 13px; }
.lock-note span { font-size: 12px; color: rgba(255,255,255,.75); }
.lock-user { display: grid; justify-items: center; gap: 12px; }
.lock-user .btn { margin-top: 6px; }
.lock-hint { font-size: 12px; color: rgba(255,255,255,.7); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }

.avatar { width: 84px; height: 84px; border-radius: 50%; padding: 3px; flex: none; background: conic-gradient(from 210deg, var(--acc), #ff5d8f, #7c4dff, var(--acc)); }
.avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #100e26; font: 700 26px var(--disp); letter-spacing: -.02em; }
.avatar.sm { width: 48px; height: 48px; padding: 2px; }
.avatar.sm span { font-size: 15px; }

/* ---------- 4. Masaüstü ---------- */
.bar { position: absolute; top: 0; left: 0; right: 0; height: 36px; z-index: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
  background: rgba(10, 8, 26, .5); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border-bottom: 1px solid var(--line); font-size: 13px; }
.bar-l, .bar-r { display: flex; align-items: center; gap: 4px; }
.bar-brand { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border-radius: 7px; font-weight: 800; letter-spacing: .02em; }
.bar-brand svg { color: var(--acc); }
.bar-brand span { color: var(--acc); }
.bar-app { padding: 0 8px; font-weight: 700; color: rgba(255,255,255,.9); }
.bar-btn, .bar-clock { height: 26px; min-width: 30px; padding: 0 8px; border-radius: 7px; display: flex; align-items: center; gap: 8px; }
.bar-brand:hover, .bar-btn:hover, .bar-clock:hover, .bar-brand.on, .bar-btn.on { background: rgba(255,255,255,.12); }
.bar-ic { display: flex; align-items: center; gap: 5px; padding: 0 6px; color: rgba(255,255,255,.85); font-size: 12px; }
.bar-clock { font-variant-numeric: tabular-nums; }
.bar-clock span { color: var(--mut); }
.bar-clock b { font-weight: 700; }

.desk { position: absolute; inset: 36px 0 0 0; }
.dicons { position: absolute; top: 18px; left: 16px; bottom: 100px; display: flex; flex-direction: column; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.dicon { width: 92px; padding: 10px 4px 8px; border-radius: 12px; display: grid; justify-items: center; gap: 7px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.7); transition: background .15s; }
.dicon:hover { background: rgba(255,255,255,.1); }
.dicon:active .aicon { transform: scale(.92); }
.dicon .aicon { --sz: 50px; }

.aicon { --sz: 46px; width: var(--sz); height: var(--sz); border-radius: calc(var(--sz) * .27); display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, var(--g1), var(--g2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -8px 14px rgba(0,0,0,.18), 0 6px 16px -6px rgba(0,0,0,.6); transition: transform .2s var(--ease); }
.aicon svg { width: 50%; height: 50%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.aicon.acc { color: var(--acc); }

.widgets { position: absolute; top: 22px; right: 22px; width: 268px; display: grid; gap: 12px; }
.widget { padding: 16px 18px; border-radius: 20px; background: rgba(14, 12, 34, .46); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.w-time { font: 700 46px/1 var(--disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.w-date { margin-top: 8px; color: var(--mut); font-weight: 600; text-transform: capitalize; }
.w-me { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
.w-me b { display: block; font-size: 15px; }
.w-me small { color: var(--mut); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.06); text-align: center; transition: background .15s; }
.stat:hover { background: rgba(255,255,255,.12); }
.stat b { display: block; font: 700 19px var(--disp); color: var(--acc); }
.stat span { font-size: 11px; color: var(--mut); }
@media (max-width: 1180px) { .widgets { display: none; } }

.dock { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 500; display: flex; align-items: flex-end; gap: 8px; padding: 9px 12px 11px; border-radius: 24px;
  background: rgba(16, 14, 38, .5); border: 1px solid var(--line-2); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6); box-shadow: 0 20px 50px -18px rgba(0,0,0,.8); }
.dock button { position: relative; display: grid; }
.dock .aicon { --sz: 48px; }
.dock button:hover .aicon { transform: translateY(-9px) scale(1.2); }
.dock button:hover + button .aicon, .dock button:has(+ button:hover) .aicon { transform: translateY(-3px) scale(1.07); }
.dock button::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--acc); opacity: 0; transition: opacity .2s, width .2s, margin .2s; }
.dock button.run::after { opacity: .55; }
.dock button.act::after { opacity: 1; width: 14px; margin-left: -7px; }
.dock .tip { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 4px 10px; border-radius: 8px; background: rgba(10, 8, 26, .92); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: .15s; }
.dock button:hover .tip { opacity: 1; transform: translateX(-50%); }
.dock-sep { width: 1px; height: 40px; background: var(--line-2); margin: 0 2px 4px; }

.menu { position: absolute; z-index: 700; min-width: 220px; padding: 6px; border-radius: 14px; background: rgba(20, 18, 44, .92); border: 1px solid var(--line-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); animation: menu .16s var(--ease); }
@keyframes menu { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--acc); color: var(--acc-ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.sysmenu { top: 42px; left: 8px; }
.cc { position: absolute; z-index: 700; top: 42px; right: 8px; width: 300px; padding: 14px; border-radius: 18px; background: rgba(20, 18, 44, .92); border: 1px solid var(--line-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); animation: menu .16s var(--ease); }

/* Ara (spotlight) */
#spot { position: absolute; inset: 0; z-index: 800; display: grid; justify-items: center; align-content: start; padding-top: 16vh; background: rgba(5, 4, 16, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.spot-box { width: min(560px, 92vw); border-radius: 18px; overflow: hidden; background: rgba(20, 18, 44, .95); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000; }
.spot-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--mut); }
.spot-in input { flex: 1; background: none; border: 0; outline: 0; font-size: 17px; color: var(--tx); user-select: text; }
.spot-in kbd, .kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--mut); }
.spot-list { max-height: 46vh; overflow: auto; padding: 6px; }
.spot-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; text-align: left; }
.spot-item .aicon { --sz: 34px; }
.spot-item b { display: block; font-size: 14px; }
.spot-item small { color: var(--mut); font-size: 12px; }
.spot-item.sel { background: rgba(255,255,255,.1); }
.spot-item.sel b { color: var(--acc); }
.spot-item > span:last-child { margin-left: auto; color: var(--dim); }
.spot-empty { padding: 26px; text-align: center; color: var(--mut); }

/* Bildirimler */
#toasts { position: absolute; z-index: 850; top: 46px; right: 12px; width: min(330px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none; }
.is-desktop #toasts { top: auto; bottom: 98px; right: 16px; }
.toast { display: flex; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 16px; background: rgba(22, 20, 48, .93); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 16px 40px -14px #000; animation: toast .4s var(--ease); transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateX(20px); }
.toast .aicon { --sz: 34px; }
.toast b { display: block; font-size: 13px; }
.toast span { font-size: 12px; color: var(--mut); }
@keyframes toast { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* ---------- 5. Pencereler ---------- */
.wins { position: absolute; inset: 0; pointer-events: none; }
.win { position: absolute; display: flex; flex-direction: column; pointer-events: auto; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2);
  backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5); box-shadow: 0 30px 70px -24px rgba(0,0,0,.9);
  animation: winIn .28s var(--ease); transition: opacity .2s, transform .25s var(--ease), box-shadow .2s, filter .2s; }
@keyframes winIn { from { opacity: 0; transform: scale(.94) translateY(16px); } }
.win:not(.focus) { filter: saturate(.8) brightness(.86); }
.win.focus { box-shadow: 0 40px 90px -24px #000, 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 40px -12px var(--acc); }
.win.min { opacity: 0; transform: translateY(40vh) scale(.5); pointer-events: none; }
.win.closing { opacity: 0; transform: scale(.94); pointer-events: none; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 86px) !important; border-radius: 0; }
.win.moving { transition: none; }
.win-bar { height: 40px; flex: none; display: flex; align-items: center; padding: 0 12px; gap: 12px; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; }
.win-bar:active { cursor: grabbing; }
.lights { display: flex; gap: 8px; }
.lights button { width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; color: rgba(0,0,0,.65); }
.lights button svg { width: 8px; height: 8px; opacity: 0; stroke-width: 3.2; }
.lights:hover svg { opacity: 1; }
.lights .l-c { background: #ff5f57; } .lights .l-m { background: #febc2e; } .lights .l-x { background: #28c840; }
.win:not(.focus) .lights button { background: rgba(255,255,255,.22); }
.win-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.88); padding-right: 55px; pointer-events: none; white-space: nowrap; overflow: hidden; }
.win-title svg { color: var(--acc); }
.win-body { flex: 1; min-height: 0; overflow: auto; border-radius: 0 0 13px 13px; container-type: inline-size; }
.rz { position: absolute; touch-action: none; }
.rz[data-d="n"], .rz[data-d="s"] { left: 10px; right: 10px; height: 7px; cursor: ns-resize; }
.rz[data-d="e"], .rz[data-d="w"] { top: 10px; bottom: 10px; width: 7px; cursor: ew-resize; }
.rz[data-d="n"] { top: -4px; } .rz[data-d="s"] { bottom: -4px; } .rz[data-d="e"] { right: -4px; } .rz[data-d="w"] { left: -4px; }
.rz[data-d="ne"], .rz[data-d="nw"], .rz[data-d="se"], .rz[data-d="sw"] { width: 14px; height: 14px; }
.rz[data-d="ne"] { top: -4px; right: -4px; cursor: nesw-resize; } .rz[data-d="sw"] { bottom: -4px; left: -4px; cursor: nesw-resize; }
.rz[data-d="nw"] { top: -4px; left: -4px; cursor: nwse-resize; } .rz[data-d="se"] { bottom: -4px; right: -4px; cursor: nwse-resize; }
.win.max .rz { display: none; }

/* ---------- 6. Mobil ---------- */
.m-status { position: absolute; top: 0; left: 0; right: 0; height: calc(38px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 20px 0; z-index: 620; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-st-r { display: flex; align-items: center; gap: 7px; }
.m-st-r .batt { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.m-home { position: absolute; inset: calc(38px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom)) 0; display: flex; flex-direction: column; padding: 10px 18px 0; transition: transform .35s var(--ease), opacity .3s, filter .3s; }
.is-app .m-home { transform: scale(.92); opacity: 0; pointer-events: none; }
.m-widget { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 24px; background: rgba(14, 12, 34, .5); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.m-widget small { color: var(--mut); font-size: 12px; text-transform: capitalize; }
.m-widget b { display: block; font-size: 17px; line-height: 1.25; }
.m-widget span span, .m-widget .role { font-size: 12px; color: rgba(255,255,255,.8); }
.m-stats { margin-top: 10px; padding: 8px; border-radius: 20px; background: rgba(14, 12, 34, .5); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.m-stats .stats { margin: 0; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 6px; margin-top: 26px; }
.m-ico { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.m-ico .aicon { --sz: 58px; }
.m-ico:active .aicon { transform: scale(.88); }
.m-dock { margin: auto 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 6px; border-radius: 30px; background: rgba(255,255,255,.13); border: 1px solid var(--line-2); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.m-dock .m-ico > span:not(.aicon) { display: none; }

.m-apps { position: absolute; inset: 0 0 calc(28px + env(safe-area-inset-bottom)) 0; pointer-events: none; z-index: 10; }
.m-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--panel-solid); opacity: 0; transform: scale(.2); border-radius: 40px; overflow: hidden; pointer-events: none; visibility: hidden;
  transition: transform .38s var(--ease), opacity .25s, border-radius .38s, visibility 0s .38s; }
.m-app.open { opacity: 1; transform: none; border-radius: 0; pointer-events: auto; visibility: visible; transition: transform .38s var(--ease), opacity .2s, border-radius .38s; }
.m-app-bar { flex: none; display: flex; align-items: center; gap: 4px; height: calc(38px + env(safe-area-inset-top) + 50px); padding: calc(38px + env(safe-area-inset-top)) 8px 0; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); font-weight: 800; font-size: 17px; }
.m-app-bar button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.m-app-bar button:active { background: rgba(255,255,255,.12); }
.m-app-body { flex: 1; min-height: 0; overflow: auto; container-type: inline-size; -webkit-overflow-scrolling: touch; }

.m-nav { position: absolute; left: 0; right: 0; bottom: 0; height: calc(28px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 640; display: flex; justify-content: space-around; align-items: center; }
.is-app .m-nav, .is-recents .m-nav { background: #0c0a1e; }
.m-nav button { width: 84px; height: 44px; display: grid; place-items: center; border-radius: 22px; color: rgba(255,255,255,.9); }
.m-nav button:active { background: rgba(255,255,255,.14); }

.m-recents { position: absolute; inset: 0 0 calc(28px + env(safe-area-inset-bottom)) 0; z-index: 630; padding: 70px 0 20px; display: flex; flex-direction: column; background: rgba(6, 5, 18, .78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: fade .2s; }
.m-recents h2 { padding: 0 22px 14px; font-size: 20px; }
.rc-row { flex: 1; display: flex; gap: 14px; overflow-x: auto; padding: 0 22px 10px; scroll-snap-type: x mandatory; align-items: stretch; }
.rc-card { position: relative; flex: 0 0 68%; scroll-snap-align: center; border-radius: 26px; background: var(--panel-solid); border: 1px solid var(--line-2); display: grid; place-items: center; align-content: center; gap: 14px; font-weight: 800; font-size: 16px; }
.rc-card .aicon { --sz: 72px; }
.rc-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.rc-empty { flex: 1; display: grid; place-items: center; color: var(--mut); }
.rc-clear { align-self: center; }

.m-shade { position: absolute; inset: 0; z-index: 650; background: rgba(5, 4, 16, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.m-shade.open { opacity: 1; pointer-events: auto; }
.m-shade-in { padding: calc(50px + env(safe-area-inset-top)) 16px 20px; border-radius: 0 0 30px 30px; background: rgba(20, 18, 44, .96); border-bottom: 1px solid var(--line-2); transform: translateY(-100%); transition: transform .35s var(--ease); }
.m-shade.open .m-shade-in { transform: none; }
.m-shade-date { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.m-shade-date b { font: 700 30px var(--disp); }
.m-shade-date span { color: var(--mut); text-transform: capitalize; }
.m-shade-grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); margin: 16px auto 0; }
.is-mobile #toasts { top: calc(44px + env(safe-area-inset-top)); left: 12px; right: 12px; width: auto; }

/* ---------- 7. Uygulamalar ---------- */
.app { padding: 26px 28px 30px; user-select: text; }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .16em; color: var(--acc); text-transform: uppercase; }
.app h1 { font: 700 clamp(22px, 5cqw, 30px)/1.2 var(--disp); letter-spacing: -.01em; margin-top: 6px; }
.app h1 em { font-style: normal; color: var(--acc); }
.app h3 { font: 500 11px var(--mono); letter-spacing: .16em; color: var(--mut); text-transform: uppercase; margin: 26px 0 12px; }
.lead { color: var(--mut); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
button.chip:hover { border-color: var(--line-2); background: rgba(255,255,255,.12); }
button.chip.on { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); }

/* Hakkımda */
.hero { display: flex; gap: 20px; align-items: center; }
.bio { margin-top: 22px; font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.86); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.fact { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.fact svg { color: var(--acc); }
.fact small { display: block; font-size: 11px; color: var(--mut); }
.fact b { font-size: 14px; }
.rows { display: grid; gap: 8px; }
.row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: left; width: 100%; }
button.row:hover { border-color: var(--line-2); background: rgba(255,255,255,.09); }
.row .aicon { --sz: 40px; }
.row b { display: block; }
.row small { color: var(--mut); }
.row > svg:last-child { margin-left: auto; color: var(--dim); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@container (max-width: 460px) { .app { padding: 20px 18px 26px; } .hero { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* Referanslar */
.refs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.path { display: flex; align-items: center; gap: 8px; font: 400 12px var(--mono); color: var(--mut); margin-bottom: 4px; }
.path b { color: var(--tx); font-weight: 500; }
.refs-filter { margin-top: 18px; }
.refs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-top: 18px; }
.ref { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; animation: winIn .35s var(--ease) both; }
.ref:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 18px 40px -20px var(--acc); }
.ref-cover { position: relative; height: 128px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 78% 56%), hsl(calc(var(--h) + 48) 76% 30%)); }
.ref-chrome { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; background: rgba(8, 6, 22, .55); }
.ref-chrome i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.ref-chrome span { margin-left: 8px; flex: 1; height: 14px; padding: 0 8px; border-radius: 7px; background: rgba(255,255,255,.14); font: 400 9.5px/14px var(--mono); color: rgba(255,255,255,.9); overflow: hidden; white-space: nowrap; }
.ref-mono { position: absolute; right: 10px; bottom: -22px; font: 700 96px/1 var(--disp); color: rgba(255,255,255,.2); transition: transform .4s var(--ease); }
.ref:hover .ref-mono { transform: translateY(-8px) rotate(-4deg); }
.ref-sk { position: absolute; left: 14px; top: 40px; display: grid; gap: 7px; }
.ref-sk i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.55); }
.ref-sk i:nth-child(1) { width: 92px; height: 11px; background: #fff; }
.ref-sk i:nth-child(2) { width: 64px; }
.ref-sk i:nth-child(3) { width: 40px; height: 16px; border-radius: 8px; margin-top: 5px; background: rgba(8, 6, 22, .6); }
.ref-fav { position: absolute; left: 14px; bottom: 12px; width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.ref-meta { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ref-meta header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ref-meta b { font-size: 15px; }
.ref-meta p { font-size: 12.5px; color: var(--mut); line-height: 1.55; flex: 1; }
.ref-go { display: flex; align-items: center; gap: 5px; margin-top: 6px; font: 500 12px var(--mono); color: var(--acc); }

/* Yetenekler */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.sk { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.sk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sk-logo { font: 700 15px var(--mono); padding: 5px 10px; border-radius: 9px; background: hsl(var(--h) 70% 50% / .22); color: hsl(var(--h) 90% 76%); }
.sk b { display: block; margin-top: 12px; font-size: 16px; }
.sk p { font-size: 12.5px; color: var(--mut); margin-top: 3px; }

/* Sertifikalar */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.cert { position: relative; padding: 24px 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(150deg, hsl(var(--h) 60% 22% / .9), rgba(16, 14, 38, .9) 70%); }
.cert::before { content: ''; position: absolute; inset: 7px; border: 1px dashed rgba(255,255,255,.18); border-radius: 13px; pointer-events: none; }
.cert-seal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: hsl(var(--h) 75% 52%); box-shadow: 0 0 0 5px hsl(var(--h) 75% 52% / .25), 0 10px 26px -8px hsl(var(--h) 75% 52%); }
.cert small { display: block; margin-top: 18px; font: 500 11px var(--mono); letter-spacing: .14em; color: hsl(var(--h) 90% 78%); text-transform: uppercase; }
.cert b { display: block; margin-top: 4px; font: 700 19px/1.3 var(--disp); }
.cert p { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.75); }

/* Terminal */
.term { height: 100%; min-height: 300px; display: flex; flex-direction: column; padding: 14px 16px; background: rgba(6, 5, 16, .72); font: 400 13px/1.7 var(--mono); user-select: text; cursor: text; }
.term-out { flex: 1; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.term-out .cmd { color: var(--tx); } .term-out .ps, .term-in .ps { color: var(--acc); }
.term-out .o { color: #c9c5ea; } .term-out .e { color: #ff7b8f; } .term-out .a { color: var(--acc); } .term-out .d { color: var(--dim); }
.term-out a { color: #8fd0ff; text-decoration: underline; text-underline-offset: 3px; }
.term-in { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.term-in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; caret-color: var(--acc); }
.term-keys { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.term-keys button { padding: 3px 10px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 12px; color: var(--mut); }
.term-keys button:hover { color: var(--acc); border-color: var(--acc); }

/* Kod Stüdyosu */
.ide { height: 100%; min-height: 320px; display: grid; grid-template-columns: 170px 1fr; background: rgba(8, 7, 20, .7); }
.ide-tree { padding: 12px 8px; border-right: 1px solid var(--line); font-size: 12.5px; }
.ide-tree p { padding: 4px 8px 8px; font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--dim); }
.ide-tree button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--mut); text-align: left; font-family: var(--mono); font-size: 12px; }
.ide-tree button:hover { background: rgba(255,255,255,.06); }
.ide-tree button.on { background: rgba(255,255,255,.1); color: var(--tx); }
.ide-tree button i { width: 8px; height: 8px; border-radius: 2px; background: hsl(var(--h) 80% 60%); }
.ide-main { display: flex; flex-direction: column; min-width: 0; }
.ide-tab { flex: none; padding: 8px 14px; font: 400 12px var(--mono); border-bottom: 1px solid var(--line); color: var(--tx); }
.ide-code { flex: 1; overflow: auto; margin: 0; padding: 14px 0; font: 400 12.5px/1.75 var(--mono); counter-reset: ln; user-select: text; tab-size: 4; }
.ide-code div { padding: 0 16px 0 0; white-space: pre; }
.ide-code div::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: var(--dim); user-select: none; }
.ide-foot { flex: none; display: flex; gap: 16px; padding: 5px 14px; font: 400 11px var(--mono); color: var(--dim); border-top: 1px solid var(--line); }
.ide-foot span:first-child { color: var(--acc); }
.t-c { color: #6f6a94; font-style: italic; } .t-s { color: #ffc27a; } .t-n { color: #ff8fb1; } .t-k { color: #b79bff; } .t-v { color: #7fdcff; }
@container (max-width: 520px) { .ide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .ide-tree { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; } .ide-tree p { display: none; } .ide-tree button { width: auto; white-space: nowrap; } }

/* İletişim */
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--mut); font-weight: 600; }
.field input, .field textarea { padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); outline: 0; font-size: 14px; color: var(--tx); resize: vertical; user-select: text; }
.field input:focus, .field textarea:focus { border-color: var(--acc); }

/* Ayarlar & hızlı panel */
.set-label { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--mut); text-transform: uppercase; margin: 16px 0 9px; }
.set-label:first-child { margin-top: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 58px; height: 40px; border-radius: 11px; border: 2px solid transparent; outline: 1px solid var(--line-2); outline-offset: -1px; transition: transform .15s; }
.sw:hover { transform: translateY(-2px); }
.sw.on { border-color: #fff; }
.sw[data-val="sunset"] { background: linear-gradient(180deg, #2a1150, #e0457b 70%, #ff9a4a); }
.sw[data-val="midnight"] { background: linear-gradient(180deg, #03040f, #1b2a6b); }
.sw[data-val="aurora"] { background: linear-gradient(160deg, #06303a, #1e8f7a 60%, #6dffd0); }
.sw[data-val="ember"] { background: linear-gradient(180deg, #4a0f1c, #b8321f 65%, #ffb347); }
.sw.dot { width: 34px; height: 34px; border-radius: 50%; }
.sw[data-val="lime"] { background: #b8ff4d; } .sw[data-val="cyan"] { background: #4de8ff; } .sw[data-val="orange"] { background: #ffa53d; } .sw[data-val="pink"] { background: #ff6fae; }
.tgl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.tgl-row b { display: block; font-size: 13.5px; } .tgl-row small { color: var(--mut); font-size: 12px; }
.tgl { width: 44px; height: 26px; border-radius: 26px; background: rgba(255,255,255,.16); position: relative; flex: none; transition: background .2s; }
.tgl::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.tgl.on { background: var(--acc); } .tgl.on::after { transform: translateX(18px); }
.sysinfo { margin-top: 22px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.sysinfo .logo-mark { width: 52px; height: 52px; border-radius: 15px; animation: none; box-shadow: none; }
.sysinfo small { color: var(--mut); display: block; }

/* Yılan */
.snake { display: grid; justify-items: center; gap: 14px; padding: 18px; user-select: none; }
.sn-top { width: 100%; max-width: 360px; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--mut); }
.sn-top b { color: var(--acc); font: 700 15px var(--disp); margin-left: 4px; }
.sn-top .btn { margin-left: auto; }
.sn-board { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(6, 5, 16, .75); touch-action: none; }
.sn-board canvas { width: 100%; height: 100%; }
.sn-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-weight: 700; background: rgba(6, 5, 16, .55); }
.sn-msg:empty { display: none; }
.sn-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 46px); gap: 6px; }
.sn-pad button { border-radius: 13px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 15px; }
.sn-pad button:active { background: var(--acc); color: var(--acc-ink); }
.sn-pad button { grid-row: 2; }
.sn-pad button:nth-child(1) { grid-area: 1 / 2; }
.sn-pad button:nth-child(2) { grid-column: 1; }
.sn-pad button:nth-child(3) { grid-column: 2; }
.sn-pad button:nth-child(4) { grid-column: 3; }

/* ---------- 8. Ortak parçalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); transition: transform .15s, background .15s, box-shadow .2s; }
.btn:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.btn.primary { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.btn.primary:hover { box-shadow: 0 10px 30px -10px var(--acc); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.note { margin-top: 14px; font-size: 12px; color: var(--dim); }

#os.reduce *, #os.reduce *::before, #os.reduce *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) {
  #os *, #os *::before, #os *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   9. Sürüm 2 — bilgisayar / telefon hissi, ses ve efektler
   ========================================================= */

/* Efektler: tıklama halkası, fareyle derinlik, açılışta CRT */
.ripple { position: absolute; z-index: 2000; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 2px solid var(--acc); pointer-events: none; animation: ripple .55s ease-out forwards; }
@keyframes ripple { to { transform: scale(5.5); opacity: 0; border-width: .5px; } }
.sun { translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -14px); transition: translate .35s ease-out; }
#stars { translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -6px); transition: translate .35s ease-out; }
.mnt { left: -3%; width: 106%; }
.mnt path { transition: translate .35s ease-out; }
.mnt .m3 { translate: calc(var(--px, 0) * -10px) 0; }
.mnt .m2 { translate: calc(var(--px, 0) * -20px) 0; }
.mnt .m1 { translate: calc(var(--px, 0) * -34px) 0; }
#boot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(255,255,255,.028) 2px 3px); }
.boot-in { animation: crt .75s var(--ease) both; }
@keyframes crt { 0% { transform: scale(0, .004); filter: brightness(8); } 40% { transform: scale(1, .004); filter: brightness(8); } 100% { transform: none; filter: none; } }
.boot-name { text-transform: none; letter-spacing: .04em; font-size: 26px; }

/* Menü çubuğu menüleri */
.bar-menu { height: 26px; padding: 0 9px; border-radius: 7px; color: rgba(255,255,255,.86); font-weight: 600; }
.bar-menu:hover, .bar-menu.on { background: rgba(255,255,255,.12); }
.barmenu { top: 38px; min-width: 240px; }
.menu button:disabled { opacity: .38; pointer-events: none; }
.menu kbd { margin-left: auto; font: 500 10.5px var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--mut); }
.menu button:hover kbd { color: inherit; border-color: currentColor; }
.cc { width: 336px; }
@media (max-width: 980px) { .bar-menu, .bar-btn .kbd { display: none; } }

/* Pencereler: durum çubuğu, kenara yaslama, dock'a küçülme */
.win { transition: opacity .2s, transform .3s var(--ease), box-shadow .2s, filter .2s, left .22s var(--ease), top .22s var(--ease), width .22s var(--ease), height .22s var(--ease); }
.win.moving { transition: none; }
.win.min { opacity: 0; transform: translate(var(--mx, 0), var(--my, 40vh)) scale(.06); pointer-events: none; }
.win-body { border-radius: 0; }
.win-foot { flex: none; height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 12px; border-top: 1px solid var(--line); border-radius: 0 0 13px 13px; background: rgba(255,255,255,.03); font: 400 10.5px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; }
.win-foot::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; background: linear-gradient(135deg, transparent 50%, var(--dim) 50% 60%, transparent 60% 72%, var(--dim) 72% 82%, transparent 82%); opacity: .8; }
.win.max .win-foot { border-radius: 0; }
.snap-ghost { position: absolute; z-index: 9; border-radius: 16px; border: 2px solid var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); backdrop-filter: blur(4px); pointer-events: none; animation: fade .15s; transition: left .15s, top .15s, width .15s, height .15s; }
.rubber { position: absolute; z-index: 5; border: 1px solid var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); border-radius: 3px; pointer-events: none; }
.dicon.sel { background: color-mix(in srgb, var(--acc) 22%, transparent); outline: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); }
.dock button.bounce .aicon { animation: bounce .65s var(--ease); }
@keyframes bounce { 30% { transform: translateY(-20px); } 55% { transform: translateY(0); } 75% { transform: translateY(-8px); } }

/* Ses ayarı */
.rng { flex: 1; min-width: 60px; max-width: 110px; height: 4px; margin-left: auto; accent-color: var(--acc); cursor: pointer; }
.tgl-row > div { min-width: 0; }
.only-m { display: none; }
.is-mobile .only-m { display: flex; }

/* Telefon: ada, arama, rozet, hareket çubuğu */
.m-status { touch-action: none; }
.m-island { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 8px); width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.m-island::after { content: ''; position: absolute; right: 9px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a66, #0a0d1c 65%); }
.m-ico { position: relative; }
.badge { position: absolute; top: -5px; left: calc(50% + 16px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b4f; color: #fff; font: 700 11px/20px var(--font); font-style: normal; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); text-shadow: none; }
.m-search { margin: auto auto 0; display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 16px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.m-dock { margin: 12px 0 8px; }
.m-nav { justify-content: center; align-items: center; touch-action: none; cursor: grab; }
.is-app .m-nav, .is-recents .m-nav { background: var(--panel-solid); }
.is-recents .m-nav { background: transparent; }
.m-pill { display: block; width: 132px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.88); transition: transform .2s, width .2s; }
.m-nav:active .m-pill { width: 150px; transform: scaleY(1.3); }
.lock-user .m-pill { margin-top: 12px; }
.m-app { touch-action: pan-y; }
.m-ico:active .aicon { transform: scale(.86); filter: brightness(.8); }
.is-mobile #lock { touch-action: none; }
.is-mobile .toast { border-radius: 26px; transform-origin: 50% 0; animation: island .5s var(--ease); background: rgba(8, 7, 20, .96); }
@keyframes island { from { opacity: 0; transform: translateY(-34px) scale(.3, .4); border-radius: 40px; } }
.is-mobile #toasts { top: calc(40px + env(safe-area-inset-top)); }
