/* AIAsist — Living Workspace V2
   Yalnızca durum ve yerleşim burada; hareket koreografisi MotionController/Orchestrator'da. */

:root {
  --bg-0: #03050d;
  --ink: #eef2ff;
  --ink-2: #b4bfe2;
  --ink-3: #8390b8;
  --blue: #3d7bff;
  --cyan: #43e3ff;
  --violet: #8b5cff;
  --magenta: #ff4fd8;
  --mint: #5eead4;
  --stroke: rgba(150, 180, 255, 0.14);
  --stroke-2: rgba(150, 200, 255, 0.3);
  --radius: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --intensity: 1;
  --blur: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font: 400 15px/1.45 var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: #0b1440; color: #fff; text-decoration: none; }
.skip-link:focus { top: 16px; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; z-index: 200; background: #03050d; }

/* ---------------- arka plan ---------------- */
.bg-layer { position: fixed; pointer-events: none; z-index: 0; }
.bg-static { left: -40px; top: -40px; will-change: transform; transform-origin: 50% 60%; }
.bg-live { inset: 0; width: 100%; height: 100%; }
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 48%, rgba(2, 3, 10, .78) 100%),
    linear-gradient(180deg, rgba(3, 5, 14, .35), transparent 30%, transparent 70%, rgba(3, 5, 14, .5));
}
#fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.overlay { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.overlay > * { pointer-events: auto; }

/* ---------------- cam yüzey ---------------- */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg, rgba(42, 58, 138, .30), rgba(12, 18, 50, .46) 58%, rgba(24, 16, 66, .42));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
}
[data-glare]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), rgba(120, 195, 255, .14), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
[data-glare]:hover::before { opacity: calc(var(--intensity)); }

/* ---------------- yerleşim ---------------- */
.app {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 304px;
  gap: 20px;
  height: 100vh; height: 100dvh;
  padding: 20px;
}
.is-booting .app { pointer-events: none; }
.is-booting .sidebar, .is-booting .side, .is-booting .mod-card, .is-booting .greeting > *,
.is-booting .command, .is-booting .orbit-chips, .is-booting .mobile-top, .is-booting .bottom-nav,
.is-booting .bg-static, .is-booting .demo-toggle { opacity: 0; }

/* ---------------- sol panel ---------------- */
.sidebar { display: flex; flex-direction: column; padding: 22px 14px 16px; min-height: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 24px; }
.brand-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 10px rgba(67, 160, 255, .55)); }
.brand-name { font: 700 19px/1.1 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.nav-indicator {
  position: absolute; left: 0; right: 0; top: 0; height: 46px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(90deg, rgba(67, 227, 255, .16), rgba(139, 92, 255, .10));
  border: 1px solid rgba(110, 200, 255, .26);
  box-shadow: 0 0 26px -6px rgba(67, 227, 255, .45), inset 0 0 20px rgba(67, 227, 255, .06);
}
.nav-indicator::before {
  content: ""; position: absolute; left: -1px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px;
  border: 0; border-radius: 14px; background: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; text-align: left;
  transition: color .3s, transform .4s var(--ease-out), background .3s;
}
.nav-item:hover { color: var(--ink); transform: translateX(3px); background: rgba(255, 255, 255, .025); }
.nav-item.is-active { color: #fff; }
.nav-item.is-active svg.ic { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(67, 227, 255, .6)); }
.nav-chev { margin-left: auto; width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.nav-item[aria-expanded="true"] .nav-chev { transform: rotate(90deg); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 46px; }
.nav-subitem { text-align: left; border: 0; background: none; color: var(--ink-3); font-size: 13.5px; padding: 7px 10px; border-radius: 10px; transition: color .25s, background .25s; }
.nav-subitem:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--stroke); }
.side-user b { display: block; font-size: 13.5px; font-weight: 600; }
.side-user small { color: var(--ink-3); font-size: 12px; }
.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--display); flex: none;
  background: linear-gradient(135deg, rgba(67, 227, 255, .3), rgba(139, 92, 255, .4)); border: 1px solid var(--stroke-2);
}

