/* VEX telefon — "2200" teması: simsiyah, cam kartlar, buz-camgöbeği ışık. Masaüstü uygulamasıyla aynı dil. */
:root {
  --bg: #000; --s1: rgba(255, 255, 255, 0.035); --s2: rgba(255, 255, 255, 0.06); --s3: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.08); --line-hi: rgba(255, 255, 255, 0.18);
  --text: #f4f5f7; --sub: #b9bec7; --muted: #7b818c;
  --acc: #7cf3ff; --acc-dim: rgba(124, 243, 255, 0.13); --acc-line: rgba(124, 243, 255, 0.45);
  --violet: #b296ff; --amber: #ffc46b; --red: #ff5a6a; --green: #6bffb8;
  --glow: 0 0 22px rgba(124, 243, 255, 0.25);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --tabbar: 66px; --r: 22px; --gap: 10px; --pad: 16px;
  --ui: 'Inter', system-ui, -apple-system, sans-serif; --disp: 'Sora', 'Inter', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; background: #000; }
body { color: var(--text); font-family: var(--ui); font-size: 16px; overflow: hidden; -webkit-user-select: none; user-select: none; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
input, select, textarea { -webkit-user-select: text; user-select: text; font-family: inherit; }
button, a { font-family: inherit; color: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; text-decoration: none; padding: 0; }
.hidden { display: none !important; }
.err { color: var(--red); font-size: 14px; margin: 6px 0 0; text-align: center; }
.ic { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ic svg, svg.ic { width: 100%; height: 100%; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button:active, a:active { transform: scale(0.96); }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--st); background: radial-gradient(120% 60% at 50% -10%, rgba(124, 243, 255, 0.07), transparent 60%), #000; }

/* ---------- Eşleştirme ---------- */
.pair { align-items: center; justify-content: center; gap: 12px; padding: 24px 20px calc(24px + var(--sb)); overflow-y: auto; }
.pair-orb { width: 220px; height: 220px; position: relative; margin-bottom: -8px; }
.pair-orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--disp); font-weight: 600; letter-spacing: 10px; font-size: 34px; margin: 0; padding-left: 10px; }
.brand img { width: 34px; height: 34px; }
.pair-sub { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 26px; padding: 18px; backdrop-filter: blur(12px); }
.scan-box video { width: 100%; border-radius: 18px; border: 1px solid var(--line-hi); background: #000; aspect-ratio: 1; object-fit: cover; }

.field { width: 100%; height: 52px; background: var(--s2); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; color: var(--text); font-size: 16px; outline: none; }
.field:focus { border-color: var(--acc-line); box-shadow: var(--glow); }
.field.small { height: 42px; width: 150px; padding: 0 12px; font-size: 15px; border-radius: 12px; }
.field.small option { background: #111; }
.btn { width: 100%; height: 54px; border-radius: 18px; border: 1px solid var(--line-hi); background: var(--s2); color: var(--text); font-size: 15.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: center; }
.btn.primary { background: var(--text); color: #000; border-color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--sub); }

/* ---------- Üst çubuk ---------- */
.topbar { display: grid; grid-template-columns: 1fr auto 44px 44px; align-items: center; gap: 8px; height: 60px; padding: 0 calc(var(--pad) + var(--sr)) 0 calc(var(--pad) + var(--sl)); flex: none; }
.brand-mini { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 600; letter-spacing: 5px; font-size: 18px; }
.brand-mini img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(124, 243, 255, .4)); }
.core-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); margin-left: -2px; }
.core-dot.thinking { background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: breathe 1s infinite; }
.core-dot.speaking { background: #fff; box-shadow: 0 0 12px #fff; animation: breathe .6s infinite; }
@keyframes breathe { 50% { transform: scale(1.5); } }
.conn { display: flex; align-items: center; gap: 7px; height: 32px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 12px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); }
.conn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.conn.on { color: var(--text); }
.conn.on .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn.off .dot { background: var(--red); }
.icon-btn { width: 44px; height: 44px; border-radius: 15px; background: var(--s1); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--text); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn.round { border-radius: 50%; }

