/* Yönetim paneli */
:root{--a-primary:#2563eb;--a-primary-d:#1d4ed8;--a-bg:#f4f6fb;--a-card:#fff;--a-text:#1b2232;--a-muted:#6b7488;--a-line:#e4e8f0;--a-side:#0d1324;--a-side-text:#aeb8cc;--a-radius:14px;--a-danger:#dc2626;--a-green:#16a34a;--a-amber:#d97706}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.admin{margin:0;font-family:'Poppins',system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.55;color:var(--a-text);background:var(--a-bg)}
a{color:var(--a-primary);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3{margin:0 0 .6em;line-height:1.25;font-weight:600}
h2{font-size:17px}h3{font-size:15px}
.ic{width:18px;height:18px;flex:none}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
code,.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px}
code{background:#eef1f7;padding:1px 6px;border-radius:5px}
.muted{color:var(--a-muted)}.small{font-size:12px}.nowrap{white-space:nowrap}.mt{margin-top:18px}.mb{margin-bottom:16px}.c{text-align:center}.center{text-align:center}
.txt-danger{color:var(--a-danger)}
[hidden]{display:none!important}

/* Yerleşim */
.side{position:fixed;top:0;left:0;bottom:0;width:248px;background:var(--a-side);color:var(--a-side-text);display:flex;flex-direction:column;z-index:60;transition:transform .25s}
.side-brand{display:flex;gap:12px;align-items:center;padding:20px 18px;color:#fff;border-bottom:1px solid rgba(255,255,255,.06)}
.side-brand:hover{text-decoration:none}
.side-brand strong{display:block;font-size:14px;line-height:1.2}
.side-brand small{color:var(--a-side-text);font-size:12px}
.sb-mark{width:38px;height:38px;border-radius:11px;background:var(--a-primary);display:grid;place-items:center;color:#fff;flex:none}
.side-nav{flex:1;overflow:auto;padding:12px 10px}
.side-nav a,.side-site{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;color:var(--a-side-text);font-weight:500;margin-bottom:2px}
.side-nav a:hover,.side-site:hover{background:rgba(255,255,255,.06);color:#fff;text-decoration:none}
.side-nav a.active{background:var(--a-primary);color:#fff}
.side-nav .count{margin-left:auto;background:#ef4444;color:#fff;font-style:normal;font-size:11px;font-weight:700;border-radius:99px;padding:1px 7px}
.side-site{margin:10px;border:1px solid rgba(255,255,255,.1)}
.main{margin-left:248px;min-height:100vh;display:flex;flex-direction:column}
.topnav{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;padding:12px 28px;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--a-line)}
.page-title{font-size:19px;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{display:flex;align-items:center;gap:12px}
.topnav .side-toggle{display:none}

.user-menu{position:relative}
.user-btn{display:flex;align-items:center;gap:10px;background:none;border:0;cursor:pointer;padding:4px 8px;border-radius:10px;text-align:left;color:inherit}
.user-btn:hover{background:#f0f2f7}
.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--a-primary),#7c3aed);color:#fff;display:grid;place-items:center;font-weight:600}
.un{display:flex;flex-direction:column;font-weight:500;line-height:1.2}.un small{color:var(--a-muted);font-size:11.5px}
.dropdown{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--a-line);border-radius:12px;box-shadow:0 18px 40px -16px rgba(15,23,42,.3);min-width:200px;padding:6px;z-index:70}
.dropdown a,.dropdown button{display:block;width:100%;text-align:left;padding:9px 12px;border-radius:8px;color:var(--a-text);background:none;border:0;font:inherit;cursor:pointer}
.dropdown a:hover,.dropdown button:hover{background:#f2f4f8;text-decoration:none}
.content{padding:24px 28px 60px;max-width:1500px;width:100%}
.side-backdrop{display:none}
@media(max-width:1000px){
  .side{transform:translateX(-100%)}.side.open{transform:none;box-shadow:0 0 60px rgba(0,0,0,.4)}
  .side-backdrop.open{display:block;position:fixed;inset:0;background:rgba(10,15,30,.4);z-index:55}
  .main{margin-left:0}.topnav .side-toggle{display:inline-grid}.topnav{padding:10px 14px}.content{padding:16px 14px 60px}
  .un,.top-actions .btn.primary{display:none}
}

/* Kartlar ve bileşenler */
.card{background:var(--a-card);border:1px solid var(--a-line);border-radius:var(--a-radius);padding:20px;margin-bottom:18px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.card.empty{text-align:center;padding:48px 20px;color:var(--a-muted)}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.card-head h2{margin:0}
.table-card{padding:0;overflow:hidden}
.pad{padding:16px 20px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 16px;border-radius:10px;border:1px solid var(--a-line);background:#fff;color:var(--a-text);font:inherit;font-weight:500;cursor:pointer;line-height:1.2;transition:.15s;white-space:nowrap;text-decoration:none!important}
.btn:hover{border-color:#c9d1df;background:#f8f9fc}
.btn.primary{background:var(--a-primary);border-color:var(--a-primary);color:#fff}
.btn.primary:hover{background:var(--a-primary-d)}
.btn.ghost{background:transparent;border-color:transparent}
.btn.ghost:hover{background:#f0f2f7}
.btn.danger,.linkish.danger{color:var(--a-danger)}
.btn.sm{padding:6px 11px;font-size:13px;border-radius:8px}
.btn.block{width:100%}
.btn:disabled{opacity:.55;cursor:not-allowed}
.linkish{background:none;border:0;padding:0;color:var(--a-primary);font:inherit;cursor:pointer;text-align:left}
.linkish:hover{text-decoration:underline}
.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:9px;border:1px solid transparent;background:none;cursor:pointer;color:inherit}
.icon-btn:hover{background:#eef1f6}
.badge{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11.5px;font-weight:600;background:#eef1f6;color:#4b5567;vertical-align:middle}
.badge.green{background:#dcfce7;color:#166534}.badge.blue{background:#dbeafe;color:#1e40af}.badge.amber{background:#fef3c7;color:#92400e}.badge.purple{background:#ede9fe;color:#5b21b6}.badge.gray{background:#eef1f6;color:#4b5567}
.alert{padding:12px 16px;border-radius:12px;margin-bottom:16px;font-weight:500;border:1px solid}
.alert.success{background:#ecfdf3;color:#166534;border-color:#bbf7d0}
.alert.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.alert.info{background:#eff6ff;color:#1e3a8a;border-color:#bfdbfe;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.help{color:var(--a-muted);font-size:12.5px;margin:6px 0 0}
.help-box{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;padding:12px 16px;border-radius:12px;margin-bottom:14px;font-size:13px}
.empty-sm{color:var(--a-muted);padding:14px 0;text-align:center}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px}.dot.ok{background:var(--a-green)}.dot.warn{background:var(--a-amber)}

/* Form */
.field{margin-bottom:14px}
.field>label,.lbl{display:block;font-weight:500;margin-bottom:6px;font-size:13px}
.field label small{color:var(--a-muted);font-weight:400}
input[type=text],input[type=email],input[type=password],input[type=search],input[type=number],input[type=datetime-local],input[type=url],input:not([type]),select,textarea{width:100%;padding:9px 12px;border:1px solid #d6dce7;border-radius:10px;font:inherit;background:#fff;color:var(--a-text);transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--a-primary);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
textarea{resize:vertical}
.stack>*+*{margin-top:4px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:700px){.grid2{grid-template-columns:1fr}}
.switch-row{display:flex;align-items:center;gap:10px;margin:8px 0;cursor:pointer;font-weight:500}
.switch{appearance:none;width:38px;height:22px;border-radius:99px;background:#cfd6e3;position:relative;cursor:pointer;flex:none;transition:.2s;margin:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch:checked{background:var(--a-primary)}.switch:checked::after{left:19px}
.color-row{display:flex;gap:8px}.color-row input[type=color]{width:46px;height:40px;padding:2px;border:1px solid #d6dce7;border-radius:10px;background:#fff;flex:none}
.cb-row{display:flex;gap:8px;align-items:center;padding:4px 0;cursor:pointer}
.row-gap{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.space-between{justify-content:space-between}
form.inline{display:inline}
.inline-form{display:flex;gap:8px}.inline-form input{width:200px}
.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:18px;align-items:start}
@media(max-width:1100px){.two-col{grid-template-columns:minmax(0,1fr)}}

/* Toolbar, filtreler, tablo */
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tabs-inline{display:flex;gap:4px;flex-wrap:wrap;background:#fff;border:1px solid var(--a-line);padding:4px;border-radius:12px}
.tabs-inline a{padding:7px 12px;border-radius:9px;color:var(--a-muted);font-weight:500;display:flex;gap:6px;align-items:center}
.tabs-inline a:hover{text-decoration:none;background:#f3f5f9}
.tabs-inline a.active{background:var(--a-primary);color:#fff}
.tabs-inline em{font-style:normal;font-size:11px;background:rgba(0,0,0,.08);border-radius:99px;padding:0 7px}
.tabs-inline .loc{font-size:10.5px;opacity:.8}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.filters.card{padding:12px}
.filters input[type=search]{max-width:340px}
.filters select{width:auto}
.filters.inner{padding:12px 16px;border-bottom:1px solid var(--a-line)}
.bulk-bar{display:flex;gap:8px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--a-line);flex-wrap:wrap}
.bulk-bar select{width:auto}
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse}
.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--a-muted);font-weight:600;padding:10px 16px;background:#fafbfd;border-bottom:1px solid var(--a-line);white-space:nowrap}
.table td{padding:12px 16px;border-bottom:1px solid #eef1f6;vertical-align:top}
.table tr:last-child td{border-bottom:0}
.table tr:hover td{background:#fafbfe}
.table tr.unread td{background:#f5f9ff;font-weight:500}
.table tr.warn-row td{background:#fff8eb}
.table .cb{width:36px}
.table .actions{white-space:nowrap;text-align:right}
.row-title{font-weight:600;color:var(--a-text)}
.row-actions{display:flex;gap:10px;font-size:12.5px;margin-top:4px;flex-wrap:wrap;align-items:center}
.row-actions code{font-size:11px}
.indent{color:#c2c9d6}
.pager{display:flex;gap:6px;justify-content:center;margin:18px 0}
.pager a,.pager span{min-width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:#fff;border:1px solid var(--a-line);color:var(--a-text);padding:0 8px}
.pager a.active{background:var(--a-primary);color:#fff;border-color:var(--a-primary)}
.seg{display:flex;border:1px solid var(--a-line);border-radius:10px;overflow:hidden;background:#fff}
.seg a{padding:8px 14px;color:var(--a-muted)}.seg a.active{background:var(--a-primary);color:#fff}
.kv{width:100%;border-collapse:collapse}
.kv th{text-align:left;font-weight:500;color:var(--a-muted);padding:8px 10px 8px 0;width:42%;vertical-align:top}
.kv td{padding:8px 0;border-bottom:1px solid #f0f2f6}
.list{list-style:none;margin:0;padding:0}
.list li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f0f2f6}
.list li:last-child{border-bottom:0}
.list .meta{color:var(--a-muted);font-size:12px}
.list li.unread a{font-weight:600}
.list.compact li{padding:7px 0;font-size:13px}

/* Dashboard */
.welcome{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;background:linear-gradient(120deg,#0d1324,#1e3a8a);color:#fff;border:0}
.welcome p{color:#c7d2fe;margin:0}
.welcome .quick{display:flex;gap:8px;flex-wrap:wrap}
.welcome .btn:not(.primary){background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:#fff}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-bottom:18px}
.stat-card{background:#fff;border:1px solid var(--a-line);border-radius:var(--a-radius);padding:16px 18px;display:flex;flex-direction:column;color:var(--a-text);transition:.15s}
.stat-card:hover{text-decoration:none;border-color:#c5cee0;transform:translateY(-2px)}
.stat-card span{color:var(--a-muted);font-size:12.5px;font-weight:500}
.stat-card strong{font-size:28px;line-height:1.2;margin:4px 0}
.stat-card small{color:var(--a-muted);font-size:12px}
.stat-card.hot{border-color:#fca5a5;background:#fff5f5}
.dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:18px}
.dash-grid .card{margin:0}
@media(max-width:500px){.dash-grid{grid-template-columns:1fr}}

/* Giriş */
body.guest{background:radial-gradient(1200px 600px at 20% 0%,#1e3a8a,transparent),#0d1324;min-height:100vh}
.guest-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}
.auth-card{width:100%;max-width:420px;background:#fff;border-radius:20px;padding:32px;box-shadow:0 30px 80px -20px rgba(0,0,0,.5)}
.auth-card.wide{max-width:620px}
.auth-brand{display:flex;gap:12px;align-items:center;margin-bottom:22px}
.auth-brand strong{display:block}.auth-brand small{color:var(--a-muted)}
.auth-title{font-size:21px;margin-bottom:18px}
.checklist{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:6px}
.checklist li{display:flex;gap:8px;align-items:center}
.checklist .ok{color:var(--a-green)}.checklist .bad{color:var(--a-danger)}.checklist .warn{color:var(--a-amber)}

/* Editör */
.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
@media(max-width:1150px){.editor-grid{grid-template-columns:minmax(0,1fr)}}
.editor-side{position:sticky;top:76px}
@media(max-width:1150px){.editor-side{position:static}}
.side-card{padding:16px}
.side-card h3{font-size:14px;margin-bottom:10px}
.title-input{font-size:22px!important;font-weight:600;padding:12px 14px!important;border-radius:12px!important}
.slug-row{display:flex;align-items:center;gap:4px;margin-top:10px;font-size:13px;color:var(--a-muted);flex-wrap:wrap}
.slug-row input{width:auto;flex:1;min-width:180px;padding:5px 9px;font-size:13px}
.slug-base{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabs .tab-list{display:flex;gap:4px;margin-bottom:-1px;flex-wrap:wrap}
.tabs .tab-list button{border:1px solid transparent;background:none;padding:10px 16px;border-radius:12px 12px 0 0;font:inherit;font-weight:500;cursor:pointer;color:var(--a-muted)}
.tabs .tab-list button.active{background:#fff;border-color:var(--a-line);border-bottom-color:#fff;color:var(--a-text)}
.tabs .tab-list em{font-style:normal;background:#eef1f6;border-radius:99px;padding:0 7px;font-size:11px;margin-left:4px}
.tab-panel.card{border-top-left-radius:0}
.tab-panel[data-panel=blocks]{background:#fff;border:1px solid var(--a-line);border-radius:0 var(--a-radius) var(--a-radius);padding:16px;margin-bottom:18px}
.pub-status{display:flex;gap:8px;align-items:center;margin:0 0 10px}
.pub-actions{display:flex;gap:8px;margin-bottom:8px}.pub-actions .btn{flex:1}
.pub-more{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--a-line);font-size:13px}
.autosave-status{font-size:12px;margin:0 0 10px}
.cat-box{max-height:240px;overflow:auto}
.serp{border:1px solid var(--a-line);border-radius:12px;padding:14px 16px;margin-bottom:16px;font-family:Arial,sans-serif;background:#fff}
.serp-url{display:block;font-size:12.5px;color:#202124}
.serp-title{display:block;color:#1a0dab;font-size:19px;line-height:1.3;margin:4px 0}
.serp-desc{display:block;color:#4d5156;font-size:13.5px}
.counter{float:right;font-weight:500}.counter.over{color:var(--a-danger)}.counter.good{color:var(--a-green)}
.sub-details{border:1px solid var(--a-line);border-radius:10px;padding:10px 14px;margin-bottom:14px}
.sub-details summary{cursor:pointer;font-weight:500}

/* Zengin metin editörü */
.rte-wrap{border:1px solid #d6dce7;border-radius:12px;overflow:hidden;background:#fff}
.rte-wrap.fs{position:fixed;inset:12px;z-index:200;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax rgba(10,15,30,.5)}
.rte-wrap.fs .rte-area,.rte-wrap.fs .rte-src{flex:1;max-height:none}
.rte-toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid var(--a-line);background:#fafbfd;position:sticky;top:0}
.rte-toolbar button,.rte-toolbar select{height:32px;min-width:32px;border:0;background:none;border-radius:7px;cursor:pointer;font:inherit;font-size:13px;color:#384155;padding:0 7px}
.rte-toolbar select{width:auto;border:1px solid var(--a-line);background:#fff;padding:0 6px}
.rte-toolbar button:hover{background:#e9edf5}
.rte-toolbar button.on{background:#dbe6ff;color:var(--a-primary)}
.rte-toolbar .sep{width:1px;background:var(--a-line);margin:4px 3px}
.rte-area{min-height:260px;max-height:70vh;overflow:auto;padding:16px 18px;outline:0;font-size:15px;line-height:1.7}
.rte-area.small{min-height:110px}
.rte-area:empty::before{content:attr(data-placeholder);color:#9aa3b5}
.rte-area h1{font-size:26px}.rte-area h2{font-size:22px}.rte-area h3{font-size:18px}.rte-area h4{font-size:16px}
.rte-area img{max-width:100%;height:auto;border-radius:8px}
.rte-area figure{margin:12px 0}.rte-area figcaption{font-size:13px;color:var(--a-muted);text-align:center}
.rte-area blockquote{border-left:4px solid var(--a-primary);margin:12px 0;padding:6px 14px;background:#f5f8ff}
.rte-area pre{background:#0f172a;color:#e2e8f0;padding:12px;border-radius:8px;overflow:auto}
.rte-area table{border-collapse:collapse;width:100%}.rte-area td,.rte-area th{border:1px solid #cfd6e3;padding:6px 8px;min-width:40px}
.rte-area iframe,.rte-area video{max-width:100%;width:560px;aspect-ratio:16/9;height:auto;border:0;display:block}
.rte-src{width:100%;min-height:260px;max-height:70vh;border:0!important;border-radius:0!important;font-family:ui-monospace,Menlo,monospace;font-size:13px;padding:14px!important;box-shadow:none!important}

/* Blok oluşturucu */
.blk{border:1px solid var(--a-line);border-radius:12px;background:#fff;margin-bottom:10px;transition:box-shadow .15s}
.blk.dragging{opacity:.5}
.blk.drop-before{box-shadow:0 -3px 0 var(--a-primary)}
.blk.drop-after{box-shadow:0 3px 0 var(--a-primary)}
.blk.is-hidden .blk-head{opacity:.55}
.blk-head{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;user-select:none}
.blk-handle{cursor:grab;color:#9aa3b5;display:grid;place-items:center;padding:4px}
.blk-ic{width:32px;height:32px;border-radius:9px;background:#eef3ff;color:var(--a-primary);display:grid;place-items:center;flex:none}
.blk-title{flex:1;min-width:0}
.blk-title strong{display:block;font-size:13.5px}
.blk-title span{display:block;color:var(--a-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blk-tools{display:flex;gap:2px}
.blk-tools button{width:30px;height:30px;border-radius:8px;border:0;background:none;cursor:pointer;color:#5a6478;display:grid;place-items:center}
.blk-tools button:hover{background:#eef1f6}
.blk-tools button.danger:hover{color:var(--a-danger);background:#fef2f2}
.blk-body{padding:14px 16px 6px;border-top:1px solid var(--a-line)}
.blk.collapsed .blk-body{display:none}
.blk-add{width:100%;border:2px dashed #cfd7e6;background:#fafbfe;border-radius:12px;padding:14px;font:inherit;font-weight:600;color:var(--a-primary);cursor:pointer}
.blk-add:hover{border-color:var(--a-primary);background:#f3f7ff}
.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;padding:16px;max-height:65vh;overflow:auto}
.type-card{display:flex;gap:10px;align-items:flex-start;text-align:left;border:1px solid var(--a-line);border-radius:12px;padding:12px;background:#fff;cursor:pointer;font:inherit}
.type-card:hover{border-color:var(--a-primary);background:#f6f9ff}
.type-card strong{display:block;font-size:13.5px}.type-card span{display:block;color:var(--a-muted);font-size:12px}
.rep{border:1px solid var(--a-line);border-radius:10px;padding:10px;background:#fafbfd;margin-bottom:12px}
.rep-items{display:grid;gap:8px}
.rep-item{background:#fff;border:1px solid var(--a-line);border-radius:10px}
.rep-item-head{display:flex;align-items:center;gap:6px;padding:7px 10px;cursor:pointer;font-size:13px;font-weight:500}
.rep-item-head .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-item-body{padding:10px 12px 2px;border-top:1px solid var(--a-line)}
.rep-item.collapsed .rep-item-body{display:none}
.rep-add{margin-top:8px}
.imgs-field .thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.imgs-field .th{position:relative;width:86px;height:86px;border-radius:9px;overflow:hidden;border:1px solid var(--a-line);background:#f1f3f7;cursor:grab}
.imgs-field .th img{width:100%;height:100%;object-fit:cover}
.imgs-field .th button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.65);color:#fff;cursor:pointer;line-height:1;font-size:13px}
.view-details{margin-top:6px;border-top:1px dashed var(--a-line);padding-top:10px}
.view-details summary{cursor:pointer;color:var(--a-muted);font-size:12.5px;margin-bottom:10px}

/* Medya */
.media-field .mf-preview img{max-width:100%;max-height:150px;border-radius:10px;border:1px solid var(--a-line);margin-bottom:8px;display:block;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 50%/16px 16px}
.media-field .mf-actions{display:flex;gap:6px}
.file-chip{display:inline-block;padding:6px 10px;background:#eef1f6;border-radius:8px;margin-bottom:8px;font-size:12.5px}
.upload-zone{display:flex;flex-direction:column;align-items:center;text-align:center;border:2px dashed #c9d2e3;background:#fafbfe;padding:26px}
.upload-zone>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.upload-zone.drag{border-color:var(--a-primary);background:#eff5ff}
.upload-progress{width:100%;max-width:600px}
.up-row{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:4px 0}
.up-row.err{color:var(--a-danger)}.up-row.ok{color:var(--a-green)}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.media-item{position:relative;background:#fff;border:1px solid var(--a-line);border-radius:12px;overflow:hidden}
.mi-open{display:block;width:100%;aspect-ratio:1;border:0;padding:0;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 50%/16px 16px;cursor:pointer}
.mi-open img{width:100%;height:100%;object-fit:cover}
.mi-check{position:absolute;top:8px;left:8px;z-index:2;background:#fff;border-radius:6px;padding:2px 4px;line-height:0}
.mi-name{display:block;padding:7px 9px;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--a-muted)}
.file-ic{display:grid;place-items:center;height:100%;color:var(--a-muted)}
.file-ic .ic{width:34px;height:34px}
.thumb-btn{width:52px;height:52px;border-radius:8px;overflow:hidden;border:1px solid var(--a-line);padding:0;background:#f1f3f7;cursor:pointer;display:grid;place-items:center}
.thumb-btn img{width:100%;height:100%;object-fit:cover}
.upload-btn{position:relative;overflow:hidden}.upload-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}

/* Modal ve drawer */
.modal,.drawer{position:fixed;inset:0;z-index:150;background:rgba(10,15,30,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.modal-box{background:#fff;border-radius:18px;width:100%;max-width:560px;max-height:92vh;display:flex;flex-direction:column;box-shadow:0 30px 80px -20px rgba(0,0,0,.5)}
.modal-box.wide{max-width:1040px}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--a-line)}
.modal-head h2{margin:0}
.modal-body{padding:18px;overflow:auto}
.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--a-line)}
.mm-toolbar{display:flex;gap:10px;padding:12px 18px;align-items:center}
.mm-toolbar input{max-width:320px}
.mm-drop{margin:0 18px;padding:10px;border:2px dashed #cfd7e6;border-radius:12px;text-align:center;color:var(--a-muted);font-size:12.5px}
.mm-drop.drag{border-color:var(--a-primary);background:#eff5ff;color:var(--a-primary)}
.mm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;padding:14px 18px;overflow:auto;flex:1;min-height:200px}
.mm-item{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;border:2px solid transparent;cursor:pointer;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 50%/16px 16px;padding:0}
.mm-item img{width:100%;height:100%;object-fit:cover}
.mm-item.sel{border-color:var(--a-primary);box-shadow:0 0 0 3px rgba(37,99,235,.25)}
.mm-item.sel::after{content:"✓";position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;background:var(--a-primary);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700}
.mm-item .nm{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);color:#fff;font-size:10.5px;padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-foot{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 18px;border-top:1px solid var(--a-line)}
.mm-selinfo{color:var(--a-muted);font-size:12.5px;flex:1;text-align:right}
.drawer{justify-content:flex-end;padding:0}
.drawer-box{background:#fff;width:100%;max-width:440px;height:100%;overflow:auto;padding-bottom:30px}
.drawer-box form,.drawer-box .md-info,.drawer-box .md-usage{padding:0 18px}
.md-preview{padding:16px 18px}
.md-preview img,.md-preview video{max-width:100%;max-height:300px;border-radius:12px;margin:0 auto;display:block;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 50%/16px 16px}
.md-info{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:12.5px;margin:0 0 14px}
.md-info dt{color:var(--a-muted)}.md-info dd{margin:0;word-break:break-all}
.md-usage{font-size:12.5px;color:var(--a-muted)}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#0f172a;color:#fff;padding:11px 18px;border-radius:12px;z-index:300;box-shadow:0 12px 30px -10px rgba(0,0,0,.4);font-weight:500;max-width:90vw}
.toast.error{background:#b91c1c}.toast.success{background:#15803d}

/* Menü */
.menu-editor{display:grid;grid-template-columns:300px 1fr;gap:18px;align-items:start}
@media(max-width:1000px){.menu-editor{grid-template-columns:minmax(0,1fr)}}
.menu-add details{border-bottom:1px solid var(--a-line);padding:10px 0}
.menu-add summary{cursor:pointer;font-weight:600}
.pick-list{max-height:220px;overflow:auto;margin:8px 0}
.menu-list{list-style:none;margin:0 0 16px;padding:0}
.mi{border:1px solid var(--a-line);border-radius:10px;background:#fff;margin-bottom:6px;max-width:620px}
.mi.dragging{opacity:.5}.mi.drop-before{box-shadow:0 -3px 0 var(--a-primary)}.mi.drop-after{box-shadow:0 3px 0 var(--a-primary)}
.mi-head{display:flex;align-items:center;gap:8px;padding:8px 10px}
.mi-head .t{flex:1;font-weight:500;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mi-head .k{font-size:11.5px;color:var(--a-muted)}
.mi-head button{border:0;background:none;width:28px;height:28px;border-radius:7px;cursor:pointer;color:#5a6478}
.mi-head button:hover{background:#eef1f6}
.mi-body{padding:10px 12px;border-top:1px solid var(--a-line)}
.mi[data-depth="1"]{margin-left:32px}.mi[data-depth="2"]{margin-left:64px}

/* Diğer */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 22px}
.sg-item.full{grid-column:1/-1}
@media(max-width:800px){.settings-grid{grid-template-columns:1fr}}
.sticky-save{position:sticky;bottom:0;background:linear-gradient(transparent,#fff 30%);padding:16px 0 4px}
.seo-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-bottom:18px}
.mini-card{display:flex;flex-direction:column;gap:4px;margin:0}
.mini-card span{font-weight:600}.mini-card small{color:var(--a-muted)}
.audit{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.audit li{display:flex;gap:10px;align-items:flex-start}
.audit li.ok .ic{color:var(--a-green)}.audit li.warn .ic{color:var(--a-amber)}
.audit p{margin:4px 0 0;font-size:12.5px}
.redirect-form{display:grid;grid-template-columns:1fr 1fr 140px auto;gap:10px;align-items:end;margin-bottom:6px}
@media(max-width:800px){.redirect-form{grid-template-columns:1fr}}
.perm-table td,.perm-table th{text-align:left}
.perm-table td.c,.perm-table th:not(:first-child){text-align:center}
.perm-table input{width:18px;height:18px;accent-color:var(--a-primary)}
.message-body{background:#f8fafc;border:1px solid var(--a-line);border-radius:12px;padding:18px;font-size:15px;line-height:1.7;white-space:normal}
.sys-actions{display:grid;gap:16px}
