/* Atlas — tasarım sistemi (bkz. tasarım dokümanı bölüm 7) */
:root {
  --bg: #FFFFFF;
  --bg2: #F7F6F3;
  --text: #37352F;
  --text-soft: #787774;
  --accent: #2E75CC;
  --border: #E9E9E7;
  --hover: rgba(55, 53, 47, 0.06);
  --success: #0F7B6C;
  --warning: #DFAB01;
  --danger: #E03E3E;
  --callout-bg: #F1F1EF;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --sidebar-w: 240px;
}
[data-theme="dark"] {
  --bg: #191919;
  --bg2: #202020;
  --text: #E6E6E4;
  --text-soft: #9B9B98;
  --border: #2F2F2F;
  --hover: rgba(255,255,255,0.055);
  --callout-bg: #262626;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; color: inherit; }

/* ── Giriş ekranı ── */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg2); padding: 20px;
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 40px 36px; width: 100%; max-width: 400px;
}
.auth-logo { font-size: 40px; text-align: center; }
.auth-title { font-size: 24px; font-weight: 700; text-align: center; margin: 8px 0 2px; }
.auth-slogan { color: var(--text-soft); text-align: center; font-size: 14px; margin-bottom: 26px; }
.auth-card input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 15px;
  background: var(--bg); outline: none;
}
.auth-card input:focus { border-color: var(--accent); }
.btn-primary {
  width: 100%; padding: 11px; background: var(--accent); color: #fff;
  border-radius: 6px; font-size: 15px; font-weight: 600; margin-top: 4px;
}
.btn-primary:hover { filter: brightness(1.08); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-soft); }
.auth-switch a { color: var(--accent); cursor: pointer; text-decoration: none; }
.auth-error { color: var(--danger); font-size: 13px; margin-bottom: 8px; min-height: 18px; }