/* ---------------- merkez ---------------- */
.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 12px; }
.mobile-top { display: none; }
.greeting { text-align: center; padding-top: 4px; }
.greeting-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.greeting-title { font: 600 clamp(28px, 3.1vw, 44px)/1.05 var(--display); letter-spacing: -.028em; }
.grad { background: linear-gradient(90deg, #8ff0ff, #7aa2ff 45%, #c79bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greeting-sub { margin-top: 8px; color: var(--ink-2); font-size: clamp(14px, 1.15vw, 17px); }

.stage { position: relative; flex: 1 1 auto; min-height: 200px; container-type: size; }
.pulse-wrap {
  position: absolute; inset: 0; margin: auto;
  width: min(100cqh, 100cqw, 600px); height: min(100cqh, 100cqw, 600px);
  transform-origin: 50% 50%; will-change: transform;
}
#pulse-canvas { display: block; width: 100%; height: 100%; }
/* Tuval tıklamaları engellemez (mobilde Pulse üst çubuğun üzerine kayar); yalnızca küre tıklanabilir. */
.pulse-wrap { pointer-events: none; }
.pulse-hit {
  position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: none; pointer-events: auto; cursor: pointer;
}
.pulse-hit:focus-visible { border-radius: 50%; outline-offset: 8px; }
.pulse-fallback { display: none; }
.no-canvas #pulse-canvas { display: none; }
.no-canvas .pulse-fallback {
  display: block; position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8fbff, #59d8ff 20%, #3d7bff 52%, #5b2bd6 86%);
  box-shadow: 0 0 90px rgba(67, 140, 255, .65), 0 0 0 30px rgba(67, 140, 255, .06), 0 0 0 60px rgba(139, 92, 255, .04);
}
.pulse-tag {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  font: 500 10.5px/1 var(--font); letter-spacing: .28em; color: rgba(180, 200, 255, .55); white-space: nowrap;
}

.orbit-chips { position: absolute; inset: 0; pointer-events: none; }
.orbit-chips.is-hidden .chip { pointer-events: none; }
.orbit-chips li { position: absolute; }
.chip {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 12px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; color: var(--ink-2);
  background: linear-gradient(135deg, rgba(40, 60, 150, .38), rgba(14, 18, 52, .55));
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .8);
  transition: color .3s, border-color .3s, box-shadow .4s, transform .45s var(--ease-out);
}
.chip svg.ic { width: 15px; height: 15px; color: var(--cyan); }
.chip:hover { color: #fff; border-color: rgba(110, 210, 255, .45); transform: translateY(-2px); box-shadow: 0 0 24px -6px rgba(67, 227, 255, .5); }
.chip.is-hint { color: #fff; border-color: rgba(110, 210, 255, .5); box-shadow: 0 0 26px -6px rgba(67, 227, 255, .7); }
.orbit-chips li:nth-child(1) { left: 2%; top: 14%; }
.orbit-chips li:nth-child(2) { left: 0; top: 45%; }
.orbit-chips li:nth-child(3) { left: 4%; top: 76%; }
.orbit-chips li:nth-child(4) { right: 2%; top: 14%; }
.orbit-chips li:nth-child(5) { right: 0; top: 45%; }
.orbit-chips li:nth-child(6) { right: 4%; top: 76%; }
@container (max-width: 760px) {
  .pulse-wrap { width: min(calc(100cqh - 50px), 100cqw); height: min(calc(100cqh - 50px), 100cqw); margin-top: 0; }
  .orbit-chips { inset: auto 0 0 0; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .orbit-chips::-webkit-scrollbar { display: none; }
  .orbit-chips li { position: static; flex: none; }
  .pulse-tag { display: none; }
}

/* ---------------- modül kartları ---------------- */
.dock { perspective: 1100px; perspective-origin: 50% -30%; }
.dock-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  transform-style: preserve-3d; transform: rotateX(13deg); transform-origin: 50% 0;
}
.mod-card {
  position: relative; display: block; padding: 0; border: 0; background: none; text-align: left;
  border-radius: 18px; transform-style: preserve-3d;
}
.mod-inner {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px;
  height: 128px; padding: 14px 14px 12px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(26, 34, 84, .82), rgba(9, 13, 38, .9));
  border: 1px solid rgba(150, 190, 255, .16);
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .5s, box-shadow .6s;
  will-change: transform;
}
.mod-inner::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55;
}
.mod-top { display: flex; align-items: center; justify-content: space-between; }
.mod-icon {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.mod-icon svg.ic { width: 18px; height: 18px; }
.mod-arrow svg.ic { width: 16px; height: 16px; color: var(--ink-3); transition: transform .4s var(--ease-out), color .3s; }
.mod-card:hover .mod-arrow svg.ic { transform: translate(2px, -2px); color: var(--ink); }
.mod-title { font: 600 14px var(--display); margin-top: 2px; }
.mod-metric { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.mod-metric b { font: 600 20px/1 var(--display); letter-spacing: -.02em; }
.mod-metric small { color: var(--ink-3); font-size: 12px; }
.mod-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.mod-bar i { display: block; height: 100%; width: calc(var(--p, .5) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px var(--accent); transition: width 1s var(--ease-out); }
.mod-card:hover .mod-inner, .mod-card:focus-visible .mod-inner { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.mod-card:focus-visible { outline: none; }
.mod-card:focus-visible .mod-inner { box-shadow: 0 0 0 2px var(--cyan), 0 22px 40px -22px rgba(0, 0, 0, .95); }
.mod-card.is-target .mod-inner {
  border-color: color-mix(in oklab, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 0 46px -6px var(--accent), 0 22px 40px -22px rgba(0, 0, 0, .95);
}

/* ---------------- yanıt satırı ---------------- */
.reply { min-height: 22px; text-align: center; font-size: 14px; color: var(--ink-2); padding: 0 10px; }
.reply .who { color: var(--cyan); font-weight: 600; letter-spacing: .04em; margin-right: 8px; }
.reply .you { color: var(--ink-3); }
.reply .caret { display: inline-block; width: 2px; height: 1em; vertical-align: -2px; margin-left: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------------- komut alanı ---------------- */
.command {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px;
  transition: border-color .5s, box-shadow .6s;
}
.command:focus-within, .command.is-active {
  border-color: rgba(110, 210, 255, .42);
  box-shadow: 0 0 0 1px rgba(110, 210, 255, .16), 0 0 44px -8px rgba(67, 227, 255, calc(.35 + var(--lvl, 0) * .5)), var(--shadow);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; color: var(--ink-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc, var(--mint)); box-shadow: 0 0 10px var(--sc, var(--mint)); transition: background .4s, box-shadow .4s; }
body[data-state="LISTENING"] { --sc: var(--cyan); }
body[data-state="THINKING"] { --sc: var(--violet); }
body[data-state="ACTING"] { --sc: var(--blue); }
body[data-state="SPEAKING"] { --sc: var(--magenta); }
.mic-btn {
  position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid rgba(110, 210, 255, .3); color: var(--cyan);
  background: radial-gradient(circle at 50% 40%, rgba(67, 227, 255, .22), rgba(61, 123, 255, .1));
  transition: background .4s, color .3s, transform .3s var(--ease-out);
}
.mic-btn::after {
  content: ""; position: absolute; inset: -5px; border-radius: 18px; pointer-events: none;
  border: 1px solid rgba(67, 227, 255, .55); opacity: 0;
  transform: scale(calc(1 + var(--lvl, 0) * .25)); transition: opacity .3s;
}
.mic-btn:hover { transform: translateY(-1px); }
body[data-state="LISTENING"] .mic-btn { color: #03101f; background: linear-gradient(135deg, #7cf3ff, #3d7bff); box-shadow: 0 0 calc(12px + var(--lvl, 0) * 40px) rgba(67, 227, 255, .7); }
body[data-state="LISTENING"] .mic-btn::after { opacity: 1; }
.cmd-wave { width: 84px; height: 30px; flex: none; }
.cmd-input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; font-size: 15px; }
.cmd-input::placeholder { color: var(--ink-3); }
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, .04); color: var(--ink-2); transition: background .3s, color .3s, border-color .3s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--stroke); }
.send-btn {
  width: 46px; height: 46px; flex: none; border: 0; border-radius: 14px; display: grid; place-items: center; color: #03101f;
  background: linear-gradient(135deg, #7cf3ff, #4d8bff 55%, #8b5cff); box-shadow: 0 10px 26px -10px rgba(77, 139, 255, .9);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(77, 139, 255, 1); }
.quick-wrap { position: relative; }
.quick-menu {
  position: absolute; right: -54px; bottom: calc(100% + 14px); width: 320px; padding: 8px; z-index: 20;
  display: flex; flex-direction: column; gap: 2px;
}
.quick-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 12px; text-align: left;
  background: none; color: var(--ink-2); font-size: 13.5px; transition: background .25s, color .25s;
}
.quick-menu button:hover, .quick-menu button:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.quick-menu svg.ic { width: 16px; height: 16px; color: var(--cyan); }

/* ---------------- sağ panel ---------------- */
.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 2px; }
.side::-webkit-scrollbar { display: none; }
.widget { padding: 16px; flex: none; }
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.widget-title { font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.widget-meta { font-size: 12px; color: var(--ink-3); }
.badge {
  min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: #03101f; background: linear-gradient(135deg, #7cf3ff, #8b5cff); font-style: normal;
}
.widget.is-related { border-color: rgba(110, 210, 255, .4); box-shadow: 0 0 40px -10px rgba(67, 227, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .07); transition: box-shadow .6s, border-color .6s; }

.summary-list { display: flex; flex-direction: column; gap: 4px; }
.summary-list li > * {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 0; background: none; text-align: left;
  transition: background .3s;
}
.summary-list button:hover { background: rgba(255, 255, 255, .05); }
.summary-list .s-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .05); color: var(--cyan); }
.summary-list .s-ic svg.ic { width: 16px; height: 16px; }
.summary-list b { display: block; font-size: 13.5px; font-weight: 600; }
.summary-list small { display: block; color: var(--ink-3); font-size: 12px; }
.summary-list .is-related { background: rgba(67, 227, 255, .08); box-shadow: inset 0 0 0 1px rgba(110, 210, 255, .3); }

.weather { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; }
.wx-icon svg { width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(255, 180, 90, .35)); }
.wx-main { display: flex; flex-direction: column; }
.wx-city { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.wx-temp { font: 600 30px/1.1 var(--display); letter-spacing: -.03em; }
.wx-cond { font-size: 13px; color: var(--ink-2); }
.wx-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--stroke); font-size: 12px; }
.wx-meta div { display: flex; flex-direction: column; }
.wx-meta dt { color: var(--ink-3); }
.wx-meta dd { margin: 0; color: var(--ink-2); font-weight: 500; }
.wx-demo { position: absolute; right: 14px; top: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif {
  position: relative; display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start;
  padding: 10px 10px 10px 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .04);
}
.notif.is-click { cursor: pointer; }
.notif.is-click:hover { background: rgba(255, 255, 255, .06); }
.notif .n-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.notif b { display: block; font-size: 13px; font-weight: 600; }
.notif p { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.notif time { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

.calendar .cal-holo { position: relative; perspective: 700px; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 12px;
  transform: rotateX(14deg); transform-origin: 50% 100%;
  padding: 8px 6px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(67, 140, 255, .07), rgba(139, 92, 255, .05));
  box-shadow: inset 0 0 0 1px rgba(120, 180, 255, .1), 0 18px 30px -18px rgba(67, 140, 255, .5);
}
.cal-grid .dow { color: var(--ink-3); font-size: 10.5px; letter-spacing: .06em; padding-bottom: 4px; }
.cal-day { position: relative; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); }
.cal-day.weekend { color: var(--ink-3); }
.cal-day.today { color: #03101f; font-weight: 700; background: linear-gradient(135deg, #7cf3ff, #4d8bff); box-shadow: 0 0 16px rgba(67, 227, 255, .6); }
.cal-day.leave { color: #fff; background: rgba(139, 92, 255, .32); box-shadow: inset 0 0 0 1px rgba(170, 130, 255, .55); }
.cal-day.event::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); }
.cal-scan {
  position: absolute; left: 6px; right: 6px; top: 0; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(67, 227, 255, .14), transparent);
}
.calendar.is-related .cal-scan { opacity: 1; animation: scan 1.8s var(--ease-out) infinite; }
@keyframes scan { from { transform: translateY(-20%); } to { transform: translateY(260%); } }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.lg-today { background: var(--cyan); }
.lg-leave { background: rgba(139, 92, 255, .7); }
.lg-event { background: var(--mint); border-radius: 50% !important; }