/* ---------- Bildirimler / menü ---------- */
.bell { position: relative; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.sheet { position: absolute; top: calc(12px + var(--st)); right: 12px; left: 12px; z-index: 8; background: rgba(14, 15, 18, 0.96); border: 1px solid var(--line-hi); border-radius: 24px; padding: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); backdrop-filter: blur(16px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; }
.sheet-head b { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.chip-btn { height: 32px; padding: 0 13px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line-hi); color: var(--text); font-weight: 600; font-size: 13px; }
.notif-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.notif { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 13px 14px; border-radius: 16px; background: var(--s1); }
.notif b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif time { color: var(--muted); font-size: 12px; }
.notif p { grid-column: 1 / -1; margin: 0; color: var(--sub); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 10px; font-weight: 600; font-size: 15px; }
.row-btn { width: 100%; display: flex; gap: 12px; align-items: center; height: 52px; padding: 0 12px; border-radius: 14px; font-size: 15.5px; font-weight: 600; }
.row-btn .ic { color: var(--acc); }
.row-btn.danger, .row-btn.danger .ic { color: var(--red); }
.menu-ver { padding: 10px 10px 4px; font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: .5px; border-top: 1px solid var(--line); margin-top: 4px; text-align: center; }

/* ---------- Sekmeler ---------- */
.tabs { flex: 1; position: relative; overflow: hidden; }
.tab { position: absolute; inset: 0; display: none; flex-direction: column; gap: var(--gap); overflow-y: auto; padding: 14px calc(var(--pad) + var(--sr)) calc(var(--tabbar) + var(--sb) + 22px) calc(var(--pad) + var(--sl)); }
.tab.active { display: flex; }
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--sb)); height: var(--tabbar); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(18, 19, 22, 0.82); border: 1px solid var(--line-hi); border-radius: 26px; z-index: 6; backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); padding: 6px; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; min-width: 0; border-radius: 20px; transition: color .2s, background .2s; }
.tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar button .ic { width: 22px; height: 22px; }
.tabbar button.active { color: var(--text); background: var(--s3); }
.tabbar button.active .ic { color: var(--acc); filter: drop-shadow(0 0 6px rgba(124, 243, 255, .6)); }
.tabbar button.dot::after { content: ''; position: absolute; top: 9px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-head { display: grid; grid-template-columns: 1fr 44px 44px; gap: 8px; align-items: center; }
.status-head .conn { height: 44px; border-radius: 15px; padding: 0 16px; font-size: 14.5px; }

/* ---------- Sohbet ---------- */
#tab-chat { overflow: hidden; padding: 0 0 calc(var(--tabbar) + var(--sb) + 22px); gap: 0; }
.hero { display: block; width: 100%; flex: none; position: relative; height: 42vh; max-height: 360px; min-height: 200px; transition: height .5s cubic-bezier(.2, .7, .2, 1); }
.hero:active { transform: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .25s; }
.hero:active canvas { transform: scale(.97); }
/* Tek yazı: VEX — sekmelerin hemen üstünde, tam ortada. Renk durumu anlatır. */
.vex-name { flex: none; text-align: center; padding: 6px 0 0; padding-left: 10px; font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: 10px; color: var(--text); text-shadow: 0 0 18px rgba(124, 243, 255, .35); transition: color .4s, text-shadow .4s, opacity .4s; }
.vex-name.listening { color: var(--acc); text-shadow: 0 0 22px rgba(124, 243, 255, .8); }
.vex-name.thinking { color: var(--violet); text-shadow: 0 0 22px rgba(178, 150, 255, .7); }
.vex-name.speaking { color: #fff; text-shadow: 0 0 24px rgba(255, 255, 255, .7); }
.vex-name.off { opacity: .35; text-shadow: none; }
#tab-chat:not(.has-msgs) .hero { flex: 1; height: auto; max-height: none; }
#tab-chat:not(.has-msgs) .messages { flex: 0 0 auto; }
#tab-chat.has-msgs .hero { height: 150px; min-height: 150px; }
.messages { flex: 1; overflow-y: auto; padding: 6px var(--pad) 8px; display: flex; flex-direction: column; gap: 12px; -webkit-user-select: text; user-select: text; }
.msg { max-width: 86%; line-height: 1.5; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--s3); border: 1px solid var(--line); padding: 10px 15px; border-radius: 20px 20px 6px 20px; }
.msg.vex { align-self: flex-start; padding-left: 16px; position: relative; color: var(--text); }
.msg.vex::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.msg.err { align-self: center; font-size: 13.5px; color: var(--amber); text-align: center; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 10px 2px 10px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.chips { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: flex; gap: 7px; align-items: center; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--sub); }
.chips button .ic { width: 16px; height: 16px; color: var(--acc); }
.composer { flex: none; display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; }
.composer .icon-btn { width: 48px; height: 48px; }
.input-pill { display: grid; grid-template-columns: 1fr 40px; align-items: center; height: 52px; padding: 0 6px 0 16px; border-radius: 26px; background: var(--s2); border: 1px solid var(--line-hi); }
.input-pill:focus-within { border-color: var(--acc-line); box-shadow: var(--glow); }
.input-pill input { background: none; border: none; outline: none; color: var(--text); font-size: 16px; min-width: 0; height: 100%; }
.input-pill input::placeholder { color: var(--muted); }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; }
.send .ic { width: 18px; height: 18px; }
.mic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #000; background: radial-gradient(circle at 50% 30%, #ffffff, #bdf6ff 70%); box-shadow: 0 0 0 6px rgba(124, 243, 255, 0.08), var(--glow); }
.mic .ic { width: 25px; height: 25px; }
.mic.rec { background: radial-gradient(circle at 50% 30%, #fff, var(--acc)); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(124, 243, 255, 0.12), var(--glow); } }

/* ---------- Ortak: bölüm, segment ---------- */
.group { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; gap: 14px; }
.group h3 { margin: 0; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sub); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.group h3::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.seg-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.seg-row.three { grid-template-columns: repeat(3, 1fr); }
.seg { display: flex; gap: 8px; align-items: center; justify-content: center; height: 48px; border-radius: 15px; background: var(--s2); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--text); min-width: 0; }
.seg .ic { color: var(--acc); width: 19px; height: 19px; }
.seg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg.on { border-color: var(--acc-line); background: var(--acc-dim); }
.seg.armed, .tile.armed { border-color: var(--red); background: rgba(255, 90, 106, 0.16); }
.seg.armed .ic, .tile.armed .ic { color: var(--red); }

/* ---------- Ekran (uzaktan masaüstü) ---------- */
#tab-desk { padding: 0 calc(10px + var(--sr)) calc(var(--tabbar) + var(--sb) + 18px) calc(10px + var(--sl)); overflow: hidden; }
.stage { position: relative; flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; background: #050506; border: 1px solid var(--line); touch-action: none; isolation: isolate; }
.viewport { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; display: none; }
.stage.has .viewport { display: block; }
.viewport canvas { width: 100%; height: 100%; display: block; image-rendering: auto; }
.desk-state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.stage.has .desk-state { display: none; }
.desk-state p { margin: 0; font-size: 15px; font-weight: 600; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .1); border-top-color: var(--acc); animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.desk-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 3; }
.desk-hud { font-family: var(--mono); font-size: 11px; padding: 5px 9px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: var(--green); backdrop-filter: blur(8px); }
.desk-hud:empty { visibility: hidden; }
.desk-zoom { pointer-events: auto; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(0, 0, 0, .65); border: 1px solid var(--line-hi); color: var(--text); font-family: var(--mono); font-size: 12px; backdrop-filter: blur(8px); }
.desk-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.desk-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #000; stroke-width: 1.4; }
.desk-ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--acc); box-shadow: 0 0 14px var(--acc); pointer-events: none; z-index: 2; animation: ping .45s ease-out forwards; }
.desk-ring.right { border-color: var(--amber); box-shadow: 0 0 14px var(--amber); }
.desk-ring.hold { border-color: var(--violet); box-shadow: 0 0 14px var(--violet); animation: none; transform: scale(1.1); }
@keyframes ping { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.desk-help { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px; background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); }
.desk-help > b { font-family: var(--disp); font-size: 19px; font-weight: 600; }
.desk-help ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.desk-help li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 14.5px; color: var(--sub); }
.desk-help li .ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--acc-dim); color: var(--acc); }
.desk-help li b { color: var(--text); }
.desk-help .btn { margin-top: 6px; }

