* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f8fc;
    color: #202033;
}

.navbar {
    min-height: 75px;
    padding: 18px 7%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8eaf1;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #202033;
    text-decoration: none;
}

.logo span,
.hero h1 span {
    color: #7045d8;
}

.navbar nav {
    display: flex;
    gap: 28px;
}

.navbar nav a {
    color: #45445a;
    text-decoration: none;
    font-size: 14px;
}

.hero {
    text-align: center;
    padding: 100px 20px 85px;
}

.eyebrow {
    color: #7045d8;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 65px);
    margin: 22px 0;
    line-height: 1.15;
}

.hero p {
    color: #707085;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.search-box {
    max-width: 650px;
    margin: auto;
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e8eaf1;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 15px;
}

button {
    background: #7045d8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 25px;
    cursor: pointer;
}

.categories,
.popular {
    padding: 45px 7%;
}

.categories h2,
.popular h2 {
    margin-bottom: 28px;
    font-size: 28px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 28px;
    border: 1px solid #e8eaf1;
    border-radius: 15px;
    font-size: 25px;
}

.category-card h3 {
    font-size: 18px;
    margin: 15px 0 8px;
}

.category-card p {
    color: #77778a;
    font-size: 14px;
}

.popular {
    background: white;
    min-height: 180px;
}

.footer {
    text-align: center;
    padding: 30px;
    color: #77778a;
    font-size: 13px;
    line-height: 2;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    .navbar nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero {
        padding-top: 65px;
    }
}

.calculator-section {
    padding: 65px 20px;
}

.calculator-container {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 35px;
    border: 1px solid #e8eaf1;
    border-radius: 18px;
}

.calculator-container h1 {
    margin: 18px 0;
    font-size: 32px;
}

.calculator-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e8eaf1;
    border-radius: 8px;
    font-size: 16px;
}

.calculator-form button {
    width: 100%;
    font-size: 16px;
}

.result-box {
    background: #f7f8fc;
    padding: 25px;
    margin-top: 30px;
    border-radius: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #e8eaf1;
}

.error-box {
    color: #b42318;
    background: #fff0ef;
    padding: 14px;
    margin-top: 20px;
    border-radius: 8px;
}



.category-card {
    display: block;
    color: #202033;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(32, 32, 51, 0.08);
}

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

.tool-card {
    display: block;
    background: white;
    color: #202033;
    text-decoration: none;
    padding: 25px;
    border: 1px solid #e8eaf1;
    border-radius: 15px;
    transition: 0.2s ease;
}

.tool-card h3 {
    margin: 14px 0 10px;
    font-size: 19px;
}

