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

html { font-size: 17px; }

:root {
    --accent: #ffffff;
    --font-sans:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --font-display: 'Rajdhani', sans-serif;
    --font-serif:   'Playfair Display', serif;
}

::selection {
    background: color-mix(in srgb, var(--accent, #ffffff) 45%, #0b0b0d);
    color: #ffffff;
    text-shadow: none;
}

[data-font="mono"]    { --profile-font: var(--font-mono); }
[data-font="display"] { --profile-font: var(--font-display); }
[data-font="serif"]   { --profile-font: var(--font-serif); }
[data-font="inter"],
:root                 { --profile-font: var(--font-sans); }

[data-theme="dark"] {
    --pg-bg:         #000;
    --pg-card:       rgba(10, 10, 10, 0.82);
    --pg-text:       #ffffff;
    --pg-sub:        #555;
    --pg-btn-bg:     rgba(13, 13, 13, 0.9);
    --pg-btn-border: #1e1e1e;
    --pg-btn-hover:  rgba(20, 20, 20, 0.95);
    --pg-btn-text:   #ffffff;
    --pg-shadow:     none;
}

[data-theme="dark"] body {
    background-image: url('/img/backgrond.webp?v=3');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-color: #000;
}

[data-theme="dark"] .profile-card {
    border: 1px solid var(--clr-card-border, #1a1a1a);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

[data-theme="glass"] {
    --pg-bg:         linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --pg-card:       rgba(255,255,255,0.05);
    --pg-text:       #ffffff;
    --pg-sub:        rgba(255,255,255,0.5);
    --pg-btn-bg:     rgba(255,255,255,0.08);
    --pg-btn-border: rgba(255,255,255,0.15);
    --pg-btn-hover:  rgba(255,255,255,0.14);
    --pg-btn-text:   #ffffff;
    --pg-shadow:     0 8px 32px rgba(0,0,0,0.3);
}

[data-theme="neon"] {
    --pg-bg:         #050505;
    --pg-card:       transparent;
    --pg-text:       #fff;
    --pg-sub:        #555;
    --pg-btn-bg:     transparent;
    --pg-btn-border: var(--accent);
    --pg-btn-hover:  rgba(255,255,255,0.04);
    --pg-btn-text:   var(--accent);
    --pg-shadow:     0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

[data-theme="minimal"] {
    --pg-bg:         #f5f5f5;
    --pg-card:       #ffffff;
    --pg-text:       #111;
    --pg-sub:        #888;
    --pg-btn-bg:     #ffffff;
    --pg-btn-border: #e0e0e0;
    --pg-btn-hover:  #f9f9f9;
    --pg-btn-text:   #111;
    --pg-shadow:     0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="gradient"] {
    --pg-bg:         linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --pg-card:       rgba(0,0,0,0.15);
    --pg-text:       #fff;
    --pg-sub:        rgba(255,255,255,0.65);
    --pg-btn-bg:     rgba(255,255,255,0.12);
    --pg-btn-border: rgba(255,255,255,0.25);
    --pg-btn-hover:  rgba(255,255,255,0.2);
    --pg-btn-text:   #fff;
    --pg-shadow:     0 4px 20px rgba(0,0,0,0.2);
}

[data-theme="midnight"] {
    --pg-bg:         linear-gradient(160deg, #0f0c29, #302b63, #24243e);
    --pg-card:       rgba(255,255,255,0.04);
    --pg-text:       #e0e0e0;
    --pg-sub:        #8080aa;
    --pg-btn-bg:     rgba(255,255,255,0.06);
    --pg-btn-border: rgba(255,255,255,0.12);
    --pg-btn-hover:  rgba(255,255,255,0.1);
    --pg-btn-text:   #e0e0e0;
    --pg-shadow:     0 4px 24px rgba(0,0,0,0.4);
}

[data-theme="glass-theme"] {
    --pg-bg:
        radial-gradient(ellipse 55% 45% at 18% 22%, rgba(124,106,255,0.42), transparent 70%),
        radial-gradient(ellipse 50% 42% at 84% 18%, rgba(255,106,176,0.32), transparent 70%),
        radial-gradient(ellipse 60% 50% at 62% 92%, rgba(64,196,186,0.30), transparent 72%),
        linear-gradient(160deg, #0d0f1a 0%, #0a0b12 100%);
    --pg-card:       rgba(255,255,255,0.07);
    --pg-text:       #ffffff;
    --pg-sub:        rgba(255,255,255,0.62);
    --pg-btn-bg:     rgba(255,255,255,0.08);
    --pg-btn-border: rgba(255,255,255,0.18);
    --pg-btn-hover:  rgba(255,255,255,0.14);
    --pg-btn-text:   #ffffff;
    --pg-shadow:     0 10px 28px rgba(0,0,0,0.28);
    --glass-sheen:   linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0) 42%);
    --glass-tint:    linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.03) 62%);
    --glass-edge:    rgba(255,255,255,0.18);
    --glass-blur:    blur(24px) saturate(170%);
    --glass-lift:    inset 0 1px 0 rgba(255,255,255,0.26), inset 0 -1px 0 rgba(255,255,255,0.04);
}
[data-theme="glass-theme"] body {
    background-attachment: fixed;
    background-color: #0a0b12;
}

html, body {
    height: 100%;
    font-family: var(--profile-font, var(--font-sans));
}

body {
    background: var(--pg-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
    overflow-x: hidden;
}

#fx-canvas,
#vanta-bg,
#sparticles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.profile-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-layout="card"] .profile-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 1.75rem;
    border-radius: 20px;
    text-align: left;
}

[data-layout="card"] .avatar-wrap {
    flex-shrink: 0;
    align-self: flex-start;
}

[data-layout="card"] .avatar,
[data-layout="card"] .avatar-initials {
    width: 82px;
    height: 82px;
}

[data-layout="card"] .avatar-initials {
    font-size: 2rem;
}

[data-layout="card"] .profile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

[data-layout="card"] .identity {
    align-items: flex-start;
    text-align: left;
}

[data-layout="card"] .badges-row {
    justify-content: flex-start;
}

[data-layout="card"] .profile-location {
    justify-content: flex-start;
}

[data-layout="card"] .dp-widget {
    align-self: flex-start;
    margin: 0;
}

[data-layout="card"] .profile-badges-row {
    justify-content: flex-start;
}

[data-layout="card"] .social-icons-row {
    justify-content: flex-start;
}

[data-layout="compact"] .profile-card {
    gap: 0.85rem;
    padding: 1.75rem 1.5rem;
}
[data-layout="compact"] .profile-body {
    gap: 0.5rem;
}
[data-layout="compact"] .avatar,
[data-layout="compact"] .avatar-initials {
    width: 64px;
    height: 64px;
}
[data-layout="compact"] .avatar-initials {
    font-size: 1.6rem;
}
[data-layout="compact"] .display-name {
    font-size: calc(1.15 * var(--profile-text-unit, 1rem));
}
[data-layout="compact"] .bio {
    font-size: calc(0.78 * var(--profile-text-unit, 1rem));
}

[data-layout="hero"] .profile-card {
    gap: 1.9rem;
    padding: 3.25rem 2.5rem;
}
[data-layout="hero"] .profile-body {
    gap: 1.2rem;
}
[data-layout="hero"] .avatar,
[data-layout="hero"] .avatar-initials {
    width: 132px;
    height: 132px;
}
[data-layout="hero"] .avatar-initials {
    font-size: 3.2rem;
}
[data-layout="hero"] .display-name {
    font-size: calc(2 * var(--profile-text-unit, 1rem));
}

[data-layout="sidebar"] .profile-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 2rem;
    text-align: left;
}
[data-layout="sidebar"] .avatar-wrap {
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 1.5rem;
    padding-right: 1.75rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}
[data-layout="sidebar"] .avatar,
[data-layout="sidebar"] .avatar-initials {
    width: 104px;
    height: 104px;
}
[data-layout="sidebar"] .avatar-decoration {
    left: calc(50% - 0.875rem);
}
[data-layout="sidebar"] .avatar-initials {
    font-size: 2.5rem;
}
[data-layout="sidebar"] .profile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}
[data-layout="sidebar"] .bio { text-align: left; }
[data-layout="sidebar"] .profile-location { justify-content: flex-start; }
[data-layout="sidebar"] .dp-widget { align-self: flex-start; margin: 0; }
[data-layout="sidebar"] .profile-badges-row { justify-content: flex-start; }
[data-layout="sidebar"] .social-icons-row { justify-content: flex-start; }

[data-layout="inline"] .profile-card {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 1.35rem 1.5rem;
    border-radius: 16px;
    text-align: left;
}
[data-layout="inline"] .avatar-wrap {
    flex-shrink: 0;
}
[data-layout="inline"] .avatar,
[data-layout="inline"] .avatar-initials {
    width: 52px;
    height: 52px;
}
[data-layout="inline"] .avatar-initials {
    font-size: 1.3rem;
}
[data-layout="inline"] .profile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
}
[data-layout="inline"] .display-name { font-size: calc(1.15 * var(--profile-text-unit, 1rem)); }
[data-layout="inline"] .bio { text-align: left; font-size: calc(0.76 * var(--profile-text-unit, 1rem)); }
[data-layout="inline"] .profile-location { justify-content: flex-start; }
[data-layout="inline"] .dp-widget { align-self: flex-start; margin: 0; }
[data-layout="inline"] .profile-badges-row { justify-content: flex-start; }
[data-layout="inline"] .social-icons-row { justify-content: flex-start; }

