@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* v10 palette — deep teal + warm coral, distinct from typical blue/green
       SaaS defaults, chosen to feel premium and unique while staying
       clearly different from the semantic warn/info/bad colors below. */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --navy: #16302E;
    --navy-light: #274D49;
    --text-muted: #5B6B68;
    --bg: #ffffff;
    --bg-soft: #F7F5F1;
    --border: #E4E1D8;
    --accent: #E15B3F;
    --accent-dark: #B8452E;
    --accent-soft: #FBE2D8;
    --warn: #f59e0b;
    --warn-soft: #fef3c7;
    --bad: #dc2626;
    --bad-soft: #fee2e2;
    --info-soft: #dbeafe;
    --info: #1d4ed8;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(22, 48, 46, 0.08);
}

* { box-sizing: border-box; font-family: inherit; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--navy);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, button, input, select, textarea {
    font-family: var(--font);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ================= Header ================= */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(8px);
    z-index: 60;
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    max-width: 1280px; margin: 0 auto;
}
.logo { font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; }
.logo .dot { color: var(--accent); }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links > a, .nav-trigger {
    font-size: 0.93rem; color: var(--navy-light); font-weight: 500;
    background: none; border: none; cursor: pointer; font-family: inherit;
    padding: 6px 0;
}
.nav-links > a:hover, .nav-trigger:hover { color: var(--accent-dark); }
.nav-links > a.active { color: var(--accent-dark); font-weight: 600; }
.caret { font-size: 0.7rem; }

.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: -14px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow);
    min-width: 230px; padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .15s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: block; padding: 9px 12px; border-radius: 8px;
    font-size: 0.9rem; color: var(--navy-light);
}
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1.2rem; padding: 4px 11px; cursor: pointer;
}
.mobile-menu {
    display: none; flex-direction: column; padding: 10px 24px 20px;
    border-top: 1px solid var(--border); background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.mobile-section-title {
    margin-top: 14px; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-muted);
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--navy); color: #fff;
    padding: 11px 20px; border-radius: 999px;
    font-weight: 600; font-size: 0.92rem;
    border: none; cursor: pointer; font-family: inherit;
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); background: transparent; }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #991b1b; }
.btn-block { width: 100%; justify-content: center; }

/* ================= Hero ================= */
.hero { text-align: center; padding: 84px 24px 56px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800;
    max-width: 840px; margin: 0 auto 20px; letter-spacing: -0.02em; line-height: 1.15;
}
.hero p.sub { max-width: 660px; margin: 0 auto 30px; color: var(--text-muted); font-size: 1.1rem; }
.hero mark { background: var(--accent-soft); color: var(--accent-dark); padding: 0 5px; border-radius: 5px; }
.hero-badges { margin-top: 20px; color: var(--text-muted); font-size: 0.87rem; }

.page-hero { text-align: center; padding: 64px 24px 30px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.eyebrow {
    display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
    font-size: 0.75rem; font-weight: 700; padding: 4px 12px;
    border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em;
}

/* ================= Directory strip ================= */
.dir-strip { padding: 24px 24px 66px; }
.dir-strip .label { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.dir-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dir-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
}
.dir-chip .dr {
    background: var(--accent-soft); color: var(--accent-dark);
    font-size: 0.74rem; padding: 2px 8px; border-radius: 999px;
}

/* ================= Sections ================= */
.section { padding: 66px 24px; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 44px 24px; }
.section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
    text-align: center; max-width: 740px; margin: 0 auto 14px; letter-spacing: -0.01em;
}
.section p.lead { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; }
.section h2.left, .section p.lead.left { text-align: left; margin-left: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 36px; }
.feature-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.feature-card .icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 16px; font-size: 1.05rem;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 30px; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--accent-dark); }
.stat .lbl { color: var(--text-muted); font-size: 0.88rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; margin-top: 36px; }
.step .num {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.94rem; }

