:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #15171a;
    --muted: #6d737c;
    --border: #e6e8eb;
    --dark: #17191c;
    --accent: #0a55f0;
    --accent-soft: #eaf3ff;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}


/* NAVIGATION */

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    background: rgba(247, 248, 250, .96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 19px;
    font-weight: 750;
}

.brand-mark {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: white;
    background: var(--dark);
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 17px;
    max-width: 920px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.nav-links a:not(.nav-button) {
    padding: 7px 0;
    transition: color .18s ease;
}

.nav-links a:not(.nav-button):hover,
.nav-links a:not(.nav-button):focus-visible {
    color: var(--accent);
}

.nav-button {
    padding: 11px 17px;
    color: white;
    background: var(--dark);
    border-radius: 10px;
}


/* HERO */

.hero {
    width: min(1160px, calc(100% - 40px));
    margin: auto;

    min-height: 650px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;

    color: var(--accent);
    background: var(--accent-soft);

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 20px;

    max-width: 650px;

    font-size: clamp(48px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-content > p {
    max-width: 590px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    padding: 14px 20px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
}

.primary-button {
    color: white;
    background: var(--dark);
}

.secondary-button {
    background: white;
    border: 1px solid var(--border);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;

    color: var(--muted);
    font-size: 12px;
}


/* PREVIEW */

.hero-preview {
    display: flex;
    justify-content: center;
}

.preview-window {
    width: 100%;
    max-width: 480px;

    padding: 18px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow:
        0 25px 70px rgba(20, 24, 30, .09);
}

.preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;

    color: var(--muted);
    font-size: 12px;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots i {
    width: 7px;
    height: 7px;
    display: block;

    background: #d6d9de;
    border-radius: 50%;
}

.score-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px;

    background: #f7f8fa;
    border-radius: 16px;
}

.score-card small {
    display: block;
    color: var(--muted);
}

.score-card strong {
    display: inline-block;
    margin-top: 7px;

    font-size: 50px;
    letter-spacing: -3px;
}

.score-card span {
    color: var(--muted);
}

.score-ring {
    width: 90px;
    height: 90px;

    display: grid;
    place-items: center;

    border: 8px solid #cfe3ff;
    border-right-color: var(--accent);

    border-radius: 50%;

    color: var(--accent);
    font-weight: 800;
}

.preview-list {
    margin-top: 15px;
}

.preview-list > div {
    display: flex;
    justify-content: space-between;

    padding: 15px 5px;

    border-bottom: 1px solid var(--border);

    font-size: 13px;
}

.preview-list span {
    color: var(--muted);
}

.ai-tip {
    display: flex;
    gap: 12px;

    margin-top: 15px;
    padding: 15px;

    background: var(--accent-soft);
    border-radius: 14px;

    font-size: 12px;
}

.ai-tip > span {
    font-size: 18px;
    color: var(--accent);
}

.ai-tip p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.5;
}


/* SECTIONS */

.feature-section,
.how-section {
    width: min(1160px, calc(100% - 40px));
    margin: 100px auto;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 40px;
}

.section-heading > span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 10px 0;
    font-size: 40px;
    letter-spacing: -2px;
}

.section-heading p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 245px;
    padding: 26px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 26px rgba(20, 24, 30, .035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover,
.feature-card:focus-visible {
    transform: translateY(-3px);
    border-color: #a9ccff;
    box-shadow: 0 16px 34px rgba(50, 40, 130, .09);
    outline: none;
}

.feature-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
}

.feature-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: var(--accent);
    background: var(--accent-soft);

    border-radius: 10px;
}

.feature-card h3 {
    margin: 28px 0 10px;
    font-size: 16px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.step > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 13px;
}


/* FOOTER */

.site-footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 12px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
}


/* MOBILE */

@media (max-width: 850px) {

    .site-header .container.nav {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
        max-width: 100%;
        gap: 8px 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 70px 0;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {

    .hero {
        width: min(100% - 28px, 1160px);
    }

    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        width: min(100% - 28px, 1160px);
    }

    .nav-links {
        font-size: 12px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 10px;
    }
}



.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

.error-card {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.error-code {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: #0a55f0;
    margin-bottom: 20px;
}

.error-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
    color: #111827;
}

.error-card p {
    margin: 0 auto 28px;
    max-width: 480px;
    color: #6b7280;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.secondary-button:hover {
    background: #f9fafb;
}


/* ------------------------------------------------------------------
   NAVBAR DROPDOWN ("All Tools")
------------------------------------------------------------------ */

.nav-links {
    flex-wrap: nowrap;
    gap: 6px 22px;
    font-size: 13px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 9px 14px;

    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--accent);
    border-color: var(--accent);
    outline: none;
}

