/* =========================================================
   VISIT MY PROFILE — NAVIGATION & VISUAL POLISH V7
   Loaded last. Keeps anchor landings stable and replaces the
   generic interface artwork with code-native product previews.
   ========================================================= */

:root {
    --vmp-header-offset: 116px;
    --vmp-v7-ink: #071735;
    --vmp-v7-blue: #1769ff;
    --vmp-v7-blue-deep: #0955df;
    --vmp-v7-muted: #637189;
    --vmp-v7-line: rgba(35, 83, 153, .12);
}

html {
    scroll-behavior: auto;
    scroll-padding-top: var(--vmp-header-offset);
}

[data-vmp-anchor-heading] {
    scroll-margin-top: var(--vmp-header-offset) !important;
}

/* ---------- Deterministic navigation state ---------- */

.vmp-v2-header,
.vmp-v2-header.is-scrolled {
    transform: translateZ(0) !important;
}

.vmp-v2-menu a[data-vmp-nav] {
    min-width: 92px;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

.vmp-v2-menu a[data-vmp-nav].active {
    color: #0754e8 !important;
    border-color: rgba(23, 105, 255, .24);
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(232, 242, 255, .94));
    box-shadow: 0 8px 20px rgba(23, 105, 255, .09), inset 0 1px 0 #fff;
}

/* ---------- Compact premium feature cards ---------- */

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

.vmp-f2-card-fallback {
    min-height: 248px !important;
    padding: 28px !important;
    gap: 24px !important;
    justify-content: flex-start !important;
}

.vmp-f2-card-fallback::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 54px;
    height: 3px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, #1769ff, #62a2ff);
}

.vmp-f2-fallback-icon {
    display: grid !important;
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    place-items: center;
    margin: 0 !important;
    border: 1px solid rgba(23, 105, 255, .12);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #1a72ff, #0958eb);
    box-shadow: 0 15px 30px rgba(23, 105, 255, .21), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.vmp-f2-fallback-icon i {
    font-size: 20px;
}

.vmp-f2-card-fallback .vmp-f2-content {
    display: block;
    padding: 0 !important;
}

.vmp-f2-card-fallback .vmp-f2-content h3 {
    margin: 0 0 11px !important;
    font-size: 19px;
    line-height: 1.3;
}

.vmp-f2-card-fallback .vmp-f2-description {
    color: #647289;
    font-size: 13.5px;
    line-height: 1.7;
}

/* ---------- Product interface system ---------- */

.vmp-i2-card,
.vmp-i2-card-reverse {
    min-height: 500px;
}

.vmp-i2-media-wrap {
    overflow: visible !important;
}

.vmp-i2-media.vmp-v7-product-visual {
    display: grid;
    height: clamp(360px, 29vw, 460px) !important;
    min-height: 360px !important;
    place-items: center;
    padding: clamp(18px, 2.2vw, 32px);
    overflow: hidden;
    border: 1px solid rgba(23, 105, 255, .1);
    background:
        radial-gradient(circle at 18% 16%, rgba(85, 153, 255, .20), transparent 34%),
        linear-gradient(145deg, #eff6ff 0%, #f9fbff 52%, #eaf3ff 100%);
}

.vmp-i2-media.vmp-v7-product-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(23, 105, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 105, 255, .035) 1px, transparent 1px);
    background-size: 34px 34px;
}

.vmp-v7-window {
    position: relative;
    z-index: 2;
    width: min(100%, 610px);
    overflow: hidden;
    border: 1px solid rgba(27, 71, 136, .14);
    border-radius: 21px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 25px 60px rgba(28, 70, 131, .16), inset 0 1px 0 #fff;
    color: var(--vmp-v7-ink);
}

.vmp-v7-window-bar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid #e8eef8;
    background: rgba(250, 252, 255, .96);
}

.vmp-v7-window-mark {
    display: inline-grid;
    min-width: 45px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, #287cff, #0756e9);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.vmp-v7-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38604e;
    font-size: 9px;
    font-weight: 750;
}

.vmp-v7-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26bd76;
    box-shadow: 0 0 0 4px rgba(38, 189, 118, .11);
}

/* Profile workspace */

.vmp-v7-profile-layout {
    display: grid;
    grid-template-columns: 48px minmax(0, 1.2fr) minmax(120px, .8fr);
    min-height: 238px;
}

