:root {
    --shell-navy: #001f29;
    --shell-navy-dark: #00161e;
    --shell-navy-soft: #082f39;
    --shell-mint: #35d3c3;
    --shell-mint-hover: #55e2d3;
    --shell-mint-soft: #ddfaf6;
    --shell-white: #ffffff;
    --shell-background: #f5f7fa;
    --shell-text: #12242d;
    --shell-muted: #738087;
    --shell-border: #dfe6e9;
    --shell-container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--shell-background);
    color: var(--shell-text);
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

/*
|--------------------------------------------------------------------------
| Full-width Header
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--shell-navy);
    box-shadow: 0 6px 24px rgba(0, 26, 35, 0.13);
}

.site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 30px;
}

/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--shell-white);
}

.site-brand:hover {
    color: var(--shell-white);
}

.site-brand-mark {
    position: relative;
    display: inline-flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        #59e8d9 0%,
        var(--shell-mint) 58%,
        #19b5a6 100%
    );
    color: var(--shell-navy);
    font-size: 20px;
    box-shadow:
        0 9px 22px rgba(53, 211, 195, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-brand-mark::after {
    position: absolute;
    top: -20px;
    left: -22px;
    width: 18px;
    height: 80px;
    background: rgba(255, 255, 255, 0.23);
    content: "";
    transform: rotate(30deg);
}

.site-brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.site-brand-ai {
    color: var(--shell-mint);
}

/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.site-navigation {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    min-width: 0;
}

.site-navigation-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.site-navigation-link:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
}

.site-navigation-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.site-navigation-link.active::after {
    position: absolute;
    right: 13px;
    bottom: 4px;
    left: 13px;
    height: 2px;
    border-radius: 999px;
    background: var(--shell-mint);
    content: "";
}

/*
|--------------------------------------------------------------------------
| Header actions
|--------------------------------------------------------------------------
*/

.site-navigation-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.header-account-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 46px;
    padding: 0 13px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.header-account-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.header-register-link {
    min-width: 88px;
}

.header-scan-button {
    display: inline-flex;
    flex: 0 0 152px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 152px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--shell-mint);
    border-radius: 11px;
    background: var(--shell-mint);
    color: var(--shell-navy-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 23px rgba(53, 211, 195, 0.2);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.header-scan-button:hover {
    border-color: var(--shell-mint-hover);
    background: var(--shell-mint-hover);
    color: var(--shell-navy-dark);
    box-shadow: 0 13px 27px rgba(53, 211, 195, 0.27);
}

.header-scan-button i {
    font-size: 16px;
}

/*
|--------------------------------------------------------------------------
| Mobile navigation button
|--------------------------------------------------------------------------
*/

.mobile-navigation-button {
    display: none;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.mobile-navigation-button:hover {
    border-color: rgba(53, 211, 195, 0.55);
    background: rgba(53, 211, 195, 0.1);
    color: var(--shell-mint);
}

/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.site-main {
    min-height: calc(100vh - 390px);
}

.site-alert-wrap {
    padding-top: 22px;
}

.site-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--shell-border);
    border-radius: 11px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.site-alert-success {
    border-color: #a7ddd2;
    background: #edfaf7;
    color: #117264;
}

.site-alert-danger {
    border-color: #efb9bf;
    background: #fff3f4;
    color: #a62d3a;
}

/*
|--------------------------------------------------------------------------
| Full-width Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(
            circle at 4% 0%,
            rgba(53, 211, 195, 0.1),
            transparent 29%
        ),
        radial-gradient(
            circle at 94% 100%,
            rgba(53, 211, 195, 0.055),
            transparent 25%
        ),
        var(--shell-navy-dark);
    color: #ffffff;
}

.site-footer::before {
    position: absolute;
    top: -180px;
    right: -150px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    content: "";
}

.footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(270px, 1.4fr)
        repeat(3, minmax(130px, 0.7fr));
    gap: 50px;
    padding-top: 55px;
    padding-bottom: 46px;
}

.footer-brand {
    max-width: 370px;
}

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

.footer-description {
    max-width: 350px;
    margin: 0;
    color: rgba(255, 255, 255, 0.57);
    font-size: 14px;
    line-height: 1.75;
}

.footer-security-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 20px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 600;
}

.footer-security-note i {
    color: var(--shell-mint);
}

.footer-column {
    min-width: 0;
}

.footer-title {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.footer-links {
    display: grid;
    gap: 11px;
}

.footer-link,
.footer-link-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.footer-link:hover,
.footer-link-button:hover {
    color: var(--shell-mint);
    transform: translateX(2px);
}

.footer-bottom-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 22px;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    line-height: 1.5;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 500;
}

.footer-bottom-link:hover {
    color: var(--shell-mint);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.53);
    font-size: 12px;
    font-weight: 600;
}

.footer-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--shell-mint);
    box-shadow: 0 0 0 4px rgba(53, 211, 195, 0.1);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .site-navigation {
        gap: 14px;
    }

    .site-navigation-links {
        gap: 2px;
    }

    .site-navigation-link {
        padding-inline: 9px;
    }

    .header-register-link {
        display: none;
    }

    .footer-main {
        gap: 32px;
    }
}

@media (max-width: 991.98px) {
    .site-header-inner {
        min-height: 70px;
    }

    .mobile-navigation-button {
        display: inline-flex;
    }

    .site-navigation {
        position: absolute;
        top: 100%;
        right: -20px;
        left: -20px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
        padding: 15px 20px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(0, 31, 41, 0.99);
        box-shadow: 0 20px 35px rgba(0, 22, 30, 0.2);
        backdrop-filter: blur(18px);
    }

    .site-navigation.open {
        display: flex;
    }

    .site-navigation-links {
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
    }

    .site-navigation-link {
        justify-content: flex-start;
        width: 100%;
        min-height: 45px;
        padding: 10px 13px;
    }

    .site-navigation-link.active::after {
        top: 11px;
        right: auto;
        bottom: 11px;
        left: 2px;
        width: 2px;
        height: auto;
    }

    .site-navigation-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding-top: 13px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-account-link,
    .header-register-link,
    .header-scan-button {
        display: inline-flex;
        width: 100%;
        min-width: 100%;
        max-width: none;
        flex-basis: auto;
    }

    .header-account-link {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.045);
    }

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .site-container {
        width: min(
            var(--shell-container),
            calc(100% - 28px)
        );
    }

    .site-header-inner {
        min-height: 66px;
    }

    .site-brand-mark {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        border-radius: 11px;
        font-size: 18px;
    }

    .site-brand-text {
        font-size: 17px;
    }

    .site-navigation {
        right: -14px;
        left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 22px;
        padding-top: 43px;
        padding-bottom: 37px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 92px;
        gap: 9px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .site-brand-text {
        font-size: 16px;
    }

    .mobile-navigation-button {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-description {
        max-width: none;
    }

    .footer-bottom-links {
        gap: 12px;
    }
}