/* alt araç çubuğu */
.dtool { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 4px; align-items: center; justify-items: center; padding: 6px; border-radius: 22px; background: rgba(16, 17, 20, 0.84); border: 1px solid var(--line-hi); backdrop-filter: blur(18px); transition: opacity .25s, transform .25s; }
.dtool .modes { grid-column: 1 / -1; width: 100%; }
.dbtn { width: 44px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--text); }
.dbtn .ic { width: 20px; height: 20px; }
.dbtn.on { background: var(--acc-dim); color: var(--acc); }
.dbtn.accent { background: var(--text); color: #000; }
#deskRotate { display: none; }
/* geniş ekran / yatay: tek satır */
.stage.fs .dtool { grid-template-columns: repeat(6, 1fr); }
@media (min-width: 600px) {
  .dtool { grid-template-columns: minmax(220px, 1fr) repeat(5, 44px); max-width: 640px; margin: 0 auto; }
  .stage.fs .dtool { grid-template-columns: minmax(220px, 1fr) repeat(6, 44px); }
  .dtool .modes { grid-column: auto; }
}
.seg3 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 15px; background: rgba(255, 255, 255, .06); min-width: 0; }
.seg3 button { height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.seg3 button .ic { width: 17px; height: 17px; }
.seg3 button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg3 button.on { background: var(--text); color: #000; }
@media (max-width: 330px) { .seg3.modes button span { display: none; } }

/* klavye */
.kbd-in { position: absolute; left: 50%; bottom: 0; width: 2px; height: 2px; opacity: 0; border: 0; padding: 0; resize: none; font-size: 16px; color: transparent; background: transparent; caret-color: transparent; z-index: 0; }
.kbd-bar { position: absolute; left: 8px; right: 8px; bottom: 112px; z-index: 5; display: flex; gap: 5px; overflow-x: auto; padding: 5px; border-radius: 18px; background: rgba(16, 17, 20, 0.9); border: 1px solid var(--line-hi); backdrop-filter: blur(18px); scrollbar-width: none; }
.kbd-bar::-webkit-scrollbar { display: none; }
.kbd-bar button { flex: none; min-width: 42px; height: 40px; padding: 0 10px; border-radius: 12px; background: var(--s2); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.kbd-bar button .ic { width: 18px; height: 18px; }
.kbd-bar button.on { background: var(--acc); color: #000; }
.kbd-bar .kb-hide { background: none; color: var(--muted); }
.stage.kbd .dtool { display: none; }
.stage.kbd .kbd-bar { bottom: 8px; }

/* kısayol sayfası */
.keys-sheet { position: absolute; left: 8px; right: 8px; bottom: 112px; max-height: calc(100% - 126px); z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(14, 15, 18, 0.95); border: 1px solid var(--line-hi); backdrop-filter: blur(18px); overflow-y: auto; }
.ks-head { display: flex; justify-content: space-between; align-items: center; }
.ks-head b { font-family: var(--disp); font-size: 16px; font-weight: 600; }
.ks-head .icon-btn { width: 36px; height: 36px; border-radius: 12px; }
.ks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ks-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 64px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--sub); min-width: 0; padding: 0 3px; text-align: center; line-height: 1.15; }
.ks-grid button .ic { width: 20px; height: 20px; color: var(--acc); }
.ks-q { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }

/* tam ekran (gerçek ya da taklit) */
.stage.fs { border-radius: 0; border: none; background: #000; }
.stage.pseudo { position: fixed; inset: 0; z-index: 40; }
.stage.fs .dtool { left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); bottom: calc(10px + var(--sb)); max-width: 560px; margin: 0 auto; opacity: 0; transform: translateY(12px); pointer-events: none; }
.stage.fs.tb .dtool { opacity: 1; transform: none; pointer-events: auto; }
.stage.fs #deskRotate { display: grid; }
.stage.fs .desk-top { top: calc(10px + var(--st)); left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); }
.stage.fs .keys-sheet, .stage.fs .kbd-bar { max-width: 640px; margin: 0 auto; }
.stage.fs .kbd-bar { bottom: calc(112px + var(--sb)); }
.stage.fs.kbd .kbd-bar { bottom: calc(8px + var(--sb)); }
@media (min-width: 600px) { .stage.fs .kbd-bar, .stage.fs .keys-sheet { bottom: calc(66px + var(--sb)); } .keys-sheet, .kbd-bar { bottom: 66px; } .keys-sheet { max-height: calc(100% - 80px); } .ks-grid { grid-template-columns: repeat(5, 1fr); } }
.fs-handle { display: none; }
.stage.fs .fs-handle { display: grid; place-items: center; position: absolute; left: 50%; bottom: calc(6px + var(--sb)); transform: translateX(-50%); z-index: 4; width: 64px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .14); border: 1px solid var(--line-hi); color: var(--text); backdrop-filter: blur(10px); transition: opacity .25s; }
.stage.fs .fs-handle .ic { width: 16px; height: 16px; }
.stage.fs.tb .fs-handle, .stage.fs.kbd .fs-handle { opacity: 0; pointer-events: none; }