/* ── Uygulama düzeni ── */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; font-size: 14px;
  transition: margin-left .18s ease;
}
.sidebar.collapsed { margin-left: calc(-1 * var(--sidebar-w)); }
.sidebar-top { padding: 12px 10px 6px; }
.workspace-name {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  font-weight: 600; cursor: default; text-align: left; color: var(--text); font-size: 14px;
}
.workspace-name .ws-icon { font-size: 18px; }
button.workspace-name { cursor: pointer; }
button.workspace-name:hover { background: var(--hover); }
.workspace-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 5px 8px; border-radius: 6px; color: var(--text-soft);
  font-size: 14px; text-align: left;
}
.sidebar-item:hover { background: var(--hover); }
.sidebar-icons { display: flex; gap: 2px; padding: 2px 2px 6px; }
.sidebar-icons .icon-btn { flex: 1; text-align: center; font-size: 15px; padding: 7px 0; border-radius: 6px; }
.sidebar-section { padding: 12px 10px 4px; color: var(--text-soft); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.recents-list { padding: 0 10px 4px; }
.page-tree { flex: 1; overflow-y: auto; padding: 0 10px; }
.tree-item {
  display: flex; align-items: center; gap: 4px; padding: 3px 4px;
  border-radius: 6px; cursor: pointer; color: var(--text-soft); position: relative;
}
.tree-item:hover { background: var(--hover); }
.tree-item.active { background: var(--hover); color: var(--text); font-weight: 500; }
.tree-item .t-icon { width: 20px; text-align: center; flex-shrink: 0; }
.tree-item .t-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item .t-actions { display: none; gap: 2px; }
.tree-item:hover .t-actions { display: flex; }
.t-btn { padding: 2px 4px; border-radius: 4px; color: var(--text-soft); font-size: 12px; line-height: 1; }
.t-btn:hover { background: var(--hover); }
.tree-children { margin-left: 14px; border-left: 1px solid var(--border); padding-left: 4px; }
.sidebar-bottom { padding: 8px 10px; border-top: 1px solid var(--border); }

/* ── Ana içerik ── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 14px; color: var(--text-soft); min-height: 45px;
}
.topbar .crumb { cursor: pointer; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.topbar .crumb:hover { background: var(--hover); }
.topbar-spacer { flex: 1; }
.icon-btn { padding: 5px 8px; border-radius: 6px; color: var(--text-soft); font-size: 15px; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.starred { color: var(--warning); }

.content { flex: 1; overflow-y: auto; }
.page-inner { max-width: 720px; margin: 0 auto; padding: 24px 32px 40vh; }

.page-icon-row { margin-top: 30px; }
.page-icon-big { font-size: 64px; cursor: pointer; border-radius: 8px; padding: 4px; display: inline-block; }
.page-icon-big:hover { background: var(--hover); }
.page-title-input {
  width: 100%; border: none; outline: none; background: none; resize: none;
  font-size: 40px; font-weight: 700; line-height: 1.2; margin-top: 8px; color: var(--text);
}
.page-title-input::placeholder { color: var(--text-soft); opacity: .4; }

/* ── Bloklar ── */
.blocks { margin-top: 12px; }
.block { display: flex; align-items: flex-start; position: relative; border-radius: 4px; padding: 1px 0; }
.block-handle {
  display: flex; gap: 0; opacity: 0; position: absolute; left: -46px; top: 3px;
  transition: opacity .1s;
}
.block:hover .block-handle { opacity: 1; }
.h-btn { padding: 3px 4px; border-radius: 4px; color: var(--text-soft); font-size: 14px; line-height: 1.2; }
.h-btn:hover { background: var(--hover); }
.h-btn.grab { cursor: grab; }
.block.dragging { opacity: .4; }
.block.drag-over { box-shadow: 0 2px 0 var(--accent); }

.block-body { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.block-text {
  flex: 1; outline: none; min-height: 24px; word-break: break-word; white-space: pre-wrap;
}
.block-text:empty::before { content: attr(data-ph); color: var(--text-soft); opacity: 0; }
.block-text.show-ph:empty::before { opacity: .45; }

.block[data-type="heading1"] .block-text { font-size: 30px; font-weight: 700; margin-top: 18px; }
.block[data-type="heading2"] .block-text { font-size: 24px; font-weight: 700; margin-top: 12px; }
.block[data-type="heading3"] .block-text { font-size: 20px; font-weight: 600; margin-top: 8px; }
.block[data-type="quote"] .block-body { border-left: 3px solid var(--text); padding-left: 12px; }
.block[data-type="callout"] .block-body {
  background: var(--callout-bg); border-radius: 6px; padding: 12px 14px; margin: 2px 0;
}
.block[data-type="callout"] .block-body::before { content: '💡'; margin-right: 4px; }
.block[data-type="code"] .block-body {
  background: var(--callout-bg); border-radius: 6px; padding: 12px 14px; margin: 2px 0;
  font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 14px;
}
.block[data-type="divider"] { padding: 8px 0; }
.block[data-type="divider"] .block-body { border-top: 1px solid var(--border); height: 1px; }
.todo-check {
  width: 16px; height: 16px; margin-top: 4px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}
.block[data-type="todo"].checked .block-text { text-decoration: line-through; color: var(--text-soft); }
.bullet-dot { margin-top: 0; flex-shrink: 0; width: 18px; text-align: center; user-select: none; }
.block .num { flex-shrink: 0; min-width: 18px; text-align: right; user-select: none; color: var(--text); }
.block[data-indent="1"] { margin-left: 28px; }
.block[data-indent="2"] { margin-left: 56px; }
.block[data-indent="3"] { margin-left: 84px; }
.block[data-indent="4"] { margin-left: 112px; }
.block[data-indent="5"] { margin-left: 140px; }
.block[data-indent="6"] { margin-left: 168px; }

/* ── Slash menü ── */
.slash-menu {
  position: absolute; z-index: 60; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); width: 280px; max-height: 320px; overflow-y: auto;
  padding: 6px;
}
.slash-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px;
  border-radius: 6px; text-align: left; font-size: 14px;
}
.slash-item .s-icon { font-size: 18px; width: 26px; text-align: center; }
.slash-item .s-name { font-weight: 500; }
.slash-item .s-desc { font-size: 12px; color: var(--text-soft); }
.slash-item:hover, .slash-item.selected { background: var(--hover); }

