/* =====================================================================
   LisansPro — Yönetim paneli
   ===================================================================== */
:root {
    --paper: #f3f5fa; --surface: #fff; --ink: #14213d; --ink-2: #2a3654; --muted: #5b6782;
    --line: #dce2ee; --line-strong: #c5cee0; --primary: #2f5bff; --primary-ink: #1d3fd1; --primary-soft: #e8eeff;
    --brass: #ffc83d; --ok: #12a06b; --ok-ink: #0b6b47; --ok-soft: #e3f6ee; --danger: #d6324a; --danger-soft: #fdecef;
    --warn-ink: #7a5a00; --warn-soft: #fff4d6; --info-soft: #e6f1ff;
    --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --r: 10px; --r-lg: 14px; --side: 252px;
}
*, *::before, *::after { box-sizing: border-box; }
body.admin { margin: 0; background: linear-gradient(90deg, var(--ink) var(--side), var(--paper) var(--side)); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: .92em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-block { display: block; }
.a-muted { color: var(--muted); }
.num { text-align: right; white-space: nowrap; }

/* ---------- İskelet ---------- */
.a-side {
    position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; display: flex; flex-direction: column;
    background: var(--ink); color: #c4cde3; overflow-y: auto;
}
.a-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; color: #fff; text-decoration: none !important; }
.a-brand strong { display: block; font-size: 16px; line-height: 1.2; }
.a-brand small { display: block; color: #8e9ab8; font-size: 12px; }
.a-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brass); color: var(--ink); display: grid; place-items: center; flex: none; }
.a-nav { padding: 4px 10px 16px; flex: 1; }
.a-nav-group { margin: 16px 10px 6px; font-size: 12px; font-weight: 600; color: #6f7c9c; }
.a-nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #c4cde3; font-weight: 500; font-size: 14.5px; text-decoration: none !important; }
.a-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.a-nav-link.is-active { background: rgba(255,255,255,.1); color: #fff; }
.a-nav-link.is-active .icon { color: var(--brass); }
.a-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.a-version { padding: 12px 20px 16px; font-size: 12px; color: #6f7c9c; }
.a-backdrop { display: none; }
.a-main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.a-top {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 28px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.a-title { font-size: 20px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-top-actions { display: flex; align-items: center; gap: 10px; }
.a-icon-btn.a-menu { display: none; }
.a-icon-btn { width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.a-icon-btn:hover { background: var(--paper); }
.a-user { position: relative; }
.a-user > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 10px; }
.a-user > summary::-webkit-details-marker { display: none; }
.a-user > summary:hover { background: var(--paper); }
.a-user strong { display: block; font-size: 14px; line-height: 1.2; }
.a-user small { display: block; font-size: 12px; color: var(--muted); }
.a-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-weight: 700; }
.a-user-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 36px -14px rgba(20,33,61,.3); }
.a-user-menu a, .a-user-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: var(--ink); font-size: 14px; cursor: pointer; text-align: left; text-decoration: none; }
.a-user-menu a:hover, .a-user-menu button:hover { background: var(--paper); }
.a-content { padding: 24px 28px 48px; flex: 1; }

/* ---------- Bileşenler ---------- */
.a-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px;
    border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.a-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.a-btn-block { width: 100%; }
.a-btn-primary { background: var(--primary); color: #fff; }
.a-btn-primary:hover { background: var(--primary-ink); }
.a-btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.a-btn-ghost:hover { border-color: var(--ink); }
.a-btn-danger { background: var(--surface); border-color: #f0b7c1; color: #b4233a; }
.a-btn-danger:hover { background: var(--danger-soft); }
.a-btn-ok { background: var(--ok); color: #fff; }
.a-btn-ok:hover { background: var(--ok-ink); }
.a-btn[disabled] { opacity: .6; pointer-events: none; }
.a-link-btn { border: 0; background: none; padding: 0; color: var(--primary-ink); font-weight: 600; cursor: pointer; font-size: 14px; }
.a-link-btn.danger { color: #b4233a; }

.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 20px; }
.a-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.a-card-head h2 { font-size: 16.5px; }
.a-card-head a { font-size: 14px; font-weight: 600; }
.a-card-flush { padding: 0; overflow: hidden; }
.a-card-flush .a-card-head { padding: 16px 20px 0; }
.a-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.a-grid-2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-stack > .a-card:last-child { margin-bottom: 0; }
.a-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-bottom: 16px; font-size: 14.5px; border: 1px solid; }
.a-alert-ok { background: var(--ok-soft); color: var(--ok-ink); border-color: #b6e6d1; }
.a-alert-danger { background: var(--danger-soft); color: #9b1c31; border-color: #f6c7d0; }
.a-alert-warn { background: var(--warn-soft); color: var(--warn-ink); border-color: #f3dc97; }
.a-alert-info { background: var(--info-soft); color: #1d3fd1; border-color: #c9d6ff; }
.a-empty { color: var(--muted); padding: 18px 0; text-align: center; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--paper); color: var(--ink-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge-warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge-danger { background: var(--danger-soft); color: #9b1c31; }
.badge-info { background: var(--primary-soft); color: var(--primary-ink); }
.badge-ink { background: var(--ink); color: #fff; }

.a-todo { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.a-todo-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid #f3dc97; color: var(--warn-ink); text-decoration: none !important; }
.a-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.a-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.a-stat small { display: block; color: var(--muted); font-size: 13px; }
.a-stat strong { display: block; font-size: 25px; letter-spacing: -0.02em; margin: 2px 0; }
.a-stat span { font-size: 13px; color: var(--muted); }
.a-chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; height: 190px; align-items: end; padding-bottom: 22px; position: relative; }
.a-bar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.a-bar { display: block; width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 0; }
.a-bar-col:hover .a-bar { background: var(--primary-ink); }
.a-bar-col small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.a-list { list-style: none; margin: 0; padding: 0; }
.a-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.a-list li:first-child { border-top: 0; }
.a-list li > :last-child { white-space: nowrap; text-align: right; }

/* Tablolar */
.a-table-wrap { overflow-x: auto; position: relative; }
.a-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.a-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfd; }
.a-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tbody tr:hover td { background: #fafbfd; }
.a-table .actions { white-space: nowrap; text-align: right; }
.a-table .actions > * + * { margin-left: 6px; }
.a-table form { display: inline; }
.a-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--paper); display: block; }
.a-name-cell { display: flex; align-items: center; gap: 12px; }
.a-name-cell strong { display: block; line-height: 1.3; }
.a-name-cell small { color: var(--muted); }

/* Araç çubuğu ve filtreler */
.a-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.a-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-filters input, .a-filters select { height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); min-width: 0; }
.a-filters input[type="search"] { width: 240px; }
.a-tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.a-tabs-nav a, .a-tabs-nav button { padding: 10px 14px; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; font-size: 14.5px; }
.a-tabs-nav .is-active { color: var(--ink); border-bottom-color: var(--primary); }

/* Formlar */
.a-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.a-form-main, .a-form-side { min-width: 0; }
.a-form-side .a-card { position: relative; }
.a-form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0 4px; background: linear-gradient(0deg, var(--paper) 70%, transparent); }
.af { margin-bottom: 14px; }
.af > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.af input[type="text"], .af input[type="email"], .af input[type="number"], .af input[type="password"], .af input[type="url"],
.af input[type="datetime-local"], .af input[type="date"], .af input[type="search"], .af select, .af textarea {
    width: 100%; min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fbfcfe;
}
.af textarea { resize: vertical; line-height: 1.5; }
.af input:focus, .af select:focus, .af textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.af.has-error input, .af.has-error select, .af.has-error textarea { border-color: var(--danger); }
.af-error { margin-top: 5px; font-size: 13px; color: #b4233a; font-weight: 500; }
.af-hint { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.af-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.af-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-check { margin-bottom: 10px; }
.switch, .af > label.switch { display: flex; margin-bottom: 0; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14.5px; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background-color .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--primary); outline-offset: 2px; }
.a-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 14.5px; }
.img-field { display: flex; gap: 12px; align-items: center; }
.img-field img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); flex: none; }
.img-field input[type="file"] { font-size: 13.5px; max-width: 100%; }
.af input[type="file"] { font-size: 13.5px; max-width: 100%; color: var(--muted); }
.af input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
    color: var(--ink); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.af input[type="file"]::file-selector-button:hover { border-color: var(--primary); color: var(--primary-ink); }
.af-remove { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #b4233a; margin-top: 6px; }
.a-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.a-gallery label { position: relative; display: block; }
.a-gallery img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.a-gallery input { position: absolute; top: 4px; left: 4px; }
.lang-tabs .a-tabs-nav { margin-bottom: 14px; }
.lang-flag { font-family: var(--mono); font-size: 12px; background: var(--paper); padding: 1px 6px; border-radius: 4px; margin-right: 4px; }

/* Zengin metin düzenleyici */
.editor { border: 1.5px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.ed-btn { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-weight: 700; cursor: pointer; font-size: 13px; }
.ed-btn:hover, .ed-btn.is-on { background: var(--primary-soft); color: var(--primary-ink); }
.ed-area { min-height: 180px; max-height: 520px; overflow-y: auto; padding: 12px 14px; outline: none; line-height: 1.6; }
.ed-area h3 { font-size: 17px; margin: 12px 0 6px; }
.ed-area p { margin: 0 0 10px; }
.editor.is-source .ed-area { display: none; }
.editor.is-source .ed-source { display: block !important; width: 100%; min-height: 220px; border: 0; padding: 12px 14px; font-family: var(--mono); font-size: 13px; resize: vertical; outline: none; }

/* Katlanır bölümler, tehlikeli işlemler */
.a-seo { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 10px; }
.a-seo summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.a-danger-zone { display: flex; justify-content: flex-end; margin-top: 8px; }
.a-settings .a-card { margin-bottom: 20px; }

/* Sayfalama */
.a-pagination { display: flex; justify-content: center; gap: 4px; padding: 16px; }
.a-pagination a, .a-pagination span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.a-pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Detay listeleri */
.a-kv { margin: 0; display: grid; gap: 0; }
.a-kv div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.a-kv div:first-child { border-top: 0; }
.a-kv dt { color: var(--muted); }
.a-kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.a-keys { display: grid; gap: 6px; margin-top: 10px; }
.a-key { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--brass); font-family: var(--mono); font-size: 14px; word-break: break-all; }
.a-key button { margin-left: auto; flex: none; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: var(--font); font-size: 12.5px; }
.a-item { padding: 14px 0; border-top: 1px solid var(--line); }
.a-item:first-of-type { border-top: 0; padding-top: 0; }
.a-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.a-item pre { margin: 10px 0 0; padding: 10px 12px; background: var(--paper); border-radius: 8px; white-space: pre-wrap; font-family: var(--mono); font-size: 13.5px; }
.key-cell { font-family: var(--mono); font-size: 13.5px; }
.key-cell button { margin-left: 6px; }
.a-stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.a-stat-row .badge { font-size: 13px; padding: 5px 12px; }
.a-callout { padding: 12px 14px; border-radius: var(--r); background: var(--paper); font-size: 14px; margin-bottom: 14px; }
.a-callout code { font-family: var(--mono); font-size: 13px; background: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); word-break: break-all; }
.a-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.a-theme { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.a-theme img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper); display: block; }
.a-theme div { padding: 12px 14px; }
.a-theme.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.a-trans td:first-child { width: 34%; }
.a-trans code { font-size: 12px; color: var(--muted); display: block; margin-bottom: 3px; }
.a-trans .base { font-size: 13.5px; color: var(--ink-2); }
.a-trans textarea { width: 100%; min-height: 40px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; resize: vertical; font-size: 14px; }
.a-trans textarea.is-custom { border-color: var(--primary); background: #f7f9ff; }

/* Giriş ekranı */
body.a-login-body { min-height: 100vh; display: grid; place-items: center; background: var(--ink); }
.a-login { width: min(400px, 92vw); padding: 24px 0; }
.a-login-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; }
.a-login-brand strong { display: block; font-size: 18px; }
.a-login-brand small { color: #8e9ab8; }
.a-login-card { padding: 26px; }
.a-login-card h1 { font-size: 22px; margin-bottom: 18px; }
.a-login-foot { text-align: center; margin-top: 16px; }
.a-login-foot a { color: #c4cde3; font-size: 14px; }

/* ---------- Canlı destek ---------- */
.lc { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.lc:not(.has-selected) { grid-template-columns: 320px minmax(0, 1fr); }
.lc .a-card { margin-bottom: 0; }
.a-content:has(.lc) { padding-bottom: 24px; }
.lc-list, .lc-conv { height: calc(100vh - 64px - 48px); min-height: 480px; display: flex; flex-direction: column; }
.lc-list-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.lc-filters { display: flex; gap: 4px; background: var(--paper); padding: 3px; border-radius: 9px; }
.lc-filters a { flex: 1; text-align: center; padding: 6px 8px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lc-filters a.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,61,.12); }
.lc-avail .switch { font-size: 13.5px; }
.lc-items { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.lc-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.lc-item:hover { background: var(--paper); }
.lc-item.is-current { background: var(--primary-soft); }
.lc-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.lc-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.lc-item-main { flex: 1; min-width: 0; }
.lc-item-top { display: flex; justify-content: space-between; gap: 8px; }
.lc-item-top strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-item-top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lc-item-text { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-item.is-unread .lc-item-text { color: var(--ink); font-weight: 600; }
.lc-item .a-count { margin-left: 0; }
.lc-wait { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px rgba(255,200,61,.3); flex: none; }
.lc-empty { padding: 24px 18px; font-size: 14px; }
.lc-conv-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lc-conv-title { flex: 1; min-width: 0; }
.lc-conv-title strong { display: block; font-size: 16px; }
.lc-conv-title small { color: var(--muted); font-size: 12.5px; }
.lc-back { display: none; }
.lc-log { flex: 1; overflow-y: auto; padding: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.lc-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 75%; }
.lc-msg.is-admin { align-self: flex-end; align-items: flex-end; }
.lc-msg.is-system { align-self: center; max-width: 100%; }
.lc-bubble { padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }
.lc-msg.is-admin .lc-bubble { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.lc-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.lc-system { margin: 0; padding: 5px 12px; border-radius: 999px; background: #e6eaf3; color: var(--muted); font-size: 12.5px; text-align: center; }
.lc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.lc-compose textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; resize: vertical; font-size: 14.5px; line-height: 1.45; }
.lc-compose textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.lc-canned { position: relative; }
.lc-canned > summary { list-style: none; }
.lc-canned > summary::-webkit-details-marker { display: none; }
.lc-canned-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; width: 320px; max-height: 320px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(20,33,61,.3); }
.lc-canned-down .lc-canned-menu { bottom: auto; top: calc(100% + 6px); left: auto; right: 0; }
.lc-canned-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.lc-canned-menu button:hover { background: var(--paper); }
.lc-canned-menu button strong { display: block; font-size: 13.5px; }
.lc-canned-menu button small { display: block; font-size: 12.5px; color: var(--muted); }
.lc-canned-menu a { display: block; padding: 8px 10px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }
.lc-placeholder { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 30px; }
.lc-placeholder h2 { font-size: 18px; }
.lc-placeholder p { max-width: 42ch; font-size: 14px; }
.lc-placeholder-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; }
.lc-info h2 { font-size: 16px; margin-bottom: 8px; }
.lc-info h3, .a-sub { font-size: 14px; margin: 16px 0 4px; }
.lc-page { display: grid; gap: 2px; margin-top: 10px; font-size: 13.5px; word-break: break-all; }
.lc-ua { margin-top: 8px; font-size: 12px; line-height: 1.4; }
.lc-delete { margin-top: 16px; }
.lc-info .a-list li { font-size: 13.5px; }

/* ---------- Destek talebi yazışması ---------- */
.a-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.a-thread-msg { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.a-thread-msg.is-staff { background: #f7f9ff; border-color: #c9d6ff; box-shadow: inset 3px 0 0 var(--primary); }
.a-thread-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; flex-wrap: wrap; }
.a-thread-head time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.a-thread-body { line-height: 1.6; overflow-wrap: anywhere; font-size: 14.5px; }
.a-thread-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.a-reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.a-inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.a-ticket-state { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 1280px) {
    .lc, .lc:not(.has-selected) { grid-template-columns: 300px minmax(0, 1fr); }
    .lc-info { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .lc, .lc:not(.has-selected) { grid-template-columns: minmax(0, 1fr); }
    .lc.has-selected .lc-list { display: none; }
    .lc:not(.has-selected) .lc-conv { display: none; }
    .lc-back { display: grid; }
    .lc-list, .lc-conv { height: calc(100vh - 64px - 36px); height: calc(100dvh - 64px - 36px); }
    .lc-msg { max-width: 88%; }
    .lc-canned-menu { width: min(320px, 80vw); }
}
@media (max-width: 640px) {
    .lc-conv-head { padding: 10px 12px; gap: 8px; }
    .lc-conv-head [data-lc-status] { display: none; }
    .lc-conv-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lc-log { padding: 12px; }
}

/* ---------- Temalar ---------- */
.a-themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.a-theme-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.a-theme-card.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.a-theme-shot { position: relative; aspect-ratio: 16 / 10; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.a-theme-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.a-theme-flag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700; }
.a-theme-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.a-theme-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.a-theme-title h2 { font-size: 17px; }
.a-theme-title span { font-size: 12.5px; white-space: nowrap; }
.a-theme-body > p { font-size: 14px; line-height: 1.5; }
.a-theme-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.a-theme-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a-theme-delete { margin-left: auto; }
.a-theme-premium { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #14213d; color: #ffc83d; font-size: 12.5px; font-weight: 700; }
.a-theme-lock { font-size: 13px; line-height: 1.5; padding: 9px 11px; border-radius: 10px; background: var(--paper); color: var(--ink-2); }
.a-theme-delete .a-icon-btn { color: var(--danger); width: 34px; height: 34px; }
.a-theme-upload { padding: 18px; gap: 8px; }
.a-theme-upload h2 { font-size: 17px; }
.a-theme-upload p { font-size: 14px; }
.a-theme-upload code, .a-callout code { font-family: var(--mono); font-size: 12.5px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.a-linkbtn { border: 0; background: none; padding: 0; color: var(--primary-ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.a-content:has(.tc) { padding: 0; }
.tc { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 64px); }
.tc-panel { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.tc-panel-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.tc-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.tc-panel-head h2 { font-size: 18px; }
.tc-panel-head p { font-size: 13px; margin-top: 2px; }
.tc-draft-note { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 6px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn-ink) !important; font-weight: 600; }
.tc-form { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.tc-group { border: 0; margin: 0; padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.tc-group:last-child { border-bottom: 0; }
.tc-group legend { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 8px; }
.tc-field { margin-bottom: 14px; }
.tc-field > label, .tc-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.tc-field select, .tc-field input[type="text"] { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 14px; }
.tc-field input[type="text"]:focus, .tc-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tc-color { display: flex; align-items: center; gap: 8px; }
.tc-color input[type="color"] { width: 44px; height: 38px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; flex: none; }
.tc-color input[type="text"] { width: 110px !important; font-family: var(--mono); font-size: 13px; text-transform: lowercase; }
.tc-mini { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.tc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.tc-tile input, .tc-font input { position: absolute; opacity: 0; pointer-events: none; }
.tc-tile:has(input:checked), .tc-font:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.tc-tile:has(input:focus-visible), .tc-font:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.tc-radius-demo { width: 36px; height: 26px; border: 2px solid currentColor; border-bottom: 0; border-right: 0; opacity: .7; }
.tc-fonts { display: grid; gap: 6px; }
.tc-font { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.tc-font-sample { font-size: 18px; font-weight: 700; white-space: nowrap; }
.tc-font-name { font-size: 12.5px; color: var(--muted); text-align: right; }
.tc-i18n { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tc-lang { flex: none; width: 34px; height: 24px; border-radius: 6px; background: var(--paper); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tc-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tc-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tc-section .switch { font-size: 13.5px; font-weight: 500; }
.tc-section:not(:has(input:checked)) { background: var(--paper); }
.tc-section:not(:has(input:checked)) .switch span:last-child { color: var(--muted); }
.tc-move { display: flex; gap: 2px; flex: none; }
.tc-move button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.tc-move button:hover { color: var(--ink); border-color: var(--line-strong); }
.tc-up { transform: rotate(180deg); }
.tc-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.tc-actions-main { display: flex; gap: 8px; }
.tc-preview { display: flex; flex-direction: column; min-width: 0; background: #e8ecf4; }
.tc-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tc-toolbar select { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; max-width: 260px; }
.tc-devices { display: flex; background: var(--paper); border-radius: 9px; padding: 3px; }
.tc-devices button { width: 34px; height: 28px; border: 0; background: none; border-radius: 7px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.tc-devices button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,61,.12); }
.tc-status { flex: 1; font-size: 13px; color: var(--muted); text-align: right; }
.tc-frame-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 16px; overflow: hidden; }
.tc-scaler { position: relative; flex: none; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -14px rgba(20,33,61,.35); }
.tc-frame { position: absolute; left: 0; top: 0; width: 1366px; height: 100%; border: 0; background: #fff; transform-origin: 0 0; }

@media (max-width: 960px) {
    .tc { grid-template-columns: minmax(0, 1fr); height: auto; }
    .tc-panel { border-right: 0; }
    .tc-form { overflow: visible; }
    .tc-preview { height: 80vh; }
    .tc-actions { position: sticky; bottom: 0; z-index: 5; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
    .a-form { grid-template-columns: minmax(0, 1fr); }
    .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    body.admin:not(.a-login-body) { background: var(--paper); }
    .a-side { transform: translateX(-100%); transition: transform .2s ease; }
    .a-side.is-open { transform: none; }
    .a-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(20, 33, 61, .45); z-index: 45; }
    .a-main { margin-left: 0; }
    .a-icon-btn.a-menu { display: grid; }
    .a-top { padding: 0 14px; }
    .a-content { padding: 18px 14px 40px; }
    .a-grid-2, .a-grid-2.even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .a-hide-sm { display: none !important; }
    .a-stats { gap: 8px; }
    .a-stat strong { font-size: 20px; }
    .af-row, .af-row-3 { grid-template-columns: minmax(0, 1fr); }
    .a-filters input[type="search"] { width: 100%; }
    .a-chart { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Lisans */
.a-license.is-bad { border-color: #f3b3bf; box-shadow: 0 0 0 3px var(--danger-soft); }
.a-license-msg { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.a-license-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.a-steps-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.a-steps-list code, .a-license code { font-family: var(--mono); font-size: 12.5px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