/* ---------- Dosyalar ---------- */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.places button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 68px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--sub); min-width: 0; }
.places button .ic { color: var(--acc); }
.places button.on { border-color: var(--acc-line); background: var(--acc-dim); color: var(--text); }
.pathbar { display: grid; grid-template-columns: 44px 1fr 44px 44px; gap: 8px; align-items: center; }
.pathname { height: 44px; min-width: 0; text-align: center; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; border-radius: 15px; }
.upcard { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + var(--sb) + 20px); z-index: 35; background: rgba(14, 15, 18, .96); border: 1px solid var(--line-hi); border-radius: 20px; padding: 13px 15px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 9px; backdrop-filter: blur(14px); }
.upcard-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.upcard small { color: var(--muted); font-weight: 500; }
.progress.wide { width: 100%; margin: 0; }
.files { display: flex; flex-direction: column; gap: 6px; }
.fitem { display: grid; grid-template-columns: 50px 1fr 20px; gap: 12px; align-items: center; height: 66px; padding: 7px 12px 7px 8px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); text-align: left; width: 100%; }
.fthumb { width: 50px; height: 50px; border-radius: 13px; background: var(--s2); display: grid; place-items: center; overflow: hidden; }
.fthumb img { width: 100%; height: 100%; object-fit: cover; }
.fthumb .ic { width: 24px; height: 24px; color: var(--acc); }
.fthumb.folder .ic { color: var(--amber); }
.fname { min-width: 0; }
.fname b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname small { color: var(--muted); font-size: 12.5px; }
.fitem > .ic { color: var(--muted); width: 18px; height: 18px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; font-weight: 500; }
.viewer { position: fixed; inset: 0; z-index: 25; background: #000; display: grid; grid-template-rows: auto 1fr auto; padding-top: var(--st); }
.viewer-top { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; padding: 10px var(--pad); }
.viewer-name { text-align: center; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-body { overflow: auto; display: grid; place-items: center; padding: 10px; touch-action: pan-x pan-y pinch-zoom; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; border-radius: 14px; }
.viewer-body audio { width: 92%; }
.viewer-body .big { width: 84px; height: 84px; color: var(--acc); }
.viewer-body p { color: var(--muted); text-align: center; font-weight: 500; margin: 8px 0 0; }
.viewer-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: 12px var(--pad) calc(12px + var(--sb)); }
.progress { width: 70%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 12px auto 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 10px var(--acc); transition: width .2s; }

/* ---------- Kamera ---------- */
.cam { position: fixed; inset: 0; z-index: 28; background: #000; overflow: hidden; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam video.mirror { transform: scaleX(-1); }
.cam-frame { position: absolute; inset: 22% 12% 34%; pointer-events: none; }
.cam-frame i { position: absolute; width: 34px; height: 34px; border: 2.5px solid #fff; filter: drop-shadow(0 0 6px var(--acc)); }
.cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: camflash .35s ease-out; }
@keyframes camflash { from { opacity: .7; } to { opacity: 0; } }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(12px + var(--st)) var(--pad) 12px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.cam-top .icon-btn { background: rgba(0, 0, 0, .45); }
.cam-rec { justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: breathe 1.4s infinite; }
.cam-answer { position: absolute; left: 12px; right: 12px; top: calc(74px + var(--st)); max-height: 40%; overflow-y: auto; background: rgba(10, 11, 13, .88); border: 1px solid var(--line-hi); border-radius: 22px; padding: 15px 17px; backdrop-filter: blur(14px); }
.cam-answer p { margin: 0; font-size: 16.5px; line-height: 1.5; font-weight: 500; white-space: pre-wrap; -webkit-user-select: text; user-select: text; }
.cam-answer.err { border-color: var(--red); color: #ffd2da; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px var(--pad) calc(22px + var(--sb)); background: linear-gradient(transparent, rgba(0, 0, 0, .8) 30%); display: flex; flex-direction: column; gap: 18px; }
.cam-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cam-modes button { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 56px; justify-content: center; border-radius: 16px; font-size: 12px; font-weight: 600; color: var(--sub); background: rgba(255, 255, 255, .06); min-width: 0; }
.cam-modes button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-modes button .ic { width: 20px; height: 20px; }
.cam-modes button.on { color: #000; background: var(--text); }
.cam-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.cam-actions .round { width: 54px; height: 54px; background: rgba(255, 255, 255, .1); }
.cam-actions .round.rec { color: var(--acc); border-color: var(--acc); animation: pulse 1.1s infinite; }
.shutter { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; color: #000; border: 4px solid rgba(255, 255, 255, .35); background: radial-gradient(circle at 50% 30%, #fff, #bdf6ff 75%); box-shadow: var(--glow); background-clip: padding-box; }
.shutter .ic { width: 30px; height: 30px; }
.shutter.busy { animation: breathe .9s infinite; opacity: .8; }

/* ---------- Kontrol ---------- */
.modes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.modes-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 78px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--sub); min-width: 0; }
.modes-grid button .ic { width: 24px; height: 24px; color: var(--acc); }
.modes-grid button.on { background: var(--acc-dim); border-color: var(--acc-line); color: var(--text); }
.modes-grid button.busy { opacity: .5; }
.slider-row { display: grid; grid-template-columns: 46px 1fr 54px; gap: 12px; align-items: center; }
.slider-row input { width: 100%; accent-color: var(--acc); height: 36px; margin: 0; }
.slider-row b { text-align: right; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--s2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.round.flat { color: var(--amber); }
.round.on { color: var(--red); border-color: var(--red); background: rgba(255, 90, 106, .14); }
.media { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; justify-items: center; align-items: center; }
.media button { width: 52px; height: 52px; border-radius: 50%; background: var(--s2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.media button.main { width: 66px; height: 66px; background: var(--text); color: #000; border: none; box-shadow: var(--glow); }
.media button.main .ic { width: 28px; height: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 86px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; padding: 0 6px; min-width: 0; }
.tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ic { width: 25px; height: 25px; color: var(--acc); }
.tile.warn .ic { color: var(--amber); }
.tile.danger .ic { color: var(--red); }
.tile.busy, .media button.busy { opacity: .5; }
.tile.ok, .media button.ok { border-color: var(--green); }
.field.clip { height: auto; min-height: 84px; padding: 13px 15px; resize: none; line-height: 1.45; font-size: 15px; }
.toggle { display: grid; grid-template-columns: 1fr 50px; align-items: center; height: 40px; font-weight: 600; font-size: 15px; }
.toggle input { display: none; }
.toggle i { width: 50px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .12); position: relative; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #e3e6ea; transition: transform .2s; }
.toggle input:checked + i { background: var(--acc); }
.toggle input:checked + i::after { transform: translateX(20px); background: #001014; }
.search { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; height: 48px; padding: 0 15px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.search .ic { color: var(--muted); width: 19px; height: 19px; }
.search input { background: none; border: none; outline: none; color: var(--text); font-size: 16px; min-width: 0; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; max-height: 440px; overflow-y: auto; }
.app { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 2px; border-radius: 14px; font-size: 12px; font-weight: 500; color: var(--sub); min-width: 0; }
.app img, .app .letter { width: 50px; height: 50px; border-radius: 15px; background: var(--s2); padding: 8px; object-fit: contain; }
.app .letter { display: grid; place-items: center; font-family: var(--disp); font-size: 19px; color: var(--text); padding: 0; border: 1px solid var(--line); }
.app span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app.busy { opacity: .5; }
#rdUnlock.busy { opacity: .55; }

/* ---------- Durum ---------- */
.rings { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.ring { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); border-radius: var(--r); height: 164px; display: grid; place-items: center; align-content: center; gap: 8px; }
.ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 5; }
.ring circle.v { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset .6s, stroke .3s; filter: drop-shadow(0 0 5px rgba(124, 243, 255, .6)); }
.ring.hot circle.v { stroke: var(--red); filter: none; } .ring.mid circle.v { stroke: var(--amber); filter: none; }
.ring b { position: absolute; top: 76px; left: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-weight: 500; font-size: 20px; }
.ring span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info { margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 4px var(--pad); }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info div:last-child { border-bottom: none; }
.info dt { color: var(--muted); font-weight: 500; }
.info dd { margin: 0; text-align: right; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Güncelleme / bildirim ---------- */
.upd { position: fixed; left: 12px; right: 12px; top: calc(12px + var(--st)); z-index: 50; background: rgba(14, 15, 18, .97); border: 1px solid var(--line-hi); border-radius: 24px; padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); backdrop-filter: blur(16px); }
.upd-head { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 16px; font-weight: 600; }
.upd-head .ic { color: var(--acc); }
.upd ul, .upd ol { margin: 10px 0 0; padding-left: 22px; line-height: 1.55; font-size: 15px; color: var(--sub); }
.upd-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
#iosHelp .upd-actions { grid-template-columns: 1fr; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--sb) + 22px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: rgba(20, 21, 24, 0.97); border: 1px solid var(--line-hi); border-radius: 18px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); z-index: 60; max-width: 92%; backdrop-filter: blur(14px); }
.toast.err { border-color: var(--red); color: #ffd2da; }
.toast button { height: 34px; padding: 0 14px; border-radius: 12px; background: var(--text); color: #000; font-weight: 600; flex: none; }
::-webkit-scrollbar { width: 3px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
@media (min-width: 700px) { .tabs { max-width: 760px; margin: 0 auto; width: 100%; } .tabbar { max-width: 560px; margin: 0 auto; } .apps { grid-template-columns: repeat(6, 1fr); } }
@media (orientation: landscape) and (max-height: 520px) { .hero { height: 120px; min-height: 120px; } }
/* Telefon beyni (menü) */
.solo-row span small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.solo-row .seg3 { width: 200px; }
.solo-acts { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 4px; padding: 0 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.solo-acts .row-btn { height: 44px; font-size: 13.5px; gap: 8px; padding: 0 10px; background: rgba(255, 255, 255, .04); }
