/* ============ DAYI — Aile Merkezi tasarım sistemi ============ */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b1016;
  --bg2: #0e151d;
  --surface: #121b25;
  --surface2: #1a2634;
  --overlay: #223142;
  --line: rgba(146, 180, 200, .13);
  --line2: rgba(146, 180, 200, .24);
  --text: #e9f2f3;
  --dim: #93a7b4;
  --faint: #64798a;
  --teal: #2dd4bf;
  --teal2: #0d9488;
  --blue: #4da3ff;
  --amber: #ffb020;
  --red: #ff5c6c;
  --green: #7ee787;
  --violet: #a78bfa;
  --pink: #ff7ad9;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #2b7fe0 100%);
  --grad-warm: linear-gradient(135deg, #ffb020, #ff7ad9);
  --shadow: 0 12px 32px rgba(2, 8, 14, .45);
  --shadow-sm: 0 4px 14px rgba(2, 8, 14, .35);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-disp: "Sora", "Inter", system-ui, sans-serif;
  --nav-h: 64px;
  --top-h: 62px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f1eee7;
  --bg2: #e9e5db;
  --surface: #fbf9f4;
  --surface2: #f0ece2;
  --overlay: #ffffff;
  --line: rgba(55, 65, 78, .14);
  --line2: rgba(55, 65, 78, .26);
  --text: #1d2733;
  --dim: #566676;
  --faint: #8b98a5;
  --teal: #0d9488;
  --teal2: #0f766e;
  --blue: #2563eb;
  --amber: #d97706;
  --red: #dc2626;
  --green: #16a34a;
  --violet: #7c3aed;
  --pink: #db2777;
  --grad: linear-gradient(135deg, #14b8a6 0%, #2563eb 100%);
  --shadow: 0 12px 28px rgba(90, 80, 60, .16);
  --shadow-sm: 0 4px 12px rgba(90, 80, 60, .12);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
img { display: block; }
::selection { background: rgba(45, 212, 191, .35); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---- kaydırma çubukları ---- */
* { scrollbar-width: thin; scrollbar-color: var(--surface2) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--teal2); border: 2px solid transparent; background-clip: padding-box; }

/* ---- arka plan: aurora + grain ---- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.b1 { width: 52vmax; height: 52vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(20, 184, 166, .34), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 8vmax; background: radial-gradient(circle, rgba(37, 99, 235, .30), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 40vmax; height: 40vmax; left: 22vmax; bottom: -24vmax; background: radial-gradient(circle, rgba(255, 176, 32, .16), transparent 65%); animation: drift3 38s ease-in-out infinite alternate; }
[data-theme="light"] .blob { opacity: .55; filter: blur(100px); }
[data-theme="light"] .b1 { background: radial-gradient(circle, rgba(20, 184, 166, .22), transparent 65%); }
[data-theme="light"] .b2 { background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 65%); }
[data-theme="light"] .b3 { background: radial-gradient(circle, rgba(255, 176, 32, .20), transparent 65%); }
@keyframes drift1 { to { transform: translate(9vmax, 7vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-8vmax, 9vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(7vmax, -8vmax) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- kabuk ---- */
.app { position: relative; z-index: 2; display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100dvh; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100dvh; }

/* ---- kenar çubuğu ---- */
.sidebar { display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 16px; background: color-mix(in srgb, var(--surface) 72%, transparent); border-right: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-disp); font-size: 21px; font-weight: 800; letter-spacing: .04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text span { font-size: 9.5px; font-weight: 700; letter-spacing: .22em; color: var(--faint); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); color: var(--dim); font-weight: 600; font-size: 14.5px; transition: background .18s, color .18s, transform .12s; text-align: left; }
.side-link svg { width: 21px; height: 21px; }
.side-link:hover { background: var(--surface2); color: var(--text); }
.side-link:active { transform: scale(.98); }
.side-link.active { background: linear-gradient(135deg, rgba(45, 212, 191, .16), rgba(43, 127, 224, .14)); color: var(--teal); }
.side-link.active::before { content: ""; position: absolute; left: -16px; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: var(--grad); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.side-members { flex: 1; min-height: 0; overflow-y: auto; padding: 0 4px; }
.side-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--faint); margin: 4px 0 10px; }
.side-member-list { display: flex; flex-direction: column; gap: 8px; }
.side-member { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.side-member .mdot { width: 10px; height: 10px; }
.side-member .src { margin-left: auto; font-size: 11px; color: var(--faint); }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-version { font-size: 11px; color: var(--faint); padding: 0 4px; }

/* ---- üst çubuk ---- */
.topbar { height: var(--top-h); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-logo { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); display: none; }
.tb-title h1 { font-family: var(--font-disp); font-size: 18px; font-weight: 700; line-height: 1.2; }
.tb-title p { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--dim); background: var(--surface); border: 1px solid var(--line); transition: color .15s, border-color .15s, transform .12s, background .15s; }
.icon-btn:hover { color: var(--teal); border-color: var(--line2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.muted { color: var(--red); }
.conn-pill { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.conn-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.conn-pill.online { color: var(--green); }
.conn-pill.online .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.conn-pill.connecting .dot { animation: pulse 1.1s ease-in-out infinite; }
.conn-pill.offline { color: var(--red); }
.conn-pill.offline .dot { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---- görünümler ---- */
.views { flex: 1; min-height: 0; position: relative; }
.view { display: none; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 22px; }
.view.active { display: block; }
#view-chat.active { display: flex; flex-direction: column; overflow: hidden; padding: 0; }

/* ---- kartlar & butonlar ---- */
.card { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { display: flex; align-items: center; gap: 9px; font-family: var(--font-disp); font-size: 14.5px; font-weight: 700; }
.card-head h3 svg { width: 19px; height: 19px; }
.card-note { font-size: 12px; color: var(--faint); }
.teal { color: var(--teal); } .blue { color: var(--blue); } .amber { color: var(--amber); }
.red { color: var(--red); } .green { color: var(--green); } .violet { color: var(--violet); } .pink { color: var(--pink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 13px; font-weight: 700; font-size: 14px; transition: transform .12s, filter .15s, background .15s, border-color .15s; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--grad); color: #04211d; box-shadow: 0 6px 18px rgba(20, 184, 166, .3); }
[data-theme="light"] .btn-primary { color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal2); color: var(--teal); }
.btn-warn { background: rgba(255, 176, 32, .14); border-color: rgba(255, 176, 32, .35); color: var(--amber); }
.btn-warn:hover { background: rgba(255, 176, 32, .22); }
.btn-danger { background: rgba(255, 92, 108, .13); border-color: rgba(255, 92, 108, .35); color: var(--red); }
.btn-danger:hover { background: rgba(255, 92, 108, .22); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-size: 13px; font-weight: 700; }
.link-btn svg { width: 16px; height: 16px; transition: transform .15s; }
.link-btn:hover svg { transform: translateX(3px); }
.empty-note { color: var(--faint); font-size: 13.5px; }

/* ---- Merkez ---- */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1060px; margin: 0 auto; }
.hero { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; background: linear-gradient(135deg, rgba(45, 212, 191, .12), rgba(43, 127, 224, .10) 55%, rgba(255, 176, 32, .07)), color-mix(in srgb, var(--surface) 88%, transparent); overflow: hidden; position: relative; }
.hero-date { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.hero-greet { font-family: var(--font-disp); font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 6px 0 4px; line-height: 1.15; }
.hero-sub { color: var(--dim); font-size: 14px; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-clock { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.clock-ring { position: relative; width: 108px; height: 108px; }
.clock-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.clock-ring .ring-bg { fill: none; stroke: var(--surface2); stroke-width: 7; }
.clock-ring .ring-fg { fill: none; stroke: url(#none); stroke: var(--teal); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .5s linear; }
.clock-logo { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.clock-time { font-family: var(--font-disp); font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.clock-sec { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.stat-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-chip { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat-chip .sc-ic { width: 22px; height: 22px; }
.stat-chip b { display: block; font-family: var(--font-disp); font-size: 17px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-chip span { font-size: 11px; color: var(--faint); font-weight: 600; }
.sc-spark { margin-left: auto; opacity: .9; }

.family-list { display: flex; flex-wrap: wrap; gap: 10px; }
.family-member { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface2) 55%, transparent); }
.family-member .fm-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.family-member span { font-size: 12.5px; font-weight: 700; color: var(--text); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-member small { font-size: 10px; color: var(--faint); }

.mdot { width: 12px; height: 12px; border-radius: 50%; background: var(--av-color, var(--teal)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--av-color, var(--teal)) 16%, transparent), 0 0 10px color-mix(in srgb, var(--av-color, var(--teal)) 40%, transparent); flex: none; }
.mdot.lg { width: 14px; height: 14px; }
.mdot.sm { width: 10px; height: 10px; }

.share-body { display: flex; gap: 18px; align-items: center; }
.qr-wrap { flex: none; }
.qr-box { background: #fff; padding: 10px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); width: 148px; height: 148px; display: grid; place-items: center; }
.qr-box img, .qr-box canvas { border-radius: 4px; }
.share-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.share-info p { font-size: 13px; color: var(--dim); }
.url-row { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 6px 6px 12px; }
.url-row code { font-family: Consolas, monospace; font-size: 13px; color: var(--teal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.url-row .icon-btn { width: 32px; height: 32px; }

.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; gap: 10px; align-items: flex-start; }
.recent-item .mdot { margin-top: 5px; }
.recent-item .r-body { min-width: 0; }
.recent-item b { font-size: 13px; }
.recent-item p { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item time { font-size: 11px; color: var(--faint); margin-left: auto; flex: none; }

/* ---- Sohbet ---- */
.chat-wrap { display: flex; flex-direction: column; height: 100%; max-width: 860px; margin: 0 auto; width: 100%; position: relative; }
.chat-top { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.presence-stack { display: flex; }
.presence-stack .mdot { width: 22px; height: 22px; margin-left: -7px; border: 2px solid var(--surface); }
.presence-stack .mdot:first-child { margin-left: 0; }
.presence-more { display: grid; place-items: center; width: 22px; height: 22px; margin-left: -7px; border-radius: 50%; background: var(--overlay); border: 2px solid var(--surface); font-size: 10px; font-weight: 700; color: var(--dim); }
.chat-top-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chat-top-info b { font-size: 13.5px; }
.typing-line { font-size: 12px; color: var(--teal); min-height: 16px; display: inline-flex; align-items: center; gap: 5px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); animation: tdot 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .18s; }
.typing-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }

.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth; }
.chat-empty { margin: auto; text-align: center; color: var(--faint); padding: 30px; }
.chat-empty .empty-ic { width: 64px; height: 64px; color: var(--teal); opacity: .5; margin: 0 auto 14px; }
.chat-empty h3 { font-family: var(--font-disp); color: var(--dim); font-size: 18px; margin-bottom: 4px; }
.chat-empty p { font-size: 13.5px; }

.day-sep { align-self: center; margin: 14px 0 10px; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.sys-msg { align-self: center; margin: 6px 0; font-size: 12px; color: var(--faint); background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 4px 13px; border-radius: 999px; max-width: 90%; text-align: center; }

.msg-row { display: flex; gap: 9px; align-items: flex-end; margin-top: 9px; animation: msgIn .28s cubic-bezier(.2, .9, .3, 1.2); }
.msg-row.compact { margin-top: 2px; }
.msg-row.compact .b-name { visibility: hidden; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.msg-row.own { flex-direction: row-reverse; }
.bubble { max-width: min(76%, 560px); padding: 9px 13px 7px; border-radius: 17px 17px 17px 5px; background: var(--surface2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.msg-row.own .bubble { background: var(--grad); border: 0; border-radius: 17px 17px 5px 17px; color: #052622; }
[data-theme="light"] .msg-row.own .bubble { color: #fff; }
.b-name { font-size: 12px; font-weight: 700; color: var(--av-color, var(--teal)); display: flex; align-items: center; gap: 6px; }
.b-name .src-tag { font-size: 10px; color: var(--faint); font-weight: 600; }
.b-text { font-size: 14.5px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.b-meta { align-self: flex-end; font-size: 10.5px; opacity: .65; display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.b-meta .tick { font-size: 11px; }
.b-meta .tick.pending { opacity: .6; }
.msg-row.emoji-only .bubble { background: transparent; border: 0; box-shadow: none; padding: 2px 6px; }
.msg-row.emoji-only .b-text { font-size: 44px; line-height: 1.2; }
.msg-row.emoji-only .b-meta { opacity: .5; }

.jump-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 108px; display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: var(--overlay); border: 1px solid var(--line2); color: var(--teal); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); z-index: 5; animation: msgIn .25s; }
.jump-btn svg { width: 15px; height: 15px; }

.composer { flex: none; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(12px); position: relative; }
.composer-row { display: flex; align-items: flex-end; gap: 9px; }
.composer-emoji { flex: none; margin-bottom: 3px; }
#msgInput { flex: 1; resize: none; max-height: 132px; min-height: 44px; padding: 11px 15px; border-radius: 15px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font-size: 14.5px; line-height: 1.4; transition: border-color .15s; }
#msgInput:focus { outline: none; border-color: var(--teal2); }
#msgInput::placeholder { color: var(--faint); }
#msgInput:disabled { opacity: .55; }
.send-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #052622; box-shadow: 0 5px 16px rgba(20, 184, 166, .35); transition: transform .12s, filter .15s, opacity .15s; }
[data-theme="light"] .send-btn { color: #fff; }
.send-btn svg { width: 20px; height: 20px; margin-left: -2px; }
.send-btn:hover:not(:disabled) { filter: brightness(1.1); }
.send-btn:active:not(:disabled) { transform: scale(.9); }
.send-btn:disabled { opacity: .4; box-shadow: none; cursor: default; }
.composer-meta { display: flex; justify-content: space-between; padding: 5px 6px 0; font-size: 11px; color: var(--faint); }
#charCount { color: var(--amber); font-weight: 700; }

.emoji-panel { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); background: var(--overlay); border: 1px solid var(--line2); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 220px; overflow-y: auto; z-index: 8; animation: msgIn .2s; }
.emoji-panel button { font-size: 22px; padding: 6px 0; border-radius: 9px; transition: background .12s, transform .12s; line-height: 1; }
.emoji-panel button:hover { background: var(--surface2); transform: scale(1.15); }

/* ---- Sistem ---- */
.sys-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1060px; margin: 0 auto; }
.gauge-body { display: flex; align-items: center; gap: 16px; }
.gauge { position: relative; width: 116px; height: 116px; flex: none; }
.gauge svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.gauge .ring-bg { fill: none; stroke: var(--surface2); stroke-width: 9; }
.gauge .ring-fg { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .7s cubic-bezier(.3, .8, .3, 1), stroke .4s; }
.gauge[data-color="blue"] .ring-fg { stroke: var(--blue); }
.gauge-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.gauge-val b { font-family: var(--font-disp); font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gauge-val span { font-size: 13px; color: var(--faint); font-weight: 700; transform: translateY(4px); }
.spark { width: 100%; height: 56px; display: block; }
.spark.big { flex: 1; min-width: 0; }
.meter { height: 8px; border-radius: 6px; background: var(--surface2); overflow: hidden; margin: 8px 0 4px; }
.gauge-body .meter { flex: 1; min-width: 0; margin: 0; }
.meter-fill { height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width .7s cubic-bezier(.3, .8, .3, 1); }
.meter-fill.blue { background: linear-gradient(90deg, #4da3ff, #2b7fe0); }
.meter-fill.violet { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.net-nums { display: flex; gap: 22px; margin-bottom: 10px; }
.net-nums b { display: block; font-family: var(--font-disp); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.net-dir { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.net-dir.up { color: var(--teal); }
.net-dir.down { color: var(--blue); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); margin-top: 8px; }
.legend .lg { width: 10px; height: 3px; border-radius: 2px; margin-left: 8px; }
.legend .lg:first-child { margin-left: 0; }
.lg.teal { background: var(--teal); } .lg.blue { background: var(--blue); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--faint); }
.kv b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv b.ellipsis { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fps-body { display: flex; align-items: center; gap: 16px; }
.fps-num { flex: none; text-align: center; }
.fps-num b { font-family: var(--font-disp); font-size: 44px; font-weight: 800; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; transition: color .4s; }
.fps-num span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--faint); margin-top: 4px; }
.fps-test-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.fps-result { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.fps-stress { width: 100%; height: 90px; margin-top: 12px; border-radius: var(--r-sm); background: var(--bg2); border: 1px solid var(--line); }
.device-note { margin-top: 12px; font-size: 11.5px; color: var(--faint); }
#dnsBtn { margin-top: 12px; }
#dnsResult { margin-top: 8px; }

/* ---- Ayarlar ---- */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.profile-fields { min-width: 0; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 12px; font-weight: 700; color: var(--dim); }
.field input { padding: 11px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 15px; font-weight: 600; transition: border-color .15s; width: 100%; }
.field input:focus { outline: none; border-color: var(--teal2); }
.field-note { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.swatch-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; transition: transform .12s, border-color .12s, box-shadow .12s; }
.swatch:hover { transform: scale(1.12); }
.swatch.selected { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 20%, transparent); }
.preview-bubble-wrap { display: flex; justify-content: flex-end; padding: 6px 2px 2px; }
.bubble.preview { max-width: 240px; background: var(--preview-color, var(--teal)); border: 0; border-radius: 17px 17px 5px 17px; color: #052622; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.pref-row:last-child { border-bottom: 0; }
.pref-row b { font-size: 14px; display: block; }
.pref-row span { font-size: 12px; color: var(--faint); display: block; }
.inline-ic { width: 15px; height: 15px; vertical-align: -3px; color: var(--teal); }
.switch { width: 50px; height: 28px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line2); position: relative; transition: background .2s, border-color .2s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--dim); transition: transform .2s cubic-bezier(.3, .8, .3, 1.2), background .2s; }
.switch[aria-checked="true"] { background: var(--teal2); border-color: var(--teal2); }
.switch[aria-checked="true"] i { transform: translateX(22px); background: #fff; }
.segmented { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; }
.segmented button { display: flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--dim); transition: background .15s, color .15s; }
.segmented button svg { width: 15px; height: 15px; }
.segmented button.active { background: var(--grad); color: #052622; }
[data-theme="light"] .segmented button.active { color: #fff; }
.danger-card { border-color: rgba(255, 92, 108, .25); }
.danger-card .btn { margin-top: 12px; }

/* ---- alt gezinme (mobil) ---- */
.bottomnav { display: none; }

/* ---- toast & modal ---- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 13px; background: var(--overlay); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.2); max-width: 100%; }
.toast svg { width: 18px; height: 18px; }
.toast.success { border-color: rgba(126, 231, 135, .4); } .toast.success svg { color: var(--green); }
.toast.error { border-color: rgba(255, 92, 108, .4); } .toast.error svg { color: var(--red); }
.toast.info svg { color: var(--blue); }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(4, 9, 14, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.modal { width: min(92vw, 400px); background: var(--overlay); border: 1px solid var(--line2); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); animation: msgIn .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal h3 { font-family: var(--font-disp); font-size: 18px; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--dim); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---- giriş animasyonları ---- */
.reveal { opacity: 0; transform: translateY(16px); }
.view.active .reveal { animation: reveal .55s cubic-bezier(.2, .8, .25, 1) forwards; }
.view.active .reveal:nth-child(1) { animation-delay: .03s; }
.view.active .reveal:nth-child(2) { animation-delay: .09s; }
.view.active .reveal:nth-child(3) { animation-delay: .15s; }
.view.active .reveal:nth-child(4) { animation-delay: .21s; }
.view.active .reveal:nth-child(5) { animation-delay: .27s; }
.view.active .reveal:nth-child(6) { animation-delay: .33s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---- duyarlılık ---- */
@media (max-width: 1100px) {
  .sys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .tb-logo { display: block; }
  .tb-title p { display: none; }
  .topbar { padding: 0 14px; height: 56px; }
  .view { padding: 14px; }
  .hub-grid, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .sys-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-direction: row; padding: 20px; }
  .hero-clock { display: none; }
  .share-body { flex-direction: column; align-items: flex-start; }
  .share-info { width: 100%; }
  .bottomnav { display: flex; flex: none; height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 10.5px; font-weight: 700; transition: color .15s; }
  .tab svg { width: 23px; height: 23px; transition: transform .18s; }
  .tab.active { color: var(--teal); }
  .tab.active svg { transform: translateY(-1px) scale(1.08); }
  .tab.active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }
  .tab .nav-badge { position: absolute; top: 6px; right: calc(50% - 24px); }
  .toasts { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  .jump-btn { bottom: 118px; }
  .composer-hint { display: none; }
  .messages { padding: 14px 12px 6px; }
  .bubble { max-width: 82%; }
}
@media (max-width: 420px) {
  .hero-greet { font-size: 22px; }
  .stat-row { gap: 8px; }
  .stat-chip { padding: 11px 12px; gap: 8px; }
  .sc-spark { display: none; }
  .emoji-panel { grid-template-columns: repeat(7, 1fr); }
  .conn-pill span { display: none; }
  .conn-pill { padding: 8px; }
  .swatch-row { gap: 8px; }
  .swatch { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}/* ===== giriş kapısı ===== */
.gate { position: fixed; inset: 0; z-index: 90; display: flex; overflow-y: auto; padding: 24px 18px; background: radial-gradient(900px 520px at 12% -10%, rgba(45, 212, 191, .16), transparent 60%), radial-gradient(800px 540px at 105% 110%, rgba(77, 163, 255, .15), transparent 60%), radial-gradient(600px 400px at 85% -5%, rgba(167, 139, 250, .10), transparent 55%), var(--bg); }
body.gated .app { visibility: hidden; }
.gate-card { margin: auto; width: min(94vw, 430px); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line2); border-radius: 24px; padding: 30px 28px 24px; box-shadow: var(--shadow); text-align: center; animation: msgIn .35s cubic-bezier(.2, .9, .3, 1.15); backdrop-filter: blur(10px); }
.gate-logo { width: 66px; height: 66px; border-radius: 18px; border: 1px solid var(--line2); box-shadow: var(--shadow-sm); margin: 0 auto 12px; display: block; }
.gate-title { font-family: var(--font-disp); font-size: 30px; font-weight: 800; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-sub { font-size: 13px; color: var(--dim); line-height: 1.55; margin: 8px 0 18px; }
.gate-tabs { margin-bottom: 16px; }
.gate-tabs button { flex: 1; justify-content: center; }
#gateForm { text-align: left; display: flex; flex-direction: column; gap: 12px; }
#gateForm .side-label { margin: 2px 0 8px; }
#gateColorWrap .swatch-row { margin-bottom: 2px; }
.gate-error { background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .35); color: var(--red); font-size: 12.5px; font-weight: 600; padding: 9px 12px; border-radius: 11px; animation: msgIn .2s; }
.gate-submit { width: 100%; justify-content: center; padding: 13px; font-size: 15px; margin-top: 2px; }
.gate-note { font-size: 11.5px; color: var(--faint); line-height: 1.55; margin-top: 16px; }

/* ===== duyuru banner ===== */
.announce { flex: none; display: flex; align-items: center; gap: 11px; margin: 10px 18px 0; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 176, 32, .16), rgba(255, 122, 217, .12)); border: 1px solid rgba(255, 176, 32, .38); box-shadow: var(--shadow-sm); animation: msgIn .3s; }
.an-ic { width: 21px; height: 21px; color: var(--amber); flex: none; }
.an-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.an-body b { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--amber); }
.an-body span { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }

/* ===== sabitlenen mesaj ===== */
.pin-bar { flex: none; display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--teal) 9%, transparent); }
.pin-bar > svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.pin-text { flex: 1; min-width: 0; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.pin-text:hover { color: var(--teal); }

/* ===== mesaj eylemleri ===== */
.msg-row { position: relative; }
.msg-actions { position: absolute; top: -15px; right: 10px; z-index: 6; display: flex; gap: 4px; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .13s, transform .13s; }
.msg-row.own .msg-actions { right: auto; left: 10px; }
.msg-row:hover .msg-actions, .msg-row.show-actions .msg-actions { opacity: 1; pointer-events: auto; transform: none; }
.msg-act { display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; background: var(--overlay); border: 1px solid var(--line2); font-size: 11px; font-weight: 700; color: var(--dim); box-shadow: var(--shadow-sm); transition: color .12s, border-color .12s; }
.msg-act svg { width: 12px; height: 12px; }
.msg-act:hover { color: var(--text); border-color: var(--teal2); }
.msg-act[data-act="delete"]:hover { color: var(--red); border-color: rgba(255, 92, 108, .55); }
.msg-row.flash .bubble { animation: flashRing 1.6s ease-out; }
@keyframes flashRing { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 65%, transparent); } 100% { box-shadow: var(--shadow-sm); } }

/* ===== taç & susturma ikonları ===== */
.crown { width: 13px; height: 13px; color: var(--amber); flex: none; }
.side-member .crown { margin-left: -3px; }
.family-member .crown { display: inline-block; vertical-align: -2px; margin-left: 4px; }
.b-name .crown { width: 12px; height: 12px; }
.crown-big { width: 27px; height: 27px; color: var(--amber); vertical-align: -5px; margin-right: 7px; }
.mute-ic { width: 12px; height: 12px; color: var(--red); flex: none; margin-left: -3px; }

/* ===== yönetim paneli ===== */
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1060px; margin: 0 auto; }
.admin-hero { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(255, 176, 32, .13), rgba(167, 139, 250, .10) 55%, rgba(45, 212, 191, .10)); border-color: rgba(255, 176, 32, .32); }
.ah-stats { display: flex; gap: 26px; }
.ah-stats div { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ah-stats b { font-family: var(--font-disp); font-size: 27px; font-weight: 800; color: var(--amber); }
.ah-stats span { font-size: 11px; font-weight: 700; color: var(--dim); }
.announce-form { display: flex; flex-direction: column; gap: 10px; }
.announce-form textarea { padding: 11px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; font-family: inherit; color: var(--text); resize: vertical; min-height: 58px; transition: border-color .15s; }
.announce-form textarea:focus { outline: none; border-color: var(--teal2); }
.announce-form .btn { align-self: flex-end; }
.adm-users { display: flex; flex-direction: column; gap: 7px; }
.adm-user { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 13px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--line); text-align: left; transition: border-color .15s, background .15s, transform .12s; }
.adm-user:hover { border-color: var(--teal2); background: var(--surface2); transform: translateX(2px); }
.adm-user.self { border-color: rgba(255, 176, 32, .4); }
.au-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.au-text b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.au-text small { font-size: 11.5px; color: var(--faint); }
.au-go { width: 16px; height: 16px; color: var(--faint); flex: none; }

/* ===== kullanıcı çekmecesi ===== */
.drawer-backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(4, 9, 14, .55); backdrop-filter: blur(5px); display: flex; justify-content: flex-end; animation: fadeIn .2s; }
.drawer { width: min(94vw, 400px); height: 100%; background: var(--surface); border-left: 1px solid var(--line2); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow-y: auto; animation: drawerIn .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes drawerIn { from { transform: translateX(46px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dw-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dw-title b { font-family: var(--font-disp); font-size: 16.5px; }
.dw-title span { font-size: 11.5px; color: var(--faint); }
.drawer-body { padding: 14px 18px 26px; display: flex; flex-direction: column; gap: 10px; }
.drawer-body .side-label { margin: 10px 0 0; }
.dw-row { display: flex; flex-wrap: wrap; gap: 7px; }
.dw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dw-grid .btn { justify-content: center; }
.dw-pass { display: flex; gap: 8px; }
.dw-pass input { flex: 1; min-width: 0; padding: 10px 13px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; color: var(--text); transition: border-color .15s; }
.dw-pass input:focus { outline: none; border-color: var(--teal2); }
button:disabled { opacity: .45; cursor: not-allowed; }

/* ===== şifre formu & susturulmuş besteci ===== */
.pass-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.pass-form .btn { align-self: flex-start; }
.composer.muted .composer-row { opacity: .65; }
.composer.muted #msgInput { border-color: rgba(255, 92, 108, .45); }
#nameInput[readonly] { opacity: .8; cursor: default; }

/* ===== mobil ===== */
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .announce { margin: 8px 12px 0; }
  .drawer { width: 100vw; border-left: 0; }
  .msg-actions { top: -17px; }
  .msg-act span { display: none; }
  .msg-act { padding: 7px 9px; }
  .msg-act svg { width: 14px; height: 14px; }
  .gate-card { padding: 26px 20px 20px; }
  .ah-stats { gap: 20px; }
}

/* ===== v2.2: @etiketleme ===== */
.mention { color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); border-radius: 6px; padding: 0 4px; font-weight: 700; }
.mention.me { color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, transparent); }
.msg-row.own .bubble .mention { color: #052622; background: rgba(5, 38, 34, .16); }
[data-theme="light"] .msg-row.own .bubble .mention { color: #fff; background: rgba(255, 255, 255, .24); }
.mention-pop { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--overlay); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(14px); animation: msgIn .16s cubic-bezier(.2, .9, .3, 1.15); max-height: 236px; overflow-y: auto; }
.mp-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); text-align: left; transition: background .12s; }
.mp-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-item:hover, .mp-item.active { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.mp-item.active { outline: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); }

/* ===== v2.2: arayüz yazıları editörü ===== */
.texts-card { grid-column: 1 / -1; }
.texts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 10px 0 12px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.tx-row { display: flex; flex-direction: column; gap: 4px; }
.tx-row label { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--dim); }
.tx-row input { padding: 8px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; color: var(--text); transition: border-color .15s; }
.tx-row input:focus { outline: none; border-color: var(--teal2); }
.tx-row input::placeholder { color: var(--faint); }
.invite-form { display: flex; flex-direction: column; gap: 10px; }
.invite-form .btn { align-self: flex-start; }

/* ===== v2.2: bildirimler & internet adresi ===== */
#notifBtn.on { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 55%, transparent); background: color-mix(in srgb, var(--teal) 12%, var(--surface)); }
.pref-row .notif-state { color: var(--teal); font-weight: 700; margin-top: 2px; }
.inet-ic { width: 18px; height: 18px; color: var(--blue); flex: none; }
#inetRow { margin-top: 8px; border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
#inetRow code { color: var(--blue); }

@media (max-width: 900px) {
  .texts-list { grid-template-columns: minmax(0, 1fr); max-height: 340px; }
}
