body {
    color-scheme: dark;
    --background: #090c12;
    --surface: #0e131c;
    --surface-background: #0e131c;
    --surface-input: #121824;
    --glass-surface-background: #0b1018;
    --glass-border: rgba(177, 190, 214, .16);
    --border: #202735;
    --foreground: #f4f5f8;
    --foreground-aa: rgba(244, 245, 248, .16);
    --text-muted: #929bad;
    --inactive: #747e91;
    --primary: #7068ff;
    --primary-alt: #8177ff;
    --primary-aa: rgba(112, 104, 255, .16);
    --primary-aaa: rgba(112, 104, 255, .08);
    --success: #45c68a;
    --danger: #ff7272;
    --warning: #e4b454;
}

html,
body,
#vue { min-height: 100%; }

body {
    color: var(--foreground);
    background: var(--background);
    background-image: none;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Shared shell for standalone personal-cabinet pages such as My Leads. */
body > .topbar {
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: #0b1018;
    box-shadow: none;
}

body > .topbar .brand,
body > .topbar .back-link { color: var(--foreground); }

body > .account-layout {
    height: calc(100dvh - 64px);
    grid-template-columns: 230px minmax(0, 1fr);
}

body > .account-layout .account-sidebar {
    padding: 12px 10px;
    border-right: 1px solid var(--border);
    background: #0b1018;
    box-shadow: none;
}

body > .account-layout .account-nav { gap: 4px; }

body > .account-layout .account-nav a,
body > .account-layout .sidebar-return {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: #bec5d2;
    font-size: 13px;
}

body > .account-layout .account-nav a:hover,
body > .account-layout .sidebar-return:hover {
    color: var(--foreground);
    background: #141a25;
    filter: none;
}

body > .account-layout .account-nav a.active {
    color: #ffffff;
    background: rgba(112, 104, 255, .16);
    box-shadow: inset 2px 0 0 var(--primary);
}

body > .account-layout .sidebar-return { border-color: var(--border); }

body > .account-layout .leads-page-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 28px auto;
    scrollbar-color: #313949 transparent;
}

body > .account-layout .leads-heading h1 {
    font-size: 28px;
    letter-spacing: -.025em;
}

body > .account-layout .content-card,
body > .account-layout .attention-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: none;
}

button,
.button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--foreground);
    background: #151b27;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

button:hover:not(:disabled),
.button:hover:not(:disabled) {
    border-color: rgba(177, 190, 214, .3);
    background: #192130;
    filter: none;
}