/* ── Veritabanı ── */
.db-toolbar { display: flex; align-items: center; gap: 4px; margin: 16px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.view-tab { padding: 5px 10px; border-radius: 6px; font-size: 14px; color: var(--text-soft); }
.view-tab.active { color: var(--text); font-weight: 600; background: var(--hover); }
.db-btn { padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--text-soft); }
.db-btn:hover { background: var(--hover); }
.db-btn.primary { background: var(--accent); color: #fff; font-weight: 500; }

.db-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.db-table th {
  text-align: left; font-weight: 500; color: var(--text-soft); border-bottom: 1px solid var(--border);
  padding: 6px 8px; white-space: nowrap;
}
.db-table td { border-bottom: 1px solid var(--border); padding: 0; }
.db-table td input, .db-table td select {
  width: 100%; border: none; background: none; outline: none; padding: 7px 8px; font-size: 14px; color: var(--text);
}
.db-table td select { cursor: pointer; }
.db-table tr:hover td { background: var(--hover); }
.row-del { opacity: 0; color: var(--text-soft); padding: 4px 6px; }
tr:hover .row-del { opacity: 1; }
.row-del:hover { color: var(--danger); }

.kanban { display: flex; gap: 12px; overflow-x: auto; padding: 12px 0 20px; align-items: flex-start; }
.kanban-col { min-width: 240px; width: 240px; background: var(--bg2); border-radius: 10px; padding: 8px; }
.kanban-col-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.kanban-count { background: var(--hover); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.kanban-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px; font-size: 14px; cursor: grab;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card .k-date { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.kanban-col.drag-over { outline: 2px solid var(--accent); outline-offset: -2px; }
.kanban-add { width: 100%; text-align: left; padding: 6px 8px; color: var(--text-soft); font-size: 13px; border-radius: 6px; }
.kanban-add:hover { background: var(--hover); }

/* ── Arama modalı ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.search-modal {
  background: var(--bg); border-radius: 12px; box-shadow: var(--shadow);
  width: 90%; max-width: 560px; overflow: hidden;
}
.search-input {
  width: 100%; border: none; outline: none; background: none;
  padding: 16px 18px; font-size: 17px; border-bottom: 1px solid var(--border);
}
.search-results { max-height: 320px; overflow-y: auto; padding: 6px; }
.search-hit { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; }
.search-hit:hover, .search-hit.selected { background: var(--hover); }
.search-hit .sh-title { font-weight: 500; font-size: 14px; }
.search-hit .sh-snippet { font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.search-empty { padding: 24px; text-align: center; color: var(--text-soft); font-size: 14px; }

/* ── Emoji seçici ── */
.emoji-pop {
  position: absolute; z-index: 80; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 10px; width: 264px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.emoji-pop button { font-size: 20px; padding: 4px; border-radius: 6px; }
.emoji-pop button:hover { background: var(--hover); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px;
  font-size: 14px; z-index: 200; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── Boş durum ── */
.empty-state { text-align: center; color: var(--text-soft); padding: 60px 20px; }
.empty-state .es-icon { font-size: 44px; margin-bottom: 10px; }

/* ── AI Asistanı ── */
.ai-chat-wrap { max-width: 760px; margin: 0 auto; padding: 20px 24px 130px; min-height: 100%; }
.ai-chat-intro { text-align: center; padding: 60px 20px 30px; color: var(--text-soft); }
.ai-chat-intro .ai-icon { font-size: 40px; margin-bottom: 12px; }
.ai-chat-intro h2 { font-size: 22px; color: var(--text); margin-bottom: 6px; }
.ai-chat-suggestions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.ai-suggestion { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }
.ai-suggestion:hover { background: var(--hover); }

.ai-msg { display: flex; gap: 10px; margin-bottom: 22px; align-items: flex-start; }
.ai-msg-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--bg2); overflow: hidden; }
.ai-msg.user .ai-msg-avatar { background: var(--accent); color: #fff; }
.ai-msg-avatar .ai-avatar-fill { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; font-size: 11px; }
.ai-msg-body { flex: 1; min-width: 0; padding-top: 3px; }
.ai-msg-text { line-height: 1.6; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.ai-msg-text code { background: var(--callout-bg); padding: 1px 5px; border-radius: 4px; font-family: 'SF Mono', Menlo, monospace; font-size: 13px; }
.ai-msg.user .ai-msg-text { font-weight: 500; }
.ai-sources { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ai-source-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 14px; background: var(--callout-bg); font-size: 12px; color: var(--text-soft); }
.ai-source-chip:hover { background: var(--hover); }
.ai-typing { display: flex; gap: 4px; padding: 4px 0; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); animation: ai-blink 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ai-input-bar {
  position: fixed; bottom: 0; left: var(--sidebar-w); right: 0; padding: 16px 24px 20px;
  background: linear-gradient(to top, var(--bg) 60%, transparent); transition: left .18s ease;
}
.sidebar.collapsed ~ .main .ai-input-bar { left: 0; }
.ai-input-row {
  max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.ai-input-row textarea {
  flex: 1; border: none; background: none; resize: none; font-size: 14px; font-family: inherit;
  color: var(--text); max-height: 140px; outline: none; line-height: 1.5;
}
.ai-send-btn { padding: 8px 12px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; flex-shrink: 0; }
.ai-send-btn:disabled { opacity: .5; }
.ai-quota-note { text-align: center; font-size: 12px; color: var(--text-soft); margin-top: 8px; }

/* ── Tanıtım (landing) sayfası ── */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 16px 24px;
}
.landing-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; }
.landing-brand img { width: 30px; height: 30px; object-fit: contain; }
.landing-actions { display: flex; gap: 8px; }
.btn-ghost { padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.btn-ghost:hover { background: var(--hover); }
.btn-accent { padding: 9px 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 10px; }

.landing-hero-bg { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(46,117,204,0.10), transparent 70%); }
.hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 56px 24px 44px; }
.hero-logo { width: 92px; height: 92px; object-fit: contain; margin-bottom: 22px; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; color: var(--text-soft); margin-top: 20px; line-height: 1.6; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.landing-section-title {
  text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-soft); margin-top: 24px;
}
.features {
  max-width: 1000px; margin: 16px auto 0; padding: 24px 24px 8px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px;
}
.feature { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg2); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; outline: none; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.feature:focus-visible { border-color: var(--accent); }
.feature.open { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(46,117,204,0.25); }
.feature .f-ico { font-size: 28px; }
.feature h3 { font-size: 16px; margin-top: 12px; }
.feature p { font-size: 14px; color: var(--text-soft); margin-top: 7px; line-height: 1.5; }
.feature .f-see { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--accent); }

/* ── Özellik görsel önizlemesi ── */
.feat-preview { max-width: 1000px; margin: 8px auto 0; padding: 0 24px; }
.feat-preview[hidden] { display: none; }
.feat-preview-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.fp-ico { font-size: 26px; }
.fp-title { font-size: 17px; font-weight: 700; }
.fp-sub { font-size: 13px; color: var(--text-soft); margin-top: 2px; max-width: 640px; }
.fp-close { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; color: var(--text-soft); font-size: 15px; }
.fp-close:hover { background: var(--hover); }
.fp-shot { border: 1px solid var(--border); border-radius: 16px; background: var(--bg); padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,0.07); animation: fpIn .22s ease; overflow: hidden; }
@keyframes fpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Ortak mockup öğeleri */
.mock { font-size: 14px; }
.mk-title { font-size: 13px; color: var(--text-soft); }
.mk-h1 { font-size: 22px; font-weight: 700; margin: 10px 0 12px; }
.mk-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.mk-row input { accent-color: var(--accent); }
.mk-bullet { padding: 3px 0; }
.mk-quote { border-left: 3px solid var(--text); padding-left: 12px; margin: 10px 0; color: var(--text-soft); font-style: italic; }
.mk-slash { margin-top: 14px; width: 240px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); padding: 6px; box-shadow: var(--shadow); }
.mk-slash-in { font-family: monospace; color: var(--accent); padding: 4px 8px; }
.mk-si { padding: 7px 8px; border-radius: 6px; font-size: 13px; color: var(--text-soft); }
.mk-si.sel { background: var(--hover); color: var(--text); font-weight: 600; }

