/**
 * Trybot public sales navigation.
 * Authenticated clients continue to use the existing client sidebar and topbar.
 */

body.trybot-public .trybot-public-header {
    overflow: visible;
    padding: 14px 0;
    background: rgba(3, 6, 9, .82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .16);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

body.trybot-public .trybot-public-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 157, 255, .48), transparent);
    opacity: .62;
}

body.trybot-public .trybot-public-shell {
    width: min(100% - 42px, 1280px);
}

body.trybot-public .trybot-public-nav {
    position: relative;
    min-height: 70px;
    gap: 22px;
    padding: 0 12px 0 24px;
    background: rgba(8, 14, 22, .72);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .045);
}

body.trybot-public .trybot-public-brand {
    position: relative;
    z-index: 3;
}

body.trybot-public .trybot-public-brand img {
    width: auto;
    height: 42px;
}

body.trybot-public .trybot-public-menu {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
}

body.trybot-public .trybot-sales-links,
body.trybot-public .trybot-sales-actions {
    display: flex;
    align-items: center;
}

body.trybot-public .trybot-sales-links {
    min-width: 0;
    gap: 2px;
}

body.trybot-public .trybot-sales-actions {
    flex: 0 0 auto;
    gap: 10px;
}

body.trybot-public .trybot-sales-item {
    position: relative;
}

body.trybot-public .trybot-sales-item-mega {
    position: static;
}

body.trybot-public .trybot-sales-link,
body.trybot-public .trybot-sales-trigger {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    color: #dbe7f3 !important;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

body.trybot-public .trybot-sales-link:hover,
body.trybot-public .trybot-sales-link:focus-visible,
body.trybot-public .trybot-sales-trigger:hover,
body.trybot-public .trybot-sales-trigger:focus-visible,
body.trybot-public .trybot-sales-item.is-open > .trybot-sales-trigger {
    color: #fff !important;
    background: rgba(0, 157, 255, .09);
}

body.trybot-public .trybot-sales-trigger i {
    color: #6f8295;
    font-size: 9px;
    transition: color .18s ease, transform .22s ease;
}

body.trybot-public .trybot-sales-item.is-open > .trybot-sales-trigger i {
    color: #55c4ff;
    transform: rotate(180deg);
}

body.trybot-public .trybot-sales-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    z-index: 1004;
    visibility: hidden;
    opacity: 0;
    color: #a9b8c8;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 157, 255, .12), transparent 32%),
        rgba(7, 14, 23, .98);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .54);
    pointer-events: none;
    transform: translateY(10px) scale(.985);
    transform-origin: top center;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2, .75, .2, 1), visibility .2s ease;
}

body.trybot-public .trybot-sales-item.is-open > .trybot-sales-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

body.trybot-public .trybot-hosting-mega {
    left: 50%;
    display: grid;
    width: min(980px, calc(100vw - 56px));
    grid-template-columns: .9fr 1.1fr 1.25fr;
    gap: 0;
    padding: 10px;
    transform: translate(-50%, 10px) scale(.985);
}

body.trybot-public .trybot-sales-item.is-open > .trybot-hosting-mega {
    transform: translate(-50%, 0) scale(1);
}

body.trybot-public .trybot-mega-intro,
body.trybot-public .trybot-mega-shortcuts,
body.trybot-public .trybot-mega-catalog {
    min-width: 0;
    padding: 24px;
}

body.trybot-public .trybot-mega-intro,
body.trybot-public .trybot-mega-shortcuts {
    border-right: 1px solid rgba(255, 255, 255, .08);
}

body.trybot-public .trybot-mega-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 157, 255, .07), transparent 72%);
    border-radius: 14px 0 0 14px;
}

body.trybot-public .trybot-mega-label {
    display: block;
    margin-bottom: 12px;
    color: #55c4ff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

body.trybot-public .trybot-mega-intro > strong {
    color: #f7fbff;
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -.025em;
}

body.trybot-public .trybot-mega-intro p {
    margin: 12px 0 20px;
    color: #8293a6;
    font-size: 12px;
    line-height: 1.55;
}

body.trybot-public .trybot-mega-intro > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: #55c4ff !important;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
}

body.trybot-public .trybot-mega-shortcuts,
body.trybot-public .trybot-mega-catalog-list {
    display: grid;
    gap: 7px;
}

body.trybot-public .trybot-mega-shortcuts a,
body.trybot-public .trybot-mega-catalog-list a,
body.trybot-public .trybot-domain-menu a {
    display: flex !important;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 11px 12px !important;
    color: #dce8f3 !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    white-space: normal;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

body.trybot-public .trybot-mega-shortcuts a:hover,
body.trybot-public .trybot-mega-shortcuts a:focus-visible,
body.trybot-public .trybot-mega-catalog-list a:hover,
body.trybot-public .trybot-mega-catalog-list a:focus-visible,
body.trybot-public .trybot-domain-menu a:hover,
body.trybot-public .trybot-domain-menu a:focus-visible {
    color: #fff !important;
    background: rgba(0, 157, 255, .075);
    border-color: rgba(0, 157, 255, .19);
    transform: translateX(2px);
}

body.trybot-public .trybot-mega-shortcuts a > i,
body.trybot-public .trybot-mega-catalog-list a > i,
body.trybot-public .trybot-domain-menu a > i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #55c4ff;
    background: rgba(0, 157, 255, .08);
    border: 1px solid rgba(0, 157, 255, .17);
    border-radius: 10px;
    font-size: 13px;
}

