/* =========================================================
   VISIT MY PROFILE — SIGNATURE HEADER V2
   ========================================================= */

.vmp-v2-header {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    transition: all .35s ease;
}

.vmp-v2-header .container {
    pointer-events: auto;
}

.vmp-v2-nav {
    min-height: 72px;
    padding: 0 14px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(7,13,24,.72);
    box-shadow:
        0 20px 60px rgba(0,0,0,.24),
        inset 0 1px 0 rgba(255,255,255,.04);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition:
        min-height .35s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

.vmp-v2-header.is-scrolled {
    top: 10px;
}

.vmp-v2-header.is-scrolled .vmp-v2-nav {
    min-height: 64px;
    background: rgba(5,10,18,.90);
    border-color: rgba(255,255,255,.13);
    box-shadow:
        0 18px 50px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.vmp-v2-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.vmp-v2-brand img {
    display: block;
    width: auto;
    max-width: 205px;
    max-height: 54px;
    object-fit: contain;
}

.vmp-v2-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.vmp-v2-menu a {
    position: relative;
    padding: 25px 0;
    color: rgba(225,235,248,.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: color .25s ease;
}

.vmp-v2-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 17px;
    width: 0;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6ba6ff, #ffffff);
    transition: width .25s ease;
}

.vmp-v2-menu a:hover,
.vmp-v2-menu a.active {
    color: #ffffff;
}

.vmp-v2-menu a:hover::after,
.vmp-v2-menu a.active::after {
    width: 20px;
}

.vmp-v2-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmp-v2-signin {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(235,242,250,.82);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
    transition: color .25s ease, background .25s ease;
}

.vmp-v2-signin:hover {
    color: #ffffff;
    background: rgba(255,255,255,.055);
}

.vmp-v2-create {
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    color: #07111e !important;
    background: linear-gradient(135deg, #ffffff 0%, #d9e8ff 100%);
    box-shadow:
        0 10px 28px rgba(0,0,0,.22),
        0 0 0 1px rgba(255,255,255,.18);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}

.vmp-v2-create:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(0,0,0,.30),
        0 0 24px rgba(93,155,255,.13);
}

.vmp-v2-create i {
    font-size: 10px;
}

.vmp-v2-menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
}

.vmp-v2-menu-toggle span {
    width: 16px;
    height: 1px;
    display: block;
    background: #ffffff;
    transition: transform .3s ease, opacity .3s ease;
}

/* =========================================================
   SIGNATURE HEADER V2 — RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {
    .vmp-v2-menu {
        gap: 20px;
    }

    .vmp-v2-menu a {
        font-size: 12px;
    }

    .vmp-v2-brand img {
        max-width: 180px;
    }
}

@media (max-width: 991px) {
    .vmp-v2-header {
        top: 12px;
    }

    .vmp-v2-nav {
        min-height: 64px;
        padding: 0 10px 0 16px;
        border-radius: 16px;
    }

    .vmp-v2-brand img {
        max-width: 165px;
        max-height: 48px;
    }

    .vmp-v2-menu-toggle {
        display: inline-flex;
    }

    .vmp-v2-signin {
        display: none;
    }

    .vmp-v2-create {
        min-height: 40px;
        padding: 0 13px;
        font-size: 11px;
    }

    .vmp-v2-menu {
        position: fixed;
        top: 88px;
        left: 18px;
        right: 18px;
        z-index: 9998;
        padding: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 18px;
        background: rgba(5,10,18,.96);
        box-shadow: 0 30px 70px rgba(0,0,0,.45);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(.98);
        transform-origin: top center;
        transition:
            opacity .28s ease,
            visibility .28s ease,
            transform .28s ease;
    }

    .vmp-v2-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .vmp-v2-menu a {
        padding: 14px 13px;
        border-radius: 10px;
        color: rgba(235,242,250,.78);
        font-size: 14px;
        font-weight: 650;
    }

    .vmp-v2-menu a::after {
        display: none;
    }

    .vmp-v2-menu a:hover,
    .vmp-v2-menu a.active {
        color: #ffffff;
        background: rgba(255,255,255,.055);
    }

    .vmp-v2-menu-toggle.is-open span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .vmp-v2-menu-toggle.is-open span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }
}

@media (max-width: 575px) {
    .vmp-v2-header .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .vmp-v2-nav {
        min-height: 60px;
        padding-left: 12px;
        padding-right: 8px;
    }

    .vmp-v2-brand img {
        max-width: 145px;
        max-height: 42px;
    }

    .vmp-v2-create {
        display: none;
    }

    .vmp-v2-actions {
        gap: 6px;
    }

    .vmp-v2-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .vmp-v2-menu {
        top: 78px;
        left: 12px;
        right: 12px;
    }
}

/* =========================================================
   VMP HEADER V2 — LOGO PRECISION ALIGNMENT
   ========================================================= */

.vmp-v2-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    height: 100%;
    line-height: 0;
}