/* ---------------- işlem paneli (holografik) ---------------- */
.holo-panel {
  position: fixed; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; isolation: isolate;
  transform-origin: 50% 50%;
  background: linear-gradient(160deg, rgba(36, 54, 140, .58), rgba(9, 13, 42, .84) 52%, rgba(30, 16, 76, .74));
  border: 1px solid rgba(120, 200, 255, .3);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(120, 200, 255, .06), 0 40px 120px -30px rgba(0, 0, 0, .95),
    0 0 90px -24px color-mix(in oklab, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.holo-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
.holo-panel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); opacity: .7; z-index: 4; pointer-events: none; filter: drop-shadow(0 0 6px var(--accent)); }
.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.holo-inner { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.holo-head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 14px; flex: none; }
.holo-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); flex: none;
  background: color-mix(in oklab, var(--accent) 16%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 0 24px -6px var(--accent);
}
.holo-titles { flex: 1; min-width: 0; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.holo-head h2 { font: 600 21px/1.15 var(--display); letter-spacing: -.02em; }
.holo-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 22px; scrollbar-width: thin; scrollbar-color: rgba(120, 160, 255, .3) transparent; overscroll-behavior: contain; }
.holo-panel.is-closing { pointer-events: none; }
.sheet-handle { display: grid; place-items: center; padding-top: 10px; flex: none; touch-action: none; }
.sheet-handle span { width: 42px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); }
.holo-panel.is-sheet { border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.holo-panel.is-sheet .holo-head { touch-action: none; padding-top: 12px; }
.holo-panel.is-sheet .corner.bl, .holo-panel.is-sheet .corner.br { display: none; }

.btn {
  height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, border-color .3s;
}
.btn svg.ic { width: 17px; height: 17px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-primary { color: #03101f; background: linear-gradient(135deg, #7cf3ff, #4d8bff 55%, #8b5cff); box-shadow: 0 10px 30px -10px rgba(77, 139, 255, .85); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(77, 139, 255, 1); }
.btn-ghost { background: rgba(255, 255, 255, .05); border-color: var(--stroke); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--stroke-2); }
.btn:disabled { cursor: default; }
.btn-confirm { position: relative; min-width: 128px; }
.btn-spinner { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(3, 16, 31, .3); border-top-color: #03101f; opacity: 0; }
.btn-confirm.is-loading .btn-label { opacity: 0; }
.btn-confirm.is-loading .btn-spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.panel-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .05); }
.panel-note svg.ic { width: 16px; height: 16px; color: var(--accent); }
.demo-flag { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.demo-flag svg.ic { width: 13px; height: 13px; color: var(--magenta); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--ink); background: color-mix(in oklab, var(--accent) 18%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.sub { font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--to, 0)); background: linear-gradient(90deg, #7cf3ff, #3d7bff); box-shadow: 0 0 12px rgba(67, 227, 255, .6); transition: transform .8s var(--ease-out); }
.bar.violet i { background: linear-gradient(90deg, #a78bfa, #ff4fd8); box-shadow: 0 0 12px rgba(200, 120, 255, .5); }
.bar.dim i { background: linear-gradient(90deg, rgba(160, 180, 230, .6), rgba(120, 140, 200, .4)); box-shadow: none; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; }
.kv > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); min-width: 0; }
.kv dt { font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.kv dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.kv .muted { color: var(--ink-3); font-style: italic; }

/* izin bakiyesi */
.lb { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; }
.gauge { position: relative; width: 180px; height: 180px; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 12; }
.gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 100; filter: drop-shadow(0 0 8px rgba(67, 200, 255, .7)); }
.gauge-ticks { fill: none; stroke: rgba(150, 200, 255, .25); stroke-width: 4; stroke-dasharray: .25 .75; }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num { font: 600 54px/1 var(--display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #9ad8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gauge-center span { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.stat-rows { display: flex; flex-direction: column; gap: 14px; }
.stat-rows li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; color: var(--ink-2); }
.stat-rows li .bar { grid-column: 1 / -1; grid-row: 2; }
.stat-rows b { color: var(--ink); font-weight: 600; }

/* izin talebi */
.lr-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.field small { color: var(--ink-3); font-size: 11.5px; }
.field input {
  height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: var(--ink);
  background: rgba(5, 9, 30, .55); border: 1px solid var(--stroke); transition: border-color .3s, box-shadow .3s; color-scheme: dark;
}
.field input:focus { outline: none; border-color: rgba(110, 210, 255, .55); box-shadow: 0 0 0 3px rgba(67, 227, 255, .14); }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; padding: 0; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: background .3s, border-color .3s, color .3s; }
.seg input:checked + span { color: #fff; background: color-mix(in oklab, var(--accent) 18%, transparent); border-color: color-mix(in oklab, var(--accent) 60%, transparent); box-shadow: 0 0 20px -8px var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lr-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lr-summary div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); }
.lr-summary span { display: block; font-size: 11.5px; color: var(--ink-3); }
.lr-summary b { font-size: 13.5px; font-weight: 600; }
.form-error { padding: 9px 12px; border-radius: 10px; font-size: 13px; color: #ffd1e9; background: rgba(255, 79, 216, .1); border: 1px solid rgba(255, 79, 216, .35); }
.lr-success { text-align: center; padding: 10px 0 0; }
.lr-success h3 { font: 600 22px var(--display); margin-top: 6px; }
.lr-success p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.lr-success .demo-flag, .lr-success .panel-actions { justify-content: center; }
.success-mark { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(67, 227, 255, .25), transparent 70%); }
.success-mark svg { width: 76px; height: 76px; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(67, 227, 255, .8)); }
.success-mark circle { stroke: rgba(124, 243, 255, .5); stroke-width: 2.5; stroke-dasharray: 180; stroke-dashoffset: 180; animation: draw .7s .05s var(--ease-out) forwards; }
.success-mark path { stroke: #7cf3ff; stroke-width: 4; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* yemek kartı */
.mc-scene { perspective: 900px; display: grid; place-items: center; padding: 4px 0 6px; }
.mc-card {
  position: relative; width: min(100%, 340px); aspect-ratio: 1.586; border-radius: 20px; padding: 20px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 79, 216, .35), transparent 50%),
    radial-gradient(120% 120% at 0% 100%, rgba(67, 227, 255, .35), transparent 55%),
    linear-gradient(135deg, #1a2a7a, #2a1a6a 55%, #120c3a);
  border: 1px solid rgba(180, 210, 255, .3);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 50px -12px rgba(120, 100, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.mc-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) calc(var(--sx, 30%)), transparent calc(var(--sx, 30%) + 20%)); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-brand { font: 400 14px var(--display); letter-spacing: .02em; }
.mc-brand b { font-weight: 700; }
.mc-chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #f4d58d, #b08a3e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.mc-bal small { display: block; font-size: 11.5px; color: rgba(230, 236, 255, .7); letter-spacing: .04em; }
.mc-num { font: 600 30px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mc-bottom { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .14em; color: rgba(230, 236, 255, .75); }
.meal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.meal-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); }
.meal-stats span { display: block; font-size: 11.5px; color: var(--ink-3); }
.meal-stats b { font-size: 13.5px; font-weight: 600; }
.usage { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.tx-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--ink-2); background: rgba(255, 255, 255, .05); }
.tx-icon.in { color: var(--mint); transform: rotate(180deg); }
.tx-icon svg.ic { width: 16px; height: 16px; }
.tx-txt { flex: 1; min-width: 0; }
.tx-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.tx-txt small { color: var(--ink-3); font-size: 12px; }
.tx-amt { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }
.tx-amt.in { color: var(--mint); }

/* belgeler */
.docs { perspective: 1000px; }
.doc-stack { display: flex; flex-direction: column; gap: 10px; transform-style: preserve-3d; padding: 4px 0; }
.doc-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; text-align: left; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, hsla(var(--hue), 90%, 60%, .16), rgba(10, 14, 40, .6) 60%);
  border: 1px solid hsla(var(--hue), 90%, 70%, .25);
  transform: translateZ(calc((5 - var(--i)) * 5px)) rotateX(6deg);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .9);
}
.doc-card:hover, .doc-card:focus-visible { transform: translateZ(24px) rotateX(0deg) translateX(6px); border-color: hsla(var(--hue), 95%, 72%, .6); box-shadow: 0 0 34px -10px hsla(var(--hue), 95%, 65%, .8), 0 16px 30px -20px rgba(0, 0, 0, .9); }
.doc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: hsl(var(--hue), 95%, 75%); background: hsla(var(--hue), 90%, 60%, .14); }
.doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-type { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.doc-txt strong { font-size: 14.5px; font-weight: 600; }
.doc-meta { font-size: 12px; color: var(--ink-3); }
.doc-status { font-size: 11.5px; color: var(--ink-2); padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.doc-detail { transform-style: preserve-3d; }
.doc-hero { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; margin-top: 14px; }
.doc-hero h3 { font: 600 19px var(--display); margin: 2px 0 6px; }
.doc-hero p { font-size: 13.5px; color: var(--ink-2); }
.doc-preview {
  height: 140px; border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(160deg, hsla(var(--hue), 90%, 65%, .22), rgba(255, 255, 255, .03));
  border: 1px solid hsla(var(--hue), 90%, 70%, .35); box-shadow: 0 0 30px -10px hsla(var(--hue), 95%, 65%, .8);
  transform: rotateY(-14deg); transform-origin: 100% 50%;
}
.doc-preview i { display: block; height: 5px; border-radius: 3px; background: rgba(230, 240, 255, .28); }
.doc-preview i.short { width: 60%; }

/* vize */
.visa-head { display: flex; align-items: center; gap: 14px; }
.visa-head strong { display: block; font-size: 15px; }
.visa-head small { color: var(--ink-3); font-size: 12.5px; }
.flag-de { width: 42px; height: 30px; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 16px -6px rgba(0, 0, 0, .8); }
.flag-de i { flex: 1; }
.flag-de i:nth-child(1) { background: #111; }
.flag-de i:nth-child(2) { background: #d8262b; }
.flag-de i:nth-child(3) { background: #f5c518; }
.visa-progress { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.visa-progress .bar { flex: 1; }
.visa-progress .bar i { transform: scaleX(0); background: linear-gradient(90deg, #5eead4, #43a3ff); }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist li { border-radius: 12px; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .04); transition: background .3s, border-color .3s; }
.check:hover { background: rgba(255, 255, 255, .055); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; border: 1.5px solid rgba(160, 190, 255, .4); color: transparent; transition: background .35s var(--ease-out), border-color .35s, color .2s, box-shadow .35s; }
.check .box svg.ic { width: 14px; height: 14px; stroke-width: 2.6; }
.check input:checked + .box { background: linear-gradient(135deg, #5eead4, #43a3ff); border-color: transparent; color: #03101f; box-shadow: 0 0 14px rgba(94, 234, 212, .6); }
.check input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check .txt { flex: 1; min-width: 0; }
.check .txt b { display: block; font-size: 13.5px; font-weight: 600; }
.check .txt small { color: var(--ink-3); font-size: 12px; }
.check input:checked ~ .txt b { color: var(--ink-2); }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; color: var(--mint); background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3); white-space: nowrap; }

/* profil */
.pf-hero { display: flex; align-items: center; gap: 18px; }
.pf-hero h3 { font: 600 21px var(--display); letter-spacing: -.02em; }
.pf-hero p { font-size: 13.5px; color: var(--ink-2); margin: 3px 0 8px; }
.avatar-holo { position: relative; width: 84px; height: 84px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(200, 160, 255, .5), rgba(80, 60, 200, .35) 55%, rgba(20, 14, 60, .6)); box-shadow: 0 0 40px -6px rgba(192, 132, 252, .7); }
.avatar-holo span { font: 600 26px var(--display); }
.avatar-holo svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); fill: none; stroke: rgba(220, 180, 255, .7); stroke-width: 1.2; stroke-dasharray: 6 4; animation: spin 18s linear infinite; }
.pf-complete { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.pf-complete .bar { grid-column: 1 / -1; grid-row: 2; }
.pf-complete b { color: var(--ink); }

/* ---------------- intro ---------------- */
.intro-skip {
  position: fixed; right: 24px; top: 22px; z-index: 70; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); background: rgba(10, 14, 40, .6); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.intro-skip:hover { color: #fff; }

/* ---------------- demo controls ---------------- */
.demo-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; color: var(--ink-2); background: rgba(12, 18, 50, .7); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: color .3s, border-color .3s;
}
.demo-toggle:hover, .demo-toggle[aria-expanded="true"] { color: #fff; border-color: var(--stroke-2); }
.demo-toggle svg.ic { width: 17px; height: 17px; }
.demo-panel {
  position: fixed; right: 20px; bottom: 72px; z-index: 60; width: 316px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 16px;
  background: linear-gradient(160deg, rgba(30, 44, 110, .78), rgba(8, 12, 36, .9));
}
.demo-panel header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.demo-panel header strong { font: 600 14px var(--display); flex: 1; }
.fps { font: 500 11.5px var(--font); color: var(--mint); font-variant-numeric: tabular-nums; }
.demo-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 12px 0 8px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-grid button, .demo-row button {
  height: 34px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; color: var(--ink-2); text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: background .25s, color .25s, border-color .25s;
}
.demo-grid button:hover, .demo-row button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.demo-grid button[aria-pressed="true"] { color: #fff; border-color: rgba(110, 210, 255, .5); background: rgba(67, 227, 255, .1); }
#demo-states button { font: 600 11px var(--font); letter-spacing: .1em; text-align: center; }
.demo-range { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.demo-range input { grid-column: 1 / -1; width: 100%; accent-color: var(--cyan); }
.demo-range output { font-variant-numeric: tabular-nums; color: var(--ink); }
.demo-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.demo-check input { accent-color: var(--cyan); }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.demo-row button { text-align: center; }
.demo-hint { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }
kbd { font: 500 10.5px var(--font); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--stroke-2); background: rgba(255, 255, 255, .05); }

/* ---------------- mobil ---------------- */
.bottom-nav { display: none; }

@media (max-width: 1280px) {
  .app { grid-template-columns: 210px minmax(0, 1fr) 272px; gap: 16px; padding: 16px; }
  .dock-track { gap: 10px; }
  .mod-inner { height: 118px; padding: 12px; }
  .mod-title { font-size: 13px; }
  .mod-metric { flex-wrap: wrap; gap: 0 6px; }
  .mod-metric b { font-size: 18px; }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .app { grid-template-columns: 76px minmax(0, 1fr) 260px; }
  .sidebar { padding: 18px 10px; }
  .brand > div, .nav-item span, .nav-chev, .side-user div, .nav-sub { display: none !important; }
  .brand { padding: 0 0 20px; justify-content: center; }
  .nav-item { justify-content: center; padding: 0; }
  .side-user { justify-content: center; padding: 12px 0 0; }
}

@media (max-width: 820px) {
  :root { --blur: 12px; }
  body { overflow: hidden; }
  .app {
    display: flex; flex-direction: column; gap: 10px; height: 100dvh; overflow-y: auto; overflow-x: hidden;
    padding: 12px 16px calc(150px + env(safe-area-inset-bottom));
  }
  .sidebar, .side { display: none; }
  .main { gap: 10px; flex: 1 0 auto; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; }
  .brand-compact { padding: 0; gap: 8px; }
  .brand-compact .brand-mark { width: 30px; height: 30px; }
  .brand-compact .brand-name { font-size: 17px; }
  .mt-right { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
  .mt-weather { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }
  .mt-bell { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }
  .mt-bell .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
  .greeting { text-align: left; padding-top: 6px; }
  .greeting-title { font-size: 30px; }
  .greeting-sub { font-size: 15px; }
  .stage { flex: 1 0 auto; min-height: min(100vw, 440px); }
  .stage .pulse-wrap { inset: 0 0 46px 0; width: min(88vw, 400px); height: min(88vw, 400px); margin: auto; }
  .pulse-tag { display: none; }
  .dock { perspective: none; margin: 0 -16px; }
  .dock-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 10px; padding: 4px 16px 8px; transform: none; scrollbar-width: none; }
  .dock-track::-webkit-scrollbar { display: none; }
  .mod-card { flex: 0 0 42%; scroll-snap-align: start; }
  .mod-inner { height: 116px; }
  .reply { text-align: left; padding: 0 2px; min-height: 0; }
  .command { position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 30; padding: 6px; gap: 6px; }
  .status-pill { display: none; }
  .cmd-wave { width: 44px; }
  .quick-menu { right: -52px; width: min(320px, calc(100vw - 24px)); }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 22px 22px 0 0; border-bottom: 0;
    height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
  }
  .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--ink-3); font-size: 10.5px; border-radius: 14px; transition: color .3s; }
  .bottom-nav button.is-active { color: #fff; }
  .bottom-nav button.is-active svg.ic { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(67, 227, 255, .7)); }
  .bottom-nav button:active { background: rgba(255, 255, 255, .05); }
  .demo-toggle { bottom: calc(140px + env(safe-area-inset-bottom)); right: 12px; height: 36px; padding: 0 12px; }
  .demo-toggle span { display: none; }
  body:has(.holo-panel.is-sheet) .demo-toggle { opacity: 0; pointer-events: none; }
  .demo-panel { right: 12px; left: 12px; width: auto; bottom: calc(184px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 220px); }
  .intro-skip { right: 16px; top: 14px; }
  .holo-head { padding: 12px 18px 10px; }
  .holo-body { padding: 4px 18px 22px; }
  .lb { grid-template-columns: 1fr; justify-items: center; }
  .stat-rows { width: 100%; }
  .lr-summary, .meal-stats { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .doc-hero { grid-template-columns: 80px 1fr; }
  .doc-preview { height: 110px; }
  .chip { height: 34px; font-size: 12.5px; }
}

@media (hover: none) {
  .mod-card:active .mod-inner { border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
  [data-glare]::before { display: none; }
}

@media (max-height: 720px) and (min-width: 821px) {
  .greeting-title { font-size: 30px; }
  .greeting-eyebrow { margin-bottom: 6px; }
  .mod-inner { height: 104px; gap: 4px; }
  .mod-metric b { font-size: 17px; }
}

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

/* ---------------- tema seçimi (V3) ---------------- */
/* Tema dairesel bir dalgayla yayılır (View Transitions); varsayılan çapraz geçiş kapatılır. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; padding: 3px;
  border-radius: 13px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke);
}
.theme-switch + .side-user { margin-top: 12px; }
.theme-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 10px; pointer-events: none;
  background: linear-gradient(135deg, rgba(67, 227, 255, .18), rgba(139, 92, 255, .16)); border: 1px solid rgba(110, 200, 255, .3);
  transition: transform .6s var(--ease-out);
}
:root[data-theme="dark"] .theme-thumb { transform: translateX(100%); }
.theme-switch button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 0;
  border: 0; border-radius: 10px; background: none; color: var(--ink-3); font-size: 12px; font-weight: 500; transition: color .3s;
}
.theme-switch button[aria-checked="true"] { color: var(--ink); }
.theme-switch svg.ic { width: 15px; height: 15px; }
.mt-theme { display: none; }
:root[data-theme="light"] .mt-theme .ic-sun, :root[data-theme="dark"] .mt-theme .ic-moon { display: none; }

@media (max-width: 1100px) and (min-width: 821px) {
  .theme-switch { grid-template-columns: 1fr; }
  .theme-switch span { display: none; }
  .theme-thumb { width: auto; right: 3px; bottom: auto; height: 32px; }
  :root[data-theme="dark"] .theme-thumb { transform: translateY(100%); }
}
@media (max-width: 820px) {
  .mt-theme {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 12px; color: var(--ink-2);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke);
  }
  .mt-theme svg.ic { width: 18px; height: 18px; }
}