.vmp-v7-profile-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding-top: 15px;
    border-right: 1px solid #e9eff8;
    background: #f8fbff;
}

.vmp-v7-profile-rail span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    color: #8090aa;
    font-size: 10px;
}

.vmp-v7-profile-rail span.is-active {
    color: #fff;
    background: #1769ff;
    box-shadow: 0 8px 16px rgba(23, 105, 255, .2);
}

.vmp-v7-profile-editor {
    padding: 23px 20px;
}

.vmp-v7-profile-editor small,
.vmp-v7-window-bar small,
.vmp-v7-chart-copy small {
    display: block;
    color: #7b89a0;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .11em;
}

.vmp-v7-profile-editor strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
}

.vmp-v7-progress {
    height: 5px;
    margin: 13px 0 19px;
    overflow: hidden;
    border-radius: 99px;
    background: #e8eef8;
}

.vmp-v7-progress span {
    display: block;
    width: 82%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1769ff, #65a4ff);
}

.vmp-v7-field-row {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 34px;
    margin-bottom: 9px;
    padding: 0 10px;
    border: 1px solid #e3ebf7;
    border-radius: 9px;
}

.vmp-v7-field-row i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a8b7cd;
}

.vmp-v7-field-row span {
    width: 72%;
    height: 6px;
    border-radius: 99px;
    background: #dce5f2;
}

.vmp-v7-field-row.is-short span {
    width: 48%;
}

.vmp-v7-profile-editor button {
    margin-top: 5px;
    padding: 8px 13px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #1769ff;
    font-size: 8px;
    font-weight: 750;
    pointer-events: none;
}

.vmp-v7-profile-preview {
    margin: 18px 18px 18px 0;
    padding: 22px 12px;
    border: 1px solid #e3eaf5;
    border-radius: 15px;
    background: linear-gradient(160deg, #fff, #eef5ff);
    text-align: center;
}

.vmp-v7-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #1769ff, #58a0ff);
    box-shadow: 0 8px 20px rgba(23, 105, 255, .2);
    font-size: 12px;
    font-weight: 800;
}

.vmp-v7-profile-preview strong,
.vmp-v7-profile-preview small {
    display: block;
}

.vmp-v7-profile-preview strong {
    font-size: 10px;
}

.vmp-v7-profile-preview small {
    margin-top: 4px;
    color: #76859c;
    font-size: 7px;
}

.vmp-v7-action-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.vmp-v7-action-row span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #dce7f5;
    border-radius: 9px;
    color: #1769ff;
    background: #fff;
    font-size: 9px;
}

/* Sharing workspace */

.vmp-v7-share-window {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(150px, .72fr);
    align-items: center;
    gap: 20px;
    padding: 30px;
}

.vmp-v7-share-copy {
    min-width: 0;
}

.vmp-v7-kicker {
    color: #1769ff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
}

.vmp-v7-share-copy > strong {
    display: block;
    max-width: 300px;
    margin: 11px 0 9px;
    font-size: clamp(17px, 1.6vw, 23px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.vmp-v7-share-copy > p {
    max-width: 310px;
    margin: 0;
    color: #69778e;
    font-size: 10px;
    line-height: 1.6;
}

.vmp-v7-link-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    margin: 19px 0 14px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid #dce6f5;
    border-radius: 11px;
    color: #225ab0;
    background: #f5f9ff;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.vmp-v7-share-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.vmp-v7-share-methods span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #53637c;
    background: #edf4ff;
    font-size: 8px;
    font-weight: 750;
}

.vmp-v7-share-methods i {
    color: #1769ff;
}

.vmp-v7-qr-card {
    justify-self: end;
    padding: 16px;
    border: 1px solid #dce6f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(18, 55, 105, .12);
    text-align: center;
}

.vmp-v7-qr-code {
    width: clamp(116px, 12vw, 162px);
    aspect-ratio: 1;
}

.vmp-v7-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

.vmp-v7-qr-card > span {
    display: block;
    margin-top: 8px;
    color: #5d6c84;
    font-size: 8px;
    font-weight: 750;
}

/* Analytics workspace */

.vmp-v7-insights-window {
    padding-bottom: 16px;
}

.vmp-v7-window-bar > div strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.vmp-v7-period {
    padding: 7px 9px;
    border: 1px solid #dfe8f4;
    border-radius: 8px;
    color: #65738a;
    background: #fff;
    font-size: 7px;
    font-weight: 700;
}

.vmp-v7-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    padding: 13px 14px 11px;
}