/* Testimonial */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial blockquote { font-size: 1.35rem; font-weight: 700; margin: 0 0 14px; line-height: 1.4; }
.testimonial cite { color: var(--text-muted); font-style: normal; }
.rating-stars { color: #f59e0b; letter-spacing: 2px; }

/* ================= Pricing ================= */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px; margin-top: 36px; align-items: stretch;
}
.plan-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px;
    display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative;
}
.plan-card.popular { border-color: var(--accent); box-shadow: 0 12px 30px rgba(16,185,129,0.15); }
.plan-card .badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: 0.74rem;
    font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { margin: 6px 0 4px; }
.plan-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan-card .price { font-size: 2.2rem; font-weight: 800; margin-bottom: 2px; }
.plan-card .per-unit { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-card ul li {
    padding: 8px 0; border-top: 1px solid var(--border);
    font-size: 0.92rem; display: flex; gap: 8px; align-items: flex-start;
}
.plan-card ul li:before { content: "✓"; color: var(--accent-dark); font-weight: 700; }
.plan-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 12px; }

.includes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 26px; }
.includes-grid .item { text-align: center; padding: 18px; }
.includes-grid .item h3 { margin: 0 0 6px; font-size: 1rem; }
.includes-grid .item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ================= FAQ ================= */
.faq-list { max-width: 780px; margin: 26px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    cursor: pointer; padding: 18px 4px; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; font-size: 1.3rem; color: var(--accent-dark); font-weight: 400; }
.faq-item[open] summary:after { content: "−"; }
.faq-item .answer { padding: 0 4px 18px; color: var(--text-muted); }