[data-layout="banner"] .profile-card {
    position: relative;
    padding-top: 11rem;
    overflow: hidden;
}
[data-layout="banner"] .profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 110px;
    background: linear-gradient(135deg, var(--accent, #b7bdc4), rgba(255,255,255,0.06));
    z-index: 0;
}
[data-layout="banner"] .banner-image-layer {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 110px;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
[data-layout="banner"] .avatar-wrap {
    position: absolute;
    top: 110px;
    z-index: 2;
}
[data-layout="banner"] .avatar-wrap.banner-avatar-center { left: 50%; transform: translate(-50%, -50%); }
[data-layout="banner"] .avatar-wrap.banner-avatar-left { left: 2rem; transform: translateY(-50%); }
[data-layout="banner"] .avatar-wrap.banner-avatar-right { left: auto; right: 2rem; transform: translateY(-50%); }
[data-layout="banner"] .avatar,
[data-layout="banner"] .avatar-initials {
    border: 4px solid var(--clr-card-bg, var(--pg-card));
}
[data-layout="banner"] .profile-body {
    position: relative;
    z-index: 1;
}
[data-layout="banner"] .display-name.banner-align-left,
[data-layout="banner"] .username-fx-wrap.banner-align-left,
[data-layout="banner"] .bio.banner-align-left,
[data-layout="banner"] .username-row.banner-align-left,
[data-layout="banner"] .profile-badges-row.banner-align-left,
[data-layout="banner"] .profile-location.banner-align-left {
    align-self: flex-start;
    text-align: left;
}
[data-layout="banner"] .display-name.banner-align-right,
[data-layout="banner"] .username-fx-wrap.banner-align-right,
[data-layout="banner"] .bio.banner-align-right,
[data-layout="banner"] .username-row.banner-align-right,
[data-layout="banner"] .profile-badges-row.banner-align-right,
[data-layout="banner"] .profile-location.banner-align-right {
    align-self: flex-end;
    text-align: right;
}
[data-layout="banner"] .display-name.banner-align-center,
[data-layout="banner"] .username-fx-wrap.banner-align-center,
[data-layout="banner"] .bio.banner-align-center,
[data-layout="banner"] .username-row.banner-align-center,
[data-layout="banner"] .profile-badges-row.banner-align-center,
[data-layout="banner"] .profile-location.banner-align-center {
    align-self: center;
    text-align: center;
}
[data-layout="banner"] .profile-widgets-row.banner-align-left,
[data-layout="banner"] .social-icons-row.banner-align-left {
    justify-content: flex-start;
}
[data-layout="banner"] .profile-widgets-row.banner-align-right,
[data-layout="banner"] .social-icons-row.banner-align-right {
    justify-content: flex-end;
}
[data-layout="banner"] .profile-widgets-row.banner-align-center,
[data-layout="banner"] .social-icons-row.banner-align-center {
    justify-content: center;
}
[data-layout="banner"] .profile-widgets-row.banner-align-left .dp-widget,
[data-layout="banner"] .profile-widgets-row.banner-align-right .dp-widget {
    margin: 0;
}
[data-layout="banner"] .profile-views-badge {
    z-index: 5;
}
[data-layout="banner"] .profile-views-top-left,
[data-layout="banner"] .profile-views-top-right,
[data-layout="banner"] .profile-uid-top-left,
[data-layout="banner"] .profile-uid-top-right {
    top: 7.5rem;
}
[data-layout="banner"] .profile-uid-badge { z-index: 5; }
[data-layout="banner"] .profile-uid-badge.is-stacked.profile-uid-top-left,
[data-layout="banner"] .profile-uid-badge.is-stacked.profile-uid-top-right {
    top: 9.7rem;
}

[data-layout="split"] .profile-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    row-gap: 0.6rem;
    align-items: start;
    text-align: left;
    width: 100%;
}
[data-layout="split"] .display-name,
[data-layout="split"] .username-row {
    grid-column: 1 / -1;
    text-align: center;
}
[data-layout="split"] .profile-badges-row {
    grid-column: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-self: start;
}
[data-layout="split"] .bio,
[data-layout="split"] .profile-location {
    grid-column: 2;
    text-align: left;
}
[data-layout="split"] .profile-location {
    justify-content: flex-start;
}
[data-layout="split"] .profile-widgets-row,
[data-layout="split"] .profile-main {
    grid-column: 1 / -1;
}

.pcl-body {
    align-items: stretch;
}
.pcl-row {
    display: flex;
    width: 100%;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: center;
}
.pcl-row:not(.pcl-row-pair) {
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.pcl-row:not(.pcl-row-pair) .pcl-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.pcl-row-pair .pcl-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card {
    position: relative;
    width: 100%;
    background: var(--clr-card-bg, var(--pg-card));
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    overflow: visible !important;
}

html[data-layout="portfolio"],
html[data-layout="portfolio"] body { height: 100%; min-height: 100%; overflow: hidden; }
html[data-layout="portfolio"] body { justify-content: flex-start; padding: 0; }
html[data-layout="portfolio"] .profile-wrap { width: 100vw; max-width: none; height: 100dvh; align-items: stretch; }
html[data-layout="portfolio"] .profile-card { display: block; flex: 1; min-height: 0; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
html[data-layout="portfolio"] .profile-card > .pc-surface,
html[data-layout="portfolio"] .profile-card > .profile-views-badge,
html[data-layout="portfolio"] .profile-card > .profile-uid-badge { display: none; }
.portfolio-layout, .portfolio-stage { position: relative; width: 100%; height: 100%; min-height: 0; }
.portfolio-stage { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.portfolio-stage::-webkit-scrollbar { display: none; }
.portfolio-page { --pcard-radius: clamp(22px,3vw,34px); position: relative; display: grid; place-items: center; width: 100%; min-height: 100%; min-height: 100dvh; padding: clamp(1.4rem,5vh,3.5rem) clamp(3.4rem,8vw,8rem); scroll-snap-align: start; scroll-snap-stop: always; isolation: isolate; }
.portfolio-page::before { content: ""; position: absolute; z-index: -1; inset: 8% 18%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb,var(--accent) 8%,transparent), transparent 68%); filter: blur(30px); pointer-events: none; }
.portfolio-page-card { position: relative; display: flex; flex-direction: column; gap: 1.5rem; width: min(100%, 780px); max-height: calc(100svh - 5rem); min-width: 0; padding: clamp(1.4rem,4vw,3rem); overflow: auto; overscroll-behavior: contain; color: var(--pg-text); background: color-mix(in srgb,var(--clr-card-bg,var(--pg-card)) 94%,transparent); border: 1px solid var(--clr-card-border,var(--pg-btn-border)); border-radius: var(--pcard-radius); box-shadow: 0 26px 80px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.045); backdrop-filter: blur(20px) saturate(125%); -webkit-backdrop-filter: blur(20px) saturate(125%); scrollbar-width: thin; scrollbar-color: color-mix(in srgb,var(--pg-text) 22%,transparent) transparent; }
.portfolio-page-card { opacity: .76; scale: .985; transition: opacity .42s ease,scale .42s cubic-bezier(.2,.8,.2,1); }
.portfolio-page.is-current .portfolio-page-card { opacity: 1; scale: 1; }
.portfolio-page-card::-webkit-scrollbar { width: 5px; }
.portfolio-page-card::-webkit-scrollbar-thumb { background: color-mix(in srgb,var(--pg-text) 22%,transparent); border-radius: 99px; }
.portfolio-home-card { width: min(100%, 900px); min-height: min(430px,76svh); justify-content: center; padding: clamp(1.6rem,5vw,4rem); }
.portfolio-meta { position: absolute; inset-block-start: 1.1rem; inset-inline-end: 1.1rem; display: flex; align-items: center; gap: .45rem; }
.portfolio-meta .profile-views-badge, .portfolio-meta .profile-uid-badge { position: relative; inset: auto; top: auto; right: auto; bottom: auto; left: auto; font-size: .62rem; }
.portfolio-identity-row { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem,4vw,2.7rem); min-width: 0; }
.portfolio-identity-row > .avatar-wrap { flex: 0 0 auto; }
.portfolio-identity { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 0; text-align: start; }
.portfolio-identity .display-name, .portfolio-identity .username-row, .portfolio-identity .profile-badges-row { text-align: start; justify-content: flex-start; }
.portfolio-home-cue { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: 1rem; color: var(--pg-sub); font-size: .74rem; letter-spacing: .02em; }
.portfolio-home-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: portfolio-cue 1.8s ease-in-out infinite; }
@keyframes portfolio-cue { 0%,100% { transform: translateY(-2px); opacity: .55; } 50% { transform: translateY(3px); opacity: 1; } }
.portfolio-page-heading { display: grid; gap: .65rem; }
.portfolio-page-heading h1 { color: var(--pg-text); font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.portfolio-page-content { --pg-content-max: min(58svh,680px); display: grid; gap: 1rem; max-height: var(--pg-content-max); overflow: auto; overscroll-behavior: contain; padding-inline-end: .25rem; scrollbar-width: thin; }
.portfolio-page-content > .profile-widgets-row { justify-content: flex-start; }
.portfolio-page-content > .profile-main { width: 100%; }
.portfolio-page-content .social-icons-row { justify-content: flex-start; }
.portfolio-page-content .bio { max-width: 70ch; text-align: start; }
.portfolio-page-content .profile-location { justify-self: start; }
.portfolio-page-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.portfolio-page-chips .profile-location, .portfolio-page-chips .profile-uid-chip { justify-self: start; margin: 0; }

.portfolio-page-widgets-card { overflow: visible; padding-bottom: clamp(1.8rem,4vw,2.5rem); }
.portfolio-page-widgets-card > .portfolio-page-content { min-height: 0; }
.portfolio-language-icons { position: absolute; z-index: 3; inset-block-end: 0; left: 50%; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(8px,1.1vw,13px); width: max-content; max-width: calc(100% - 2rem); padding: 0 .35rem; transform: translate(-50%,50%); pointer-events: none; }
.portfolio-language-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid color-mix(in srgb,var(--pg-text) 18%,transparent); border-radius: 13px; background: color-mix(in srgb,var(--clr-card-bg,var(--pg-card)) 88%,transparent); box-shadow: 0 7px 20px #0003,inset 0 1px 0 color-mix(in srgb,var(--pg-text) 12%,transparent); backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%); transition: transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s,background .2s,box-shadow .2s; }
.portfolio-language-icon img { display: block; width: 23px; height: 23px; object-fit: contain; filter: drop-shadow(0 2px 5px #0006); }
.portfolio-language-icon:hover { transform: translateY(-3px) scale(1.06); border-color: color-mix(in srgb,var(--pg-text) 38%,transparent); background: color-mix(in srgb,var(--clr-card-bg,var(--pg-card)) 98%,transparent); box-shadow: 0 10px 24px #0005,inset 0 1px 0 color-mix(in srgb,var(--pg-text) 17%,transparent); }

.portfolio-links-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; width: 100%; max-height: min(62svh,720px); overflow: auto; overscroll-behavior: contain; padding: 2px; scrollbar-width: thin; }
.portfolio-link-item.social-icon-btn { display: grid; grid-template-columns: 46px minmax(0,1fr) 22px; align-items: center; gap: 13px; width: 100%; height: auto; min-height: 72px; margin: 0; padding: 11px 14px; border: 1px solid color-mix(in srgb,var(--pg-text) 14%,transparent); border-radius: 18px; background: linear-gradient(145deg,color-mix(in srgb,var(--pg-card-bg,#17191e) 94%,transparent),color-mix(in srgb,var(--pg-card-bg,#17191e) 74%,transparent)); color: var(--pg-text); text-align: start; overflow: hidden; transition: transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s,background .2s,box-shadow .2s; }
.portfolio-link-item.social-icon-btn:hover { transform: translateY(-2px); opacity: 1; border-color: color-mix(in srgb,var(--pg-text) 28%,transparent); background: color-mix(in srgb,var(--pg-card-bg,#20232a) 88%,transparent); box-shadow: 0 12px 30px #00000016; }
.portfolio-link-item .portfolio-link-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb,var(--pg-text) 14%,transparent); border-radius: 14px; background: color-mix(in srgb,var(--pg-text) 6%,transparent); color: var(--clr-link-icon,var(--pg-text)); }
.portfolio-link-item .portfolio-link-icon svg { width: 23px; height: 23px; }
.portfolio-link-copy { display: grid; gap: 5px; min-width: 0; }
.portfolio-link-copy strong { overflow: hidden; color: var(--pg-text); font-size: 13px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-link-copy > span { overflow: hidden; color: var(--pg-sub); font-family: var(--font-mono); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-link-arrow { display: grid; place-items: center; width: 22px; height: 22px; color: var(--pg-sub); transition: color .18s,translate .18s; }
.portfolio-link-arrow svg { width: 17px; height: 17px; }
.portfolio-link-item:hover .portfolio-link-arrow { color: var(--pg-text); translate: 2px 0; }
.portfolio-link-item .sib-tooltip { display: none; }
@media(max-width:640px) { .portfolio-links-list { grid-template-columns: 1fr; gap: 9px; } .portfolio-link-item.social-icon-btn { min-height: 66px; padding: 9px 11px; border-radius: 15px; } .portfolio-link-item .portfolio-link-icon { width: 41px; height: 41px; border-radius: 13px; } .portfolio-language-icons { justify-content: space-around; gap: 0; width: calc(100% - 1rem); max-width: none; padding: 0; } .portfolio-language-icon { width: 18px; height: 21px; border-radius: 6px; } .portfolio-language-icon img { width: 14px; height: 14px; } }
@media(prefers-reduced-motion:reduce) { .portfolio-language-icon,.portfolio-link-item.social-icon-btn,.portfolio-link-arrow { transition: none; } .portfolio-language-icon:hover,.portfolio-link-item.social-icon-btn:hover { transform: none; } }
.portfolio-custom-copy { max-width: 68ch; color: var(--pg-text); font-size: calc(.95 * var(--profile-text-unit,1rem)); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }

.portfolio-rich { display: grid; gap: .85em; max-width: 68ch; color: var(--pg-text); font-size: calc(.95 * var(--profile-text-unit,1rem)); line-height: 1.8; overflow-wrap: anywhere; }
.portfolio-rich > * { margin: 0; min-width: 0; }
.portfolio-rich p, .portfolio-rich h2, .portfolio-rich h3, .portfolio-rich blockquote, .portfolio-rich li { white-space: pre-wrap; }
.portfolio-rich p:empty { min-height: 1em; }
.portfolio-rich h2 { margin-top: .35em; font-size: 1.45em; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.portfolio-rich h3 { margin-top: .2em; font-size: 1.15em; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; }
.portfolio-rich strong { font-weight: 700; }
.portfolio-rich a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb,var(--accent) 45%,transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: text-decoration-color .18s ease, color .18s ease; }
.portfolio-rich a:hover { text-decoration-color: currentColor; }
.portfolio-rich a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.portfolio-rich code { padding: .12em .38em; border-radius: 6px; background: color-mix(in srgb,var(--pg-text) 10%,transparent); font-family: var(--font-mono,ui-monospace,monospace); font-size: .86em; }
.portfolio-rich pre { margin: 0; padding: .9em 1.05em; overflow-x: auto; border: 1px solid color-mix(in srgb,var(--pg-text) 11%,transparent); border-radius: 12px; background: color-mix(in srgb,#000 28%,transparent); line-height: 1.6; white-space: pre; }
.portfolio-rich pre code { padding: 0; background: none; font-size: .84em; }
.portfolio-rich blockquote { padding: .15em 0 .15em 1em; border-inline-start: 3px solid var(--accent); color: color-mix(in srgb,var(--pg-text) 82%,transparent); font-style: italic; }
.portfolio-rich ul, .portfolio-rich ol { display: grid; gap: .3em; padding-inline-start: 1.35em; }
.portfolio-rich li::marker { color: var(--accent); }
.portfolio-rich hr { width: 100%; height: 1px; border: 0; background: color-mix(in srgb,var(--pg-text) 16%,transparent); margin: .4em 0; }
.portfolio-rich .prt-mark { padding: .05em .28em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.portfolio-rich .prt-figure { margin: .2em 0; }
.portfolio-rich .prt-figure img { display: block; max-width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.portfolio-rich .prt-w-s img { width: min(100%,240px); }
.portfolio-rich .prt-w-m img { width: min(100%,420px); }
.portfolio-rich .prt-w-l img { width: 100%; }
.portfolio-rich .prt-figure[data-align="center"] img { margin-inline: auto; }
.portfolio-rich .prt-figure[data-align="right"] img { margin-inline-start: auto; }

.portfolio-corner-meta { position: fixed; z-index: 21; left: clamp(12px,2.3vw,28px); bottom: clamp(12px,2.6vh,26px); display: flex; align-items: center; gap: .55rem; max-width: calc(100vw - 2 * clamp(12px,2.3vw,28px)); min-width: 0; padding: 0; background: none; border: 0; text-shadow: 0 1px 6px rgba(0,0,0,.55); font-family: var(--font-mono); font-size: .66rem; line-height: 1.2; }
.portfolio-corner-meta .profile-location,
.portfolio-corner-meta .profile-views-badge { position: static; inset: auto; flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: inherit; font-weight: 600; }
.portfolio-corner-meta .profile-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-corner-meta .profile-views-badge { flex-shrink: 0; }
.portfolio-corner-meta .profile-location:hover { background: none; border: 0; }
.portfolio-corner-meta .profile-location:focus-visible,
.portfolio-corner-meta .profile-views-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pcm-sep { flex: 0 0 auto; color: color-mix(in srgb,var(--pg-text,#fff) 36%,transparent); font-family: system-ui, sans-serif; }
@media (max-width: 640px) {
  .portfolio-corner-meta { font-size: .62rem; }
}

.profile-views-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--clr-views, var(--pg-sub));
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.profile-views-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.profile-views-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
}
.profile-views-top-left     { top: 0.9rem; left: 0.9rem; }
.profile-views-top-right    { top: 0.9rem; right: 0.9rem; }
.profile-views-bottom-left  { bottom: 0.9rem; left: 0.9rem; }
.profile-views-bottom-right { bottom: 0.9rem; right: 0.9rem; }

.profile-uid-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--clr-views, var(--pg-sub));
    backdrop-filter: blur(6px);
    white-space: nowrap;
}
.profile-uid-value { line-height: 1; }
.profile-uid-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
}
.profile-uid-top-left     { top: 0.9rem; left: 0.9rem; }
.profile-uid-top-right    { top: 0.9rem; right: 0.9rem; }
.profile-uid-bottom-left  { bottom: 0.9rem; left: 0.9rem; }
.profile-uid-bottom-right { bottom: 0.9rem; right: 0.9rem; }

.profile-uid-badge.is-stacked.profile-uid-top-left,
.profile-uid-badge.is-stacked.profile-uid-top-right    { top: 3.1rem; }
.profile-uid-badge.is-stacked.profile-uid-bottom-left,
.profile-uid-badge.is-stacked.profile-uid-bottom-right { bottom: 3.1rem; }

.profile-uid-chip {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--clr-views, var(--pg-sub));
    margin-top: 0.3rem;
    opacity: 0.75;
}

.profile-uid-inline {
    font-family: var(--font-mono);
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--clr-views, var(--pg-sub));
    opacity: 0.7;
    direction: ltr;
    unicode-bidi: isolate;
}

.profile-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 118%;
    height: 118%;
    pointer-events: none;
    z-index: 2;
    object-fit: contain;
}

.avatar, .avatar-initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pg-btn-border);
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pg-btn-bg);
    color: var(--pg-text);
    font-size: 2.5rem;
    font-weight: 700;
}

.identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.display-name {
    font-size: calc(1.6 * var(--profile-text-unit, 1rem));
    font-weight: 700;
    color: var(--clr-display-name, var(--pg-text));
    letter-spacing: 0.01rem;
    line-height: 1.2;
}

.display-name[style*="position: absolute"] {
    white-space: nowrap !important;
    overflow: visible !important;
    min-width: auto !important;
    text-align: center !important;
}

[data-theme="neon"] .display-name {
    color: var(--clr-display-name, var(--accent));
    text-shadow: 0 0 30px color-mix(in srgb, var(--clr-display-name, var(--accent)) 50%, transparent);
}

.username {
    font-family: var(--font-mono);
    font-size: calc(0.72 * var(--profile-text-unit, 1rem));
    color: var(--clr-username, var(--pg-sub));
    letter-spacing: 0.04rem;
}

.bio {
    font-size: calc(0.88 * var(--profile-text-unit, 1rem));
    color: var(--clr-bio, var(--pg-sub));
    line-height: 1.6;
    max-width: 380px;
    margin-top: 0.1rem;
    position: relative;
    z-index: -9999;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: calc(0.78 * var(--profile-text-unit, 1rem));
    color: var(--pg-sub);
    margin-top: 0.3rem;
    opacity: 0.75;
}
.profile-location svg { flex-shrink: 0; }

.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.link-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--clr-link-bg, var(--pg-btn-bg));
    border: 1px solid var(--clr-link-border, var(--pg-btn-border));
    border-radius: 14px;
    padding: 0.95rem 1.25rem;
    color: var(--clr-link-text, var(--pg-btn-text));
    font-family: inherit;
    font-size: calc(0.92 * var(--profile-text-unit, 1rem));
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pg-shadow, none);
}

.link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.link-btn:hover { background: var(--clr-link-hover, var(--pg-btn-hover)); transform: translateY(-2px); }
.link-btn:hover::before { transform: translateX(100%); }
.link-btn:active { transform: translateY(0) scale(0.99); }

[data-theme="neon"] .link-btn:hover {
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent);
    border-color: var(--accent);
}

[data-theme="minimal"] .link-btn:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.link-title { flex: 1; }

.link-arrow {
    width: 16px;
    height: 16px;
    color: var(--pg-sub);
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

.link-btn:hover .link-arrow { transform: translate(2px, -2px); opacity: 1; }

.username-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.profile-badge-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 0.2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--pg-text);
    position: relative;
    overflow: visible;
}

.profile-badges-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0.35rem;
    margin-top:0.2rem;
    position:relative;
    overflow: visible !important;
}