body.trybot-public .trybot-mega-shortcuts span,
body.trybot-public .trybot-mega-catalog-list span,
body.trybot-public .trybot-domain-menu span {
    min-width: 0;
}

body.trybot-public .trybot-mega-shortcuts strong,
body.trybot-public .trybot-mega-shortcuts small,
body.trybot-public .trybot-mega-catalog-list strong,
body.trybot-public .trybot-mega-catalog-list small,
body.trybot-public .trybot-domain-menu strong,
body.trybot-public .trybot-domain-menu small {
    display: block;
}

body.trybot-public .trybot-mega-shortcuts strong,
body.trybot-public .trybot-mega-catalog-list strong,
body.trybot-public .trybot-domain-menu strong {
    overflow: hidden;
    color: #ecf5fd;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
}

body.trybot-public .trybot-mega-shortcuts small,
body.trybot-public .trybot-mega-catalog-list small,
body.trybot-public .trybot-domain-menu small {
    overflow: hidden;
    margin-top: 3px;
    color: #718296;
    font-size: 10px;
    font-weight: 550;
    line-height: 1.35;
    text-overflow: ellipsis;
}

body.trybot-public .trybot-mega-catalog-list {
    max-height: 258px;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(0, 157, 255, .32) transparent;
    scrollbar-width: thin;
}

body.trybot-public .trybot-domain-menu {
    right: 0;
    width: 330px;
    padding: 10px;
}

body.trybot-public .trybot-public-cart {
    position: relative;
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #c9d7e5 !important;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
}

body.trybot-public .trybot-public-cart:hover,
body.trybot-public .trybot-public-cart:focus-visible {
    color: #fff !important;
    background: rgba(0, 157, 255, .09);
    border-color: rgba(0, 157, 255, .28);
}

body.trybot-public .trybot-public-badge {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #fff;
    background: #009dff;
    border: 2px solid #07101a;
    font-size: 9px;
}