/* Tablo + kanban mockup */
.mk-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.mk-tab { font-size: 13px; color: var(--text-soft); padding: 4px 10px; border-radius: 6px; }
.mk-tab.active { background: var(--hover); color: var(--text); font-weight: 600; }
.mk-table { width: 100%; border-collapse: collapse; }
.mk-table th, .mk-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.mk-table th { color: var(--text-soft); font-weight: 600; }
.mk-chip { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.mk-chip.green { background: #DDEEE0; color: #1F7A3D; }
.mk-chip.blue { background: #D9E7F8; color: #1F5FA8; }
.mk-chip.gray { background: var(--hover); color: var(--text-soft); }
.mk-kanban { display: flex; gap: 12px; margin-top: 18px; overflow-x: auto; }
.mk-kcol { min-width: 150px; flex: 1; background: var(--bg2); border-radius: 10px; padding: 8px; }
.mk-khead { font-size: 12px; font-weight: 600; color: var(--text-soft); padding: 2px 4px 8px; }
.mk-khead b { color: var(--accent); }
.mk-kcard { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 6px; }

/* Arama mockup */
.mock-search { max-width: 520px; margin: 0 auto; }
.mk-searchbar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 15px; margin-bottom: 12px; }
.mk-caret { width: 1px; height: 16px; background: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mk-kbd { margin-left: auto; font-size: 11px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.mk-hit { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; }
.mk-hit.sel { background: var(--hover); }
.mk-hit-t { font-size: 14px; font-weight: 500; }
.mk-hit-s { font-size: 12px; color: var(--text-soft); }

/* Karanlık mod mockup — her zaman koyu görünür */
.mock-dark { background: #191919; border-radius: 12px; padding: 20px; }
.mk-callout { margin-top: 12px; background: #232a33; color: #cdd6e0; border-radius: 8px; padding: 12px 14px; font-size: 13px; }

/* Cihazlar mockup */
.mock-devices { display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding: 10px 0; }
.mk-desktop { width: 300px; }
.mk-dbar { height: 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.mk-dbody { display: flex; height: 150px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
.mk-dside { width: 70px; background: var(--bg2); border-right: 1px solid var(--border); }
.mk-dmain { flex: 1; background: var(--bg); }
.mk-phone { width: 84px; }
.mk-pnotch { width: 34px; height: 5px; background: var(--border); border-radius: 4px; margin: 0 auto 4px; }
.mk-pbody { height: 150px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 14px 12px; }
.mk-pline { height: 9px; border-radius: 5px; background: var(--bg2); margin-bottom: 10px; }
.mk-pline.w50 { width: 50%; } .mk-pline.w70 { width: 70%; } .mk-pline.w80 { width: 80%; } .mk-pline.w90 { width: 90%; }

/* Güvenlik mockup */
.mock-security { text-align: center; }
.mk-lock { font-size: 44px; margin-bottom: 10px; }
.mk-secrow { display: inline-block; text-align: left; width: 100%; max-width: 420px; padding: 9px 4px; font-size: 14px; color: var(--text); }

@media (max-width: 768px) {
  .mk-desktop { width: 200px; }
  .fp-shot { padding: 16px; }
}

.soon { max-width: 780px; margin: 12px auto 0; padding: 0 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.soon-pill { padding: 8px 15px; border-radius: 20px; background: var(--callout-bg); font-size: 14px; color: var(--text-soft); }
.landing-footer { margin-top: auto; text-align: center; padding: 28px; color: var(--text-soft); font-size: 13px; border-top: 1px solid var(--border); }

.auth-close {
  position: absolute; top: 12px; right: 14px; font-size: 16px; color: var(--text-soft);
  width: 28px; height: 28px; border-radius: 6px; line-height: 1;
}
.auth-close:hover { background: var(--hover); }

/* ── Paylaşım modalı ── */
.share-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; font-weight: 500; }
.share-toggle-row input[type="checkbox"] { width: 38px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.share-link-row { display: flex; gap: 8px; margin-top: 8px; }
.share-link-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg2); font-size: 13px; color: var(--text-soft); }

/* ── Profil ── */
.user-avatar {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--accent);
  vertical-align: middle;
}
.profile-avatar-big {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700;
  color: #fff; background: var(--accent); cursor: pointer; position: relative;
}
.profile-avatar-wrap { text-align: center; position: relative; }
.profile-avatar-edit {
  position: absolute; bottom: 12px; right: calc(50% - 42px); width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; border: 2px solid var(--bg2); pointer-events: none;
}
.profile-remove-link { display: block; text-align: center; font-size: 13px; color: var(--danger); margin-top: -6px; margin-bottom: 14px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero { padding: 36px 20px 30px; }
  .hero .lead { font-size: 17px; }
  .landing-brand { font-size: 17px; }
}

/* ── Mobil ── */
.mobile-toggle { display: none; }
@media (max-width: 768px) {
  .sidebar { position: fixed; z-index: 90; height: 100%; box-shadow: var(--shadow); }
  .sidebar.collapsed { margin-left: calc(-1 * var(--sidebar-w) - 20px); box-shadow: none; }
  .mobile-toggle { display: inline-block; }
  .page-inner { padding: 16px 20px 30vh; }
  .page-title-input { font-size: 32px; }
  .block-handle { left: -34px; }
}
