/* easyconfig public website final repair layer.
   This file loads after public.css and fixes the public website without minifying code. */

:root {
    --ec-green: #1F6FF5;
    --ec-green-dark: #1559CF;
    --ec-green-soft: #E7F0FE;
    --ec-black: #0B1220;
    --ec-dark: #111827;
    --ec-muted: #64748B;
    --ec-soft: #F8FAFC;
    --ec-soft-2: #F1F5F9;
    --ec-border: #E2E8F0;
    --ec-footer: #06101A;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.04em;
    color: var(--ec-black);
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ec-green), #2DD4FF);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(31, 111, 245, 0.22);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav > a {
    color: var(--ec-muted);
    font-weight: 800;
    text-decoration: none;
}

.main-nav > a:hover {
    color: var(--ec-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
}

.btn,
a.btn,
button.btn {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1;
}

.btn-primary {
    background: var(--ec-green);
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(31, 111, 245, 0.22);
}

.btn-primary:hover {
    background: var(--ec-green-dark);
}

.btn-outline,
.btn-secondary,
.btn-ghost {
    background: #ffffff;
    border-color: var(--ec-border);
    color: var(--ec-dark) !important;
}

.btn-small,
.btn-sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.hero,
.page-hero,
section {
    max-width: 100%;
}

.hero h1,
.page-hero h1 {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

.command-box,
.install-command,
.code-box,
pre,
.code-block {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.command-box code,
.install-command code,
.code-box code,
pre code,
.code-block code {
    white-space: pre;
}

.template-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.template-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.template-title {
    min-width: 0;
}

.template-top h3,
.template-title h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--ec-black);
    overflow-wrap: anywhere;
}

.template-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 17px;
    background: var(--ec-soft);
    border: 1px solid var(--ec-border);
    display: inline-grid;
    place-items: center;
    color: var(--ec-green);
    overflow: hidden;
}

.template-icon i {
    color: var(--ec-green);
    font-size: 24px;
    line-height: 1;
}

.template-card p {
    color: var(--ec-muted);
    line-height: 1.65;
}

.template-card-footer,
.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.template-card span:empty,
.template-card .template-status,
.template-card .template-configuration,
.template-card .card-configuration,
.template-card .mini-configuration {
    display: none !important;
}

.pricing-table-wrap,
.comparison-table,
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 16px;
    border-bottom: 1px solid var(--ec-border);
    text-align: left;
}

.pricing-table th {
    background: var(--ec-soft);
    color: var(--ec-black);
}

.docs-list,
.blog-list,
.changelog-list {
    display: grid;
    gap: 18px;
}

.blog-image {
    background:
        radial-gradient(circle at 25% 20%, rgba(31, 111, 245, 0.24), transparent 30%),
        linear-gradient(135deg, #F8FAFC, #E7F0FE);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ec-muted);
    margin-bottom: 20px;
}

.side-card .template-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
}