/* ================= Cards / grids ================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.blog-card, .simple-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; background: var(--bg); box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.blog-card .label, .pill {
    display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
    font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
    border-radius: 999px; margin-bottom: 14px; width: fit-content;
}
.blog-card h3, .simple-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.blog-card p, .simple-card p { color: var(--text-muted); font-size: 0.92rem; flex: 1; margin: 0 0 12px; }
.blog-card .date { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; }
.read-more { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }

.article { max-width: 740px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 10px; letter-spacing: -0.02em; }
.article .meta { color: var(--text-muted); margin-bottom: 30px; font-size: 0.9rem; }
.article p { color: var(--navy-light); margin-bottom: 18px; }
.article h2 { margin-top: 34px; margin-bottom: 10px; font-size: 1.4rem; letter-spacing: -0.01em; }
.article h3 { margin-top: 28px; margin-bottom: 8px; }
.article ul, .article ol { color: var(--navy-light); padding-left: 22px; margin-bottom: 18px; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--navy); }
.article blockquote {
    border-left: 3px solid var(--accent); margin: 20px 0; padding: 4px 0 4px 18px;
    color: var(--text-muted); font-style: italic;
}
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.article table th, .article table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.article table th { color: var(--text-muted); font-weight: 600; background: var(--bg-soft); }
.article ul { color: var(--navy-light); }

/* Pros / cons lists */
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 30px 0; }
.proscons .box { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.proscons .box h3 { margin: 0 0 12px; font-size: 1rem; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding: 7px 0; font-size: 0.92rem; display: flex; gap: 8px; align-items: flex-start; color: var(--navy-light); }
.proscons .pros li:before { content: "✓"; color: var(--accent-dark); font-weight: 700; }
.proscons .cons li:before { content: "−"; color: var(--bad); font-weight: 700; }

.step-list { counter-reset: s; list-style: none; padding: 0; margin: 20px 0; }
.step-list li {
    counter-increment: s; position: relative; padding: 12px 0 12px 44px;
    border-bottom: 1px solid var(--border); color: var(--navy-light);
}
.step-list li:before {
    content: counter(s); position: absolute; left: 0; top: 12px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}

/* ================= Tables ================= */
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; }
.data-table th, .data-table td {
    text-align: left; padding: 11px 12px;
    border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.data-table th { color: var(--text-muted); font-weight: 600; background: var(--bg-soft); }
.data-table tr:hover td { background: #fcfdfe; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.badge-pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700;
}
.badge-ok   { background: var(--accent-soft); color: var(--accent-dark); }
.badge-warn { background: var(--warn-soft); color: #b45309; }
.badge-bad  { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* Filter bar */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
    margin-top: 26px; padding: 18px; background: var(--bg-soft);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.filter-bar .field { display: flex; flex-direction: column; gap: 5px; }
.filter-bar label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.filter-bar input, .filter-bar select {
    padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.9rem; font-family: inherit; min-width: 160px;
}

/* ================= Forms ================= */
.form-card {
    max-width: 580px; margin: 32px auto 0; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px; box-shadow: var(--shadow);
}
.form-card.wide { max-width: 760px; }
.form-card label { display: block; font-weight: 600; font-size: 0.88rem; margin: 16px 0 6px; }
.form-card input, .form-card textarea, .form-card select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fff;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-card .btn { margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 5px; }

.alert { padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 14px; }
.alert.success { background: var(--accent-soft); color: var(--accent-dark); }
.alert.error { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--info-soft); color: var(--info); }

/* ================= CTA ================= */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 66px 24px; }
.cta-band h2 { color: #fff; }
.cta-band p.lead { color: #cbd5e1; }
.cta-note { color: #94a3b8; font-size: 0.85rem; margin-top: 18px; }

.inline-cta {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; margin: 34px 0; text-align: center;
}
.inline-cta h3 { margin: 0 0 8px; }
.inline-cta p { color: var(--text-muted); margin: 0 0 16px; font-size: 0.94rem; }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--border); padding: 58px 24px 28px; background: var(--bg-soft); }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 30px; max-width: 1120px; margin: 0 auto 38px;
}
.footer-blurb { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; max-width: 290px; }
.footer-grid h4 {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { color: var(--navy-light); font-size: 0.9rem; }
.footer-grid ul li a:hover { color: var(--accent-dark); }
.footer-bottom {
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
    border-top: 1px solid var(--border); padding-top: 22px;
    max-width: 1120px; margin: 0 auto;
}

/* ================= Chatbot ================= */
.chat-widget { position: fixed; bottom: 22px; right: 22px; z-index: 90; }
.chat-bubble {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none; cursor: pointer;
    font-size: 1.4rem; box-shadow: 0 8px 22px rgba(16,185,129,0.4);
    transition: transform .15s ease;
}
.chat-bubble:hover { transform: scale(1.06); }
.chat-panel {
    position: absolute; bottom: 70px; right: 0;
    width: 340px; max-width: calc(100vw - 44px); height: 460px; max-height: calc(100vh - 140px);
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 18px 46px rgba(15,23,42,0.18);
    display: none; flex-direction: column; overflow: hidden;
}
/* Bulletproof open/close: a plain class toggle, no reliance on the native
   `hidden` attribute or cascade order — this always wins since it's the
   only rule controlling display. */
.chat-panel.is-open { display: flex; }
.chat-head {
    background: var(--navy); color: #fff; padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-status { display: block; font-size: 0.75rem; color: #94a3b8; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); }
.chat-msg { margin-bottom: 12px; display: flex; }
.chat-msg .text {
    padding: 10px 14px; border-radius: 14px; font-size: 0.88rem;
    max-width: 82%; line-height: 1.5;
}
.chat-msg.bot .text { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user .text { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing { color: var(--text-muted); font-size: 0.82rem; padding: 0 4px 8px; }
.chat-suggestions {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px;
    border-top: 1px solid var(--border); background: #fff;
}
.chat-suggestions button {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 11px; font-size: 0.78rem;
    cursor: pointer; font-family: inherit; color: var(--navy-light);
}
.chat-suggestions button:hover { border-color: var(--accent); color: var(--accent-dark); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-input-row input {
    flex: 1; border: 1px solid var(--border); border-radius: 999px;
    padding: 9px 14px; font-size: 0.88rem; font-family: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-send {
    background: var(--accent); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
}

/* ================= Admin ================= */
.admin-body { background: var(--bg-soft); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px; background: var(--navy); color: #cbd5e1;
    padding: 22px 0; flex-shrink: 0;
}
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: 0 22px 20px; display: block; font-size: 1.1rem; }
.admin-sidebar .brand .dot { color: var(--accent); }
.admin-sidebar .nav-group-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em;
    color: #64748b; padding: 16px 22px 6px;
}
.admin-sidebar a {
    display: block; padding: 9px 22px; font-size: 0.9rem; color: #cbd5e1;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-sidebar a.active { background: rgba(16,185,129,0.12); color: #fff; border-left-color: var(--accent); }
.admin-main { flex: 1; padding: 26px 30px 60px; min-width: 0; }
.admin-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 26px; flex-wrap: wrap; gap: 12px;
}
.admin-topbar h1 { font-size: 1.4rem; margin: 0; }
.admin-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
}
.admin-card h2 { font-size: 1.05rem; margin: 0 0 14px; text-align: left; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px;
}
.kpi .num { font-size: 1.8rem; font-weight: 800; }
.kpi .lbl { color: var(--text-muted); font-size: 0.84rem; }
.kpi.accent .num { color: var(--accent-dark); }

.admin-form label { display:block; font-weight:600; font-size:0.85rem; margin:14px 0 5px; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.9rem; font-family: inherit;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none; border-color: var(--accent);
}
.admin-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline-form { display: inline; }
select.mini, input.mini {
    padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.85rem;
}
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-soft); }

/* ================= Responsive ================= */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .header-cta { display: none; }
    .form-row, .admin-form .row { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-main { padding: 20px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 20px 40px; }
}

/* ================= v3: chat extras ================= */
.chat-wa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; padding: 10px 18px;
    border-radius: 999px; font-weight: 600; font-size: 0.86rem;
    text-decoration: none;
}
.chat-wa-btn:before { content: "✆"; font-size: 1rem; }
.chat-wa-btn:hover { background: #1da851; }

.chat-order-badge {
    background: var(--accent-soft); color: var(--accent-dark);
    border: 1px dashed var(--accent); border-radius: 10px;
    padding: 10px 14px; font-size: 0.85rem; font-weight: 700;
    text-align: center; margin: 4px 0 12px;
}

/* ================= v3: admin notifications ================= */
.topbar-right { display: flex; align-items: center; gap: 18px; }

.notif-bell { position: relative; cursor: pointer; outline: none; }
.bell-icon { font-size: 1.25rem; }
.bell-count {
    position: absolute; top: -6px; right: -8px;
    background: var(--bad); color: #fff; font-size: 0.68rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.bell-menu {
    position: absolute; top: 32px; right: 0; width: 320px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.16); padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .15s ease; z-index: 70; text-align: left;
}
.notif-bell:hover .bell-menu, .notif-bell:focus-within .bell-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.bell-menu-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.bell-menu-head a { color: var(--accent-dark); font-size: 0.82rem; }
.bell-empty { padding: 18px 12px; color: var(--text-muted); font-size: 0.86rem; }
.bell-item {
    display: block; padding: 10px 12px; border-radius: 8px;
    border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: var(--bg-soft); }
.bell-item.unread { background: rgba(16,185,129,0.06); }
.bell-item strong { display: block; color: var(--navy); }
.bell-item span { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.bell-item em { display: block; color: #94a3b8; font-size: 0.72rem; font-style: normal; margin-top: 4px; }

.side-badge {
    background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
    border-radius: 999px; padding: 1px 7px; margin-left: 6px;
}

.notif-row {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 8px;
}
.notif-row.unread { background: rgba(16,185,129,0.06); }
.notif-row:last-child { border-bottom: none; }
.notif-icon {
    width: 34px; height: 34px; border-radius: 8px; background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ================= v4: marquee directory strip ================= */
.marquee-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.dir-chip img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }

/* ================= v4: alternating image/text feature rows ================= */
.feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    padding: 56px 0;
}
.feature-row.reverse .feature-row-media { order: 2; }
.feature-row.reverse .feature-row-text { order: 1; }
.feature-row-text .eyebrow { margin-bottom: 12px; }
.feature-row-text h2 { text-align: left; margin: 0 0 14px; max-width: none; }
.feature-row-text p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.feature-row-media img {
    width: 100%; display: block; border-radius: 16px;
    border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}
.feature-row-media { position: relative; }
.feature-row-media:before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px;
    background: var(--accent-soft); border-radius: 16px; z-index: -1;
}

/* ================= v4: testimonial slider ================= */
.testi-slider { max-width: 780px; margin: 0 auto; position: relative; }
.testi-track-wrap { overflow: hidden; border-radius: var(--radius); }
.testi-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.testi-slide {
    flex: 0 0 100%; text-align: center; padding: 8px 50px;
}
.testi-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 16px; border: 3px solid #fff; box-shadow: var(--shadow);
}
.testi-slide blockquote { font-size: 1.3rem; font-weight: 700; margin: 0 0 14px; line-height: 1.45; }
.testi-slide cite { color: var(--text-muted); font-style: normal; display: block; margin-top: 8px; }
.testi-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; background: #fff;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; color: var(--navy); z-index: 5;
}
.testi-nav.prev { left: -6px; }
.testi-nav.next { right: -6px; }
.testi-nav:hover { border-color: var(--accent); color: var(--accent-dark); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testi-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none;
    background: var(--border); cursor: pointer; padding: 0;
}
.testi-dots button.active { background: var(--accent); width: 22px; border-radius: 999px; }