.vmp-v7-metric-grid > div {
    padding: 13px;
    border: 1px solid #e1e9f5;
    border-radius: 12px;
    background: #fbfdff;
}

.vmp-v7-metric-grid small,
.vmp-v7-metric-grid strong,
.vmp-v7-metric-grid span {
    display: block;
}

.vmp-v7-metric-grid small {
    color: #76849a;
    font-size: 7px;
    font-weight: 650;
}

.vmp-v7-metric-grid strong {
    margin: 6px 0 4px;
    font-size: clamp(15px, 1.5vw, 22px);
}

.vmp-v7-metric-grid span {
    color: #19a96c;
    font-size: 7px;
    font-weight: 800;
}

.vmp-v7-chart-panel {
    margin: 0 14px;
    padding: 14px;
    border: 1px solid #e1e9f5;
    border-radius: 13px;
}

.vmp-v7-chart-copy strong {
    display: block;
    font-size: 10px;
}

.vmp-v7-chart-copy small {
    margin-top: 4px;
    letter-spacing: 0;
    text-transform: none;
}

.vmp-v7-bars {
    height: 88px;
    display: flex;
    align-items: flex-end;
    gap: clamp(5px, .9vw, 10px);
    margin-top: 13px;
    padding: 0 5px;
    border-bottom: 1px solid #dfe7f3;
    background: repeating-linear-gradient(to top, transparent 0 28px, rgba(45, 89, 154, .06) 29px);
}

.vmp-v7-bars i {
    display: block;
    width: 100%;
    height: var(--bar);
    min-height: 12px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #5a9aff, #1769ff);
    box-shadow: 0 6px 12px rgba(23, 105, 255, .12);
}

/* ---------- Public-page stability ---------- */

.vmp-public-page,
.vmp-page-hero,
.vmp-page-body,
.vmp-public-page * {
    animation-delay: 0s !important;
}

.vmp-public-page {
    padding-top: var(--vmp-header-offset) !important;
}

.vmp-rich-content {
    overflow-wrap: anywhere;
}

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

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

@media (max-width: 991px) {
    :root {
        --vmp-header-offset: 104px;
    }

    .vmp-v2-menu a[data-vmp-nav] {
        min-width: 0;
    }

    .vmp-i2-card,
    .vmp-i2-card-reverse {
        min-height: 0;
        grid-template-columns: 1fr !important;
    }

    .vmp-i2-card-reverse .vmp-i2-media-wrap,
    .vmp-i2-card-reverse .vmp-i2-content {
        order: initial;
    }

    .vmp-i2-media.vmp-v7-product-visual {
        height: 390px !important;
    }
}

@media (max-width: 767px) {
    .vmp-f2-card-fallback {
        min-height: 220px !important;
    }

    .vmp-i2-media.vmp-v7-product-visual {
        height: auto !important;
        min-height: 360px !important;
        padding: 17px;
    }

    .vmp-v7-share-window {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .vmp-v7-qr-card {
        justify-self: start;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .vmp-v7-qr-code {
        width: 88px;
    }

    .vmp-v7-profile-layout {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .vmp-v7-profile-preview {
        display: none;
    }

    .vmp-v7-metric-grid > div {
        padding: 10px;
    }
}

@media (max-width: 575px) {
    :root {
        --vmp-header-offset: 94px;
    }

    .vmp-i2-card,
    .vmp-i2-card-reverse {
        padding: 10px !important;
        border-radius: 23px;
    }

    .vmp-i2-content,
    .vmp-i2-card-reverse .vmp-i2-content {
        padding: 20px 14px 24px !important;
    }

    .vmp-i2-media.vmp-v7-product-visual {
        min-height: 330px !important;
        border-radius: 18px;
    }

    .vmp-v7-share-window {
        padding: 18px;
    }

    .vmp-v7-metric-grid {
        gap: 6px;
        padding-inline: 9px;
    }

    .vmp-v7-metric-grid > div {
        min-width: 0;
        padding: 9px 7px;
    }

    .vmp-v7-chart-panel {
        margin-inline: 9px;
    }
}