.site-footer {
    background: var(--ec-footer);
    color: #ffffff;
    padding: 72px 0 28px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.site-footer .brand,
.site-footer .brand span,
.site-footer .footer-brand,
.site-footer .footer-brand span {
    color: #ffffff !important;
}

.site-footer .footer-brand {
    margin-bottom: 18px;
}

.site-footer h4 {
    color: #ffffff;
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 900;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 750;
    margin: 0 0 12px;
    line-height: 1.5;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 360px;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 56px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 32px);
    }

    .nav-wrap {
        min-height: 82px;
    }

    .mobile-menu-toggle {
        width: 54px;
        height: 54px;
        border: 1px solid var(--ec-border);
        border-radius: 17px;
        background: #ffffff;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 24px;
        height: 3px;
        margin: 0;
        border-radius: 999px;
        background: var(--ec-black) !important;
        opacity: 1 !important;
    }

    .main-nav {
        display: none !important;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        z-index: 99999;
        background: #ffffff;
        border: 1px solid var(--ec-border);
        border-radius: 26px;
        padding: 22px;
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav.is-open {
        display: flex !important;
    }

    .main-nav > a {
        padding: 14px 8px;
        color: var(--ec-muted);
        font-size: 17px;
        font-weight: 850;
    }

    .nav-actions {
        width: 100%;
        display: grid;
        gap: 10px;
        margin-top: 14px;
        padding-top: 16px;
        border-top: 1px solid #E8EEF3;
    }

    .nav-actions a,
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero,
    .page-hero,
    section {
        max-width: 100%;
        overflow: hidden;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(42px, 12vw, 66px) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.07em;
    }

    .hero p,
    .page-hero p {
        font-size: clamp(17px, 4.5vw, 22px) !important;
        line-height: 1.55;
    }

    .hero-actions,
    .page-actions,
    .cta-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn,
    .page-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .command-box {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .grid-3,
    .grid-4,
    .features-grid,
    .templates-grid,
    .pricing-grid,
    .cards-grid,
    .stats-grid,
    .workflow,
    .split,
    .detail-layout,
    .docs-layout,
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .side-card,
    .docs-sidebar {
        position: static !important;
    }

    .comparison-table table,
    .pricing-table {
        min-width: 760px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 28px) !important;
    }

    .brand {
        font-size: 22px;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 17px;
    }

    .template-card {
        min-height: auto;
    }

    .template-top {
        gap: 14px;
    }

    .template-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .page-hero {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .command-box,
    .install-command,
    .code-box,
    pre,
    .code-block {
        border-radius: 18px !important;
        padding: 16px !important;
    }

    .command-box code,
    .install-command code,
    .code-box code,
    pre code,
    .code-block code {
        font-size: 14px !important;
    }
}

/* ==================================================
   easyconfig Post-Patch UI Repair
   Fixes:
   - command box/copy button
   - hero bullet points
   - template detail spacing
   - docs spacing
   - blog image configuration
   - smooth mobile menu + cross icon
   - mobile overflow
================================================== */

/* ---------- Homepage command box repair ---------- */

.command-box {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 620px;
    padding: 12px 14px 12px 22px;
    border-radius: 20px;
    background: #071120;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.command-box code {
    flex: 1;
    min-width: 0;
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.command-box code::-webkit-scrollbar {
    display: none;
}

.command-box button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    background: #243044;
    color: #ffffff;
    min-height: 38px;
    padding: 0 18px;
    font-weight: 900;
    cursor: pointer;
}

.command-box button:hover {
    background: #334155;
}


/* ---------- Homepage hero points repair ---------- */

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
}

.hero-points div {
    display: grid;
    gap: 4px;
}

.hero-points strong {
    display: block;
    color: #071120;
    font-weight: 900;
    line-height: 1.2;
}

.hero-points span {
    display: block;
    color: #64748b;
    line-height: 1.45;
}


/* ---------- Template detail page spacing repair ---------- */

.detail-layout {
    align-items: flex-start;
    gap: 34px;
}

.side-card {
    top: 112px;
}

.content-card {
    padding: 46px 50px;
}

.content-card > section {
    scroll-margin-top: 120px;
    margin-bottom: 52px;
}

.content-card > section:last-child {
    margin-bottom: 0;
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.15;
}

.content-card p {
    line-height: 1.75;
}

.content-card .grid-3 {
    margin-top: 32px !important;
    margin-bottom: 42px;
}

.content-card .grid-3 .card {
    padding: 30px 34px;
}

