/* NextSEO — flat UI, no shadows. Colours come from admin settings via --brand / --ink / --soft. */
:root { --brand:#1D4ED8; --ink:#0B1533; --soft:#EEF2FB; --line:#E2E8F0; --muted:#64748B; --bg:#F8FAFC; --ok:#15803D; --okbg:#E8F6EC; --warn:#B45309; --warnbg:#FEF4E2; --bad:#B91C1C; --badbg:#FDECEC; --info:#1E40AF; --infobg:#E8EEFC; --r:14px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.55; }
body.app { background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 800; } h2 { font-size: 1.3rem; font-weight: 800; } h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
pre { background: #0F172A; color: #E2E8F0; padding: 14px; border-radius: 10px; overflow: auto; white-space: pre-wrap; word-break: break-word; max-height: 420px; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.hl { color: var(--brand); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1.5px solid var(--brand); border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.danger { background: #fff; color: var(--bad); border-color: #F5C2C2; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn.sm { padding: 7px 12px; font-size: .88rem; }
.btn.xs { padding: 3px 8px; font-size: .78rem; border-radius: 7px; gap: 4px; }
.btn.xs .ic { width: 14px; height: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 56px; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; }
.field { margin-bottom: 14px; } .field small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); }

/* topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.tb-in { display: flex; align-items: center; gap: 24px; padding: 12px 22px; max-width: 1500px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font-weight: 800; font-size: 1.25rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.logo-txt b { color: var(--brand); }
.logo-img { height: 38px; width: auto; display: block; }
.tb-nav { display: flex; gap: 6px; flex: 1; }
.tb-nav a { color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 9px; font-size: .92rem; display: inline-flex; gap: 7px; align-items: center; }
.tb-nav a:hover { background: var(--soft); text-decoration: none; }
.tb-nav.pub a { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.tb-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.tb-name { font-weight: 600; font-size: .9rem; }

/* shell */
.shell { display: grid; grid-template-columns: 250px 1fr; max-width: 1500px; margin: 0 auto; min-height: calc(100vh - 62px); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow: auto; }
.side-proj { padding: 6px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side-proj small { color: var(--muted); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.side-proj b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.side nav a:hover { background: var(--soft); text-decoration: none; }
.side nav a.on { background: var(--brand); color: #fff; }
.side-grp { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 14px 10px 6px; font-weight: 700; }
.main { padding: 26px 30px 60px; min-width: 0; }
.side-toggle { display: none; margin-bottom: 12px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { color: var(--muted); margin: 4px 0 0; max-width: 760px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.card.soft { background: var(--soft); border-color: transparent; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat.bad b { color: var(--bad); } .stat.warn b { color: var(--warn); } .stat.ok b { color: var(--ok); } .stat.info b { color: var(--brand); }

/* tags & pills */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #F1F5F9; color: #334155; white-space: nowrap; }
.tag.ok { background: var(--okbg); color: var(--ok); } .tag.warn { background: var(--warnbg); color: var(--warn); } .tag.bad { background: var(--badbg); color: var(--bad); } .tag.info { background: var(--infobg); color: var(--info); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F1F5F9; color: #475569; }
.pill.ok { background: var(--okbg); color: var(--ok); } .pill.run { background: var(--infobg); color: var(--info); }

/* flash & explain */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; background: var(--okbg); color: var(--ok); }
.flash.err { background: var(--badbg); color: var(--bad); } .flash.warn { background: var(--warnbg); color: var(--warn); }
.explain { display: flex; gap: 10px; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; color: #1E293B; }
.explain .ic { color: var(--brand); margin-top: 2px; }
.explain p:last-child { margin: 0; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; background: #F8FAFC; font-weight: 700; color: #334155; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #EEF2F6; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.url { max-width: 420px; word-break: break-all; }
.tbl tr:hover td { background: #FBFCFE; }
.pager { display: flex; gap: 6px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.pager a, .pager b { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .85rem; }
.pager b { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .muted { margin-left: 8px; font-size: .85rem; }

/* issue list */
.issue { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.issue > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; }
.issue > summary::-webkit-details-marker { display: none; }
.issue > summary b { font-weight: 700; }
.issue .cnt { font-weight: 800; font-size: 1.05rem; }
.issue .body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.issue .body h4 { margin: 14px 0 6px; font-size: .9rem; }
.issue[open] > summary { background: #FBFCFE; border-radius: 12px 12px 0 0; }

/* score ring */
.score { --v: 0; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--c, var(--brand)) calc(var(--v) * 1%), #E5EAF3 0); display: grid; place-items: center; }
.score > div { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score b { font-size: 2.1rem; font-weight: 800; line-height: 1; display: block; }
.score span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.bar { height: 10px; background: #E5EAF3; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bars .b-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 10px; align-items: center; margin: 7px 0; font-size: .88rem; font-weight: 600; }

/* progress panel */
.crawl-box { border: 1.5px solid var(--brand); background: #fff; border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.crawl-box .bar { height: 14px; margin: 10px 0 6px; }
.crawl-log { font-size: .82rem; color: var(--muted); max-height: 90px; overflow: auto; }

/* checklist / steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.steps > li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.steps > li.done::before { content: '✓'; background: var(--ok); color: #fff; }
.steps > li h3 { margin: 4px 0 4px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.dot { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 800; margin-top: 1px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: #D97706; } .dot.info { background: var(--brand); }

/* suggestion blocks (Edukatz format) */
.sug { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; margin-bottom: 16px; }
.sug h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 16px 0 6px; }
.sug h4:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .9rem; }
.kv > b { color: #475569; font-weight: 600; }
.kv > div { word-break: break-word; }
.cur { color: #64748B; } .new { color: var(--ink); font-weight: 600; }

/* landing */
.hero { padding: 70px 0 60px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.hero .kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 16px 0 18px; max-width: 900px; }
.hero .sub { font-size: 1.15rem; color: #475569; max-width: 680px; }
.audit-form { display: flex; gap: 10px; max-width: 720px; margin: 28px 0 12px; background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 6px; }
.audit-form input { border: 0; font-size: 1.05rem; padding: 12px 14px; }
.audit-form .btn { white-space: nowrap; }
.hero small { color: var(--muted); }
.sec { padding: 64px 0; } .sec.alt { background: var(--soft); }
.sec-head { max-width: 720px; margin-bottom: 30px; }
.sec-head p { color: #475569; font-size: 1.05rem; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feat .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.feat .fi .ic { width: 22px; height: 22px; }
.feat p { color: #475569; font-size: .93rem; margin: 0; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: h; }
.how > div { counter-increment: h; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.how > div::before { content: counter(h); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: .88rem; color: var(--muted); background: #fff; }
.foot .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth { max-width: 440px; margin: 60px auto; }
.auth .card { padding: 28px; }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.proj:hover { border-color: var(--brand); }
.proj h3 { margin: 0; } .proj .u { color: var(--muted); font-size: .85rem; word-break: break-all; }
.proj .meta { display: flex; gap: 14px; font-size: .85rem; color: #475569; font-weight: 600; }
.empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: var(--r); background: #fff; }

/* misc */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; font-size: .92rem; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { display: inline-block; background: var(--soft); color: var(--ink); border-radius: 8px; padding: 4px 10px; font-size: .85rem; font-weight: 600; }
.kw.p { background: var(--brand); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 180px; padding: 8px 10px; }
.serp { font-family: Arial, sans-serif; max-width: 600px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.serp .s-url { color: #202124; font-size: 12px; } .serp .s-t { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 2px 0; } .serp .s-d { color: #4d5156; font-size: 13.5px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, 1fr); } .grid3, .feat { grid-template-columns: 1fr 1fr; } .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: -280px; top: 0; height: 100vh; width: 270px; z-index: 50; transition: left .2s; }
  .side.open { left: 0; }
  .side-toggle { display: inline-flex; }
  .main { padding: 18px 16px 50px; }
  .tb-nav { display: none; } .tb-name { display: none; }
  .grid2, .grid3, .feat, .how { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; } .kv > b { margin-top: 6px; }
  .audit-form { flex-direction: column; }
  .issue > summary { grid-template-columns: 1fr auto; } .issue > summary .tag { grid-column: 1 / -1; justify-self: start; }
  .bars .b-row { grid-template-columns: 80px 1fr 44px; }
}
@media print { .topbar, .side, .side-toggle, .no-print { display: none !important; } .shell { display: block; } body.app { background: #fff; } }
.btn { white-space: nowrap; }
.issue > summary .tag { justify-self: start; }
@media (max-width: 860px) { .tb-in { gap: 10px; padding: 10px 14px; } .tb-user .btn { padding: 8px 12px; } .logo { font-size: 1.1rem; } }
.grid2.lead { grid-template-columns: 320px 1fr; } .grid2.lead.sm { grid-template-columns: 260px 1fr; }
@media (max-width: 860px) {
  .grid2.lead, .grid2.lead.sm { grid-template-columns: 1fr; }
  .tb-in { flex-wrap: wrap; }
  .tb-nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 2px; margin: 0 -6px; }
  .tb-nav a { white-space: nowrap; font-size: .85rem; padding: 6px 8px; }
  .tb-user { margin-left: auto; }
  .side { top: 0; }
}
.grid2.lead { align-items: start; }
