/* EymSoft — Yönetim paneli */
:root { --ink: #0b0b0f; --text: #1e293b; --muted: #64748b; --blue: #2563eb; --blue-d: #1d4ed8; --blue-l: #eff6ff; --line: #e5e9f2; --bg: #f4f6fb; --ok: #16a34a; --err: #dc2626; --warn: #d97706; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
h3 small { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: 6px; }
code { background: #f1f5f9; padding: 2px 7px; border-radius: 6px; font-size: .9em; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ic { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.mt { margin-top: 24px; }
.mt-s { margin-top: 12px; }
.mb { margin-bottom: 16px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--ink); color: #94a3b8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: block; padding: 22px 22px 18px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.brand .b1 { color: #fff; }
.brand .b2 { color: #60a5fa; }
.brand small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; font-weight: 700; margin-top: 2px; }
.sidebar nav { display: grid; gap: 2px; padding: 0 12px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 600; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar nav a.on { background: var(--blue); color: #fff; }
.sidebar nav a span { flex: 1; }
.cnt { background: #f59e0b; color: #111; font-size: .72rem; padding: 1px 7px; border-radius: 999px; }
.side-foot { margin-top: auto; padding: 16px 20px 22px; display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 8px; color: #94a3b8; background: none; border: 0; padding: 4px 0; font: inherit; cursor: pointer; }
.side-foot a:hover, .side-foot button:hover { color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: rgba(244, 246, 251, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.3rem; margin: 0; flex: 1; }
.who { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; place-items: center; }
.content { padding: 24px 28px 60px; max-width: 1400px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.panel.p0 { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sticky { position: sticky; top: 90px; }
.danger-zone { border-color: #fecaca; background: #fffafa; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--text); transition: .15s; }
a.stat:hover { border-color: var(--blue); }
.stat b { display: block; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.stat span { color: var(--muted); font-size: .85rem; }
.s-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.s-ic.blue { background: var(--blue-l); color: var(--blue); }
.s-ic.ok { background: #dcfce7; color: var(--ok); }
.s-ic.warn { background: #fef3c7; color: var(--warn); }
.s-ic.err { background: #fee2e2; color: var(--err); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.big-num { font-size: 2.6rem; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.1; }
.big-num small { font-size: 1rem; color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { white-space: normal; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.panel:not(.p0) .table th, .panel:not(.p0) .table td { padding-left: 8px; padding-right: 8px; }
.table td:has(> b:only-child) { white-space: nowrap; }
.d { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.d.ok { color: var(--ok); font-weight: 700; }
.empty-cell { text-align: center; color: var(--muted); padding: 30px !important; }
.t-item { display: flex; gap: 12px; align-items: center; }
.t-item img { width: 72px; height: 54px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.sort-input { width: 60px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar p { margin: 0; }
.toolbar-r { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.tabs a { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a.on { background: var(--blue); color: #fff; }
.search { display: flex; gap: 6px; }
.search input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; min-width: 220px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger-ghost { background: #fff; border-color: #fecaca; color: var(--err); }
.btn-danger-ghost:hover { background: #fee2e2; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: .84rem; }
.btn-block { width: 100%; }

.form .field { margin-bottom: 14px; }
.form label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--ink); font-size: .9rem; }
.form label small { font-weight: 500; }
.form input:not([type=checkbox]):not([type=file]), .form textarea, .form select { width: 100%; padding: 10px 12px; border: 1px solid #d5dbe7; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.form input[type=file] { font: inherit; font-size: .88rem; }
.field > small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.r-3 { grid-template-columns: 2fr 1.4fr 1fr; }
.form-row.r-3 .small-f { max-width: 140px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; margin: 6px 0 12px; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }
.switch { display: flex !important; align-items: center; gap: 10px; cursor: pointer; margin: 6px 0; font-weight: 600 !important; }
.switch input { display: none; }
.switch span { width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: .2s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { left: 21px; }
.prefix-input { display: flex; border: 1px solid #d5dbe7; border-radius: 10px; overflow: hidden; }
.prefix-input span { padding: 10px 10px; background: #f8fafc; color: var(--muted); font-size: .82rem; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); }
.form .prefix-input input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem !important; }
.row-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.new-item { border-style: dashed; border-color: #93c5fd; background: #fbfdff; }
.narrow-form { max-width: 520px; }
.key-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key-box code { font-size: 1rem; padding: 6px 10px; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }

.img-prev { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.img-prev img { width: 140px; border-radius: 8px; border: 1px solid var(--line); }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.g-item { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; }
.g-item span { display: flex; gap: 6px; align-items: center; padding: 6px 8px; font-size: .82rem; }

.serp { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; font-family: Arial, sans-serif; }
.serp-url { color: #202124; font-size: 13px; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-desc { color: #4d5156; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.counter { float: right; font-weight: 600; font-size: .78rem; color: var(--muted); }
.counter.over { color: var(--err); }
.counter.good { color: var(--ok); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f1f5f9; color: #475569; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; font-weight: 500; }
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--blue-l); color: #1e40af; border-color: #bfdbfe; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.msg.unread { border-left: 4px solid var(--blue); }
.msg-body { margin: 0; white-space: normal; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
pre.code { background: #0b0b0f; color: #e2e8f0; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .8rem; line-height: 1.55; margin: 0; max-height: 520px; }

/* Quill editör */
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: #d5dbe7; background: #fafbfd; }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: #d5dbe7; font: inherit; font-size: 15px; }
.ql-editor { min-height: 260px; }
.editor-toggle { float: right; font-size: .8rem; font-weight: 600; background: none; border: 0; color: var(--blue); cursor: pointer; }

/* Giriş */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(800px 400px at 80% 0, rgba(37, 99, 235, .18), transparent 60%), #0b0b0f; }
.login-box { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.login-logo { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.login-logo .b1 { color: var(--ink); }
.login-logo .b2 { color: var(--blue); }
.login-box .field { margin-bottom: 14px; }
.login-box label { display: block; font-weight: 600; margin-bottom: 5px; }
.login-box input { width: 100%; padding: 12px; border: 1px solid #d5dbe7; border-radius: 10px; font: inherit; }
.login-box .btn { min-height: 46px; margin-top: 6px; }
.back { display: block; text-align: center; margin-top: 16px; color: var(--muted); }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .edit-grid { grid-template-columns: 1fr; }
    .sticky { position: static; }
}
@media (max-width: 860px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%); transition: .25s; }
    .side-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
    .menu-btn { display: grid; }
    .content { padding: 16px; }
    .topbar { padding: 12px 16px; }
    .who { display: none; }
    .form-row, .form-row.r-3 { grid-template-columns: 1fr; }
    .form-row.r-3 .small-f { max-width: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 14px; }
    .search input { min-width: 0; width: 100%; }
    .dl { grid-template-columns: 1fr; gap: 2px; }
    .dl dd { margin-bottom: 8px; }
}

/* --- Kurumsal site paneli ekleri --- */
.brand .b1 { color: #fff; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li span { flex: 1; }
.checklist li.ok .ic { color: var(--ok); }
.checklist li.no .ic { color: var(--err); }
.checklist li a { font-weight: 700; font-size: .85rem; }
.color-row { display: flex; align-items: center; gap: 12px; }
.color-row input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.msg-meta { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.side-foot .eym { font-size: .8rem; font-weight: 800; color: #64748b; }
.side-foot .eym b { color: #60a5fa; }
.login-eym { text-align: center; margin: 18px 0 0; font-weight: 800; color: #0b0b0f; }
.login-eym b { color: #2563eb; }

/* Statik panel demosu */
.demo-ribbon { display: flex; gap: 10px; align-items: center; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .9rem; }
.demo-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; display: flex; gap: 10px; align-items: center; max-width: min(520px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px; background: #0b0b0f; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.3); font-size: .9rem; }
.demo-toast[hidden] { display: none; }
.demo-toast .ic { color: #4ade80; }
.demo-login-note { text-align: center; margin: 10px 0 0; font-size: .85rem; color: var(--muted); }

.msg-details { list-style: none; margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: #f8fafc; display: grid; gap: 4px; font-size: .9rem; }
.msg-details li::before { content: '• '; color: var(--blue); }