button.primary,
.button.primary,
button.primary-gradient:not(:disabled),
.button.primary-gradient:not(:disabled),
button.primary-gradient-alt,
.button.primary-gradient-alt {
    border-color: transparent;
    color: white;
    background: linear-gradient(100deg, #5357ef, #7964f4);
    box-shadow: none;
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #8177ff;
    outline-offset: 2px;
}

.app-container-wrapper {
    grid-template: "header header" 64px "menu content" 1fr / 200px minmax(0, 1fr) !important;
    background: #090c12;
}

.main-header {
    min-height: 64px;
    border-bottom: 1px solid var(--glass-border);
    background: #0b1018;
    box-shadow: none;
}

.main-header header {
    min-height: 64px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.side-menu {
    border-right: 1px solid var(--glass-border);
    background: #0b1018 !important;
    box-shadow: none !important;
}

.side-menu nav { background: #0b1018 !important; box-shadow: none !important; }
.side-menu .router-button {
    min-height: 45.5px;
    margin-bottom: 0;
    padding: 13px;
    border-radius: 8px;
    color: #c7ccd6;
    background: transparent;
    font-size: 13px;
    line-height: 1.2;
    gap: 8px;
}
.side-menu .router-button:hover { color: white; background: rgba(255,255,255,.045); }
.side-menu .router-button.primary-gradient-alt,
.side-menu .router-button.active {
    color: white;
    background: linear-gradient(290deg, #5386e8, #a437e7);
    box-shadow: none;
}

.side-menu .router-button .side-menu-title {
    gap: 8px;
}

.side-menu .router-button .side-menu-title i {
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
    font-size: 13px;
}

/* Premium navigation system */
.premium-sidebar {
    --sidebar-panel: rgba(23, 28, 45, .86);
    --sidebar-line: rgba(181, 190, 216, .13);
    --sidebar-copy: #f4f5f8;
    --sidebar-muted: #929bb0;
    overflow-x: hidden;
    border-right: 1px solid var(--sidebar-line);
    background: #0b1018 !important;
    box-shadow: none !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(124,112,255,.36) transparent;
}

.premium-sidebar > .premium-sidebar-brand {
    position: relative;
    min-height: 66px;
    margin: 0 !important;
    padding: 12px 10px 13px;
    position: relative;
    justify-content: flex-start !important;
    border-bottom: 1px solid var(--sidebar-line);
}

.premium-sidebar-brand .logo { width: 148px; height: auto; }
.premium-sidebar-profile {
    min-height: 72px;
    margin: 12px 10px 8px;
    padding: 10px;
    position: relative;
    border: 1px solid var(--sidebar-line);
    border-radius: 14px;
    color: var(--sidebar-copy);
    background: linear-gradient(135deg,rgba(255,255,255,.07),rgba(91,83,184,.14));
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 12px;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.premium-sidebar-avatar { width: 42px; height: 42px; overflow: hidden; border-radius: 50%; color: white; background: linear-gradient(135deg,#4278ff,#8b3dea); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.premium-sidebar-avatar img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.premium-sidebar-avatar { position: relative; }
.premium-sidebar-profile-copy { min-width: 0; }
.premium-sidebar-profile-copy strong,.premium-sidebar-profile-copy small { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
.premium-sidebar-profile-copy strong { font-size: 13px; font-weight: 600; }
.premium-sidebar-profile-copy small { margin-top: 4px; color: var(--sidebar-muted); font-size: 10px; }
.premium-sidebar-profile > .fa-chevron-right { color: #929bb0; font-size: 10px; }
.premium-sidebar-status { width: 8px; height: 8px; position: absolute; bottom: 13px; left: 43px; border: 2px solid #171c2d; border-radius: 50%; background: #36d67e; }

.premium-sidebar > .flex.flex-col.justify-between { height: auto !important; min-height: 0; padding: 0 10px 10px; overflow: hidden; flex: 1; }
.premium-sidebar aside { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 6px; scrollbar-width: thin; scrollbar-color: rgba(124,112,255,.36) transparent; }
.premium-sidebar .sidebar-menu-item {
    width: 100%;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    margin: 0;
    padding: 0 14px !important;
    box-sizing: border-box;
    border: 1px solid transparent !important;
    border-radius: 12px;
    color: inherit;
    background: var(--sidebar-panel);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.premium-sidebar .sidebar-menu-item:hover { border-color: var(--sidebar-line) !important; color: white; background: rgba(35,42,65,.95); text-decoration:none; }
.premium-sidebar .sidebar-menu-item:focus-visible { outline: 2px solid #9a8cff; outline-offset: 2px; color: white; text-decoration:none; }
.premium-sidebar .sidebar-menu-item:active { background: rgba(48,55,82,.98); }
.premium-sidebar .sidebar-menu-item.primary-gradient-alt,
.premium-sidebar .sidebar-menu-item.active {
    border-color: rgba(165,143,255,.78) !important;
    color: white;
    background: linear-gradient(100deg,#6238f0,#7568ff 58%,#527eff);
    box-shadow: 0 0 0 1px rgba(120,94,255,.16),0 0 22px rgba(102,75,255,.32),inset 0 1px rgba(255,255,255,.18);
}
.premium-sidebar .side-menu-title { min-width: 0; height:100%; flex: 1; display:flex; align-items:center; gap:10px !important; overflow:hidden; color:inherit; font-size:13px; font-weight:500; line-height:1; white-space:nowrap; }
.premium-sidebar .side-menu-title > i { width:16px; min-width:16px; flex:0 0 16px; font-size:14px; line-height:1; text-align:center; }
.premium-sidebar .side-menu-title > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.premium-sidebar-chevron { margin-left: auto; color: #778096; font-size: 9px; }
.premium-sidebar-link.primary-gradient-alt .premium-sidebar-chevron { color: white; }
.premium-sidebar-badge,.premium-sidebar-count { margin-left: auto; padding: 3px 7px; border-radius: 999px; font-size: 9px; line-height: 1; }
.premium-sidebar-badge { color: white; background: linear-gradient(100deg,#8c50f5,#596ff4); }
.premium-sidebar-count { color: #d8dcff; background: rgba(255,255,255,.08); }
.premium-sidebar-company-copy { min-width: 0; flex: 1; overflow:hidden; }
.premium-sidebar-company-copy strong,.premium-sidebar-company-copy small { display: block; }
.premium-sidebar-company-copy strong { overflow:hidden; color:inherit; font-size:13px; font-weight:500; line-height:1; text-overflow:ellipsis; white-space:nowrap; }
.premium-sidebar-company-copy small { display:none; }

.premium-sidebar-promo {
    min-height: 92px;
    margin-top: 14px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sidebar-line);
    border-radius: 14px;
    color: white;
    background: radial-gradient(circle at 88% 5%,rgba(117,80,255,.38),transparent 42%),linear-gradient(135deg,#171c2c,#23203d);
    display: flex;
    align-items: center;
    text-decoration: none;
}
.premium-sidebar-promo > span:first-child { width: 68%; position: relative; z-index: 2; }
.premium-sidebar-promo strong,.premium-sidebar-promo small { display: block; }
.premium-sidebar-promo strong { font-size: 12px; line-height: 1.3; }
.premium-sidebar-promo small { margin-top: 6px; color: #9ea6ba; font-size: 9px; line-height: 1.35; }
.premium-sidebar-promo-art { width: 68px; height: 42px; position: absolute; right: 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: linear-gradient(135deg,#111522,#343153); transform: rotate(-17deg); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.premium-sidebar-promo-art i { color: #8b80ff; transform: rotate(17deg); }
.premium-sidebar-promo > .fa-arrow-right { position: absolute; right: 10px; bottom: 9px; font-size: 10px; }
.premium-sidebar .bottom-bar { margin-top: 14px; }
.premium-sidebar .bottom-bar button { height: 46px !important; border: 1px solid rgba(117,104,255,.72) !important; border-radius: 12px; color: var(--sidebar-copy); background: var(--sidebar-panel); box-shadow: 0 0 0 1px rgba(117,104,255,.08); }
.premium-sidebar .bottom-bar button:hover { border-color: #8b7cff !important; background: rgba(117,104,255,.10); }
#vue main a[href="/editor.html"]:not(.sidebar-menu-item) { display:none !important; }

@media (min-width:1101px) {
    .app-container-wrapper { grid-template-columns: 220px minmax(0,1fr) !important; }
    .premium-sidebar { width: 220px; }
    .premium-sidebar-promo { display: none; }
    .premium-sidebar-profile { min-height: 64px; }
}

@media (max-width:1100px) {
    .premium-sidebar {
        --mobile-sidebar-row:clamp(34px, calc((100dvh - 270px) / 10), 44px);
        width:min(240px,88vw) !important;
        height:100dvh !important;
        max-height:100dvh;
        padding:6px !important;
        overflow:hidden;
        background:rgba(12,16,27,.97) !important;
        backdrop-filter:blur(22px);
        box-shadow:18px 0 60px rgba(0,0,0,.55),1px 0 rgba(135,114,255,.32) !important;
        gap:0 !important;
    }
    .premium-sidebar.open { overflow:hidden; }
    .premium-sidebar > .premium-sidebar-brand { min-height:54px; flex:0 0 54px; padding:8px 8px 9px; }
    .premium-sidebar-brand .logo { width:138px; }
    .premium-sidebar-profile {
        min-height:58px;
        max-height:58px;
        margin:6px 6px 4px;
        padding:7px 8px;
        grid-template-columns:38px minmax(0,1fr) 10px;
        gap:8px;
        border-radius:12px;
    }
    .premium-sidebar-avatar { width:38px; height:38px; }
    .premium-sidebar-status { bottom:8px; left:39px; }
    .premium-sidebar > .flex.flex-col.justify-between {
        min-height:0;
        padding:0 6px 6px;
        overflow:hidden;
        flex:1 1 auto;
        justify-content:flex-start !important;
    }
    nav.mini.premium-sidebar aside {
        min-height:0;
        overflow:hidden;
        flex:0 0 auto;
        gap:2px;
        padding:0;
        border:0;
        border-radius:0;
        background:transparent;
    }
    nav.mini.premium-sidebar .sidebar-menu-item {
        height:var(--mobile-sidebar-row);
        min-height:var(--mobile-sidebar-row);
        max-height:var(--mobile-sidebar-row);
        padding:0 12px !important;
        gap:10px;
        border:1px solid transparent !important;
        border-radius:10px;
        background:var(--sidebar-panel);
        box-shadow:none;
    }
    nav.mini.premium-sidebar .sidebar-menu-item.active,
    nav.mini.premium-sidebar .sidebar-menu-item.primary-gradient-alt {
        border:1px solid rgba(165,143,255,.78) !important;
        border-radius:10px;
        background:linear-gradient(100deg,#6238f0,#7568ff 58%,#527eff);
        box-shadow:0 0 0 1px rgba(120,94,255,.16),0 0 22px rgba(102,75,255,.32),inset 0 1px rgba(255,255,255,.18);
    }
    nav.mini.premium-sidebar .sidebar-menu-icon { width:17px; min-width:17px; height:17px; flex-basis:17px; font-size:14px; }
    nav.mini.premium-sidebar .sidebar-menu-label { font-size:12px; }
    nav.mini.premium-sidebar .sidebar-menu-chevron { font-size:8px; }
    .premium-sidebar-promo {
        min-height:64px;
        max-height:64px;
        margin-top:6px;
        padding:9px 11px;
        border-radius:11px;
    }
    .premium-sidebar-promo strong { font-size:11px; }
    .premium-sidebar-promo small { margin-top:3px; font-size:8px; line-height:1.25; }
    .premium-sidebar-promo-art { width:52px; height:34px; }
    .premium-sidebar .bottom-bar { margin-top:6px; }
    .premium-sidebar .bottom-bar button { height:44px !important; border-radius:10px; font-size:12px; }
    .premium-sidebar .sidebar-menu-item:hover:not(.active):not(.primary-gradient-alt) {
        border-color:transparent;
        color:#d2d7e2;
        background:rgba(255,255,255,.035);
        transform:none;
    }
}
.premium-sidebar .sidebar-menu-icon { width:18px; min-width:18px; height:18px; flex:0 0 18px; display:grid; place-items:center; font-size:15px; line-height:1; text-align:center; }
.premium-sidebar .sidebar-menu-label { min-width:0; flex:1; overflow:hidden; color:inherit; font:inherit; line-height:1.2; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.premium-sidebar .sidebar-menu-chevron { width:10px; min-width:10px; margin-left:auto; color:#778096; font-size:9px; line-height:1; text-align:center; }
.premium-sidebar .sidebar-menu-item.active .sidebar-menu-chevron,
.premium-sidebar .sidebar-menu-item.primary-gradient-alt .sidebar-menu-chevron { color:#fff; }

.container-wrapper {
    min-width: 0;
    background: #090c12;
    scrollbar-color: #343c4c transparent;
}

.container-main,
.container {
    width: min(1180px, calc(100% - 48px));
    margin-top: 28px;
    margin-bottom: 40px;
}

main h1,
.container-main h1,
.top-header__heading h1 {
    color: var(--foreground);
    font-size: clamp(28px, 4vw, 38px) !important;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.035em;
}

main h2,
main h3 { color: var(--foreground); font-weight: 600; letter-spacing: -.015em; }
.text-muted,
.input-description-block,
.summary-text { color: var(--text-muted) !important; }

.card,
.dashboard-card,
.analytics-card,
.rating-card,
.information-card,
.contact-container-left,
.contact-container-right,
.link-share-window,
.qr-window {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none !important;
}

.card { padding: 22px; gap: 18px; }
.dark .card { box-shadow: none; }
.card-header { gap: 10px; }
.card-header h3 { font-size: 17px; }
.icon-container,
.icon-box {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #b9b5ff;
    background: rgba(112,104,255,.1);
}

.input,
.solid-input,
select,
textarea.input,
.color-input,
.iconized-select-container {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--foreground);
    background: var(--surface-input);
    box-shadow: none;
}

.input:hover:not(:disabled),
.input:focus-visible,
select:hover,
textarea.input:hover { border-color: rgba(129,119,255,.72); box-shadow: none; }
.text-label { color: #a7afbf !important; font-size: 13px !important; }
.text-label i { color: #8e87ff !important; }

.profile-main { gap: 24px !important; align-items: flex-start; }
.editor-inner { gap: 14px !important; }
.editor-inner > .card { margin: 0; }
.preview {
    max-width: 360px !important;
    height: min(72vh, 720px) !important;
    top: 24px !important;
    border-radius: 14px;
}
.phone,
.phone .content { border-radius: 14px !important; }
.phone { padding: 4px; border: 1px solid #303849; background: #111721 !important; }
.bottom-lane { z-index: 3; padding-top: 10px; background: linear-gradient(180deg, transparent, #090c12 35%); }
.setting-button { width: min(240px, 100%) !important; border-radius: 8px !important; box-shadow: none !important; }

.nav-wrapper,
.navbar-wrapper nav {
    border: 1px solid var(--glass-border);
    border-radius: 8px !important;
    background: #0b1018 !important;
    box-shadow: none !important;
}
.nav-wrapper .indicator { border-radius: 6px !important; background: rgba(112,104,255,.18) !important; box-shadow: none !important; }

.contacts-container,
.contact-split { gap: 16px !important; }
.contacts-container table,
.smartcoins-table,
.full-leaderboard { border-collapse: collapse; }
.contacts-container tr,
.smartcoins-table tr,
.leaderboard-entry { border-bottom: 1px solid var(--border); }
.contact,
.leaderboard-entry,
.transaction-card { border-radius: 8px !important; background: #101621 !important; box-shadow: none !important; }

.analytics { gap: 16px !important; }
.analytics-section,
.chart-wrapper,
.chart-box,
.dashboard-card { border-color: var(--glass-border) !important; background: var(--surface) !important; box-shadow: none !important; }
.progress-bar,
.geography-bar,
.conversion-funnel-bar { background: #202838 !important; }

.main-smartcoin-page,
.settings,
.contact-view { color: var(--foreground); }
.settings { max-width: 920px !important; }
.transaction-icon,
.trophy-icon { border-radius: 8px !important; }

.modal-content {
    border: 1px solid var(--glass-border);
    border-radius: 12px !important;
    color: var(--foreground);
    background: var(--surface) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.5) !important;
}
.Vue-Toastification__toast { border: 1px solid var(--glass-border); border-radius: 10px; font-family: Inter, sans-serif; }

.mobile-menu-container {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(11,16,24,.96) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
}

/* Personal dashboard */
main.container-main.profile-workspace-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 44px;
}

.profile-dashboard {
    width: min(1040px, calc(100% - 64px));
    margin: 0 auto;
    padding: 32px 0 4px;
}

.profile-dashboard-welcome {
    margin-bottom: 20px;
}

.profile-dashboard-welcome p,
.profile-dashboard-welcome h1,
.profile-dashboard-welcome small { margin: 0; }
.profile-dashboard-welcome p { color: var(--text-muted); font-size: 13px; }
.profile-dashboard-welcome h1 { margin-top: 1px; font-size: 32px !important; font-weight: 650; letter-spacing: -.04em; }
.profile-dashboard-welcome h1 i { color: #e4b454; font-size: .72em; transform: rotate(-12deg); }
.profile-dashboard-welcome small { color: var(--text-muted); font-size: 12px; }

.profile-identity-card {
    min-height: 110px;
    padding: 20px;
    border: 1px solid rgba(128, 101, 255, .27);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 10%, rgba(137, 45, 220, .18), transparent 34%),
        linear-gradient(120deg, #101724, #111521);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.profile-identity-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #395df4, #9e24e8);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}
.profile-identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity-copy { min-width: 0; flex: 1; }
.profile-identity-copy strong,
.profile-identity-copy span,
.profile-identity-copy small { display: block; }
.profile-identity-copy strong { font-size: 18px; font-weight: 650; }
.profile-identity-copy span { margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.profile-identity-copy small { margin-top: 8px; color: #aab4c5; font-size: 11px; }
.profile-identity-copy small i { width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 12px rgba(69,198,138,.55); }

.profile-preview-action {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--foreground);
    background: rgba(255,255,255,.035);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: 12px;
    transition: background .18s ease, border-color .18s ease;
}
.profile-preview-action:hover { border-color: rgba(177,190,214,.3); background: rgba(255,255,255,.07); }
.profile-preview-action .fa-chevron-right { color: var(--text-muted); font-size: 9px; }

.profile-metrics {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.profile-metric-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #0e141e;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    column-gap: 10px;
}
.profile-metric-card { position: relative; color: var(--foreground); text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.profile-metric-card:hover { border-color: rgba(129,119,255,.38); background: #111925; transform: translateY(-2px); }
.profile-metric-card:focus-visible { outline: 2px solid #8177ff; outline-offset: 2px; }
.profile-metric-arrow { position: absolute; right: 14px; bottom: 15px; color: var(--text-muted); font-size: 8px; opacity: 0; transform: translateX(-3px); transition: opacity .2s ease, transform .2s ease; }
.profile-metric-card:hover .profile-metric-arrow,
.profile-metric-card:focus-visible .profile-metric-arrow { opacity: 1; transform: translateX(0); }
.profile-metric-icon {
    width: 36px;
    height: 36px;
    grid-row: span 2;
    border-radius: 10px;
    color: #aaa4ff;
    background: rgba(112,104,255,.14);
    display: grid;
    place-items: center;
}
.profile-metric-label { color: var(--text-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-metric-card strong { font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.profile-metric-card small { grid-column: 1 / -1; margin-top: 10px; color: #7fdcae; font-size: 10px; }

.profile-share-action {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 600;
    cursor: pointer;
}

.profile-completeness-card {
    margin-top: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0e141e;
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-completeness-ring {
    --progress: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: conic-gradient(#7864ff calc(var(--progress) * 1%), #252c3b 0);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    position: relative;
}
.profile-completeness-ring::before { content: ''; position: absolute; inset: 7px; border-radius: inherit; background: #0e141e; }
.profile-completeness-ring strong { z-index: 1; font-size: 16px; }
.profile-completeness-card > div:nth-child(2) { min-width: 0; flex: 1; }
.profile-completeness-card > div > strong { font-size: 14px; }
.profile-completeness-card p { margin: 3px 0 9px; color: var(--text-muted); font-size: 11px; }
.profile-completeness-card > a { color: var(--text-muted); padding: 12px; }
.profile-completeness-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-completeness-tags a { padding: 3px 7px; border-radius: 99px; color: var(--text-muted); background: rgba(255,255,255,.04); font-size: 9px; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.profile-completeness-tags a:hover { color: var(--foreground); background: rgba(129,119,255,.14); }
.profile-completeness-tags a.complete { color: #7fdcae; background: rgba(69,198,138,.09); }
.profile-edit-focus { animation: profile-edit-focus 1.6s ease; scroll-margin-top: 100px; }
@keyframes profile-edit-focus { 0%,100% { box-shadow: none; } 25%,70% { box-shadow: 0 0 0 2px rgba(129,119,255,.65), 0 0 28px rgba(129,119,255,.18); } }

.profile-recent-leads {
    margin-top: 12px;
    padding: 17px 20px 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0e141e;
}
.profile-recent-leads > header { margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-recent-leads > header strong { font-size: 14px; }
.profile-recent-leads > header a { color: #aaa4ff; font-size: 11px; text-decoration: none; }
.profile-lead-row { min-height: 58px; border-top: 1px solid var(--border); color: var(--foreground); display: flex; align-items: center; gap: 11px; text-decoration: none; }
.profile-lead-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; background: #26304a; display: grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 600; }
.profile-lead-row > span:nth-child(2) { min-width: 0; flex: 1; }
.profile-lead-row strong,
.profile-lead-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-lead-row strong { font-size: 12px; }
.profile-lead-row small { color: var(--text-muted); font-size: 10px; }
.profile-lead-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.profile-lead-status { padding: 3px 7px; border-radius: 99px; font-size: 9px; font-style: normal; line-height: 1.2; }
.profile-lead-status.new { color: #ffd17b; background: rgba(255,187,72,.12); }
.profile-lead-status.in_progress { color: #7ca7ff; background: rgba(74,119,234,.14); }
.profile-lead-status.completed { color: #7fdcae; background: rgba(69,198,138,.12); }
.profile-lead-row time { color: var(--text-muted); font-size: 10px; }
.profile-lead-row > i { color: var(--text-muted); font-size: 9px; }
.profile-empty-state { margin: 14px 0 10px; color: var(--text-muted); font-size: 11px; }

.profile-workspace-preview {
    width: min(820px, calc(100% - 64px)) !important;
    max-width: 820px !important;
    margin: 28px auto 0 !important;
    padding: 0 !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0e131c;
    overflow: hidden;
    box-shadow: none;
}

.profile-preview-toolbar {
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.profile-preview-toolbar strong { font-size: 13px; font-weight: 600; }
.profile-preview-toolbar span { color: var(--text-muted); font-size: 11px; }
.profile-preview-toolbar a { color: #aaa4ff; text-decoration: none; font-size: 12px; }
.profile-workspace-preview iframe { width: 100% !important; border: 0 !important; background: white; display: block; }
.profile-workspace-preview .add-apple-wallet { padding: 18px; }

body.premium-light {
    --background: #f3f5f8;
    --surface: #ffffff;
    --surface-background: #ffffff;
    --surface-input: #f3f5f8;
    --glass-surface-background: #ffffff;
    --glass-border: rgba(21, 31, 48, .14);
    --border: #dce1e9;
    --foreground: #141923;
    --foreground-aa: rgba(20, 25, 35, .14);
    --text-muted: #687386;
    --inactive: #8791a1;
    background: var(--background);
}
.premium-light .app-container-wrapper,
.premium-light .container-wrapper { background: var(--background); }
.premium-light .main-header,
.premium-light .side-menu,
.premium-light .side-menu nav { background: #ffffff !important; }
.premium-light .side-menu .router-button { color: #394355; }
.premium-light .side-menu .router-button:hover { color: #141923; background: #f2f4f8; }
.premium-light .side-menu .router-button.primary-gradient-alt,
.premium-light .side-menu .router-button.active { color: #312e81; background: rgba(112,104,255,.11); }
.premium-light button,
.premium-light .button { color: #1a2130; background: #f5f6f9; }
.premium-light button.primary,
.premium-light .button.primary,
.premium-light button.primary-gradient:not(:disabled),
.premium-light .button.primary-gradient:not(:disabled),
.premium-light button.primary-gradient-alt,
.premium-light .button.primary-gradient-alt { color: white; background: linear-gradient(100deg, #5357ef, #7964f4); }
.premium-light .card,
.premium-light .dashboard-card,
.premium-light .analytics-card,
.premium-light .rating-card,
.premium-light .information-card,
.premium-light .contact-container-left,
.premium-light .contact-container-right,
.premium-light .link-share-window,
.premium-light .qr-window,
.premium-light .analytics-section,
.premium-light .chart-wrapper,
.premium-light .chart-box { background: #ffffff !important; }
.premium-light .contact,
.premium-light .leaderboard-entry,
.premium-light .transaction-card { background: #f7f8fa !important; }
.premium-light .phone { background: #e5e8ee !important; }
.premium-light .bottom-lane { background: linear-gradient(180deg, transparent, #f3f5f8 35%); }
.premium-light .nav-wrapper,
.premium-light .navbar-wrapper nav { background: #ffffff !important; }
.premium-light .modal-content { background: #ffffff !important; }
.premium-light .mobile-menu-container { background: rgba(255,255,255,.96) !important; }
.premium-light .profile-dashboard,
.premium-light .profile-identity-card,
.premium-light .profile-metric-card,
.premium-light .profile-completeness-card,
.premium-light .profile-recent-leads,
.premium-light .profile-workspace-preview { background: #ffffff; }
.premium-light .profile-completeness-ring::before { background: #fff; }

@media (max-width: 1100px) {
    .app-container-wrapper { display: flex !important; }
    .container-main,
    .container { width: min(920px, calc(100% - 32px)); margin-top: 20px; }
    .preview { display: none !important; }
    .profile-main { display: block !important; }
    .editor-inner { width: 100%; margin-bottom: 86px; }
    .profile-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .main-header header {
        width: calc(100% - 24px) !important;
        margin: 8px 12px 0 !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 10px !important;
        background: rgba(11,16,24,.94) !important;
    }
    .container-wrapper { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
    body > .topbar { height: 64px; }
    body > .account-layout { min-height: calc(100dvh - 64px); }
    body > .account-layout .leads-page-shell { width: min(100% - 24px, 760px); margin: 18px auto; }
    .profile-dashboard { width: min(760px, calc(100% - 32px)); padding-top: 24px; }
    .profile-workspace-preview { width: min(760px, calc(100% - 32px)) !important; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .container-main,
    .container { width: calc(100% - 24px); margin-top: 14px; }
    .card { padding: 17px; border-radius: 9px; }
    main h1,
    .container-main h1,
    .top-header__heading h1 { font-size: 27px !important; }
    .form-group { gap: 12px; }
    .mobile-menu-container {
        width: calc(100% - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
    .profile-dashboard { width: calc(100% - 24px); padding-top: 20px; }
    .profile-dashboard-welcome h1 { font-size: 28px !important; }
    .profile-identity-card { padding: 16px; }
    .profile-preview-action span { display: none; }
    .profile-preview-action { width: 42px; padding: 0; justify-content: center; }
    .profile-preview-action .fa-chevron-right { display: none; }
    .profile-metrics { grid-template-columns: 1fr 1fr; }
    .profile-metric-card { padding: 13px; }
    .profile-completeness-card { padding: 16px; }
    .profile-completeness-card p { display: none; }
    .profile-workspace-preview { width: calc(100% - 24px) !important; margin-top: 18px !important; }
    .profile-preview-toolbar { min-height: 54px; padding: 0 14px; }
}

@media (max-width: 360px) {
    .main-header header { width: calc(100% - 16px) !important; margin-inline: 8px !important; }
    .profile-dashboard,
    .profile-workspace-preview { width: calc(100% - 16px) !important; }
    .profile-metrics { grid-template-columns: 1fr; }
    .profile-identity-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
    .profile-identity-copy strong,
    .profile-identity-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .profile-metric-card { min-height: 96px; }
}

@supports (padding: max(0px)) {
    @media (max-width: 900px) {
        .main-header { padding-top: env(safe-area-inset-top, 0px); }
    }
}