.vmp-v2-brand img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
    margin: 0;
}

@media (max-width: 767.98px) {
    .vmp-v2-brand img {
        max-width: 145px;
        max-height: 40px;
    }
}

/* =========================================================
   VMP HEADER V2 — PREMIUM BLUE GLASS SYSTEM
   ========================================================= */

.vmp-v2-header {
    background: transparent;
}

.vmp-v2-nav {
    border: 1px solid rgba(23,105,255,0.12);
    background:
        linear-gradient(
            135deg,
            rgba(244,249,255,0.94) 0%,
            rgba(232,242,255,0.92) 48%,
            rgba(246,250,255,0.94) 100%
        );
    box-shadow:
        0 18px 42px rgba(28,84,165,0.10),
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -1px 0 rgba(23,105,255,0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Transparent logo integration */

.vmp-v2-brand {
    background: transparent !important;
}

.vmp-v2-brand img {
    max-width: 198px;
    max-height: 50px;
    filter: none;
}

/* Main navigation */

.vmp-v2-menu a {
    color: #24446f;
    border-radius: 12px;
    padding: 10px 15px;
    transition:
        color 200ms ease,
        background 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.vmp-v2-menu a:hover {
    color: #0754e8;
    background: rgba(255,255,255,0.58);
}

/* Mirror / glass active Home state */

.vmp-v2-menu a.active {
    color: #0754e8;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.78) 0%,
            rgba(210,230,255,0.88) 52%,
            rgba(238,246,255,0.82) 100%
        );
    border: 1px solid rgba(23,105,255,0.16);
    box-shadow:
        0 9px 22px rgba(23,105,255,0.12),
        inset 0 1px 0 rgba(255,255,255,0.98),
        inset 0 -1px 0 rgba(23,105,255,0.07);
    text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

/* Sign In */

.vmp-v2-signin {
    color: #24446f;
}

.vmp-v2-signin:hover {
    color: #0754e8;
}

/* Blue-glass Create Profile */

.vmp-v2-create {
    color: #ffffff !important;
    border: 1px solid rgba(0,84,232,0.22);
    background:
        linear-gradient(
            135deg,
            #0754e8 0%,
            #1769ff 58%,
            #2b7cff 100%
        );
    box-shadow:
        0 12px 26px rgba(23,105,255,0.20),
        inset 0 1px 0 rgba(255,255,255,0.30);
}

.vmp-v2-create:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 32px rgba(23,105,255,0.26),
        inset 0 1px 0 rgba(255,255,255,0.34);
}

/* Remove dark/grey visual residue */

.vmp-v2-menu,
.vmp-v2-actions {
    color: #24446f;
}

@media (max-width: 767.98px) {
    .vmp-v2-brand img {
        max-width: 150px;
        max-height: 42px;
    }
}

/* =========================================================
   VMP HEADER V2 — WHITE MIRROR GLASS FINAL PASS
   ========================================================= */

/* Normal state: mostly white crystal glass */

.vmp-v2-nav {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(23,105,255,0.10);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.97) 0%,
            rgba(250,253,255,0.96) 42%,
            rgba(239,247,255,0.94) 72%,
            rgba(255,255,255,0.97) 100%
        );

    box-shadow:
        0 16px 40px rgba(28,84,165,0.09),
        0 3px 12px rgba(23,105,255,0.035),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(23,105,255,0.04);

    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

/* Mirror highlight across top edge */

.vmp-v2-nav::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 4%;
    width: 92%;
    height: 48%;
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.78) 0%,
            rgba(255,255,255,0.28) 56%,
            transparent 100%
        );

    pointer-events: none;
}