.profile-badge-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(10,10,10,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 999999999;
}

.profile-badge-chip:hover .profile-badge-tooltip {
    opacity: 1;
}
.profile-badge-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-badge-icon, var(--badge-tint, #e5e7eb));
    --badge-icon-color: var(--clr-badge-icon);
}
.profile-badge-icon svg {
    width: 100%;
    height: 100%;
}
.profile-badge-custom-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
}

.profile-badges-row.has-badge-bg { margin-top: 0.45rem; }
.profile-badges-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
        rgba(20,20,24,0.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 14px rgba(0,0,0,0.28);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
}
.profile-badges-pill .profile-badge-chip { margin-top: 0; transition: transform 0.2s ease; }
.profile-badges-pill .profile-badge-chip:hover { transform: translateY(-1px); }
.profile-badges-pill .profile-badge-icon,
.profile-badges-pill .profile-badge-custom-img { width: 17px; height: 17px; }
.profile-badges-pill .profile-badge-icon > span { display: flex; width: 100%; height: 100%; }
.profile-badges-pill .profile-badge-custom-img { display: block; }
@media (prefers-reduced-motion: reduce) {
    .profile-badges-pill .profile-badge-chip:hover { transform: none; }
}

.discord-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.2rem;
    position: relative;
    overflow: visible !important;
    z-index: 999999;
}