body.trybot-public .trybot-public-client-btn {
    display: inline-flex !important;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #009dff, #0876e8) !important;
    border: 1px solid #009dff;
    border-radius: 12px !important;
    box-shadow: 0 10px 26px rgba(0, 157, 255, .20);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

body.trybot-public .trybot-public-client-btn:hover,
body.trybot-public .trybot-public-client-btn:focus-visible {
    background: linear-gradient(135deg, #55c4ff, #009dff) !important;
    transform: translateY(-1px);
}

body.trybot-public .trybot-public-toggle {
    position: relative;
    z-index: 1010;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
}

body.trybot-public .trybot-public-backdrop {
    position: fixed;
    inset: 0;
    z-index: 997;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, .62);
    border: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

body.trybot-public .trybot-sales-link:focus-visible,
body.trybot-public .trybot-sales-trigger:focus-visible,
body.trybot-public .trybot-public-cart:focus-visible,
body.trybot-public .trybot-public-client-btn:focus-visible,
body.trybot-public .trybot-public-toggle:focus-visible,
body.trybot-public .trybot-sales-dropdown a:focus-visible {
    outline: 2px solid #55c4ff;
    outline-offset: 2px;
}

@media (max-width: 1160px) {
    body.trybot-public .trybot-public-shell {
        width: min(100% - 28px, 1280px);
    }

    body.trybot-public .trybot-public-nav {
        padding-left: 18px;
    }

    body.trybot-public .trybot-sales-link,
    body.trybot-public .trybot-sales-trigger {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 12px;
    }
}

@media (max-width: 1080px) {
    body.trybot-public.trybot-menu-open {
        overflow: hidden !important;
    }

    body.trybot-public .trybot-public-header {
        padding: 10px 0;
    }

    body.trybot-public .trybot-public-nav {
        min-height: 62px;
        flex-wrap: nowrap;
        padding: 9px 10px 9px 16px;
        border-radius: 16px;
    }

    body.trybot-public .trybot-public-brand img {
        height: 39px;
    }

    body.trybot-public .trybot-public-toggle {
        display: inline-flex;
    }

    body.trybot-public .trybot-public-header.is-mobile-open .trybot-public-toggle i::before {
        content: "\f00d";
    }

    body.trybot-public .trybot-public-menu {
        position: fixed;
        top: 86px;
        right: 14px;
        bottom: 14px;
        left: 14px;
        z-index: 1005;
        display: flex !important;
        visibility: hidden;
        opacity: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        margin: 0;
        padding: 16px;
        overflow-x: hidden;
        overflow-y: auto;
        color: #a9b8c8;
        background:
            radial-gradient(circle at 50% 0%, rgba(0, 157, 255, .11), transparent 30%),
            rgba(6, 13, 21, .985);
        border: 1px solid rgba(255, 255, 255, .11);
        border-radius: 20px;
        box-shadow: 0 35px 90px rgba(0, 0, 0, .62);
        transform: translateY(-10px) scale(.985);
        pointer-events: none;
        transition: opacity .2s ease, transform .24s ease, visibility .2s ease;
        overscroll-behavior: contain;
    }

    body.trybot-public .trybot-public-header.is-mobile-open .trybot-public-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    body.trybot-public.trybot-menu-open .trybot-public-backdrop {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    body.trybot-public .trybot-sales-links,
    body.trybot-public .trybot-sales-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    body.trybot-public .trybot-sales-item,
    body.trybot-public .trybot-sales-item-mega {
        position: relative;
        width: 100%;
    }

    body.trybot-public .trybot-sales-link,
    body.trybot-public .trybot-sales-trigger {
        display: flex !important;
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 0 15px;
        color: #e6f0fa !important;
        background: rgba(255, 255, 255, .03);
        border: 1px solid rgba(255, 255, 255, .075);
        border-radius: 12px;
        font-size: 13px;
        text-align: left;
    }

    body.trybot-public .trybot-sales-link::after {
        content: "\f054";
        color: #607488;
        font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
        font-size: 9px;
        font-weight: 900;
    }

    body.trybot-public .trybot-sales-dropdown,
    body.trybot-public .trybot-hosting-mega,
    body.trybot-public .trybot-domain-menu {
        position: static;
        display: grid;
        visibility: hidden;
        opacity: 0;
        width: 100%;
        max-height: 0;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 0;
        padding: 0 8px;
        overflow: hidden;
        background: rgba(255, 255, 255, .018);
        border-color: transparent;
        border-radius: 14px;
        box-shadow: none;
        transform: none;
        pointer-events: none;
        transition: max-height .32s ease, opacity .2s ease, visibility .2s ease, margin .2s ease, padding .2s ease;
    }

    body.trybot-public .trybot-sales-item.is-open > .trybot-sales-dropdown,
    body.trybot-public .trybot-sales-item.is-open > .trybot-hosting-mega {
        visibility: visible;
        opacity: 1;
        max-height: 1200px;
        margin-top: 7px;
        padding-top: 8px;
        padding-bottom: 8px;
        transform: none;
        pointer-events: auto;
    }

    body.trybot-public .trybot-mega-intro,
    body.trybot-public .trybot-mega-shortcuts,
    body.trybot-public .trybot-mega-catalog {
        padding: 14px 10px;
        border-right: 0;
    }

    body.trybot-public .trybot-mega-intro,
    body.trybot-public .trybot-mega-shortcuts {
        border-bottom: 1px solid rgba(255, 255, 255, .075);
    }

    body.trybot-public .trybot-mega-intro {
        display: block;
        border-radius: 10px;
    }

    body.trybot-public .trybot-mega-intro p {
        margin-bottom: 14px;
    }

    body.trybot-public .trybot-mega-catalog-list {
        max-height: none;
        overflow: visible;
    }

    body.trybot-public .trybot-sales-actions {
        position: sticky;
        bottom: -16px;
        z-index: 2;
        margin-top: auto;
        padding: 13px 0 16px;
        background: linear-gradient(180deg, transparent, #060d15 24%);
    }

    body.trybot-public .trybot-public-cart,
    body.trybot-public .trybot-public-client-btn {
        width: 100% !important;
        min-height: 48px;
        flex: 0 0 auto;
        border-radius: 12px !important;
    }

    body.trybot-public .trybot-public-badge {
        top: 6px;
        right: calc(50% - 28px);
    }
}

@media (max-width: 560px) {
    body.trybot-public .trybot-public-shell {
        width: calc(100% - 18px);
    }

    body.trybot-public .trybot-public-nav {
        min-height: 58px;
        padding-left: 13px;
    }

    body.trybot-public .trybot-public-brand img {
        height: 35px;
    }

    body.trybot-public .trybot-public-menu {
        top: 78px;
        right: 9px;
        bottom: 9px;
        left: 9px;
        padding: 12px;
        border-radius: 17px;
    }

    body.trybot-public .trybot-mega-intro > strong {
        font-size: 18px;
    }

    body.trybot-public .trybot-mega-shortcuts a,
    body.trybot-public .trybot-mega-catalog-list a,
    body.trybot-public .trybot-domain-menu a {
        padding: 10px 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.trybot-public .trybot-sales-dropdown,
    body.trybot-public .trybot-public-menu,
    body.trybot-public .trybot-public-backdrop,
    body.trybot-public .trybot-sales-trigger i,
    body.trybot-public .trybot-sales-dropdown a {
        transition: none !important;
    }
}