/* Keep actual header content above mirror layer */

.vmp-v2-brand,
.vmp-v2-menu,
.vmp-v2-actions,
.vmp-v2-menu-toggle {
    position: relative;
    z-index: 2;
}

/* Scroll state must remain white glass — never dark */

.vmp-v2-header.is-scrolled .vmp-v2-nav {
    min-height: 64px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.96) 0%,
            rgba(248,252,255,0.96) 50%,
            rgba(235,245,255,0.93) 78%,
            rgba(255,255,255,0.96) 100%
        );

    border-color: rgba(23,105,255,0.12);

    box-shadow:
        0 18px 46px rgba(26,74,145,0.13),
        0 4px 14px rgba(23,105,255,0.04),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(23,105,255,0.045);
}

/* Navigation text */

.vmp-v2-menu a,
.vmp-v2-signin {
    color: #17375f;
}

/* Mirror-blue active Home */

.vmp-v2-menu a.active {
    color: #0754e8;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96) 0%,
            rgba(219,235,255,0.92) 48%,
            rgba(239,247,255,0.96) 100%
        );

    border: 1px solid rgba(23,105,255,0.18);

    box-shadow:
        0 8px 18px rgba(23,105,255,0.10),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(23,105,255,0.07);
}

/* Strong blue primary action */

.vmp-v2-create {
    background:
        linear-gradient(
            135deg,
            #0754e8 0%,
            #1769ff 58%,
            #2d7fff 100%
        );

    box-shadow:
        0 12px 28px rgba(23,105,255,0.22),
        inset 0 1px 0 rgba(255,255,255,0.30);
}

/* Slightly stronger logo presence */

.vmp-v2-brand img {
    max-width: 202px;
    max-height: 51px;
}

/* =========================================================
   VMP HEADER V2 — TABLET / 1024px FINAL OVERRIDE
   ========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .vmp-v2-header {
        top: 10px;
        width: 100%;
    }

    .vmp-v2-header .container {
        width: 100%;
        max-width: calc(100% - 24px);
        padding-left: 0;
        padding-right: 0;
    }

    .vmp-v2-nav,
    .vmp-v2-header.is-scrolled .vmp-v2-nav {
        position: relative;
        min-height: 72px !important;
        height: 72px !important;

        display: flex;
        align-items: center;

        padding: 8px 12px 8px 18px;

        border-radius: 22px;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,0.98) 0%,
                rgba(250,253,255,0.97) 55%,
                rgba(238,247,255,0.95) 100%
            );

        border: 1px solid rgba(23,105,255,0.11);

        box-shadow:
            0 12px 32px rgba(28,84,165,0.10),
            inset 0 1px 0 rgba(255,255,255,1);

        overflow: visible;
    }

    .vmp-v2-brand {
        height: 100%;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .vmp-v2-brand img {
        max-width: 170px;
        max-height: 44px;
    }

    .vmp-v2-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .vmp-v2-create {
        display: inline-flex;
        min-height: 46px;
        padding: 0 18px;
        border-radius: 14px;
    }

    .vmp-v2-menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        margin-left: 3px;

        border: 1px solid rgba(23,105,255,0.12);
        border-radius: 13px;

        background: rgba(244,249,255,0.95);
    }

    .vmp-v2-menu-toggle span {
        background: #1769ff;
    }

    /* Tablet dropdown — removed from document flow */

    .vmp-v2-menu {
        position: absolute !important;
        top: 82px !important;
        left: 0 !important;
        right: 0 !important;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        padding: 10px;

        border: 1px solid rgba(23,105,255,0.11);
        border-radius: 18px;

        background:
            linear-gradient(
                145deg,
                rgba(255,255,255,0.98),
                rgba(241,248,255,0.97)
            );

        box-shadow:
            0 18px 42px rgba(27,70,135,0.14),
            inset 0 1px 0 rgba(255,255,255,1);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .vmp-v2-menu.is-open {
        display: flex;
    }

    .vmp-v2-menu a,
    .vmp-v2-menu a:hover,
    .vmp-v2-menu a.active {
        width: 100%;
        padding: 11px 13px;

        color: #17375f;
        font-size: 14px;

        border-radius: 11px;
    }

    .vmp-v2-menu a.active {
        color: #0754e8;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,0.98),
                rgba(221,237,255,0.94)
            );

        border: 1px solid rgba(23,105,255,0.13);
    }
}

