/* Tezivra — arayüz. Renkler katalogdaki uygulama temasından CSS değişkeni olarak gelir. */
:root {
  --bg: #f4f1ea; --panel: #fffdf8; --panel2: #f7f2e8; --ink: #2b2622; --muted: #7b7064; --line: #e4dccd;
  --accent: #d9653b; --accent2: #2f7dd1; --ok: #2f9e62; --warn: #d99a1e; --bad: #cf3f3f;
  --radius: 14px; --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font); background: var(--bg); color: var(--ink); overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; }
.right { margin-left: auto; }
.center { text-align: center; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
h3 { font-size: 15px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 16px; }

/* ---------- düğmeler ve form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-decoration: none; color: var(--ink); transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--panel2); color: var(--ink); }
label.field { display: block; margin: 0 0 10px; }
label.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; min-height: 70px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 6px 12px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); } .chip.bad { color: var(--bad); }
.chip.pro { background: linear-gradient(90deg, #f59f00, #e8590c); color: #fff; border: 0; }
.chip.demo { background: var(--panel2); background: color-mix(in srgb, var(--warn) 18%, var(--panel)); color: var(--warn); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.list { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.tbl tr.me td { background: var(--panel2); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.bar { height: 6px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.lock { font-size: 11px; color: var(--muted); }

/* ---------- giriş ekranı ---------- */
.auth { position: fixed; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; overflow: auto; }
.auth .brand { background: linear-gradient(135deg, var(--accent), #8a3ffc); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth .brand h1 { font-size: 40px; margin: 0; letter-spacing: -.5px; }
.auth .brand p { font-size: 16px; max-width: 34em; opacity: .95; margin: 0; }
.auth .brand ul { margin: 0; padding-left: 18px; font-size: 14px; opacity: .95; }
.auth .brand canvas { border-radius: 16px; background: rgba(255, 255, 255, .12); }
.auth-office { aspect-ratio: 16 / 10; max-width: 560px; width: 100%; display: grid; place-items: center; }
.auth .form-side { display: grid; place-items: center; padding: 32px; }
.auth .form { width: 100%; max-width: 380px; }
.auth .tabs-auth { display: flex; gap: 6px; margin-bottom: 18px; }
.auth .tabs-auth button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; }
.auth .tabs-auth button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.auth .err { color: var(--bad); min-height: 20px; font-size: 13px; }
.auth .google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; padding: 11px; }
.auth .google-btn:hover:not(:disabled) { background: #f8f9fa; }
.auth .or { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--muted); font-size: 12px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- ana yerleşim: aşamalar | ofis | menü ---------- */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: 300px 1fr 78px; transition: grid-template-columns .22s ease; }
.app.rail-off { grid-template-columns: 300px 1fr 0; }
.app.rail-off .rail { padding: 0; border: 0; overflow: hidden; }
.rail-hide { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px; border-radius: 8px; }
.rail-hide:hover { background: var(--panel2); color: var(--ink); }
.rail-handle { position: absolute; right: 10px; top: 10px; z-index: 6; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); font-size: 18px; cursor: pointer; }
.edge-handle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 6; writing-mode: vertical-rl; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--panel); box-shadow: -6px 0 20px rgba(0, 0, 0, .12); padding: 12px 6px; cursor: pointer; font-weight: 700; font-size: 12.5px; color: var(--accent); }
.edge-handle span { margin-top: 6px; }
.left { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.left .head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.left .head .ptitle { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 6px 0; overflow-wrap: anywhere; }
.left .stages { flex: 1; overflow: auto; padding: 8px; }
.left .log { max-height: 26%; overflow: auto; border-top: 1px solid var(--line); padding: 8px 12px; font-size: 12px; background: var(--panel2); }
.left .log div { margin: 2px 0; }
.left .log b { font-weight: 600; }
.stage-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.stage-item:hover { background: var(--panel2); }
.stage-item.running { border-color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--panel2); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.stage-item.awaiting { border-color: var(--warn); background: var(--panel2); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
.stage-item .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--panel2); border: 1px solid var(--line); }
.stage-item.done .st { background: var(--ok); color: #fff; border-color: var(--ok); }
.stage-item.error .st { background: var(--bad); color: #fff; }
.stage-item.running .st { border: 2px solid var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
.stage-item .lbl { font-weight: 600; font-size: 13px; }
.stage-item .sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.stage-item .who { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage { position: relative; overflow: hidden; background: var(--bg); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--panel2) 70%, var(--bg)), var(--bg)); }
.canvas-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 46px 8px 8px; }
.canvas-wrap canvas { border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .15); image-rendering: auto; }
.hud { position: absolute; left: 14px; top: 10px; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.hud button { pointer-events: auto; }
.hud .chip { background: var(--panel); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(6px); padding: 4px 10px; font-size: 12px; }

.decision { position: absolute; width: min(560px, calc(100% - 24px)); max-height: 72%; overflow: auto; background: var(--panel); border: 3px solid var(--agent, var(--warn)); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); padding: 14px 16px; animation: pop .25s ease-out; z-index: 4; overflow: visible; }
.decision > * { position: relative; }
.decision::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -13px; width: 22px; height: 22px; background: var(--panel); border-right: 3px solid var(--agent, var(--warn)); border-bottom: 3px solid var(--agent, var(--warn)); transform: translateX(-50%) rotate(45deg); }
.decision.below::after { bottom: auto; top: -13px; transform: translateX(-50%) rotate(225deg); }
.decision.docked { left: 50%; bottom: 12px; top: auto !important; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); max-height: 70%; overflow: auto; }
.decision.docked::after { display: none; }
.decision .consult-scroll { max-height: min(58vh, 520px); overflow: auto; padding-right: 2px; }
.decision.docked .consult-scroll { max-height: 62vh; }
.decision.mini .consult-scroll > :not(.consult-head) { display: none; }
.decision .consult-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.decision .consult-head > div { flex: 1; }
.decision .consult-q { font-size: 15px; font-weight: 600; margin: 6px 0 10px; }
.decision .consult-actions { margin-top: 8px; flex-wrap: wrap; }
.decision .consult-note { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.decision .consult-note textarea { min-height: 90px; }
.decision:not(.docked) { max-height: none; }
@keyframes pop { from { opacity: 0; } }
.decision h3 { display: flex; gap: 8px; align-items: center; }
.title-opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.title-opt:hover { border-color: var(--accent); background: var(--panel2); }
.title-opt .t { font-weight: 700; }
.title-opt .g { font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.novelty { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 8px; align-self: start; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: var(--panel2); }

/* ---------- çekmece (sağdaki menüden açılır) ---------- */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(0, 0, 0, .12); transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; z-index: 5; }
.drawer.open { transform: none; }
.drawer.open.min { transform: translateX(105%); }
.drawer.wide { width: min(940px, 100%); }
.drawer-body .tbl-wrap { overflow-x: auto; }
.drawer header { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 16px; margin: 0; flex: 1; }
.drawer-body { flex: 1; overflow: auto; padding: 14px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; font-weight: 700; }

/* ---------- sağ menü ---------- */
.rail { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 8px 6px; gap: 8px; overflow-y: auto; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; font-size: 10.5px; color: var(--muted); position: relative; }
.tab .ic { font-size: 20px; line-height: 1; }
.tab:hover { background: var(--panel2); color: var(--ink); }
.tab.on { background: var(--panel2); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent); font-weight: 700; }
.tab.admin .ic { filter: hue-rotate(200deg); }
.tab .dot { position: absolute; top: 4px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.tab-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.widgets { display: flex; flex-direction: column; gap: 6px; }
.widget { border: 1px solid var(--line); border-radius: 12px; padding: 6px 4px; text-align: center; font-size: 11px; background: var(--panel2); cursor: pointer; }
.widget b { display: block; font-size: 14px; color: var(--ink); }
.widget .conn { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.widget .conn.off { background: var(--bad); }

/* ---------- belge ---------- */
.doc { font-family: Georgia, "Times New Roman", serif; font-size: 14.5px; line-height: 1.6; }
.doc h1 { font-size: 20px; text-align: center; }
.doc h2 { font-size: 16.5px; margin-top: 1.4em; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.doc h3 { font-size: 15px; }
.doc p { text-align: justify; }
.doc table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: 12px; margin: 10px 0; }
.doc th, .doc td { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.doc blockquote { margin: 8px 16px; font-style: italic; color: var(--muted); }
.doc .sec-tools { float: right; font-family: var(--font); }
.doc textarea { font-family: ui-monospace, monospace; font-size: 12.5px; min-height: 220px; }
.placeholder-warn { background: var(--panel2); outline: 1px dashed var(--warn); background: color-mix(in srgb, var(--warn) 22%, transparent); }

/* ---------- mağaza, sıralama, ajanlar ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shop-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.shop-item .nm { font-weight: 700; font-size: 13px; }
.shop-item .ic { font-size: 26px; }
.shop-item.owned { border-color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.swatch { display: flex; gap: 3px; } .swatch i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .1); }
.plan-card { border: 2px solid var(--accent); border-radius: 16px; padding: 14px; background: var(--panel); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel)); }
.plan-card .price { font-size: 24px; font-weight: 800; }
.badge-save { background: var(--ok); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.agent-card { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; position: relative; }
.frame-laurel { box-shadow: 0 0 0 3px #f2c94c, 0 0 0 5px #b8860b; }
.frame-neon { box-shadow: 0 0 0 2px #ff3fb4, 0 0 12px #3ff2ff; }
.frame-tile { box-shadow: 0 0 0 3px #1c7ed6, 0 0 0 5px #fff, 0 0 0 7px #1c7ed6; }
.frame-bug { box-shadow: 0 0 0 2px #2f9e44, 0 0 0 4px #fff, 0 0 0 6px #2f9e44; }
.frame-plain { box-shadow: 0 0 0 2px var(--line); }
.rank-banner { border-radius: 14px; padding: 12px; background: linear-gradient(90deg, #f59f00, #e8590c); color: #fff; }
.rank-big { font-size: 34px; font-weight: 800; line-height: 1; }
.medal { font-size: 16px; }

/* ---------- modal ve bildirimler ---------- */
.modal { position: fixed; inset: 0; background: rgba(10, 10, 20, .45); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal .dialog { background: var(--panel); border-radius: 18px; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); padding: 18px 20px; animation: pop2 .2s ease-out; }
.modal .dialog.sm { width: min(440px, 100%); }
@keyframes pop2 { from { transform: scale(.96); opacity: 0; } }
.modal .dialog header { display: flex; align-items: center; margin-bottom: 10px; }
.modal .dialog header h2 { flex: 1; font-size: 18px; margin: 0; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.type-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; text-align: center; background: var(--panel); }
.type-card .ic { font-size: 24px; display: block; }
.type-card.on { border-color: var(--accent); background: var(--panel2); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); font-weight: 700; }
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 30; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; animation: pop2 .2s; max-width: 90vw; }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
pre.json { background: var(--panel2); padding: 10px; border-radius: 10px; font-size: 11.5px; overflow: auto; max-height: 260px; white-space: pre-wrap; }
details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.fact { border-left: 3px solid var(--accent2); padding: 4px 10px; margin: 6px 0; font-size: 12.5px; background: var(--panel2); border-radius: 0 8px 8px 0; }
.fact.sig { border-left-color: var(--ok); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- ödeme sayfası ---------- */
.pay-page { display: grid; place-items: center; min-height: 100vh; overflow: auto; }
.pay-card { width: min(460px, 92vw); }
.pay-info { font-size: 18px; font-weight: 700; margin: 14px 0; }

/* ---------- dar ekran ---------- */
@media (max-width: 1100px) { .app { grid-template-columns: 260px 1fr 70px; } .app.rail-off { grid-template-columns: 260px 1fr 0; } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr 62px; grid-template-rows: 52% 48%; }
  .app.rail-off { grid-template-columns: 1fr 0; }
  .left { grid-column: 1; grid-row: 2; border-right: 0; border-top: 1px solid var(--line); }
  .stage { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1 / 3; }
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth .brand { padding: 24px 20px 18px; gap: 10px; }
  .auth .brand h1 { font-size: 30px; }
  .auth .brand p { font-size: 14px; }
  /* Telefonda giriş/kayıt ilk ekranda görünsün: tanıtım ofisi ve madde listesi gizlenir */
  .auth .brand ul, .auth .brand .auth-office { display: none; }
  .auth .form-side { padding: 20px 16px 32px; place-items: start center; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .tab { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* yapay zekâ bağlantısı */
.ai-card { padding: 12px 14px; margin: 8px 0 12px; display: grid; gap: 4px; }
.ai-card.ok { border-left: 4px solid var(--ok); }
.ai-card.warn { border-left: 4px solid var(--warn); }
button.chip { cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; }

/* herkese açık gizlilik / hesap silme sayfaları */
.legal-page { background: var(--bg); padding: 24px 16px; }
.legal-card { max-width: 760px; margin: 0 auto; padding: 24px; }
.legal-card h1 { font-size: 24px; margin: 8px 0 16px; }
.legal-links { text-align: center; margin-top: 12px; }

/* arka plan müziği düğmesi */
.hud .music-chip { cursor: pointer; }

/* ---------- kendi belgesinden başla ---------- */
.seed-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0; background: var(--panel2); }
.seed-box summary { cursor: pointer; }
.seed-box .seg { margin: 8px 0 4px; flex-wrap: wrap; }

/* ---------- özgünlük eklentileri ---------- */
.ig-plugins { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ig-plugin .ic { font-size: 20px; }
.ig-head { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.ig-big { font-size: 30px; font-weight: 800; min-width: 92px; text-align: center; padding: 6px 10px; border-radius: 12px; border: 2px solid currentColor; }
.ig-big.ok { color: var(--ok); } .ig-big.warn { color: var(--warn); } .ig-big.bad { color: var(--bad); }
.ig-sources { padding-left: 20px; } .ig-sources li { margin: 3px 0; }
.ig-sources .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.ig-text { white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.55; max-height: 420px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ig-text mark { color: inherit; border-radius: 3px; padding: 0 1px; }
.s0 { background: rgba(231, 76, 60, .30); } .s1 { background: rgba(52, 152, 219, .30); } .s2 { background: rgba(46, 204, 113, .30); } .s3 { background: rgba(155, 89, 182, .30); }
.s4 { background: rgba(241, 196, 15, .38); } .s5 { background: rgba(26, 188, 156, .30); } .s6 { background: rgba(230, 126, 34, .32); } .s7 { background: rgba(127, 140, 141, .32); }
.ai-high { background: rgba(207, 63, 63, .22); } .ai-uncertain { background: rgba(217, 154, 30, .25); }
/* Dar ekranlarda üçlü/ikili form satırları alt alta (dil seçimi sıkışmasın) */
@media (max-width: 560px) { .dialog .grid3 { grid-template-columns: 1fr; } .dialog .grid2 { grid-template-columns: 1fr; } .seed-box .seg button { flex: 1 1 auto; } }
.cite-issues { padding-left: 18px; } .cite-issues li { margin: 4px 0; } .cite-issues .chip { margin-right: 4px; }

/* ---------- abonelik planları ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plans .plan-card { display: flex; flex-direction: column; gap: 6px; }
.plans .plan-card .btn { margin-top: auto; }
.plans .plan-card.current { border-style: dashed; }
.plan-list { margin: 4px 0 8px; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }
.plan-list li { margin: 3px 0; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ---------- şifreyi göster ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 16px; padding: 6px; border-radius: 8px; }
.pw-eye:hover { background: var(--panel2); }

/* ---------- sohbet ---------- */
.chat { display: grid; grid-template-columns: 220px 1fr; gap: 12px; height: calc(100vh - 110px); min-height: 380px; }
.chat-side { overflow: auto; border-right: 1px solid var(--line); padding-right: 10px; }
.chat-room { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.chat-room:hover { background: var(--panel2); }
.chat-room.on { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent); font-weight: 700; }
.chat-req { padding: 8px; margin: 6px 0; font-size: 12.5px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-main header { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 78%; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 11px; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border-radius: 14px 14px 4px 14px; }
.chat-msg .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.chat-msg .txt { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
@media (max-width: 820px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; } .chat-msgs { min-height: 300px; } }
