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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    font-family: var(--vc-font-family, "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    background: var(--vc-bg);
    color: var(--vc-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--vc-transition-normal, 0.25s ease), color var(--vc-transition-normal, 0.25s ease);
}

body.vc-menu-open {
    overflow: hidden;
}

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

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    vertical-align: middle;
}

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

button {
    border: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--vc-primary) 65%, transparent);
    outline-offset: 3px;
}

.fa-solid,
.fa-brands,
.fa-regular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    min-width: 1em;
    line-height: 1;
    font-style: normal;
}

.vc-container {
    width: min(100% - 32px, var(--vc-container));
    margin-inline: auto;
}

/* ================================
   NAVBAR
================================ */

.vc-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--vc-surface) 90%, transparent);
    border-bottom: 1px solid var(--vc-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.vc-navbar-inner {
    height: 74px;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.vc-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vc-text);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
    min-width: 0;
}

.vc-navbar-brand img {
    width: 45px;
    min-width: 45px;
    height: 45px;
    aspect-ratio: 1 / 1;
    border: 1px solid #514d4d3d;
    object-fit: contain;
    border-radius: 50%;
    flex: 0 0 45px;
}

.vc-navbar-brand span {
    display: inline-block;
    line-height: 1.2;
}

.vc-navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: color-mix(in srgb, var(--vc-surface-soft) 86%, transparent);
    border: 1px solid var(--vc-border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.vc-navbar-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--vc-text-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition:
        color var(--vc-transition-fast, 0.2s ease),
        background var(--vc-transition-fast, 0.2s ease),
        transform var(--vc-transition-fast, 0.2s ease);
}

.vc-navbar-links a:hover,
.vc-navbar-links a.active {
    color: var(--vc-primary);
    background: var(--vc-primary-soft);
}

.vc-navbar-links a:hover {
    transform: translateY(-1px);
}

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

/* ================================
   MOBILE SIDEBAR MENU
================================ */

.vc-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1002;

    width: min(340px, 88vw);
    max-width: 100vw;
    height: 100vh;
    height: 100svh;
    max-height: 100dvh;
    padding: 92px 18px max(24px, env(safe-area-inset-bottom));

    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;

    background: color-mix(in srgb, var(--vc-surface) 96%, transparent);
    border-left: 1px solid var(--vc-border);
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.24);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transform: translate3d(105%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease,
        visibility 0.24s ease;

    will-change: transform;
}

.vc-mobile-menu.active {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vc-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    color: var(--vc-text-soft);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.15;
    transition:
        color var(--vc-transition-fast, 0.2s ease),
        background var(--vc-transition-fast, 0.2s ease),
        transform var(--vc-transition-fast, 0.2s ease);
}

.vc-mobile-menu a:hover,
.vc-mobile-menu a.active {
    color: var(--vc-primary);
    background: var(--vc-primary-soft);
    transform: translateX(4px);
}

.vc-menu-btn {
    position: relative;
    z-index: 1001;
}

/* Overlay created by main.js */

.vc-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;

    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity var(--vc-transition-normal, 0.25s ease),
        visibility var(--vc-transition-normal, 0.25s ease);
}

.vc-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ================================
   FOOTER
================================ */

.vc-footer {
    margin-top: 50px;
    background: color-mix(in srgb, var(--vc-surface) 96%, transparent);
    border-top: 1px solid var(--vc-border);
    contain: layout paint;
}

.vc-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
    gap: 32px;
    padding: 38px 0;
    align-items: start;
}

.vc-footer-brand h3,
.vc-footer-links h4 {
    margin: 0 0 5px;
    color: var(--vc-text);
}

.vc-footer-brand h3 {
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

.vc-footer-links h4 {
    font-size: 15px;
    line-height: 1.3;
}

.vc-footer-brand p {
    margin: 0 0 20px;
    max-width: 380px;
    color: var(--vc-text-soft);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.7;
}

.vc-footer-brand .vc-btn {
    min-height: var(--vc-btn-min-height, 46px);
}

.vc-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vc-footer-links li {
    margin: 10px 0;
}

.vc-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vc-text-soft);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    transition:
        color var(--vc-transition-fast, 0.2s ease),
        transform var(--vc-transition-fast, 0.2s ease);
}

.vc-footer-links a:hover {
    color: var(--vc-primary);
    transform: translateX(3px);
}

.vc-footer-bottom {
    min-height: 56px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid var(--vc-border);
}

.vc-footer-bottom p {
    margin: 0;
    color: var(--vc-text-muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

/* ================================
   FOOTER SOCIAL
================================ */

.vc-footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.vc-footer-social a {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;

    border-radius: 12px;
    border: 1px solid var(--vc-border);
    background: var(--vc-surface-soft);

    color: var(--vc-text);
    font-size: 18px;
    line-height: 1;

    transition:
        transform var(--vc-transition-normal, 0.25s ease),
        border-color var(--vc-transition-normal, 0.25s ease),
        color var(--vc-transition-normal, 0.25s ease),
        background var(--vc-transition-normal, 0.25s ease);
}

.vc-footer-social a:hover {
    transform: translateY(-2px);
    border-color: var(--vc-primary);
    color: var(--vc-primary);
    background: var(--vc-primary-soft);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
    .vc-navbar-inner {
        height: 68px;
        min-height: 68px;
    }

    .vc-navbar-links {
        display: none;
    }

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

@media (min-width: 901px) {
    .vc-mobile-menu,
    .vc-menu-overlay {
        display: none;
    }
}

@media (max-width: 640px) {
    .vc-container {
        width: min(100% - 24px, var(--vc-container));
    }

    .vc-footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 520px) {
    .vc-navbar-brand img {
        width: 36px;
        min-width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .vc-mobile-menu {
        width: min(320px, 88vw);
        padding-top: 86px;
    }

    .vc-theme-btn {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    .vc-theme-btn span {
        display: none;
    }
}

/* ================================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ================================
   GLOBAL SCROLLBAR
================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--vc-primary) var(--vc-surface-soft);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--vc-surface-soft);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--vc-primary) 88%, #ffffff),
        var(--vc-primary)
    );
    border-radius: 999px;
    border: 2px solid var(--vc-surface-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vc-primary);
}

::-webkit-scrollbar-corner {
    background: var(--vc-surface-soft);
}

/* ================================
   HIDE HEADER AND FOOTER FOR APP
================================ */

.app-mode #header-part,
.app-mode #footer-part {
    display: none !important;
}

.app-mode {
    padding-bottom: 20px;
}