/* ================= v4: blog & card images ================= */
.blog-card { padding: 0; overflow: hidden; }
.blog-card .cover { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--bg-soft); }
.blog-card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.simple-card.has-icon { text-align: left; }
.simple-card .use-case-img {
    width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 14px;
}

.hero-with-image-wrap { padding-top: 10px; }
.hero-with-image {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
    text-align: left; padding: 70px 0 20px;
}
.hero-with-image .hero-text h1 { text-align: left; margin-left: 0; }
.hero-with-image .hero-text p.sub { text-align: left; margin-left: 0; }
.hero-with-image .hero-media img {
    width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(15,23,42,0.16);
    border: 1px solid var(--border);
}

.reviews-avatar-row { display: flex; justify-content: center; gap: -8px; margin-bottom: 14px; }
.reviews-avatar-row img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; margin-left: -10px; box-shadow: var(--shadow);
}
.reviews-avatar-row img:first-child { margin-left: 0; }

/* review page cards get avatars too */
.simple-card .review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.simple-card .review-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

/* ================= v4: responsive polish ================= */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
    .feature-row.reverse .feature-row-media,
    .feature-row.reverse .feature-row-text,
    .feature-row .feature-row-media,
    .feature-row .feature-row-text { order: initial; }
    .feature-row-media { order: -1 !important; }
    .feature-row-text h2 { text-align: center; }
    .feature-row-text p { text-align: center; }
    .feature-row-text { text-align: center; }
    .hero-with-image { grid-template-columns: 1fr; text-align: center; padding-top: 46px; }
    .hero-with-image .hero-text h1, .hero-with-image .hero-text p.sub { text-align: center; margin-left: auto; margin-right: auto; }
    .hero-with-image .hero-media { order: -1; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .testi-slide { padding: 8px 40px; }
    .testi-nav { width: 32px; height: 32px; }
    .testi-nav.prev { left: -4px; }
    .testi-nav.next { right: -4px; }
    .testi-slide blockquote { font-size: 1.08rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .testi-slide { padding: 4px 34px; }
    .plan-card .price { font-size: 1.9rem; }
    .chat-panel { width: calc(100vw - 24px); right: -10px; }
}

/* ================= v5: hero trust badge ================= */
.hero-trust-row {
    display: flex; align-items: center; gap: 12px;
    margin-top: 20px; flex-wrap: wrap;
}
.hero-trust-avatars { display: flex; }
.hero-trust-avatars img {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; margin-left: -10px; box-shadow: var(--shadow);
}
.hero-trust-avatars img:first-child { margin-left: 0; }
.hero-trust-text { font-size: 0.86rem; color: var(--navy-light); line-height: 1.35; }
.hero-trust-text .rating-stars { font-size: 0.85rem; }

/* ================= v5: mock UI media (replaces random stock photos) ================= */
.mock-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.14); padding: 22px; width: 100%;
}
.mock-card .mock-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.mock-card .mock-head strong { font-size: 0.92rem; }
.mock-card .mock-head span { font-size: 0.76rem; color: var(--text-muted); }

