:root {
    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-soft: #f1f4fb;
    --text: #172033;
    --muted: #667085;
    --line: #e1e6ef;
    --primary: #5b4ef5;
    --primary-dark: #4436dc;
    --accent: #1688f8;
    --success: #16845b;
    --warning: #a96207;
    --danger: #c43d4b;
    --shadow-sm: 0 4px 16px rgba(25, 35, 58, .07);
    --shadow: 0 18px 50px rgba(34, 43, 77, .10);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, canvas { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 5vw, 4.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.08rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-180%);
    padding: 10px 16px; border-radius: 8px; background: var(--text); color: white;
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
    display: inline-block; margin-bottom: 10px; color: var(--primary);
    font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 17px; border: 1px solid var(--line);
    border-radius: 11px; background: var(--surface); color: var(--text);
    font-weight: 750; transition: .2s ease;
}
.button:hover { transform: translateY(-1px); border-color: #c9d1df; box-shadow: var(--shadow-sm); }
.button--primary {
    border-color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    box-shadow: 0 9px 22px rgba(91, 78, 245, .22);
}
.button--primary:hover { border-color: var(--primary-dark); box-shadow: 0 12px 28px rgba(91, 78, 245, .30); }
.button--full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.site-header {
    position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(225, 230, 239, .85);
    background: rgba(255,255,255,.91); backdrop-filter: blur(18px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    box-shadow: 0 8px 20px rgba(91,78,245,.24);
}
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a { padding: 9px 10px; border-radius: 9px; color: #44506a; font-size: .92rem; font-weight: 700; }
.primary-nav a:hover { background: var(--surface-soft); color: var(--primary); }
.header-search {
    display: flex; align-items: center; overflow: hidden; width: 215px;
    border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.header-search input { min-width: 0; width: 100%; padding: 9px 12px; border: 0; outline: 0; background: transparent; }
.header-search button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }
.nav-toggle, .admin-menu-button { display: none; }

/* Hero and sections */
.hero {
    position: relative; overflow: hidden; padding: 94px 0 82px;
    background:
        radial-gradient(circle at 15% 20%, rgba(85,192,255,.22), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(135,90,255,.18), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f5f6ff 100%);
}
.hero::before, .hero::after {
    content: ""; position: absolute; border: 1px solid rgba(91,78,245,.12); border-radius: 50%;
}
.hero::before { width: 470px; height: 470px; top: -260px; right: -90px; }
.hero::after { width: 270px; height: 270px; bottom: -210px; left: 4%; }
.hero__inner { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.hero h1 { max-width: 790px; margin: 0 auto 20px; }
.hero p { max-width: 650px; margin: 0 auto 30px; color: var(--muted); font-size: 1.15rem; }
.hero-search {
    display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto;
    padding: 8px 8px 8px 18px; border: 1px solid rgba(109,119,145,.2);
    border-radius: 16px; background: rgba(255,255,255,.93); box-shadow: var(--shadow);
}
.hero-search > svg { flex: 0 0 auto; color: var(--primary); }
.hero-search input { min-width: 0; width: 100%; padding: 12px 4px; border: 0; outline: 0; background: transparent; }
.hero-search--page { max-width: 680px; margin: 24px 0 0; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 25px; color: #59647b; font-size: .9rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.section { padding: 82px 0; }
.section--tight { padding: 62px 0 35px; }
.section--accent { background: linear-gradient(135deg, #171d35, #2b2459); color: #fff; }
.section-heading {
    display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { color: var(--primary); font-weight: 800; white-space: nowrap; }
.section-heading--center { align-items: center; text-align: left; }
.section-heading--center p { max-width: 590px; margin-bottom: 0; color: var(--muted); }

/* cards */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.tool-grid--featured { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tool-card {
    position: relative; min-width: 0; min-height: 132px; display: flex; align-items: flex-start; gap: 14px;
    padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tool-card:hover { transform: translateY(-3px); border-color: rgba(91,78,245,.3); box-shadow: var(--shadow-sm); }
.tool-card__icon {
    flex: 0 0 auto; width: 47px; height: 47px; display: grid; place-items: center;
    border: 1px solid #e0e4ff; border-radius: 13px; color: var(--primary);
    background: linear-gradient(145deg,#f5f3ff,#eef7ff);
}
.tool-card__body { min-width: 0; display: block; padding-right: 10px; }
.tool-card__title { display: block; margin-bottom: 5px; font-weight: 850; line-height: 1.35; }
.tool-card__description {
    display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .83rem; line-height: 1.5;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tool-card__arrow { position: absolute; top: 19px; right: 17px; color: #9aa3b5; transition: .2s; }
.tool-card:hover .tool-card__arrow { color: var(--primary); transform: translateX(2px); }
.category-block { margin-top: 58px; }
.category-block:first-of-type { margin-top: 42px; }
.category-block__heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 20px; }
.category-block__heading h3 { margin-bottom: 4px; font-size: 1.45rem; }
.category-block__heading p { margin-bottom: 0; color: var(--muted); }
.category-block__heading > a { color: var(--primary); font-weight: 800; }
.category-icon {
    width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px;
    border: 1px solid #e2e5fb; background: linear-gradient(145deg,#f4f3ff,#edf8ff); color: var(--primary);
}
.category-icon--large { width: 68px; height: 68px; border-radius: 20px; }
.benefits { display: grid; grid-template-columns: .8fr 1.5fr; gap: 70px; align-items: center; }
.benefits .eyebrow { color: #9ea8ff; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.benefit-grid article { padding: 22px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.06); }
.benefit-grid article > svg { color: #9ea8ff; }
.benefit-grid h3 { margin: 15px 0 8px; }
.benefit-grid p { margin-bottom: 0; color: #bdc3d6; font-size: .9rem; }

/* Page headers */
.page-hero { padding: 65px 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff,#f4f6ff); }
.page-hero--compact { padding: 52px 0; }
.page-hero__inner { display: flex; align-items: center; gap: 22px; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2.1rem,4vw,3.3rem); }
.page-hero p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.results-count { color: var(--muted); font-weight: 700; }
.empty-state {
    max-width: 620px; margin: 40px auto; padding: 55px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.empty-state svg { color: var(--primary); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 35px; }
.pagination__item { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 750; }
.pagination__item.is-disabled { opacity: .45; }
.pagination__summary { color: var(--muted); font-size: .9rem; }

/* Tool page */
.tool-page { padding: 30px 0 85px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 28px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a:hover { color: var(--primary); }
.tool-header { display: flex; align-items: center; gap: 20px; max-width: 920px; margin-bottom: 30px; }
.tool-header h1 { margin-bottom: 10px; font-size: clamp(2.1rem,4vw,3.35rem); }
.tool-header p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }
.ad-slot {
    min-height: 90px; display: grid; place-items: center; margin: 20px 0 30px;
    border: 1px dashed #d4d9e4; border-radius: 13px; background: #fbfcfe;
    color: #a2a9b8; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.tool-workspace {
    overflow: hidden; margin-bottom: 45px; border: 1px solid #dfe4ef; border-radius: 22px;
    background: var(--surface); box-shadow: var(--shadow);
}
.tool-workspace__bar {
    min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px;
    padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fbfcff;
}
.tool-workspace__bar > div { display: flex; align-items: center; gap: 9px; }
.tool-workspace__bar h2 { margin: 0; font-size: 1rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb67d; box-shadow: 0 0 0 4px rgba(47,182,125,.12); }
.privacy-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: .79rem; font-weight: 800; }
.tool-app { min-height: 340px; padding: 24px; }
.tool-form { display: grid; gap: 18px; }
.tool-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.tool-fields--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tool-form label, .form-stack label, .form-grid label, .filter-form label {
    display: grid; gap: 7px; color: #3c465c; font-size: .84rem; font-weight: 780;
}
.tool-form input, .tool-form textarea, .tool-form select,
.form-stack input, .form-stack textarea, .form-stack select,
.form-grid input, .form-grid textarea, .form-grid select,
.filter-form input, .filter-form select, .bulk-bar select {
    width: 100%; border: 1px solid #d8deea; border-radius: 10px; background: #fff; color: var(--text);
    padding: 11px 12px; outline: 0; transition: border-color .18s, box-shadow .18s;
}
.tool-form textarea { min-height: 190px; resize: vertical; }
.tool-form input:focus, .tool-form textarea:focus, .tool-form select:focus,
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus,
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus,
.filter-form input:focus, .filter-form select:focus {
    border-color: rgba(91,78,245,.65); box-shadow: 0 0 0 3px rgba(91,78,245,.10);
}
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-result {
    overflow-wrap: anywhere; padding: 18px; border: 1px solid #dbe4f0; border-radius: 13px;
    background: #f8faff; min-height: 80px;
}
.tool-result:empty { display: none; }
.tool-result h3 { margin: 0 0 12px; }
.tool-result pre { overflow: auto; margin: 0; padding: 13px; border-radius: 9px; background: #151b2f; color: #ecf1ff; white-space: pre-wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.stat-grid div { padding: 14px; border: 1px solid #e1e7f1; border-radius: 11px; background: #fff; }
.stat-grid strong { display: block; font-size: 1.45rem; }
.stat-grid span { color: var(--muted); font-size: .78rem; }
.output-copy { display: flex; justify-content: flex-end; margin-top: 10px; }
.image-preview {
    min-height: 210px; display: grid; place-items: center; overflow: hidden; padding: 12px;
    border: 1px dashed #cfd6e3; border-radius: 14px; background:
    linear-gradient(45deg,#f5f6f9 25%,transparent 25%),linear-gradient(-45deg,#f5f6f9 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#f5f6f9 75%),linear-gradient(-45deg,transparent 75%,#f5f6f9 75%);
    background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0;
}
.image-preview img, .image-preview canvas { max-height: 420px; object-fit: contain; }
.drop-zone {
    padding: 32px; border: 2px dashed #ccd4e4; border-radius: 14px; background: #fafbff; text-align: center;
}
.drop-zone input { margin: 12px auto 0; }
.color-swatch { width: 100%; height: 130px; border-radius: 13px; border: 1px solid var(--line); }
.palette { display: grid; grid-template-columns: repeat(5,1fr); min-height: 120px; overflow: hidden; border-radius: 12px; }
.palette button { border: 0; min-height: 120px; display: flex; align-items: flex-end; justify-content: center; padding: 10px; color: white; text-shadow: 0 1px 2px #000; font-size: .78rem; }
.diff-table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.diff-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff-add { background: #eaf8f1; } .diff-remove { background: #fff0f1; }
.keyword-table { width: 100%; border-collapse: collapse; }
.keyword-table th,.keyword-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.preview-serp { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; font-family: Arial,sans-serif; }
.preview-serp .serp-url { color: #202124; font-size: .86rem; }
.preview-serp .serp-title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; }
.preview-serp .serp-desc { color: #4d5156; font-size: .9rem; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 45px; align-items: start; }
.prose { min-width: 0; }
.prose section { margin-bottom: 44px; }
.prose h2 { margin-bottom: 15px; font-size: 1.65rem; }
.prose p, .prose li { color: #4e5a70; }
.prose--wide { max-width: 830px; }
.steps { counter-reset: steps; list-style: none; padding: 0; display: grid; gap: 13px; }
.steps li { position: relative; min-height: 42px; padding: 8px 0 8px 53px; }
.steps li::before {
    counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 3px;
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
    background: #eeecff; color: var(--primary); font-weight: 900;
}
.privacy-box { display: flex; gap: 14px; margin: 35px 0; padding: 21px; border: 1px solid #cce7db; border-radius: 14px; background: #f0faf5; }
.privacy-box > svg { flex: 0 0 auto; color: var(--success); margin-top: 3px; }
.privacy-box h2 { margin-bottom: 5px; font-size: 1.05rem; }
.privacy-box p { margin: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
.faq-list details p { padding: 0 18px 17px; margin: 0; }
.content-sidebar { position: sticky; top: 95px; }
.sidebar-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sidebar-card h2 { font-size: 1.1rem; }
.sidebar-card dl { margin: 0; }
.sidebar-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sidebar-card dl div:last-child { border-bottom: 0; }
.sidebar-card dt { color: var(--muted); }
.sidebar-card dd { margin: 0; text-align: right; font-weight: 750; }
.ad-slot--sidebar { min-height: 250px; margin-top: 18px; }
.related-section { margin-top: 62px; }

/* status */
.status-page { min-height: 70vh; padding: 35px 0 80px; }
.status-card {
    max-width: 720px; margin: 45px auto; padding: 52px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
}
.status-card__icon { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 25px; background: #f1f0ff; color: var(--primary); }
.status-card h1 { margin: 13px 0 14px; font-size: 2.3rem; }
.status-card p { color: var(--muted); }
.status-card .button-row { justify-content: center; }
.status-pill {
    display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px;
    border-radius: 999px; font-size: .69rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em;
}
.status-pill--enabled { color: #13704d; background: #e8f7f0; }
.status-pill--disabled { color: #934615; background: #fff1e7; }
.status-pill--maintenance { color: #7f5b00; background: #fff7d8; }
.status-pill--hidden { color: #6f3755; background: #f7eaf2; }

/* Contact/footer */
.contact-card { max-width: 700px; display: flex; gap: 22px; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-card > svg { flex: 0 0 auto; color: var(--primary); }
.site-footer { padding: 60px 0 25px; border-top: 1px solid var(--line); background: #11172a; color: #d6daea; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; }
.brand--footer { color: #fff; margin-bottom: 15px; }
.footer-grid p { max-width: 480px; color: #aab2ca; }
.footer-grid h2 { margin-bottom: 13px; color: #fff; font-size: .95rem; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #8f98b2; font-size: .85rem; }

/* Notices */
.notice { padding: 13px 15px; border-radius: 11px; font-size: .9rem; }
.notice--success { border: 1px solid #bfe7d4; background: #eefaf4; color: #176947; }
.notice--error { border: 1px solid #f0c7cd; background: #fff1f3; color: #9b2635; }
.notice--warning { border: 1px solid #ecd9a8; background: #fff9e9; color: #7f5b00; }

/* Admin */
.admin-body { background: #f4f6fb; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0,1fr); }
.admin-sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    padding: 22px 16px; background: #12182b; color: #c5cbe0;
}
.brand--admin { padding: 0 8px; color: #fff; }
.admin-nav { display: grid; gap: 6px; margin-top: 38px; }
.admin-nav a, .admin-logout button {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px;
    border: 0; border-radius: 10px; background: transparent; color: #aeb6cf; text-align: left; font-weight: 720;
}
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(255,255,255,.09); color: #fff; }
.admin-logout { margin-top: auto; }
.admin-logout button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { min-width: 0; }
.admin-topbar {
    height: 70px; display: flex; align-items: center; justify-content: flex-end; padding: 0 30px;
    border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94);
}
.admin-topbar > div { display: grid; text-align: right; line-height: 1.3; }
.admin-topbar__label { color: var(--muted); font-size: .72rem; }
.admin-content { padding: 30px; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.admin-page-heading h1 { margin: 0 0 5px; font-size: 2.25rem; }
.admin-page-heading p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 22px; }
.metric-grid article { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid strong { display: block; margin: 4px 0; font-size: 2rem; }
.admin-card { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(29,38,64,.04); }
.admin-card--filters { padding: 17px; }
.admin-card__heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.admin-card__heading h2 { margin-bottom: 3px; font-size: 1.2rem; }
.admin-card__heading p { margin: 0; color: var(--muted); font-size: .86rem; }
.admin-card__heading a { color: var(--primary); font-weight: 800; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { padding: 12px 15px; border-bottom: 1px solid var(--line); background: #fafbfe; color: var(--muted); text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: 14px 15px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td small { display: block; color: var(--muted); }
.table-action { color: var(--primary); font-weight: 800; }
.actions { white-space: nowrap; }
.actions a + a { margin-left: 10px; }
.filter-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 12px; align-items: end; }
.bulk-bar {
    display: flex; align-items: end; gap: 12px; margin-bottom: 12px; padding: 12px 15px;
    border: 1px solid #dfe4ed; border-radius: 12px; background: #f9faff;
}
.bulk-bar label { display: grid; gap: 5px; color: var(--muted); font-size: .77rem; font-weight: 750; }
.bulk-bar span { margin-left: auto; max-width: 520px; color: var(--muted); font-size: .78rem; }
.admin-count { padding: 7px 11px; border-radius: 999px; background: #ebe9ff; color: var(--primary); font-weight: 850; font-size: .8rem; }
.seo-badge { padding: 4px 8px; border-radius: 999px; font-size: .7rem; font-weight: 850; }
.seo-badge.is-ready { color: #166b4a; background: #e8f7f0; }
.seo-badge.is-warning { color: #8c5b09; background: #fff4d9; }
.admin-editor { display: grid; gap: 2px; }
.admin-editor .admin-card { padding-bottom: 20px; }
.admin-editor .form-stack, .admin-editor .form-grid { padding: 20px 20px 0; }
.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid__wide { grid-column: 1/-1; }
.checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.checkbox input { width: auto !important; }
.admin-editor > .admin-card > .checkbox { margin: 15px 20px 0; }
.status-explainer { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 17px 20px 0; }
.status-explainer span { padding: 10px; border-radius: 9px; background: #f6f7fb; color: var(--muted); font-size: .75rem; }
.field-count, .hint { float: right; color: var(--muted); font-size: .72rem; font-weight: 600; }
.serp-preview { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; font-family: Arial,sans-serif; }
.serp-preview > span { display: block; margin-bottom: 10px; color: var(--muted); font-family: inherit; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.serp-preview strong { display: block; color: #1a0dab; font-size: 1.25rem; font-weight: 400; }
.serp-preview small { color: #202124; }
.serp-preview p { margin: 3px 0 0; color: #4d5156; font-size: .88rem; }
.sticky-save {
    position: sticky; z-index: 10; bottom: 15px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 12px 15px; border: 1px solid #d8deeb; border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: var(--shadow);
}
.sticky-save span { color: var(--muted); font-size: .82rem; }

.faq-editor-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfe; }
@media (max-width: 700px) { .faq-editor-row { grid-template-columns: 1fr; } }

/* login */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 25px;
    background:
        radial-gradient(circle at 10% 10%, rgba(51,173,255,.18), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(110,83,255,.18), transparent 32%),
        #f6f7fc;
}
.login-card { width: min(100%, 460px); display: grid; gap: 25px; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.login-card h1 { margin: 10px 0 5px; font-size: 2.3rem; }
.login-card p { color: var(--muted); }
.login-back { text-align: center; color: var(--muted); font-size: .88rem; }

/* responsive */
@media (max-width: 1080px) {
    .primary-nav a:nth-child(n+4) { display: none; }
    .tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .benefits { grid-template-columns: 1fr; gap: 35px; }
    .content-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 28px; }
    .metric-grid { grid-template-columns: repeat(2,1fr); }
    .filter-form { grid-template-columns: 2fr 1fr 1fr; }
    .filter-form .button { align-self: end; }
}
@media (max-width: 820px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-inner { gap: 12px; }
    .nav-toggle { display: inline-flex; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
    .primary-nav {
        position: absolute; top: 74px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch;
        padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a:nth-child(n) { display: block; }
    .header-search { display: none; }
    .hero { padding: 72px 0 65px; }
    .hero-search { flex-wrap: wrap; }
    .hero-search .button { width: 100%; }
    .tool-grid, .tool-grid--featured { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .section-heading, .section-heading--center { align-items: flex-start; flex-direction: column; gap: 12px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
    .ad-slot--sidebar { min-height: 120px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1/-1; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; z-index: 150; left: 0; transform: translateX(-100%); width: 255px; transition: transform .2s; }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-topbar { justify-content: space-between; }
    .admin-menu-button { display: inline-flex; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
    .admin-content { padding: 20px; }
    .status-explainer { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 580px) {
    body { font-size: 15px; }
    .section { padding: 58px 0; }
    .hero h1 { font-size: 2.45rem; }
    .trust-row { gap: 12px 18px; }
    .tool-grid, .tool-grid--featured { grid-template-columns: 1fr; }
    .tool-card { min-height: 115px; }
    .category-block__heading { grid-template-columns: auto 1fr; }
    .category-block__heading > a { grid-column: 2; }
    .page-hero__inner, .tool-header { align-items: flex-start; }
    .tool-header .category-icon, .page-hero__inner .category-icon { display: none; }
    .tool-workspace__bar { align-items: flex-start; }
    .privacy-chip { display: none; }
    .tool-app { padding: 16px; }
    .tool-fields, .tool-fields--3, .form-grid { grid-template-columns: 1fr; }
    .form-grid__wide { grid-column: auto; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .status-card { padding: 34px 20px; }
    .metric-grid { grid-template-columns: 1fr; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .filter-form { grid-template-columns: 1fr; }
    .bulk-bar { align-items: stretch; flex-direction: column; }
    .bulk-bar span { margin-left: 0; }
    .status-explainer { grid-template-columns: 1fr; }
    .sticky-save { align-items: stretch; flex-direction: column; }
    .login-card { padding: 28px 21px; }
}

/* XML sitemap crawler */
.crawler-note {
    padding: 14px 16px;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: #f8faff;
    color: #4d5b72;
    font-size: .88rem;
    line-height: 1.6;
}
.crawler-note code { color: #4f46d8; font-weight: 750; }
.sitemap-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.sitemap-result-heading h3 { margin: 0 0 4px; font-size: 1.15rem; }
.sitemap-result-heading p { margin: 0; color: var(--muted); }
.sitemap-xml-output { min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .82rem; }
.sitemap-url-list { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.sitemap-url-list summary { cursor: pointer; color: var(--heading); font-weight: 800; }
.sitemap-url-list .table-scroll { margin-top: 14px; overflow-x: auto; }
.sitemap-url-list table { min-width: 680px; }
.sitemap-url-list td a { word-break: break-all; }
.muted-text { color: var(--muted); font-size: .84rem; }
.login-card--setup { width: min(100%, 540px); }
.login-security-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid #dfe6f2; border-radius: 12px; background: #f8faff; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.login-security-note svg { flex: 0 0 auto; color: var(--primary); margin-top: 2px; }
.login-security-note code { color: var(--heading); font-weight: 750; }
button:disabled { cursor: wait; opacity: .68; }

/* ToolSuite 2.0 advanced tool interfaces */
.field-help { margin: -4px 0 4px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.status-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 17px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8faff; }
.status-banner strong { color: var(--heading); }
.status-banner span { color: var(--muted); text-align: right; word-break: break-word; }
.status-banner--success { border-color: #b9e5cf; background: #f0fbf5; }
.status-banner--warning { border-color: #f1d7a2; background: #fffaf0; }
.status-banner--error { border-color: #f1bbbb; background: #fff5f5; }
.social-preview { overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 26px rgba(31,41,55,.07); }
.social-preview img, .social-preview__placeholder { display: block; width: 100%; aspect-ratio: 1.91/1; object-fit: cover; background: linear-gradient(135deg,#edf1f8,#f9fafc); }
.social-preview__placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 750; }
.social-preview > div:last-child { padding: 16px 18px 18px; }
.social-preview span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.social-preview h3 { margin: 6px 0 5px; color: var(--heading); font-size: 1.12rem; }
.social-preview p { margin: 0; color: var(--muted); line-height: 1.5; }
.tool-tabs { display: inline-flex; gap: 5px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #f5f7fb; }
.tool-tabs button { border: 0; border-radius: 8px; padding: 9px 14px; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.tool-tabs button.is-active { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(31,41,55,.08); }
.validation-item { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.validation-item__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.validation-item__head h3 { margin: 0; font-size: 1.08rem; }
.validation-item__head h3 span { color: var(--muted); font-size: .78rem; font-weight: 650; }
.validation-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.validation-badge--success { color: #14663e; background: #eaf8f1; }
.validation-badge--warning { color: #825900; background: #fff4d8; }
.validation-badge--error { color: #9d2525; background: #ffe9e9; }
.validation-item details { margin-top: 13px; }
.validation-item summary { cursor: pointer; color: var(--primary); font-weight: 750; }
.validation-item pre { max-height: 360px; overflow: auto; margin-top: 12px; }
.qr-output { display: grid; place-items: center; padding: 18px; margin-bottom: 15px; border: 1px dashed var(--line); border-radius: 13px; background: #fff; overflow: auto; }
.qr-output img, .qr-output canvas { max-width: 100%; height: auto; }
.html-preview, .markdown-preview { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow-wrap: anywhere; }
.html-preview table { width: 100%; border-collapse: collapse; }
.html-preview th, .html-preview td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { color: var(--heading); }
.markdown-preview pre { overflow: auto; padding: 14px; border-radius: 10px; background: #121827; color: #eaf0ff; }
.markdown-preview blockquote { margin-left: 0; padding-left: 14px; border-left: 4px solid var(--primary); color: var(--muted); }
.rich-validator textarea { min-height: 300px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .83rem; }
.tool-result svg#barcode-output { display: block; max-width: 100%; height: auto; margin: 0 auto 18px; }
@media (max-width: 580px) {
    .status-banner, .validation-item__head { flex-direction: column; align-items: flex-start; }
    .status-banner span { text-align: left; }
    .tool-tabs { width: 100%; }
    .tool-tabs button { flex: 1; }
}

/* ToolSuite 3.0 category interfaces */
.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll table { min-width: 640px; }
.timer-display {
    display: grid;
    place-items: center;
    min-height: 140px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, #f7f8ff, #ffffff);
    color: var(--heading);
    font: 800 clamp(2.2rem, 8vw, 4.8rem)/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .04em;
}
.flashcard {
    display: grid;
    place-items: center;
    min-height: 230px;
    padding: 30px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
    text-align: center;
}
.flashcard span { color: var(--muted); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.flashcard h3 { max-width: 720px; margin: 16px 0 0; color: var(--heading); font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.45; }
.css-preview {
    display: grid;
    place-items: center;
    min-height: 180px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px dashed #cfd7e6;
    border-radius: 18px;
    background: #f8faff;
    color: var(--heading);
    overflow: hidden;
}
.css-preview > span:not(.loader), .css-preview > div {
    min-width: 58px;
    min-height: 58px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
}
.permission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.permission-grid fieldset { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.permission-grid legend { padding: 0 6px; color: var(--heading); font-weight: 800; }
.permission-grid label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 9px 0; color: var(--muted); font-weight: 650; }
.permission-grid input { width: auto; }
@keyframes v3spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
    .permission-grid { grid-template-columns: 1fr; }
    .timer-display { min-height: 115px; }
}