.table-lite {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.table-lite th,
.table-lite td {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.table-lite tr:last-child td {
    border-bottom: 0;
}

.code-block {
    display: block;
    width: 100%;
    padding: 22px;
    border-radius: 18px;
    background: #071120;
    color: #D7F3FF;
    overflow-x: auto;
}


/* ---------- Documentation page spacing repair ---------- */

.docs-layout {
    align-items: flex-start;
    gap: 32px;
}

.docs-sidebar {
    top: 112px;
}

.docs-list {
    display: grid;
    gap: 24px;
}

.doc-card {
    padding: 34px 40px;
}

.doc-card h3 {
    margin-top: 14px;
    margin-bottom: 14px;
}

.doc-card p {
    line-height: 1.7;
    max-width: 760px;
}


/* ---------- Blog card image repair ---------- */

.blog-card {
    overflow: hidden;
}

.blog-image {
    position: relative;
    min-height: 250px;
    background:
        radial-gradient(circle at 20% 15%, rgba(31, 111, 245, 0.22), transparent 32%),
        linear-gradient(135deg, #f8fafc, #E7F0FE);
    border-bottom: 1px solid #e2e8f0;
}

.blog-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(31, 111, 245, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(31, 111, 245,0.08));
}

.blog-image-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #1F6FF5;
    font-size: 52px;
}

.blog-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.blog-body {
    padding: 30px 34px;
}

.blog-body h3 {
    margin-top: 16px;
    margin-bottom: 14px;
}

.blog-body p {
    line-height: 1.7;
}


/* ---------- Smooth mobile menu + cross icon ---------- */

@media (max-width: 900px) {
    .site-header {
        overflow: visible;
    }

    .main-nav {
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        max-height: 0;
        overflow: hidden;
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            max-height 0.28s ease,
            visibility 0.22s ease;
    }

    .main-nav.is-open,
    .site-header.is-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        max-height: 560px;
        overflow: visible;
    }

    .mobile-menu-toggle span {
        transition:
            transform 0.22s ease,
            opacity 0.18s ease,
            background-color 0.2s ease;
        transform-origin: center;
    }

    .site-header.is-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .site-header.is-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-grid {
        gap: 34px;
    }

    .command-box {
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .command-box button {
        width: 100%;
    }

    .hero-points {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .content-card {
        padding: 30px 22px;
    }

    .content-card .grid-3 .card {
        padding: 24px;
    }

    .doc-card {
        padding: 28px 24px;
    }

    .blog-image,
    .blog-image img {
        min-height: 210px;
    }

    .blog-body {
        padding: 26px 24px;
    }
}

@media (max-width: 520px) {
    .hero h1,
    .page-hero h1 {
        font-size: clamp(42px, 12vw, 56px) !important;
    }

    .hero p,
    .page-hero p {
        font-size: 18px !important;
    }

    .side-card {
        position: static !important;
    }
}

/* Pricing toggle polish */

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.toggle-shell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #dce5ed;
    border-radius: 999px;
    background: #f1f5f9;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.toggle-shell button {
    border: 0;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-weight: 900;
    cursor: pointer;
}

.toggle-shell button.is-active {
    background: #ffffff;
    color: #071120;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 34px 0 28px;
}

.price strong {
    font-size: clamp(42px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.08em;
}

.price span {
    color: #64748b;
    font-weight: 900;
}

/* ==================================================
   easyconfig logo mark repair - tighter, aligned version
================================================== */

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px !important;
    text-decoration: none;
    line-height: 1;
}

.brand-mark {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    display: inline-block !important;
    border-radius: 0 !important;
    background: transparent url("/assets/img/easyconfig-mark.svg") center center / contain no-repeat !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
    vertical-align: middle !important;
}

.brand-mark::before,
.brand-mark::after {
    display: none !important;
    content: none !important;
}

.brand > span:last-child,
.footer-brand > span:last-child {
    display: inline-block;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.brand > span:last-child {
    color: #0b132b !important;
}

.site-footer .footer-brand > span:last-child {
    color: #ffffff !important;
}

.site-footer .brand,
.site-footer .footer-brand {
    gap: 10px !important;
    align-items: center !important;
}

.site-footer .brand-mark,
.site-footer .footer-brand .brand-mark {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
}

/* ==================================================
   Documentation page spacing and alignment repair
================================================== */

.docs-layout {
    align-items: flex-start !important;
    gap: 34px !important;
}

.docs-sidebar {
    padding: 34px !important;
}

.docs-sidebar .search-input {
    margin-bottom: 30px !important;
}

.docs-group {
    margin-top: 0 !important;
    margin-bottom: 34px !important;
}

.docs-group:last-child {
    margin-bottom: 0 !important;
}

.docs-group h4 {
    margin: 0 0 18px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em;
}

.docs-group a {
    display: block;
    padding: 10px 0 10px 14px !important;
    line-height: 1.45 !important;
}

.docs-list {
    display: grid !important;
    gap: 26px !important;
}

.docs-list > .card {
    padding: 36px 40px !important;
}

.docs-list > .card .badge {
    margin-bottom: 22px !important;
}

.docs-list > .card h3 {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    line-height: 1.2 !important;
}

.docs-list > .card p {
    margin-bottom: 22px !important;
    line-height: 1.7 !important;
    max-width: 760px;
}

@media (max-width: 900px) {
    .docs-layout {
        gap: 22px !important;
    }

    .docs-sidebar {
        padding: 26px !important;
    }

    .docs-list > .card {
        padding: 28px 24px !important;
    }
}

/* ==================================================
   Pricing card alignment repair
================================================== */

.pricing-grid {
    align-items: stretch !important;
}

.price-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.price-card .price {
    margin-top: 34px !important;
    margin-bottom: 28px !important;
}

.price-card .feature-list {
    min-height: 270px !important;
    margin-bottom: 30px !important;
}

.price-card .btn-block {
    margin-top: auto !important;
}

.pricing-table td,
.pricing-table th {
    text-transform: none !important;
}

@media (max-width: 900px) {
    .price-card .feature-list {
        min-height: auto !important;
    }
}

/* ==================================================
   Final easyconfig logo system
   Tighter icon, better wordmark alignment everywhere public-side
================================================== */

.site-header .brand,
.site-footer .footer-brand,
.site-footer .brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.site-header .brand-mark,
.site-footer .brand-mark,
.footer-brand .brand-mark {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex: 0 0 30px !important;
    display: inline-block !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: url("/assets/img/easyconfig-mark.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 30px 30px !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    transform: translateY(1px);
}

.site-header .brand-mark::before,
.site-header .brand-mark::after,
.site-footer .brand-mark::before,
.site-footer .brand-mark::after {
    display: none !important;
    content: none !important;
}

.site-header .brand > span:last-child,
.site-footer .footer-brand > span:last-child,
.site-footer .brand > span:last-child {
    display: inline-block !important;
    font-size: 19px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(0);
}

.site-header .brand > span:last-child {
    color: #071120 !important;
}

.site-footer .footer-brand > span:last-child,
.site-footer .brand > span:last-child {
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .site-header .brand,
    .site-footer .footer-brand,
    .site-footer .brand {
        gap: 8px !important;
    }

    .site-header .brand-mark,
    .site-footer .brand-mark,
    .footer-brand .brand-mark {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        flex-basis: 28px !important;
        background-size: 28px 28px !important;
    }

    .site-header .brand > span:last-child,
    .site-footer .footer-brand > span:last-child,
    .site-footer .brand > span:last-child {
        font-size: 18px !important;
    }
}

/* ==================================================
   easyconfig final combined wordmark logo
   Uses one SVG wordmark instead of separated icon + text.
================================================== */

.site-header .brand {
    width: 178px !important;
    height: 50px !important;
    display: inline-block !important;
    background-image: url("/assets/img/easyconfig-logo.svg") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 178px auto !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
}

.site-header .brand .brand-mark,
.site-header .brand span {
    display: none !important;
}

.site-footer .footer-brand,
.site-footer .brand.footer-brand,
.site-footer .brand {
    width: 178px !important;
    height: 50px !important;
    display: inline-block !important;
    background-image: url("/assets/img/easyconfig-logo-white.svg") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 178px auto !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
    margin-bottom: 22px !important;
}

.site-footer .footer-brand .brand-mark,
.site-footer .footer-brand span,
.site-footer .brand.footer-brand .brand-mark,
.site-footer .brand.footer-brand span {
    display: none !important;
}

@media (max-width: 640px) {
    .site-header .brand,
    .site-footer .footer-brand,
    .site-footer .brand.footer-brand {
        width: 166px !important;
        height: 46px !important;
        background-size: 166px auto !important;
    }
}

/* ==========================================
   Homepage provider marketplace strip
   ========================================== */

.marketplace-strip {
    padding: 34px 0 20px;
}

.marketplace-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 28px;
    align-items: center;
}

.marketplace-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 10px 16px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.68;
}

.marketplace-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.marketplace-item img {
    display: block;
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.82;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.marketplace-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Slight size tuning per provider if needed */
.marketplace-item img[alt="AWS Marketplace"] {
    max-height: 52px;
}

.marketplace-item img[alt="DigitalOcean Marketplace"] {
    max-height: 42px;
}

.marketplace-item img[alt="Linode Marketplace"] {
    max-height: 44px;
}

.marketplace-item img[alt="Vultr Marketplace"] {
    max-height: 38px;
}

.marketplace-item img[alt="Utho"] {
    max-height: 42px;
}

/* Responsive */
@media (max-width: 1100px) {
    .marketplace-links {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 700px) {
    .marketplace-strip {
        padding: 26px 0 12px;
    }

    .marketplace-links {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
        gap: 18px;
    }

    .marketplace-item {
        min-height: 64px;
        padding: 10px 12px;
    }

    .marketplace-item img {
        max-height: 34px;
    }

    .marketplace-item img[alt="AWS Marketplace"] {
        max-height: 42px;
    }
}

@media (max-width: 480px) {
    .marketplace-links {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Provider marketplace logos - mobile carousel repair
   Desktop remains normal, mobile becomes horizontal scroll.
================================================== */

.marketplace-strip {
    overflow: hidden;
}

/* Desktop: keep clean horizontal row */
.marketplace-links {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 56px !important;
    width: 100%;
}

.marketplace-item {
    flex: 1 1 0;
    min-width: 0;
}

/* Logo sizing consistency */
.marketplace-item img {
    max-width: 190px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile carousel */
@media (max-width: 900px) {
    .marketplace-strip {
        padding: 34px 0 28px !important;
    }

    .marketplace-strip .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .marketplace-links {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 34px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 28px 18px !important;
        scrollbar-width: none;
    }

    .marketplace-links::-webkit-scrollbar {
        display: none;
    }

    .marketplace-item {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 170px !important;
        min-height: 68px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        scroll-snap-align: center;
        opacity: 0.58;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .marketplace-item img {
        max-width: 170px !important;
        max-height: 46px !important;
        filter: grayscale(100%) !important;
        opacity: 0.9 !important;
    }

    .marketplace-item:hover,
    .marketplace-item:focus {
        opacity: 0.9;
    }
}

/* Small mobile: logo strip should feel like a proper carousel */
@media (max-width: 520px) {
    .marketplace-strip {
        padding-top: 28px !important;
        padding-bottom: 24px !important;
    }

    .marketplace-links {
        gap: 30px !important;
        padding-left: 34px !important;
        padding-right: 34px !important;
    }

    .marketplace-item {
        min-width: 165px !important;
        min-height: 62px !important;
    }

    .marketplace-item img {
        max-width: 165px !important;
        max-height: 42px !important;
    }

    .marketplace-item img[alt="AWS Marketplace"] {
        max-height: 50px !important;
    }

    .marketplace-item img[alt="DigitalOcean Marketplace"] {
        max-height: 42px !important;
    }

    .marketplace-item img[alt="Linode Marketplace"] {
        max-height: 44px !important;
    }

    .marketplace-item img[alt="Vultr Marketplace"] {
        max-height: 38px !important;
    }

    .marketplace-item img[alt="Utho"] {
        max-height: 38px !important;
    }
}

/* Mobile hamburger: remove button border/background, keep only 3 lines */

@media (max-width: 900px) {
    .mobile-menu-toggle {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
    }

    .mobile-menu-toggle span {
        width: 28px !important;
        height: 3px !important;
        background: #071120 !important;
        border-radius: 999px !important;
    }
}

/* ==================================================
   FAQ accordion repair
   Works for index, pricing, and all public FAQ lists
================================================== */

.faq-list details {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details[open] {
    border-color: rgba(31, 111, 245, 0.26);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.faq-list summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 22px 58px 22px 24px;
    color: #071120;
    font-weight: 900;
    line-height: 1.35;
    user-select: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::marker {
    display: none;
    content: "";
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #f1f5f9;
    color: #071120;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.faq-list details[open] summary::after {
    content: "−";
    background: #1F6FF5;
    color: #ffffff;
}

.faq-list details > p,
.faq-list details > div {
    padding: 0 24px 24px;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .faq-list summary {
        padding: 20px 54px 20px 20px;
    }

    .faq-list summary::after {
        right: 20px;
    }

    .faq-list details > p,
    .faq-list details > div {
        padding: 0 20px 22px;
    }
}

/* ==================================================
   EasyConfig FAQ button accordion final fix
   Actual markup:
   .faq-item > .faq-question + .faq-answer
================================================== */

.faq-list .faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-list .faq-item.is-open {
    border-color: rgba(31, 111, 245, 0.28);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.faq-list .faq-question {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #071120;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.faq-list .faq-question span {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: #f1f5f9;
    color: transparent;
    display: grid;
    place-items: center;
    font-size: 0;
    font-weight: 900;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.faq-list .faq-question span::before {
    content: "+";
    color: #071120;
    font-size: 20px;
    line-height: 1;
}

.faq-list .faq-item.is-open .faq-question span {
    background: #1F6FF5;
}

.faq-list .faq-item.is-open .faq-question span::before {
    content: "−";
    color: #ffffff;
}

.faq-list .faq-answer {
    display: none;
    padding: 0 22px 22px;
    color: #64748b;
    line-height: 1.7;
}

.faq-list .faq-item.is-open .faq-answer {
    display: block;
}

@media (max-width: 640px) {
    .faq-list .faq-question {
        padding: 18px 18px;
    }

    .faq-list .faq-answer {
        padding: 0 18px 20px;
    }
}

/* ==================================================
   EasyConfig FAQ smooth accordion animation
   Works with .faq-item > .faq-question + .faq-answer
================================================== */

.faq-list .faq-answer {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition:
        max-height 0.32s ease,
        opacity 0.22s ease,
        padding-top 0.22s ease,
        padding-bottom 0.22s ease;
}

.faq-list .faq-item.is-open .faq-answer {
    opacity: 1;
    padding-top: 0 !important;
    padding-bottom: 22px !important;
}

.faq-list .faq-question span {
    transition:
        background-color 0.22s ease,
        transform 0.22s ease;
}

.faq-list .faq-item.is-open .faq-question span {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .faq-list .faq-item.is-open .faq-answer {
        padding-bottom: 20px !important;
    }
}

/* ==================================================
   Final smooth FAQ accordion override
================================================== */

.faq-list .faq-answer {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 22px 0 !important;
    color: #64748b;
    line-height: 1.7;
    transition:
        max-height 0.32s ease,
        opacity 0.22s ease,
        padding-bottom 0.24s ease;
}

.faq-list .faq-item.is-open .faq-answer {
    padding-bottom: 22px !important;
    opacity: 1;
}

.faq-list .faq-question span {
    transition:
        background-color 0.22s ease,
        transform 0.22s ease;
}

.faq-list .faq-item.is-open .faq-question span {
    transform: rotate(180deg);
}

.faq-list .faq-answer a {
    color: #1F6FF5;
    font-weight: 800;
    text-decoration: none;
}

.faq-list .faq-answer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .faq-list .faq-answer {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .faq-list .faq-item.is-open .faq-answer {
        padding-bottom: 20px !important;
    }
}

.ec-blog-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted, #64748b);
    font-size: 13px;
    margin-bottom: 12px;
}

.ec-blog-author-mini,
.ec-blog-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-blog-author-mini {
    margin-top: 18px;
}

.ec-blog-author-mini img,
.ec-blog-post-author img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    background: #eef2f7;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.ec-blog-author-mini strong,
.ec-blog-post-author strong {
    display: block;
    font-size: 14px;
}

.ec-blog-author-mini small,
.ec-blog-post-author small {
    display: block;
    color: var(--muted, #64748b);
    font-size: 12px;
}

.ec-blog-post-author {
    margin-top: 22px;
    flex-wrap: wrap;
    color: var(--muted, #64748b);
}

.ec-blog-post-author > span {
    font-size: 14px;
}

.ec-blog-article blockquote {
    border-left: 4px solid var(--primary, #1F6FF5);
    padding: 12px 18px;
    background: rgba(31, 111, 245, 0.08);
    border-radius: 12px;
    margin: 22px 0;
    color: var(--text, #0f172a);
}

.ec-article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.ec-article-table th,
.ec-article-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    vertical-align: top;
    text-align: left;
}

.ec-article-table th {
    background: rgba(15, 23, 42, 0.04);
    font-weight: 700;
}

.ec-blog-chart {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.025);
}

.ec-blog-chart > strong {
    display: block;
    margin-bottom: 14px;
}

.ec-blog-bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 48px;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    font-size: 14px;
}

.ec-blog-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    overflow: hidden;
}

.ec-blog-bar-track b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1F6FF5, #2DD4FF);
}

.ec-blog-bar-row em {
    font-style: normal;
    color: var(--muted, #64748b);
}

@media (max-width: 640px) {
    .ec-blog-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
/* easyconfig release polish: auth, rich template/docs pages */

.ec-auth-screen {
    margin-left: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(31, 111, 245, 0.12), transparent 30%),
        var(--ec-panel-bg, #f8fafc);
    padding: 28px;
}

.ec-auth-card {
    width: min(480px, calc(100% - 32px));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ec-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 0;
    text-decoration: none;
    color: #0f172a;
    font-weight: 900;
    font-size: 20px;
}

.ec-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ec-auth-links a {
    color: #1F6FF5;
    font-weight: 800;
    text-decoration: none;
}

.ec-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.ec-info-tile {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.ec-info-tile small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.ec-info-tile strong {
    display: block;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.ec-rich-steps {
    display: grid;
    gap: 12px;
    counter-reset: ecStep;
    list-style: none;
    padding: 0;
}

.ec-rich-steps li {
    counter-increment: ecStep;
    position: relative;
    padding: 16px 16px 16px 58px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.ec-rich-steps li::before {
    content: counter(ecStep);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #1F6FF5;
    color: #ffffff;
    font-weight: 900;
}

.ec-rich-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
    overflow: hidden;
    border-radius: 16px;
}

.ec-rich-table th,
.ec-rich-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.ec-rich-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

.ec-code-block {
    padding: 18px;
    border-radius: 18px;
    background: #0b1220;
    color: #D4ECFF;
    overflow-x: auto;
    line-height: 1.65;
}

.ec-code-block code {
    color: inherit;
}

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

.ec-screenshot-slot {
    min-height: 180px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    color: #64748b;
}

.ec-screenshot-slot img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.ec-screenshot-slot strong {
    display: block;
    color: #0f172a;
    margin-bottom: 8px;
}

.ec-check-list {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

.ec-check-list li {
    position: relative;
    padding-left: 32px;
}

.ec-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #E7F0FE;
    color: #1F6FF5;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.ec-doc-detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ec-doc-toc {
    position: sticky;
    top: 110px;
}

@media (max-width: 980px) {
    .ec-info-grid,
    .ec-screenshot-grid,
    .ec-doc-detail-layout {
        grid-template-columns: 1fr;
    }

    .ec-doc-toc {
        position: static;
    }
}
/* -------------------------------------------------------
   Blog card vertical alignment fix
   Keeps author block and Read post aligned across cards
   even when title/excerpt lengths are different.
------------------------------------------------------- */

.grid-3 .ec-blog-card,
.ec-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ec-blog-card .blog-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 330px;
}

.ec-blog-card .blog-body h3 {
    min-height: 56px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-blog-card .blog-body > p {
    min-height: 92px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-blog-card .ec-blog-author-mini {
    margin-top: auto;
    padding-top: 18px;
}

.ec-blog-card .card-footer {
    margin-top: 14px;
}