/* Hero mock: order report preview */
.mock-order-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.86rem;
}
.mock-order-row:last-child { border-bottom: none; }
.mock-order-row .dir-name { font-weight: 600; }
.mock-order-row .dr-tag {
    background: var(--accent-soft); color: var(--accent-dark);
    font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px;
}
.mock-order-row .status-ok { color: var(--accent-dark); font-weight: 700; font-size: 0.8rem; }
.mock-order-row .status-pending { color: #b45309; font-weight: 700; font-size: 0.8rem; }
.mock-progress { margin-top: 16px; }
.mock-progress .bar-bg { background: var(--bg-soft); border-radius: 999px; height: 8px; overflow: hidden; }
.mock-progress .bar-fill { background: var(--accent); height: 100%; border-radius: 999px; width: 82%; }
.mock-progress .bar-label { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; }

/* Feature mock: DR growth bar chart */
.mock-bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.mock-bar-chart .bar {
    flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    border-radius: 6px 6px 0 0; position: relative;
}
.mock-bar-chart .bar span {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 0.72rem; font-weight: 700; color: var(--navy);
}
.mock-bar-chart .bar.light { background: var(--border); }
.mock-bar-labels { display: flex; gap: 10px; margin-top: 8px; }
.mock-bar-labels div { flex: 1; text-align: center; font-size: 0.7rem; color: var(--text-muted); }

/* Feature mock: traffic line chart */
.mock-line-chart svg { width: 100%; height: 150px; display: block; }
.mock-line-stats { display: flex; gap: 24px; margin-top: 14px; }
.mock-line-stats .stat-box .n { font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); }
.mock-line-stats .stat-box .l { font-size: 0.76rem; color: var(--text-muted); }