.tool-card p {
    color: #77778a;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.tool-link {
    color: #7045d8;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}




.directory-section {
    max-width: 1200px;
    margin: auto;
    padding: 70px 25px;
}

.directory-header {
    text-align: center;
    margin-bottom: 45px;
}

.directory-header h1 {
    font-size: clamp(32px, 5vw, 45px);
    margin: 18px 0 12px;
}

.directory-header p {
    color: #77778a;
    line-height: 1.7;
}

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

.directory-grid .tool-card {
    min-width: 0;
}

.back-link {
    margin-top: 35px;
}

.back-link a {
    color: #7045d8;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 800px) {
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .directory-grid {
        grid-template-columns: 1fr;
    }
}



.category-icon {
    display: inline-block;
    font-size: 30px;
    margin-bottom: 8px;
}

.tool-card {
    min-height: 190px;
}

.tool-card[hidden] {
    display: none !important;
}

.directory-grid .tool-card:hover {
    border-color: #7045d8;
}

@media (max-width: 550px) {
    .directory-section {
        padding: 45px 18px;
    }

    .directory-header {
        margin-bottom: 30px;
    }
}



.form-group input:focus {
    border-color: #7045d8;
    outline: 3px solid rgba(112, 69, 216, 0.12);
}

.reset-link {
    display: inline-block;
    margin-top: 18px;
    color: #7045d8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.result-box h2 {
    margin: 12px 0 15px;
}

.result-row strong {
    color: #202033;
    font-size: 17px;
}

.error-box strong {
    display: block;
    margin-bottom: 5px;
}

.error-box p {
    font-size: 14px;
}





.result-list {
    margin-top: 18px;
}

.result-note {
    margin-top: 18px;
    color: #77778a;
    font-size: 13px;
    line-height: 1.6;
}

@media print {
    .navbar,
    .footer,
    .calculator-form,
    .calculator-container > a,
    .result-box button {
        display: none !important;
    }

    body {
        background: white;
    }

    .calculator-container {
        border: none;
        box-shadow: none;
    }
}



.form-group select,
.form-group input[type="date"],
.form-group input[type="text"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #e8eaf1;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    color: #202033;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #7045d8;
    outline: 3px solid rgba(112, 69, 216, 0.12);
}

.form-group select {
    cursor: pointer;
}




.global-search-form {
    display: flex;
    gap: 10px;
    max-width: 650px;
    margin: 28px auto 0;
}

.global-search-form input {
    flex: 1;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid #e8eaf1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.global-search-form input:focus {
    border-color: #7045d8;
    box-shadow: 0 0 0 3px rgba(112, 69, 216, 0.12);
}

.global-search-form button {
    padding: 0 25px;
    background: #7045d8;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.global-search-form button:hover {
    background: #5e35c4;
}

.search-count {
    margin: 0 0 25px;
    color: #77778a;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    color: #7045d8;
    font-weight: 600;
    text-decoration: none;
}

.pagination span {
    color: #77778a;
    font-size: 14px;
}

@media (max-width: 550px) {
    .global-search-form {
        flex-direction: column;
    }

    .global-search-form button {
        min-height: 48px;
    }
}




/* Homepage category and search refinements */
.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card {
    min-width: 0;
    min-height: 190px;
}

.category-card .tool-link {
    display: inline-block;
    margin-top: 16px;
}

.home-search-form {
    margin-top: 28px;
}

@media (max-width: 550px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .home-search-form button {
        min-height: 48px;
    }
}


/* Shared informational pages and responsive multi-column footer */
.site-footer { margin-top: 70px; background: #17172b; color: #d8d8e5; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 52px 25px 42px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 38px; }
.footer-brand .logo { color: #fff; display: inline-block; margin-bottom: 12px; }
.footer-brand .logo span { color: #a78bfa; }
.footer-brand p { color: #c0c0d0; font-size: 14px; line-height: 1.7; }
.footer-brand .footer-small { max-width: 310px; margin-top: 12px; color: #9999ad; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links h3 { color: #fff; font-size: 15px; margin: 5px 0 7px; }
.footer-links a { color: #b9b9ca; text-decoration: none; font-size: 14px; transition: color .2s ease; }
.footer-links a:hover { color: #c4b5fd; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: 1200px; margin: 0 auto; padding: 18px 25px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: #9999ad; font-size: 12px; }
.info-page { max-width: 1000px; margin: 0 auto; padding: 65px 24px 20px; }
.info-page-header { text-align: center; margin-bottom: 38px; }
.info-page-header h1 { margin: 15px 0 12px; font-size: clamp(32px, 5vw, 46px); color: #202033; }
.info-page-header p { color: #707085; line-height: 1.7; }
.info-content { background: #fff; border: 1px solid #e8eaf1; border-radius: 16px; padding: clamp(22px, 5vw, 42px); line-height: 1.8; color: #45445a; }
.info-content h2 { margin: 25px 0 9px; color: #202033; font-size: 20px; }
.info-content h2:first-child { margin-top: 0; }
.info-content p { margin: 0 0 15px; }
.info-content ul { margin: 0 0 18px 22px; }
.info-content a { color: #7045d8; font-weight: 600; }
.info-content .notice { margin-top: 24px; padding: 17px 19px; border-left: 4px solid #f59e0b; background: #fffbeb; border-radius: 8px; color: #624b16; }
.info-content .notice p { margin: 5px 0 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr 1fr; padding: 38px 20px 30px; } .footer-brand { grid-column: 1 / -1; } .footer-bottom { padding: 16px 20px; flex-direction: column; } .info-page { padding: 45px 16px 10px; } }

/* Brand logo */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { display: block; height: auto; width: min(250px, 28vw); max-width: 100%; object-fit: contain; }
.footer-brand .logo.logo-card { background: #fff; padding: 10px 14px; border-radius: 14px; margin-bottom: 16px; }
.footer-brand .logo-card .logo-img { width: min(220px, 100%); height: auto; }
@media (max-width: 700px) { .logo-img { width: min(190px, 42vw); height: auto; } }

/* Calculator information section (About / How to use / FAQ) */
.calculator-information { margin-top: 44px; padding-top: 34px; border-top: 1px solid #e8eaf1; color: #45445a; font-size: 15px; line-height: 1.75; }
.calculator-information h2 { margin: 34px 0 12px; font-size: 21px; line-height: 1.3; color: #202033; }
.calculator-information h2:first-child { margin-top: 0; }
.calculator-information p { margin: 0 0 14px; }
.calculator-information strong { color: #202033; }
.calculator-information .steps-list { list-style: none; counter-reset: step; margin: 0 0 6px; padding: 0; }
.calculator-information .steps-list li { counter-increment: step; position: relative; margin: 0 0 12px; padding-left: 42px; min-height: 28px; }
.calculator-information .steps-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #efeafd; color: #7045d8; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.calculator-information .faq-list { display: grid; gap: 12px; }
.calculator-information .faq-item { background: #f7f8fc; border: 1px solid #e8eaf1; border-radius: 12px; padding: 16px 18px; }
.calculator-information .faq-item h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; color: #202033; }
.calculator-information .faq-item p { margin: 0; font-size: 14.5px; }
.calculator-form .reset-link { display: block; text-align: center; margin-top: 16px; }
@media (max-width: 600px) { .calculator-container { padding: 22px 18px; } .calculator-information { margin-top: 34px; padding-top: 26px; } .calculator-information h2 { font-size: 19px; } }

/* Footer social icons */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #d8d8e5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.social-link:hover, .social-link:focus-visible { background: #7045d8; border-color: #7045d8; color: #fff; transform: translateY(-2px); }
.social-link:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.social-link svg { display: block; }


/* CalcGenix brand refresh and category-rich footer */
.hero { position: relative; overflow: hidden; padding: 72px 20px 78px; background: radial-gradient(ellipse at 50% 0%, #eee9ff 0, #f7f8fc 62%); }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(112,69,216,.10); border-radius: 50%; pointer-events: none; }
.hero::before { width: 300px; height: 300px; left: -190px; top: 20px; }
.hero::after { width: 360px; height: 360px; right: -240px; top: -90px; }
.hero-brand-mark { width: min(260px, 70vw); margin: 0 auto 22px; position: relative; z-index: 1; }
.hero-brand-mark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(62,43,112,.10)); }
.hero .eyebrow, .hero h1, .hero p, .hero form, .hero-highlights { position: relative; z-index: 1; }
.hero h1 { letter-spacing: -1.8px; }
.hero h1 span { background: linear-gradient(90deg, #7045d8, #9b65ed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-highlights { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.hero-highlights span { padding: 8px 13px; border: 1px solid #e7e0fa; border-radius: 30px; background: rgba(255,255,255,.76); color: #5c5570; font-size: 13px; }
.hero-highlights b { color: #7045d8; margin-right: 5px; }
.logo-img { width: min(250px, 28vw); height: auto; }
.footer-inner { grid-template-columns: 1.55fr 1fr 1fr 1fr; }
.footer-category-block { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 27px; }
.footer-category-block > h3 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-category-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px 22px; }
.footer-category-list a { display: flex; align-items: center; gap: 9px; color: #b9b9ca; text-decoration: none; font-size: 13px; min-width: 0; }
.footer-category-list a:hover { color: #d4c5ff; }
.footer-category-list a span { width: 22px; text-align: center; }
.footer-category-item { min-width: 0; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(255,255,255,.035); }
.footer-category-item summary { display: flex; align-items: center; gap: 8px; padding: 11px 12px; color: #e4e1f0; font-size: 13px; font-weight: 650; cursor: pointer; list-style: none; }
.footer-category-item summary::-webkit-details-marker { display: none; }
.footer-category-item summary::after { content: "+"; margin-left: auto; color: #b9a4ff; font-size: 17px; }
.footer-category-item[open] summary::after { content: "−"; }
.footer-category-item summary small { margin-left: auto; color: #9999ad; font-size: 10px; font-weight: 500; white-space: nowrap; }
.footer-category-item[open] summary small { margin-left: 0; }
.footer-tool-links { display: grid; gap: 8px; padding: 0 13px 13px 42px; }
.footer-tool-links a, .footer-tool-links .footer-no-tools { color: #aaa9bd; font-size: 12px; line-height: 1.4; text-decoration: none; }
.footer-tool-links a:hover { color: #d4c5ff; }
.footer-tool-links .footer-view-all { color: #c4b5fd; font-weight: 700; padding-top: 3px; }
.footer-category-item summary:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; border-radius: 9px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, .8fr); gap: 28px; align-items: start; }
.contact-form-panel { min-width: 0; }
.contact-panel-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 25px; }
.contact-panel-heading h2 { margin: 0 0 2px; }
.contact-panel-heading p { margin: 0; color: #77778a; font-size: 14px; }
.contact-icon, .side-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: #f0ebff; color: #7045d8; font-size: 23px; flex: 0 0 auto; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form .form-group label { color: #29283c; font-size: 14px; }
.contact-form .form-group label span { color: #d04444; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; border: 1px solid #e1e3ed; border-radius: 10px; background: #fff; padding: 13px 14px; color: #29283c; font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 145px; line-height: 1.6; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: #8661e6; box-shadow: 0 0 0 3px rgba(112,69,216,.12); }
.contact-form .form-group small { display: block; color: #818195; margin-top: 7px; font-size: 12px; line-height: 1.5; }
.contact-fields-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-submit { display: inline-flex; align-items: center; gap: 14px; padding: 14px 23px; border-radius: 10px; background: #7045d8; font-weight: 700; }
.contact-submit:hover { background: #5e35c4; }
.contact-privacy-note { margin: 12px 0 0 !important; color: #858599; font-size: 12px; }
.contact-sidebar { display: grid; gap: 14px; }
.contact-side-card { padding: 20px; border: 1px solid #e9e6f2; border-radius: 13px; background: #fbfaff; }
.contact-side-card .side-card-icon { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; margin-bottom: 12px; }
.contact-side-card h3 { color: #29283c; font-size: 15px; margin: 0 0 7px; }
.contact-side-card p { margin: 0; color: #77778a; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.contact-side-card a { color: #7045d8; }
.contact-safety { background: #f7f9ff; }
.contact-alerts { display: grid; gap: 8px; margin-bottom: 18px; }
.contact-alert { padding: 12px 14px; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.contact-alert.success { color: #176b43; background: #eaf8f0; border: 1px solid #c9ecd8; }
.contact-alert.error { color: #9e2f2f; background: #fff0f0; border: 1px solid #f3d0d0; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
 .contact-layout { grid-template-columns: 1fr; }
 .contact-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .footer-category-block { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
 .hero { padding: 52px 18px 58px; }
 .hero h1 { letter-spacing: -1px; }
 .contact-fields-two, .contact-sidebar, .footer-category-columns { grid-template-columns: 1fr; }
 .footer-category-list { grid-template-columns: 1fr; }
 .footer-inner { grid-template-columns: 1fr 1fr; }
 .footer-brand { grid-column: 1 / -1; }
}

/* Private administrator contact inbox */
.admin-wrap { width: min(1120px, calc(100% - 36px)); margin: 54px auto 76px; min-height: 48vh; }
.admin-login-wrap { width: min(510px, calc(100% - 36px)); display: grid; align-items: center; }
.admin-card { background: #fff; border: 1px solid #e8e7f0; border-radius: 18px; box-shadow: 0 12px 36px rgba(34, 28, 70, .055); padding: 30px; }
.admin-login-card { padding: 36px; }
.admin-kicker { color: #7045d8; font-size: 11px; font-weight: 800; letter-spacing: .13em; margin-bottom: 9px; }
.admin-wrap h1 { color: #20213b; font-size: clamp(27px, 4vw, 36px); margin: 0 0 7px; }
.admin-wrap h2 { color: #24243c; font-size: 19px; margin: 0; }
.admin-muted { color: #77778b; margin: 0 0 24px; line-height: 1.6; }
.admin-form { display: grid; gap: 9px; }
.admin-form label, .admin-status-form label { color: #34334b; font-size: 13px; font-weight: 700; margin-top: 9px; }
.admin-form input, .admin-status-form select { width: 100%; border: 1px solid #dedee9; border-radius: 10px; padding: 13px 14px; font: inherit; color: #25243d; background: #fff; }
.admin-form input:focus, .admin-status-form select:focus { outline: 3px solid rgba(112,69,216,.13); border-color: #8661e6; }
.admin-primary, .admin-secondary, .admin-logout { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.admin-primary { background: #7045d8; color: #fff; margin-top: 12px; }
.admin-primary:hover { background: #5e35c4; color: #fff; }
.admin-secondary { background: #f0ebff; color: #603bc0; }
.admin-logout { background: #fff; color: #514d67; border: 1px solid #e4e2ed; }
.admin-back-link { display: inline-block; color: #6743c7; text-decoration: none; font-size: 13px; font-weight: 700; margin: 18px 0; }
.admin-alerts { display: grid; gap: 8px; margin: 15px 0; }
.admin-alert { padding: 11px 14px; border-radius: 9px; font-size: 13px; }
.admin-alert.success { background: #eaf8f0; color: #176b43; }
.admin-alert.error { background: #fff0f0; color: #9e2f2f; }
.admin-topbar, .admin-inbox-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 28px 0 20px; }
.admin-stat { display: grid; gap: 8px; background: #fff; border: 1px solid #e8e7f0; border-radius: 13px; padding: 18px; text-decoration: none; color: #68677c; }
.admin-stat.active { border-color: #8a6be0; box-shadow: 0 0 0 3px rgba(112,69,216,.08); }
.admin-stat strong { color: #25243d; font-size: 27px; }
.admin-inbox-card { padding: 24px; }
.admin-inbox-heading { margin-bottom: 18px; }
.admin-inbox-heading > span { color: #89889a; font-size: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.admin-table th { color: #818095; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 13px 12px; border-bottom: 1px solid #ecebf2; }
.admin-table td { padding: 15px 12px; border-bottom: 1px solid #f0eff5; color: #66657a; vertical-align: middle; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td strong { color: #2b2a43; font-size: 13px; }
.admin-table td small { color: #89889a; margin-top: 5px; }
.admin-status { display: inline-flex; border-radius: 99px; padding: 5px 10px; text-transform: capitalize; font-size: 11px; font-weight: 800; background: #f0eff5; color: #66657a; }
.admin-status.new { background: #fff4df; color: #9a6400; }
.admin-status.read { background: #eaf2ff; color: #315fa8; }
.admin-status.resolved { background: #e8f7ef; color: #24734b; }
.admin-view-link { color: #6743c7; font-weight: 750; text-decoration: none; white-space: nowrap; }
.admin-empty { text-align: center; padding: 55px 20px; color: #858499; }
.admin-empty > span { font-size: 34px; }
.admin-empty h3 { color: #2d2c45; margin: 12px 0 5px; }
.admin-empty p { margin: 0; font-size: 13px; }
.admin-detail-card { margin-top: 10px; }
.admin-sender-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; background: #faf9fd; border: 1px solid #efedf5; border-radius: 12px; padding: 20px; margin: 22px 0; }
.admin-sender-grid div { display: grid; gap: 6px; min-width: 0; }
.admin-sender-grid span { color: #89889a; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.admin-sender-grid strong, .admin-sender-grid a { color: #302f48; font-size: 14px; overflow-wrap: anywhere; }
.admin-message-body { padding: 4px 2px 22px; }
.admin-message-body h2 { margin-bottom: 12px; }
.admin-message-body p { color: #55546b; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-detail-actions { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; border-top: 1px solid #efedf5; padding-top: 20px; }
.admin-mail-link { margin: 0; }
.admin-status-form { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.admin-status-form label { margin: 0; }
.admin-status-form select { width: auto; min-width: 125px; padding: 10px; }
@media (max-width: 700px) { .admin-wrap { margin-top: 30px; } .admin-card, .admin-login-card { padding: 21px; } .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-sender-grid { grid-template-columns: 1fr; } .admin-topbar { align-items: start; } .admin-detail-actions { align-items: stretch; } .admin-status-form { width: 100%; } .admin-status-form select { flex: 1; } }

/* CalcGenix private analytics dashboard and searchable contact inbox */
.admin-grid { display:grid; grid-template-columns:1.25fr .85fr; gap:18px; margin:18px 0; }
.admin-rank-list { display:grid; gap:0; margin-top:18px; }
.admin-rank-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-bottom:1px solid #eeeef4; }
.admin-rank-row:last-child { border-bottom:0; }
.admin-rank-row a,.admin-links a { color:#6040c5; text-decoration:none; font-weight:650; }
.admin-stats-compact { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.admin-stats-compact > div { background:#f7f6fc; border-radius:12px; padding:14px; display:grid; gap:5px; }
.admin-stats-compact span { color:#77778b; font-size:12px; }
.admin-stats-compact strong { color:#252440; font-size:23px; }
.admin-links { display:flex; flex-wrap:wrap; gap:20px; margin-top:18px; }
.admin-footnote { color:#858497; font-size:12px; line-height:1.6; margin-top:18px; }
.admin-search { display:flex; gap:10px; margin-bottom:22px; }
.admin-search input { flex:1; min-width:0; border:1px solid #e2e1eb; border-radius:10px; padding:12px 14px; font:inherit; }
.admin-search button,.admin-pagination a { border:0; border-radius:10px; padding:11px 16px; background:#6848cb; color:#fff; font-weight:700; text-decoration:none; cursor:pointer; }
.admin-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:22px; color:#77778b; font-size:13px; }
.admin-seo-card { margin-bottom:18px; }
@media(max-width:760px) { .admin-grid { grid-template-columns:1fr; } .admin-search { flex-wrap:wrap; } .admin-search button { width:100%; } .admin-pagination { justify-content:center; flex-wrap:wrap; } }