.discord-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: default;
    position: relative;
    transition: transform 0.15s;
    z-index: 999999;
    isolation: isolate;
}
.discord-badge:hover { transform: scale(1.25); }
.discord-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 999999999;
}
.dp-badge-wrap:hover .discord-badge-tooltip {
    opacity: 1;
}

.profile-widgets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    width: 100%;
}

[data-layout="card"] .profile-widgets-row,
[data-layout="sidebar"] .profile-widgets-row,
[data-layout="inline"] .profile-widgets-row {
    justify-content: flex-start;
}

.profile-location {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: calc(0.65 * var(--profile-text-unit, 1rem));
    color: var(--clr-location, rgba(255,255,255,0.5));
    background: none;
    border: 0;
    padding: 0;
    margin-top: 0.25rem;
    cursor: default;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    transition: color 0.2s;
}

.profile-location svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.profile-location:hover {
    color: rgba(255,255,255,0.85);
}

.profile-location:hover svg {
    opacity: 1;
}

#global-tooltip { isolation:isolate; }
#global-tooltip::before,#global-tooltip::after { content:""; position:absolute; pointer-events:none; opacity:0; }
#global-tooltip::before { z-index:0; inset:0; border-radius:inherit; }
#global-tooltip::after { z-index:0; inset:-2px; border-radius:inherit; }
#global-tooltip .global-tooltip-text { position:relative; z-index:1; }
#global-tooltip.op-tooltip-shake { animation:opTooltipShake .5s ease-in-out both; }
#global-tooltip[data-tooltip-effect="aurora"]::before { opacity:.72; background-image:linear-gradient(115deg,rgba(116,155,255,.2),transparent 38%,rgba(104,221,205,.24) 70%,transparent); background-size:260% 260%; animation:opTooltipAurora 8s ease-in-out infinite; }
#global-tooltip[data-tooltip-effect="spectrum"]::before { opacity:.82; background-image:linear-gradient(105deg,transparent 20%,rgba(177,196,255,.2) 43%,rgba(127,221,214,.25) 52%,transparent 75%); background-size:240% 100%; animation:opTooltipSheen 5.5s ease-in-out infinite; }
#global-tooltip[data-tooltip-effect="blob"]::before { opacity:.82; inset:-4px; border:3px solid transparent; background:conic-gradient(from var(--op-tooltip-angle),transparent 0 72%,color-mix(in srgb,var(--tooltip-chromatic-color,#ff4b55) 32%,transparent) 80%,color-mix(in srgb,var(--tooltip-chromatic-color,#ff4b55) 72%,transparent) 88%,color-mix(in srgb,var(--tooltip-chromatic-color,#ff4b55) 52%,white) 92%,transparent 100%) border-box; -webkit-mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0); mask-composite:exclude; filter:blur(5px); animation:opTooltipBlobBorder 3.2s linear infinite; }
#global-tooltip[data-tooltip-effect="blob"]::after { opacity:1; inset:-1px; border:1.5px solid transparent; background:conic-gradient(from var(--op-tooltip-angle),transparent 0 72%,color-mix(in srgb,var(--tooltip-chromatic-color,#ff4b55) 55%,transparent) 80%,var(--tooltip-chromatic-color,#ff4b55) 88%,color-mix(in srgb,var(--tooltip-chromatic-color,#ff4b55) 58%,white) 92%,transparent 100%) border-box; -webkit-mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0); mask-composite:exclude; animation:opTooltipBlobBorder 3.2s linear infinite; }
#global-tooltip[data-tooltip-effect="orbit"]::after { opacity:.9; inset:-2px; padding:1px; background:linear-gradient(105deg,#a6b9ff,#86dfd3,#c0c9dc,#a6b9ff); background-size:240% 100%; -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; animation:opTooltipSheen 6s linear infinite; }
#global-tooltip[data-tooltip-effect="glow"]::after { opacity:.55; inset:-4px; border-radius:inherit; background:linear-gradient(120deg,#829bff,#78d9cf,#a3b4e8); filter:blur(8px); animation:opTooltipGlow 3.8s ease-in-out infinite; }
@keyframes opTooltipAurora { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes opTooltipSheen { from { background-position:100% 0; } to { background-position:-100% 0; } }
@property --op-tooltip-angle { syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes opTooltipBlobBorder { to { --op-tooltip-angle:360deg; } }
@keyframes opTooltipEdge { 0%,100% { border-color:#829bff; outline-color:#829bff; box-shadow:0 0 5px #829bff33; } 50% { border-color:#78d9cf; outline-color:#78d9cf; box-shadow:0 0 8px #78d9cf55; } }
@keyframes opTooltipGlow { 0%,100% { box-shadow:0 0 7px rgba(130,155,255,.22),0 0 16px rgba(120,217,207,.12); } 50% { box-shadow:0 0 12px rgba(130,155,255,.4),0 0 24px rgba(120,217,207,.24); } }
@keyframes opTooltipShake { 0% { rotate:0deg; } 25% { rotate:7deg; } 50% { rotate:-7deg; } 75% { rotate:1deg; } 100% { rotate:0deg; } }
@media(prefers-reduced-motion:reduce) {
  #global-tooltip.op-tooltip-shake,#global-tooltip[data-tooltip-effect]::before,#global-tooltip[data-tooltip-effect]::after { animation:none !important; }
}

.profile-main {
    width: 100%;
}

.social-icons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0.5rem 0;
    position: relative;
    overflow: visible !important;
    z-index: 0;
}

.profile-main .social-icons-row {
    grid-column: 1 / -1;
    margin: 0;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s, opacity 0.18s;
    padding: 0;
    position: relative;
    flex-shrink: 0;
    margin: 0 -10px;
    overflow: visible;
}

.social-icon-btn:hover {
    transform: scale(1.15) translateY(-2px);
    opacity: 0.85;
}

.sib-tooltip {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(8,8,8,0.92);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.25rem 0.65rem;
    border-radius: 7px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 999999999;
}
.sib-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(8,8,8,0.92);
}
.social-icon-btn:hover .sib-tooltip {
    opacity: 1;
}

.sib-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--clr-link-icon, inherit);
    position: relative;
    z-index: 0;
}
.sib-inner img { display: block; }