/* Feature mock: proof report table */
.mock-report-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mock-report-table th {
    text-align: left; color: var(--text-muted); font-weight: 600;
    padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 0.72rem; text-transform: uppercase;
}
.mock-report-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); }
.mock-report-table tr:last-child td { border-bottom: none; }
.mock-check { color: var(--accent-dark); font-weight: 700; }

@media (max-width: 480px) {
    .hero-trust-row { justify-content: center; }
}

/* ================= v5: topic tiles (replace random stock photos) ================= */
.topic-tile {
    width: 100%; height: 160px; border-radius: 10px 10px 0 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; position: relative; overflow: hidden;
}
.blog-card .topic-tile { border-radius: 0; }
.simple-card .topic-tile { border-radius: 10px; height: 140px; margin-bottom: 14px; }
.topic-tile:after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
}
.topic-tile.t-1 { background: linear-gradient(135deg, #E15B3F, #B8452E); }
.topic-tile.t-2 { background: linear-gradient(135deg, #16302E, #274D49); }
.topic-tile.t-3 { background: linear-gradient(135deg, #B8452E, #16302E); }
.topic-tile.t-4 { background: linear-gradient(135deg, #F0876B, #8C3A24); }
.topic-tile.t-5 { background: linear-gradient(135deg, #274D49, #E15B3F); }
.article .topic-tile { height: 240px; border-radius: 16px; margin-bottom: 26px; font-size: 3.4rem; }

/* Bigger topic tile when it's the sole hero visual on a use-case page */
.hero-media .topic-tile {
    width: 100%; height: 460px; border-radius: 20px; font-size: 5rem;
    box-shadow: 0 20px 50px rgba(15,23,42,0.16); border: 1px solid var(--border);
}
@media (max-width: 900px) {
    .hero-media .topic-tile { height: 260px; }
}

/* =================================================================
   v7: PROFESSIONAL ADMIN PANEL REDESIGN
   ================================================================= */

.admin-body {
    background: #eef2f7;
    background-image: radial-gradient(circle at top left, rgba(16,185,129,0.05), transparent 40%);
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
    background: linear-gradient(180deg, #16302E 0%, #0D211F 100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
}
.admin-sidebar .brand {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 22px 22px; font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 6px; padding-bottom: 18px;
}
.nav-group-title {
    font-weight: 700; letter-spacing: 0.08em;
}
.admin-sidebar a {
    display: flex; align-items: center; gap: 10px;
    margin: 2px 12px; border-radius: 8px; border-left: none;
    transition: background .12s ease, color .12s ease;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.06); }
.admin-sidebar a.active {
    background: linear-gradient(90deg, rgba(16,185,129,0.18), rgba(16,185,129,0.02));
    border-left: none; box-shadow: inset 3px 0 0 var(--accent);
}
.nav-ic { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; opacity: 0.9; }

/* ---------- Topbar ---------- */
.admin-topbar {
    background: #fff; margin: -26px -30px 26px; padding: 18px 30px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05); border-bottom: 1px solid var(--border);
}
.admin-topbar h1 { letter-spacing: -0.01em; }

/* ---------- Notification bell ---------- */
.bell-icon { font-size: 1.35rem; }

/* ---------- KPI cards ---------- */
.kpi-grid { gap: 18px; }
.kpi {
    position: relative; overflow: hidden;
    border-radius: 14px; padding: 20px 20px 18px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.05);
    transition: transform .15s ease, box-shadow .15s ease;
    border-top: 3px solid var(--border);
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,0.1); }
.kpi .kpi-ic {
    position: absolute; top: 16px; right: 18px; font-size: 1.4rem; opacity: 0.35;
}
.kpi .num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.kpi .lbl { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.kpi .lbl a { color: inherit; }
.kpi.accent { border-top-color: var(--accent); }
.kpi.accent .num { color: var(--accent-dark); }
.kpi.warn { border-top-color: var(--warn); }
.kpi.warn .num { color: #b45309; }
.kpi.info { border-top-color: var(--info); }
.kpi.info .num { color: var(--info); }
.kpi.bad { border-top-color: var(--bad); }
.kpi.bad .num { color: var(--bad); }

/* ---------- Cards ---------- */
.admin-card {
    border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,0.05);
    border: 1px solid #eef1f5;
}
.admin-card h2 {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 14px; margin-bottom: 18px !important;
    border-bottom: 1px solid var(--border); color: var(--navy);
}

/* ---------- Tables ---------- */
.data-table { border-radius: 10px; overflow: hidden; }
.data-table th {
    background: #f8fafc; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72rem;
}
.data-table tbody tr { transition: background .1s ease; }
.data-table tr:nth-child(even) td { background: #fbfcfe; }
.data-table tr:hover td { background: var(--accent-soft) !important; }
.table-wrap { border-radius: 10px; box-shadow: 0 1px 4px rgba(15,23,42,0.04); }

/* ---------- Login page ---------- */
.login-wrap {
    background: linear-gradient(135deg, #16302E 0%, #4A2A1E 100%);
    position: relative; overflow: hidden;
}
.login-wrap:before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(16,185,129,0.25), transparent 45%),
                       radial-gradient(circle at 80% 80%, rgba(16,185,129,0.15), transparent 45%);
}
.login-wrap .form-card {
    position: relative; z-index: 1; border: none;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

/* ---------- Buttons refinement ---------- */
.admin-main .btn-accent { box-shadow: 0 2px 8px rgba(16,185,129,0.3); }

@media (max-width: 860px) {
    .admin-topbar { margin: -20px -20px 20px; padding: 16px 20px; }
}

/* ================= v8: payment methods ================= */
.pay-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: 18px 0;
}
.pay-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 7px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
}
.pay-badge .ic { font-size: 1rem; }
.pay-badge.soon { opacity: 0.6; }
.pay-badge.soon:after { content: "· coming soon"; font-weight: 400; color: var(--text-muted); font-size: 0.76rem; }

.pay-instructions { display: grid; gap: 16px; margin-top: 24px; }
.pay-instr-card {
    border: 1px solid var(--border); border-radius: 12px; padding: 20px;
    background: var(--bg-soft);
}
.pay-instr-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 700; }
.pay-instr-card .head .ic { font-size: 1.3rem; }
.pay-instr-card pre {
    white-space: pre-wrap; font-family: inherit; margin: 0;
    color: var(--navy-light); font-size: 0.9rem; line-height: 1.6;
}

/* ================= v9: SEO/blog extras ================= */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag-pill {
    background: var(--bg-soft); color: var(--text-muted); font-size: 0.8rem;
    padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border);
}
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 10px; }
.category-filter a {
    padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
    font-size: 0.85rem; color: var(--navy-light);
}
.category-filter a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =================================================================
   v9: Yoast-style blog post editor
   ================================================================= */
.post-editor-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.post-editor-side { position: sticky; top: 16px; }

.cover-preview { margin: 8px 0 0; }
.cover-preview img { max-width: 240px; max-height: 140px; border-radius: 8px; border: 1px solid var(--border); object-fit: cover; }

.editor-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.editor-mode-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mode-btn {
    border: none; background: #fff; padding: 6px 12px; font-size: 0.8rem;
    cursor: pointer; font-family: inherit; color: var(--text-muted);
}
.mode-btn.active { background: var(--accent); color: #fff; }

.visual-toolbar {
    display: flex; gap: 4px; flex-wrap: wrap; padding: 8px;
    border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--bg-soft);
}
.visual-toolbar button {
    border: 1px solid var(--border); background: #fff; border-radius: 6px;
    padding: 5px 10px; font-size: 0.82rem; cursor: pointer; font-family: inherit;
}
.visual-toolbar button:hover { border-color: var(--accent); color: var(--accent-dark); }
.visual-editor {
    min-height: 320px; border: 1px solid var(--border); border-radius: 0 0 8px 8px;
    padding: 16px; font-size: 0.92rem; line-height: 1.6; background: #fff;
}
.visual-editor:focus { outline: none; border-color: var(--accent); }
.visual-editor h2, .visual-editor h3 { margin: 14px 0 8px; }
.classic-editor {
    display: none; width: 100%; font-family: 'Courier New', monospace !important;
    font-size: 0.85rem; border: 1px solid var(--border); border-radius: 8px; padding: 14px;
}

.tag-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tag-check {
    display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 0.85rem;
    background: var(--bg-soft); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
}
.tag-check input { width: auto; margin: 0; }

.seo-box {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 18px; margin-bottom: 16px;
}
.seo-box h3 { margin: 0 0 12px; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.seo-box input, .seo-box textarea { margin-top: 4px; }
.seo-box label { margin-top: 10px; }

.seo-checklist { list-style: none; padding: 0; margin: 0; }
.seo-checklist li {
    padding: 7px 0 7px 26px; position: relative; font-size: 0.84rem; color: var(--text-muted);
}
.seo-checklist li:before {
    content: "○"; position: absolute; left: 0; top: 6px; font-size: 0.9rem; color: var(--border);
}
.seo-checklist li.ok { color: var(--navy); }
.seo-checklist li.ok:before { content: "●"; color: var(--accent); }
.seo-checklist li.bad:before { content: "●"; color: var(--warn); }

.char-count { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }
.char-count.ok { color: var(--accent-dark); }
.char-count.warn { color: #b45309; }

.serp-preview { border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: var(--bg-soft); }
.serp-title { color: #1a0dab; font-size: 1.05rem; font-weight: 500; line-height: 1.3; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-url { color: #006621; font-size: 0.82rem; margin-bottom: 4px; }
.serp-desc { color: #545454; font-size: 0.84rem; line-height: 1.4; }

@media (max-width: 1050px) {
    .post-editor-grid { grid-template-columns: 1fr; }
    .post-editor-side { position: static; }
}