/* =========================================================
   VMP HEADER V2 — MOBILE FINAL COMPACT HEADER
   ========================================================= */

@media (max-width: 767.98px) {

    .vmp-v2-header,
    .vmp-v2-header.is-scrolled {
        top: 8px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .vmp-v2-header .container {
        width: 100%;
        max-width: calc(100% - 16px);
        padding: 0 !important;
    }

    .vmp-v2-nav,
    .vmp-v2-header.is-scrolled .vmp-v2-nav {
        position: relative;
        width: 100%;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 7px 9px 7px 14px !important;
        border-radius: 18px;
        overflow: visible !important;

        background:
            linear-gradient(
                135deg,
                rgba(255,255,255,0.98) 0%,
                rgba(250,253,255,0.97) 58%,
                rgba(238,247,255,0.95) 100%
            );

        border: 1px solid rgba(23,105,255,0.11);

        box-shadow:
            0 10px 28px rgba(28,84,165,0.11),
            inset 0 1px 0 rgba(255,255,255,1);
    }

    .vmp-v2-nav::before {
        height: 50%;
    }

    .vmp-v2-brand {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .vmp-v2-brand img {
        width: auto;
        max-width: 130px !important;
        max-height: 42px !important;
        margin: 0 !important;
    }

    .vmp-v2-signin,
    .vmp-v2-create {
        display: none !important;
    }

    .vmp-v2-actions {
        width: auto !important;
        height: auto !important;
        margin-left: auto;
        gap: 0;
    }

    .vmp-v2-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;

        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px;

        margin: 0 !important;

        border: 1px solid rgba(23,105,255,0.13);
        border-radius: 13px;

        background:
            linear-gradient(
                145deg,
                rgba(255,255,255,0.98),
                rgba(225,239,255,0.94)
            );

        box-shadow:
            0 6px 16px rgba(23,105,255,0.08),
            inset 0 1px 0 rgba(255,255,255,1);
    }

    .vmp-v2-menu-toggle span {
        width: 17px;
        height: 2px;
        background: #1769ff !important;
    }

    .vmp-v2-menu {
        position: absolute !important;
        top: 72px !important;
        left: 0 !important;
        right: 0 !important;

        display: none;

        padding: 9px;

        border-radius: 16px;
        border: 1px solid rgba(23,105,255,0.11);

        background:
            linear-gradient(
                145deg,
                rgba(255,255,255,0.99),
                rgba(240,248,255,0.98)
            );

        box-shadow:
            0 16px 38px rgba(24,68,135,0.15),
            inset 0 1px 0 rgba(255,255,255,1);
    }

    .vmp-v2-menu.is-open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .vmp-v2-menu a,
    .vmp-v2-menu a:hover,
    .vmp-v2-menu a.active {
        width: 100%;
        padding: 11px 12px;
        border-radius: 10px;
        color: #17375f;
        font-size: 14px;
        text-align: left;
    }

    .vmp-v2-menu a.active {
        color: #0754e8;
        background:
            linear-gradient(
                135deg,
                #ffffff,
                rgba(221,237,255,0.95)
            );
    }
}

/* =========================================================
   VMP HEADER V2 — GLOBAL ANCHOR OFFSET
   Prevent fixed header from covering section headings
   ========================================================= */

html {
    scroll-padding-top: 112px !important;
}

/* Explicit section protection for browser hash navigation */
#frontHomeTab,
#frontTemplatesTab,
#frontFeaturesTab,
#frontAboutTabUsTab,
#frontPricingTab,
#frontContactUsTab {
    scroll-margin-top: 112px !important;
}

@media (max-width: 767.98px) {

    html {
        scroll-padding-top: 84px !important;
    }

    #frontHomeTab,
    #frontTemplatesTab,
    #frontFeaturesTab,
    #frontAboutTabUsTab,
    #frontPricingTab,
    #frontContactUsTab {
        scroll-margin-top: 84px !important;
    }
}