.music-player {
    width: 100%;
    margin-top: 0.55rem;
    background: var(--pg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 0.65rem 0.85rem 0.65rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}
.mp-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-thumb-default { color: rgba(255,255,255,0.28); }

.mp-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.mp-title {
    font-size: 0.78rem;
    color: var(--clr-music-controls, rgba(255,255,255,0.82));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-progress-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mp-time {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: rgba(255,255,255,0.38);
    flex-shrink: 0;
    min-width: 2rem;
}
.mp-bar-wrap {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.mp-bar-wrap:hover { background: rgba(255,255,255,0.16); }
.mp-bar-fill {
    height: 100%;
    background: var(--accent, rgba(255,255,255,0.6));
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}
.mp-bar-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.mp-bar-wrap:hover .mp-bar-dot { opacity: 1; }

.mp-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}
.music-player { --mp-ink: var(--clr-music-controls, var(--accent, rgba(255,255,255,0.65))); }

.mp-ctrl {
    background: none;
    border: none;
    color: var(--mp-ink, rgba(255,255,255,0.65));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    opacity: 0.68;
    transition: opacity 0.16s ease, color 0.16s ease;
}
.mp-ctrl:hover,
.mp-ctrl:focus-visible { opacity: 1; }
.mp-ctrl:active { scale: 0.94; }
.mp-play-btn {
    width: 40px;
    height: 40px;
    opacity: 0.9;
}
.mp-play-btn:hover,
.mp-play-btn:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .mp-ctrl { transition: none; }
    .mp-ctrl:active { scale: none; }
}

@media (max-width: 480px) {
    .profile-card { padding: 2rem 1.25rem; }
    .display-name { font-size: calc(1.35 * var(--profile-text-unit, 1rem)); }
    .link-btn { padding: 0.85rem 1rem; }
    .mp-thumb { width: 44px; height: 44px; }
    .mp-title { font-size: 0.72rem; }
}

.pf-avatar {
    background: rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}

.social-icon-btn.sib-copied .sib-inner {
    scale: 1.14;
    transition: scale 0.18s cubic-bezier(.16,1,.3,1);
}
@media (prefers-reduced-motion: reduce) {
    .social-icon-btn.sib-copied .sib-inner { scale: 1; transition: none; }
}

.portfolio-meta .profile-views-badge,
.portfolio-meta .profile-uid-badge {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

[data-theme="glass-theme"] .pc-surface {
    background:
        var(--glass-sheen),
        var(--glass-tint),
        color-mix(in srgb, var(--clr-card-bg, #12141e) 34%, transparent);
    border: 1px solid var(--clr-card-border, var(--glass-edge));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-lift), 0 30px 80px rgba(0,0,0,0.34), 0 4px 14px rgba(0,0,0,0.16);
}
[data-theme="glass-theme"] .link-btn,
[data-theme="glass-theme"] .music-player,
[data-theme="glass-theme"] :is(.ds-widget, .dp-widget).pf-widget-card:not([class*="pf-sp-"]) {
    background: var(--glass-sheen), var(--glass-tint), rgba(18,20,30,0.30);
    border-color: var(--glass-edge);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-lift), 0 10px 28px rgba(0,0,0,0.24);
}
[data-theme="glass-theme"] .link-btn {
    background: var(--glass-sheen), var(--glass-tint), color-mix(in srgb, var(--clr-link-bg, #12141e) 30%, transparent);
    border: 1px solid var(--clr-link-border, var(--glass-edge));
}
[data-theme="glass-theme"] .link-btn:hover,
[data-theme="glass-theme"] :is(.ds-widget, .dp-widget).pf-widget-card:not([class*="pf-sp-"]):hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), inset 0 -1px 0 rgba(255,255,255,0.05), 0 14px 34px rgba(0,0,0,0.3);
}
[data-theme="glass-theme"] .avatar-initials {
    background: var(--glass-sheen), var(--glass-tint), rgba(18,20,30,0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
[data-theme="glass-theme"] .portfolio-page-card {
    background:
        var(--glass-sheen),
        var(--glass-tint),
        color-mix(in srgb, var(--clr-card-bg, #12141e) 34%, transparent);
    border-color: var(--clr-card-border, var(--glass-edge));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-lift), 0 30px 80px rgba(0,0,0,0.3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="glass-theme"] :is(.pc-surface, .portfolio-page-card, .link-btn, .music-player) { background-color: rgba(18,20,30,0.82); }
}