.nav-caret {
    font-size: 11px;
    transition: transform .18s ease;
}

.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;

    position: absolute;
    top: 100%;
    right: 0;
    z-index: 60;

    /* transparent padding keeps the hover area connected to the button */
    padding-top: 10px;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

@media (hover: hover) {

    .nav-dropdown:hover .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .nav-caret {
        transform: rotate(180deg);
    }
}

.nav-menu-panel {
    width: min(660px, calc(100vw - 40px));

    padding: 18px;

    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}

.nav-links .nav-menu-overview {
    display: flex;
    justify-content: space-between;

    margin-bottom: 14px;
    padding: 10px 12px;

    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;
}

.nav-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
}

.nav-menu-label {
    margin: 0 0 6px;
    padding: 0 10px;

    color: #a0a5ad;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.nav-links .nav-menu-group a {
    display: block;

    padding: 8px 10px;

    color: var(--text);
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.nav-links .nav-menu-group a:hover,
.nav-links .nav-menu-group a:focus-visible {
    color: var(--accent);
    background: var(--accent-soft);
    outline: none;
}

@media (max-width: 850px) {

    .nav-links {
        flex-wrap: wrap;
    }

    /* menu spans the whole header instead of hanging off the button */
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        left: 14px;
        right: 14px;

        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }

    .nav-menu-panel {
        width: 100%;
    }

    .nav-menu-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {

    .nav-menu-columns {
        grid-template-columns: 1fr;
    }
}


/* ==================================================================
   GenCVMaker brand layer (colours taken from the logo)
   cyan #00affe · blue #0a55f0 · deep #001e94 · navy #091445
================================================================== */

:root {
    --brand-cyan: #00affe;
    --brand-blue: #0a55f0;
    --brand-deep: #001e94;
    --brand-navy: #091445;
    --brand-gradient: linear-gradient(135deg, #00affe 0%, #0a55f0 55%, #001e94 100%);

    --bg: #f4f8ff;
    --text: #091445;
    --dark: #091445;
    --accent: #0a55f0;
    --accent-soft: #eaf3ff;
    --border: #dbe6f7;
    --muted: #5b6785;
    --dashboard-bg: #f4f8ff;
    --dashboard-border: #dbe6f7;
    --dashboard-text: #091445;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--brand-navy);
    background: var(--bg);
}

h1, h2, h3, .brand, .section-heading h2 {
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

.site-header { background: rgba(255, 255, 255, .92); border-bottom-color: var(--border); }

.brand-logo { height: 42px; width: auto; display: block; }

.nav-button,
.primary-button {
    color: #fff;
    background: var(--brand-gradient);
    border: 0;
    box-shadow: 0 8px 20px rgba(10, 85, 240, .25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nav-button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(10, 85, 240, .32);
}

.app-shell.dashboard-page .primary-button,
.app-shell.dashboard-page button.primary-button,
.dashboard-page button[type="submit"],
.dashboard-page button.primary-button,
.upload-button {
    background: var(--brand-gradient) !important;
    color: #fff !important;
}

.secondary-button { border-color: var(--border); color: var(--brand-navy); }

.hero {
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40px -20px auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 60% 40%, rgba(0, 175, 254, .22), rgba(10, 85, 240, .10) 45%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 { color: var(--brand-navy); letter-spacing: -3px; }

.hero h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-blue);
}

.eyebrow { background: var(--accent-soft); color: var(--brand-blue); border: 1px solid #cfe3ff; }

.preview-window { border-color: var(--border); box-shadow: 0 25px 70px rgba(10, 85, 240, .14); }

.score-card { background: #f4f8ff; }

.score-ring { border-color: #cfe3ff; border-right-color: var(--brand-blue); border-top-color: var(--brand-cyan); }

.feature-icon { background: var(--brand-gradient); color: #fff; }

.feature-card:hover, .feature-card:focus-visible {
    border-color: #a9ccff;
    box-shadow: 0 16px 34px rgba(10, 85, 240, .14);
}

.step > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: var(--brand-gradient);
}

.site-footer {
    margin-top: 80px;
    padding: 28px 0;
    color: #c9d6f5;
    background: var(--brand-navy);
    border-top: 0;
}

.site-footer .container { align-items: center; gap: 12px; flex-wrap: wrap; }

.footer-brand { display: inline-flex; align-items: center; gap: 8px; }

.footer-brand img {
    background: #fff;
    border-radius: 8px;
    padding: 2px;
}

.footer-brand b { color: #fff; font-family: Montserrat, sans-serif; }

.nav-dropdown-toggle:hover, .nav-dropdown.open .nav-dropdown-toggle { border-color: var(--brand-blue); }

.error-logo { display: block; margin: 0 auto 24px; height: 44px; width: auto; }

.error-code { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.delete-button {
    padding: 9px 14px;
    color: #be123c;
    background: #fff;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.delete-button:hover { background: #fff1f2; }

.inline-delete { display: inline-block; margin: 8px 0 0 12px; }


/* GenCVMaker shared public-site footer */
.site-footer-rich { margin-top: 72px; padding: 0; background: #f0f6ff; border-top: 1px solid #d9e8ff; color: #263b5b; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr)); align-items: start; gap: 32px; padding-top: 48px; padding-bottom: 42px; }
.site-footer .footer-main { align-items: start; }
.footer-about p { max-width: 330px; color: #5e718f; line-height: 1.75; margin: 18px 0 0; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { display: block; object-fit: contain; max-width: 190px; height: auto; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-column h2 { margin: 4px 0 7px; color: #10254a; font-family: Montserrat, Inter, sans-serif; font-size: 14px; font-weight: 800; }
.footer-column a { color: #536986; line-height: 1.45; transition: color .18s ease; }
.footer-column a:hover, .footer-column a:focus-visible { color: #075df5; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid #d9e8ff; background: #e9f2ff; }
.footer-bottom-inner { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #607491; font-size: 12px; }
.footer-tagline { text-align: right; }
@media (max-width: 850px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 550px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 34px; } .footer-about { grid-column: 1 / -1; } .footer-bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 15px; padding-bottom: 15px; } .footer-tagline { text-align: left; } .footer-brand img { max-width: 170px; } }


/* Public information and policy pages */
.info-page { min-height: 70vh; padding: 56px 0 84px; background: var(--bg); }
.info-shell { width: min(900px, calc(100% - 36px)); margin: 0 auto; }
.info-breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.info-hero { padding: 38px clamp(22px, 5vw, 52px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 12px 34px rgba(20,24,30,.04); }
.info-eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.info-hero h1 { margin: 14px 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -1.8px; }
.info-hero p, .info-section p { color: var(--muted); line-height: 1.8; font-size: 15px; }
.info-section { padding: 26px clamp(4px, 2vw, 16px); border-bottom: 1px solid var(--border); }
.info-section h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.4px; }
.info-section p { margin: 0; }
.info-contact { margin-top: 24px; padding: 20px 22px; border-radius: 14px; background: var(--accent-soft); overflow-wrap: anywhere; }
.info-contact a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.info-faq { border-bottom: 1px solid var(--border); padding: 20px 0; }
.info-faq h2 { font-size: 18px; margin: 0 0 8px; }
.info-faq p { color: var(--muted); line-height: 1.75; margin: 0; }
@media (max-width: 550px) { .info-page { padding: 28px 0 52px; } .info-hero { padding: 26px 20px; border-radius: 18px; } }

/* Private AI usage dashboard */
.admin-usage-page { min-height: 75vh; padding: 42px 0 80px; background: var(--bg, #f6f8fc); }
.admin-usage-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.admin-usage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.admin-usage-eyebrow { margin: 0 0 10px; color: var(--accent, #0b5cf5); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.admin-usage-heading h1 { margin: 0 0 10px; color: var(--text, #13233e); font-size: clamp(30px, 4vw, 40px); letter-spacing: -1.2px; }
.admin-usage-heading p:not(.admin-usage-eyebrow) { max-width: 660px; margin: 0; color: var(--muted, #62718a); line-height: 1.7; }
.admin-back-link { color: var(--accent, #0b5cf5); font-weight: 700; white-space: nowrap; }
.admin-usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.admin-usage-card, .admin-usage-panel { min-width: 0; border: 1px solid var(--border, #e0e7f1); border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(21, 42, 78, .04); }
.admin-usage-card { padding: 23px; }
.admin-usage-card-label { color: var(--muted, #62718a); font-size: 13px; font-weight: 650; }
.admin-usage-number { margin: 14px 0 5px; color: var(--text, #13233e); font-size: clamp(27px, 3vw, 35px); font-weight: 800; letter-spacing: -1px; overflow-wrap: anywhere; }
.admin-usage-muted { color: var(--muted, #62718a); font-size: 12px; }
.admin-usage-progress { height: 7px; margin-top: 19px; overflow: hidden; border-radius: 999px; background: #e9eef8; }
.admin-usage-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b5cf5, #7756f6); }
.admin-usage-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--muted, #62718a); font-size: 12px; }
.admin-usage-foot strong { color: var(--text, #13233e); text-align: right; }
.admin-usage-panel { padding: 24px; margin-top: 20px; }
.admin-usage-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.admin-usage-panel h2 { margin: 0; color: var(--text, #13233e); font-size: 20px; }
.admin-usage-panel-heading p { margin: 6px 0 0; color: var(--muted, #62718a); font-size: 13px; }
.admin-usage-date { color: var(--muted, #62718a); font-size: 12px; }
.admin-usage-table-wrap { overflow-x: auto; }
.admin-usage-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.admin-usage-table th { padding: 12px; color: var(--muted, #62718a); background: #f7f9fd; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.admin-usage-table td { padding: 14px 12px; color: var(--text, #13233e); border-bottom: 1px solid var(--border, #e0e7f1); white-space: nowrap; }
.admin-usage-table tbody tr:last-child td { border-bottom: 0; }
.admin-today-pill { margin-left: 9px; padding: 3px 7px; border-radius: 999px; color: #0755df; background: #eaf1ff; font-size: 10px; font-weight: 750; }
.admin-usage-empty { padding: 28px 8px; color: var(--text, #13233e); text-align: center; }
.admin-usage-empty p, .admin-usage-note { color: var(--muted, #62718a); font-size: 13px; line-height: 1.7; }
.admin-usage-limits h2 { margin-bottom: 14px; }
.admin-limit-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border, #e0e7f1); color: var(--muted, #62718a); font-size: 14px; }
.admin-limit-row strong { color: var(--text, #13233e); }
.admin-usage-note { margin: 17px 0 0; }
@media (max-width: 760px) { .admin-usage-grid { grid-template-columns: 1fr; } .admin-usage-heading { flex-direction: column; } .admin-usage-panel { padding: 18px; } .admin-usage-panel-heading { align-items: flex-start; flex-direction: column; } }

/* Logout is a POST form (CSRF-safe); make the button look like a link */
.logout-form { margin: 0; display: contents; }
:where(.logout-button) { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.logout-inline .logout-button { padding: 0; margin: 0; }
.sidebar-link.logout-button { width: 100%; font-size: 13px; font-weight: 600; font-family: inherit; color: #666d76; }

/* Contact form */
.contact-form { margin-top: 24px; padding: 28px clamp(20px, 4vw, 36px); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #263b5b; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfdcf2; border-radius: 10px; font: inherit; font-weight: 400; color: #10254a; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #075df5; outline-offset: 1px; border-color: #075df5; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-opt { font-weight: 400; color: #7a8aa3; }
.contact-submit { justify-self: start; padding: 12px 26px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #0aa5ff, #0a3ad6); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.contact-submit:hover { filter: brightness(1.06); }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-alert { margin-top: 20px; padding: 14px 18px; border-radius: 12px; font-size: 14px; }
.contact-alert-success { background: #eefbf1; color: #166534; border: 1px solid #bbebc9; }
.contact-alert-error { background: #fff4f4; color: #9b1c1c; border: 1px solid #f4c4c4; }
@media (max-width: 600px) { .contact-row { grid-template-columns: 1fr; } }

/* Admin messages */
.msg-card { margin-top: 16px; }
.msg-unread { border-left: 4px solid #075df5; }
.msg-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.msg-badge { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #075df5; color: #fff; font-size: 10px; font-weight: 800; }
.msg-actions { display: flex; gap: 8px; align-items: flex-start; }
.msg-actions form { margin: 0; }
.msg-actions button { padding: 7px 12px; border: 1px solid #cfdcf2; border-radius: 8px; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.msg-actions .msg-del { color: #b42318; border-color: #f1c0bb; }
.msg-body { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }

/* Footer social icons (in the bottom bar) */
.footer-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.footer-social-label { margin-right: 4px; color: #607491; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid #c9dbf7; color: #10254a; text-decoration: none; transition: background .18s, color .18s, transform .18s, border-color .18s; }
.footer-social a svg { width: 18px; height: 18px; display: block; }
.footer-social a:hover, .footer-social a:focus-visible { background: #075df5; border-color: #075df5; color: #fff; transform: translateY(-2px); text-decoration: none; }
@media (max-width: 760px) {
    .footer-bottom-inner { flex-wrap: wrap; justify-content: center; text-align: center; padding-top: 14px; padding-bottom: 14px; }
    .footer-social { order: -1; width: 100%; }
    .footer-tagline { text-align: center; width: 100%; }
}

/* Responsive guards */
html, body { max-width: 100%; }
body { overflow-x: clip; }
img, svg, video { max-width: 100%; }
@media (max-width: 700px) {
    .hero::before { inset: -20px 0 auto auto; width: 100%; height: 360px; }
}
.error-page { min-height: calc(100vh - 72px); }

/* ===== Pricing / billing ===== */
.pricing-page { padding: 32px 0 20px; }
.pricing-shell { width: min(1000px, calc(100% - 36px)); margin: 0 auto; }
.pricing-head { text-align: center; margin: 12px auto 30px; max-width: 720px; }
.pricing-head h1 { margin: 10px 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -1.2px; color: #10254a; }
.pricing-head p { margin: 0; color: #5e718f; line-height: 1.75; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 24px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px; border: 1px solid #dfe8f7; border-radius: 22px; background: #fff; }
.plan-card h2 { margin: 0; font-size: 22px; color: #10254a; }
.plan-card-pro { border: 2px solid #075df5; background: linear-gradient(160deg, #fff, #eef5ff); box-shadow: 0 16px 40px rgba(7,93,245,.12); }
.plan-badge { align-self: flex-start; padding: 4px 11px; border-radius: 99px; background: #dbeaff; color: #075df5; font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.plan-price { margin: 4px 0 0; font-size: 40px; font-weight: 800; color: #10254a; letter-spacing: -1px; }
.plan-price small { font-size: 15px; font-weight: 600; color: #607491; letter-spacing: 0; }
.plan-sub { margin: 0 0 8px; color: #607491; font-size: 14px; }
.plan-card ul { margin: 8px 0 22px; padding-left: 20px; color: #263b5b; line-height: 1.9; flex: 1; }
.plan-button { display: block; width: 100%; padding: 13px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #00affe 0%, #0a55f0 60%, #0a3cd0 100%); color: #fff; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.plan-button:hover { filter: brightness(1.07); }
.plan-button-light { background: #fff; color: #075df5; border: 1px solid #b9d0f7; margin-top: 10px; }
.plan-card form { margin: 0; }
.plan-note { display: block; padding: 11px 14px; border-radius: 10px; background: #f1f6ff; color: #3d5a8a; font-size: 14px; font-weight: 600; text-align: center; }
.plan-note-pro { background: #e3f6e8; color: #166534; }
.pricing-faq { margin: 34px 0 10px; padding: 26px clamp(20px, 4vw, 34px); border: 1px solid #dfe8f7; border-radius: 20px; background: #fff; }
.pricing-faq h2 { margin: 0 0 10px; font-size: 20px; color: #10254a; }
.pricing-faq ul { margin: 0; padding-left: 20px; color: #263b5b; line-height: 1.8; }
.pricing-faq li { margin-bottom: 8px; }
.pricing-faq a, .pricing-status a:not(.plan-button) { color: #075df5; }
.pricing-status { max-width: 560px; text-align: center; padding: 20px 0 40px; }
.pricing-status h1 { color: #10254a; font-size: clamp(26px, 5vw, 34px); }
.pricing-status p { color: #4b5f7e; line-height: 1.7; }
.pricing-status .plan-button { display: inline-block; width: auto; padding: 13px 30px; margin-top: 8px; }
.pay-error { color: #b42318; min-height: 20px; }


/* Footer social icons now sit under the brand text */
.footer-about .footer-social { justify-content: flex-start; margin-top: 22px; }
.footer-about .footer-social a { width: 40px; height: 40px; }
.footer-about .footer-social a svg { width: 20px; height: 20px; }
@media (max-width: 550px) { .footer-about .footer-social { order: 0; width: auto; } }

/* ===== Blog (listing + article), centered ===== */
.blog-page { min-height: 70vh; padding: 48px 0 84px; background: var(--bg); }
.blog-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.blog-article-shell { width: min(820px, calc(100% - 40px)); }
.blog-hero { text-align: center; max-width: 780px; margin: 0 auto 28px; }
.blog-hero h1 { margin: 12px 0 14px; font-family: Montserrat, Inter, sans-serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -1.2px; color: var(--text); }
.blog-hero p { margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.75; }
.blog-page .info-breadcrumb { text-align: center; }
.blog-page .info-eyebrow { text-align: center; }
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 34px; }
.blog-cats a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #263b5b; font-size: 13px; font-weight: 600; transition: all .18s ease; }
.blog-cats a:hover { border-color: var(--accent); color: var(--accent); }
.blog-cats a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-empty { text-align: center; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(9, 20, 69, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: #b9d2fb; box-shadow: 0 14px 32px rgba(10, 85, 240, .10); }
.blog-card-cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.blog-card h2, .blog-card h3 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: -.3px; color: var(--text); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--accent); }
.blog-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }
.blog-card-meta { color: #7a8aa3; font-size: 12.5px; margin-top: auto; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } .blog-page { padding: 28px 0 56px; } .blog-card { padding: 20px; } }

.blog-article { padding: clamp(22px, 4vw, 44px); border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(9, 20, 69, .05); }
.blog-article-head { text-align: center; margin-bottom: 26px; }
.blog-article-head h1 { margin: 14px 0; font-family: Montserrat, Inter, sans-serif; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.2; letter-spacing: -.9px; color: var(--text); }
.blog-lede { margin: 0 auto 14px; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.blog-toc { margin: 0 0 28px; padding: 18px 22px; border: 1px solid #d9e8ff; border-radius: 14px; background: #f0f6ff; }
.blog-toc strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; }
.blog-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; }
.blog-toc a { color: #1b4fc4; }
.blog-toc a:hover { text-decoration: underline; }
.blog-body { color: #26324d; font-size: 16.5px; line-height: 1.85; overflow-wrap: anywhere; }
.blog-body h2 { margin: 38px 0 12px; font-family: Montserrat, Inter, sans-serif; font-size: 24px; line-height: 1.3; letter-spacing: -.4px; color: var(--text); scroll-margin-top: 96px; }
.blog-body h3 { margin: 26px 0 8px; font-size: 19px; color: var(--text); scroll-margin-top: 96px; }
.blog-body p { margin: 0 0 16px; }
.blog-body ul, .blog-body ol { margin: 0 0 18px; padding-left: 24px; }
.blog-body li { margin-bottom: 7px; }
.blog-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-body blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: #f0f6ff; border-radius: 0 12px 12px 0; }
.blog-body code { padding: 2px 6px; border-radius: 6px; background: #eef3fb; font-size: 14px; }
.blog-body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: #0e1b4d; color: #e8efff; }
.blog-body pre code { background: none; padding: 0; color: inherit; }
.blog-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
.blog-body th, .blog-body td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.blog-body th { background: #f0f6ff; color: var(--text); }
.blog-cta { margin-top: 40px; padding: 28px; border-radius: 18px; text-align: center; color: #fff; background: var(--brand-gradient, linear-gradient(135deg, #00affe, #0a55f0 55%, #001e94)); }
.blog-cta h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.blog-cta p { margin: 0 0 18px; color: #e3efff; }
.blog-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.blog-cta .seo-button { background: #fff; color: #0a3ad6; }
.blog-cta-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-related { margin-top: 48px; }
.blog-related h2 { text-align: center; margin: 0 0 22px; font-size: 24px; color: var(--text); }
.blog-related .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .blog-related .blog-grid { grid-template-columns: 1fr; } }
.blog-cta .seo-button { display: inline-block; padding: 12px 26px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
