:root {
    --home-bg: #040716;
    --home-ink: #edfaff;
    --home-muted: #aab8df;
    --home-soft: rgba(10, 18, 43, 0.76);
    --home-surface: rgba(8, 17, 42, 0.58);
    --home-surface-strong: rgba(11, 22, 55, 0.82);
    --home-border: rgba(255, 73, 103, 0.24);
    --home-shadow: 0 26px 80px rgba(0, 0, 0, 0.4), 0 0 44px rgba(255, 36, 71, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --accent-mint: #ff2447;
    --accent-coral: #ff3df2;
    --accent-gold: #9d6cff;
    --accent-blue: #c70f2f;
    --accent-ink: #eefbff;
    --cyber-bg-deep: #030411;
    --cyber-bg-mid: #090d2a;
    --cyber-cyan: #ff2447;
    --cyber-blue: #c70f2f;
    --cyber-purple: #9d6cff;
    --cyber-magenta: #ff3df2;
    --cyber-glass: rgba(8, 17, 42, 0.58);
    --cyber-glass-strong: rgba(11, 22, 55, 0.84);
    --cyber-line: rgba(255, 73, 103, 0.24);
    --cyber-line-hot: rgba(255, 61, 242, 0.32);
    --cyber-text-soft: #aab8df;
    --cyber-neon-shadow: 0 0 22px rgba(255, 36, 71, 0.22), 0 0 48px rgba(143, 11, 32, 0.16);
}

/* Status section */
.status-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.status-card {
    min-height: 410px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(155%);
    transform-style: preserve-3d;
}

.status-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.34);
}

.discord-status-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.discord-card-banner {
    min-height: 128px;
    background:
        linear-gradient(135deg, rgba(255, 49, 95, 0.78), rgba(156, 92, 255, 0.58), rgba(0, 229, 255, 0.22)),
        rgba(1, 80, 131, 0.55);
    background-position: center;
    background-size: cover;
}

.discord-card-body {
    display: grid;
    gap: 12px;
    padding: 0 22px 22px;
}

.discord-profile-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    margin-top: -34px;
}

.discord-avatar-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    border: 6px solid rgba(8, 8, 12, 0.94);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.discord-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.discord-avatar-decoration {
    position: absolute;
    inset: -18px;
    z-index: 2;
    width: calc(100% + 36px) !important;
    height: calc(100% + 36px) !important;
    max-width: none;
    border-radius: 0 !important;
    pointer-events: none;
}

.discord-status-dot {
    position: absolute;
    right: 2px;
    bottom: 3px;
    width: 19px;
    height: 19px;
    border: 4px solid rgba(8, 8, 12, 0.96);
    border-radius: 50%;
    background: #747f8d;
    z-index: 3;
}

.discord-status-dot.is-online { background: #23a55a; }
.discord-status-dot.is-idle { background: #f0b232; }
.discord-status-dot.is-dnd { background: #f23f43; }
.discord-status-dot.is-offline { background: #80848e; }

.discord-profile-main {
    min-width: 0;
    padding-bottom: 4px;
}

.discord-kicker {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.discord-profile-main h3 {
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-profile-main p {
    display: flex;
    gap: 7px;
    align-items: center;
    overflow: hidden;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-profile-main p span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-profile-main p span[data-discord-clan] {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
}

.discord-status-line,
.discord-activity,
.discord-account-row {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.discord-status-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
}

.discord-status-line span,
.discord-activity span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.discord-status-line strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.discord-custom-status {
    min-height: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
    line-height: 1.45;
}

.discord-profile-note {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.discord-profile-note span,
.discord-meta-row span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.discord-profile-note p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.discord-profile-note small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.54);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-activity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
}

.discord-activity img {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.24);
}

.discord-activity.has-image img {
    display: block;
}

.discord-activity strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-activity small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-badge-row,
.discord-account-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discord-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.discord-meta-row div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.discord-meta-row strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-badge-row img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
}

.discord-account-row {
    padding: 10px;
}

.discord-account-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.76rem;
    font-weight: 800;
}

.status-empty-card {
    display: grid;
    place-items: center;
    min-height: 410px;
    border-style: dashed;
    color: rgba(255, 255, 255, 0.36);
}

.status-empty-card span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}


@media (max-width: 1024px) {
    .status-card-grid {
        grid-template-columns: 1fr;
    }

    .status-card,
    .status-empty-card {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .discord-card-body {
        padding: 0 16px 18px;
    }

    .discord-profile-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .discord-profile-main {
        width: 100%;
    }

    .discord-status-line {
        grid-template-columns: 1fr;
    }
}

/* Discord-like profile popout refinement */
.discord-status-card {
    border-color: rgba(88, 101, 242, 0.22);
    background: #111214;
}

.discord-status-card:hover {
    background: #111214;
}

.discord-card-banner {
    min-height: 120px;
}

.discord-card-body {
    gap: 12px;
    margin: 0 12px 12px;
    padding: 0 16px 16px;
    border-radius: 8px;
    background: #232428;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.discord-profile-row {
    margin-top: -42px;
}

.discord-avatar-wrap {
    width: 96px;
    height: 96px;
    border-color: #232428;
    background: #111214;
}

.discord-status-dot {
    border-color: #232428;
}

.discord-kicker {
    color: #b5bac1;
    font-size: 0.7rem;
}

.discord-profile-main h3 {
    color: #f2f3f5;
    font-size: 1.34rem;
}

.discord-profile-main p {
    color: #b5bac1;
}

.discord-profile-main p span[data-discord-clan],
.discord-account-row span {
    border-color: rgba(255, 255, 255, 0.08);
    color: #dbdee1;
    background: #2b2d31;
}

.discord-badge-row {
    min-height: 34px;
    padding: 8px;
    border-radius: 8px;
    background: #111214;
}

.discord-badge-row img {
    width: 22px;
    height: 22px;
}

.discord-status-line,
.discord-profile-note,
.discord-meta-row div,
.discord-account-row {
    border-color: rgba(255, 255, 255, 0.06);
    background: #111214;
}

.discord-status-line span,
.discord-profile-note span,
.discord-meta-row span {
    color: #b5bac1;
    font-size: 0.7rem;
}

.discord-status-line strong,
.discord-meta-row strong,
.discord-profile-note p {
    color: #dbdee1;
}

.discord-custom-status {
    padding: 10px 12px;
    border-radius: 8px;
    color: #dbdee1;
    background: #111214;
}

.discord-activity {
    display: none !important;
}

@media (max-width: 520px) {
    .discord-card-body {
        margin: 0 10px 10px;
        padding: 0 12px 14px;
    }

    .discord-profile-row {
        margin-top: -38px;
    }
}

/* Dark Discord profile card, rebuilt to match the reference mood */
.status-card-grid {
    align-items: stretch;
}

.discord-status-card {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background:
        radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
        radial-gradient(circle at 78% 66%, rgba(73, 255, 202, 0.055), transparent 30%),
        #030303;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.discord-status-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 58% 40%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.6px),
        radial-gradient(circle at 24% 66%, rgba(255, 255, 255, 0.10) 0 1px, transparent 1.5px);
    background-size: 92px 92px, 130px 130px;
    opacity: 0.22;
}

.discord-card-banner {
    position: relative;
    min-height: 156px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background-color: #050505;
    background-position: center;
    background-size: cover;
    filter: grayscale(1) contrast(1.18) brightness(0.58);
}

.discord-card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
        radial-gradient(circle at 62% 38%, rgba(255, 255, 255, 0.16), transparent 34%);
}

.discord-card-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0 18px 18px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.discord-profile-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    align-items: end;
    margin-top: -50px;
}

.discord-avatar-wrap {
    width: 104px;
    height: 104px;
    border: 7px solid #050505;
    border-radius: 50%;
    background: #050505;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.discord-avatar-wrap > img:first-child {
    filter: grayscale(1) contrast(1.16) brightness(0.92);
}

.discord-avatar-decoration {
    opacity: 0.72;
    filter: grayscale(1) contrast(1.25) brightness(0.92);
}

.discord-status-dot {
    right: 4px;
    bottom: 5px;
    width: 19px;
    height: 19px;
    border-color: #050505;
}

.discord-profile-main {
    padding-bottom: 9px;
}

.discord-kicker {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.46);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0;
}

.discord-profile-main h3 {
    color: #f5f5f5;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 1.42rem;
    line-height: 1.08;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.13);
}

.discord-profile-main p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
}

.discord-profile-main p span[data-discord-clan] {
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.055);
}

.discord-status-line,
.discord-custom-status,
.discord-profile-note,
.discord-meta-row div,
.discord-account-row,
.discord-badge-row {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.discord-status-line {
    margin-top: 2px;
    padding: 10px 11px;
}

.discord-status-line span,
.discord-profile-note span,
.discord-meta-row span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
}

.discord-status-line strong,
.discord-meta-row strong,
.discord-profile-note p,
.discord-custom-status {
    color: rgba(255, 255, 255, 0.80);
}

.discord-badge-row {
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
}

.discord-badge-row img {
    width: 23px;
    height: 23px;
    filter: grayscale(1) contrast(1.05) brightness(1.12) drop-shadow(0 0 12px rgba(255, 255, 255, 0.10));
}

.discord-custom-status {
    padding: 11px 12px;
    font-size: 0.88rem;
}

.discord-profile-note {
    padding: 12px;
}

.discord-profile-note p {
    -webkit-line-clamp: 4;
}

.discord-profile-note small {
    color: rgba(255, 255, 255, 0.42);
}

.discord-meta-row {
    grid-template-columns: 1fr;
}

.discord-meta-row div {
    padding: 10px 11px;
}

.discord-account-row {
    padding: 9px;
}

.discord-account-row span {
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.04);
}

.status-empty-card {
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.045), transparent 28%),
        #030303;
}

@media (max-width: 520px) {
    .discord-card-banner {
        min-height: 134px;
    }

    .discord-card-body {
        padding: 0 14px 16px;
    }

    .discord-profile-row {
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: center;
        margin-top: -48px;
        text-align: center;
    }

    .discord-profile-main {
        width: 100%;
        padding-bottom: 0;
    }

    .discord-profile-main p {
        justify-content: center;
    }
}

/* Discord card reset: colorful, compact, badges-focused */
.discord-status-card {
    min-height: 410px;
    border-color: rgba(88, 101, 242, 0.32);
    background: rgba(18, 19, 24, 0.92);
}

.discord-card-banner {
    min-height: 128px;
    filter: none;
    background-color: #5865f2;
}

.discord-card-banner::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28));
}

.discord-card-body {
    gap: 14px;
    margin: 0 12px 12px;
    padding: 0 16px 18px;
    background: #232428;
}

.discord-avatar-wrap > img:first-child,
.discord-avatar-decoration,
.discord-badge-row img {
    filter: none;
}

.discord-profile-main h3 {
    color: #f2f3f5;
}

.discord-profile-main p {
    color: #b5bac1;
}

.discord-status-line,
.discord-badge-row {
    border-color: rgba(255, 255, 255, 0.08);
    background: #111214;
}

.discord-status-line span {
    color: #b5bac1;
}

.discord-status-line strong {
    color: #dbdee1;
}

.discord-badge-row {
    min-height: 44px;
    align-items: center;
    padding: 9px 10px;
}

.discord-badge-row img {
    width: 25px;
    height: 25px;
}

.discord-custom-status,
.discord-profile-note,
.discord-meta-row,
.discord-account-row,
.discord-activity,
.discord-profile-main p span[data-discord-clan] {
    display: none !important;
}

html.dark {
    --home-bg: #040716;
    --home-ink: #edfaff;
    --home-muted: #aab8df;
    --home-soft: rgba(10, 18, 43, 0.76);
    --home-surface: rgba(8, 17, 42, 0.58);
    --home-surface-strong: rgba(11, 22, 55, 0.82);
    --home-border: rgba(255, 73, 103, 0.24);
    --home-shadow: 0 26px 80px rgba(0, 0, 0, 0.4), 0 0 44px rgba(255, 36, 71, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --accent-ink: #eefbff;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html.js-smooth-scroll {
    scroll-behavior: auto;
}

body.home-page {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--home-bg);
    color: var(--home-ink);
    font-family: "Be Vietnam Pro", "Inter", system-ui, sans-serif;
    letter-spacing: 0;
}

@supports (overflow: clip) {
    html,
    body.home-page {
        overflow-x: clip;
    }
}

body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(120deg, rgba(255, 36, 71, 0.16), transparent 26%),
        linear-gradient(240deg, rgba(255, 92, 108, 0.13), transparent 30%),
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(127, 143, 135, 0.08) 47px 48px),
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(127, 143, 135, 0.08) 47px 48px);
    background-size: auto, auto, 96px 96px, 96px 96px;
    animation: gridDrift 28s linear infinite;
}

body.home-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 0 12%, rgba(244, 197, 74, 0.07) 12% 14%, transparent 14% 46%, rgba(53, 109, 255, 0.08) 46% 48%, transparent 48% 100%);
    mix-blend-mode: normal;
}

a {
    color: inherit;
}

.cursor-spotlight {
    position: fixed;
    left: var(--cursor-x, 50%);
    top: var(--cursor-y, 50%);
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 120px 90px rgba(255, 36, 71, 0.12), 0 0 80px 50px rgba(255, 92, 108, 0.08);
    opacity: 0.85;
    transition: opacity 240ms ease;
}

.ambient-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ambient-grid::before,
.ambient-grid::after {
    content: "";
    position: absolute;
    left: -15%;
    width: 130%;
    height: 22%;
    transform: rotate(-8deg);
    background: linear-gradient(90deg, transparent, rgba(255, 36, 71, 0.13), rgba(255, 92, 108, 0.09), transparent);
    filter: blur(12px);
    animation: ribbonRun 18s ease-in-out infinite;
}

.ambient-grid::before {
    top: 14%;
}

.ambient-grid::after {
    bottom: 11%;
    animation-delay: -7s;
    transform: rotate(7deg);
}

.spider-light-canvas {
    position: fixed;
    inset: 0;
    z-index: 70;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.78;
    mix-blend-mode: screen;
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .spider-light-canvas {
        display: none !important;
    }
}

.heart-rain {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    contain: layout paint style;
}

.falling-heart {
    position: absolute;
    top: -40px;
    left: var(--heart-left);
    color: var(--heart-color);
    font-size: var(--heart-size);
    line-height: 1;
    opacity: 0;
    text-shadow: 0 0 14px currentColor;
    transform: translate3d(0, 0, 0) rotate(var(--heart-rotate));
    animation: heartMeteor var(--heart-duration) linear forwards;
    will-change: transform, opacity;
}

.site-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 68px;
    padding: 10px 12px;
    margin-top: 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-header.not-top,
.site-header:hover {
    background: var(--home-surface);
    border-color: var(--home-border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(150%);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.brand-role {
    color: var(--home-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.header-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--home-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-nav a:hover {
    color: var(--home-ink);
    background: rgba(127, 143, 135, 0.12);
    border-color: rgba(127, 143, 135, 0.18);
    transform: translateY(-1px);
}

.header-nav a.is-active {
    color: var(--home-ink);
    border-color: rgba(255, 36, 71, 0.24);
    background: rgba(255, 36, 71, 0.14);
    box-shadow: inset 0 -2px 0 rgba(255, 36, 71, 0.52), 0 10px 24px rgba(255, 36, 71, 0.08);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 981px) {
    .header-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .header-actions {
        justify-self: end;
    }
}

.theme-toggle,
.music-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface-strong);
    color: var(--home-ink);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover,
.music-toggle:hover,
.music-toggle.is-active {
    transform: translateY(-2px);
    border-color: rgba(255, 36, 71, 0.45);
    background: rgba(255, 36, 71, 0.12);
}

.theme-toggle i,
.music-toggle i {
    font-size: 1.2rem;
    line-height: 1;
}

.music-control {
    position: relative;
    display: grid;
    place-items: center;
}

.volume-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: 236px;
    padding: 14px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-ink);
    background: var(--home-surface-strong);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(24px) saturate(150%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 180ms;
}

.volume-popover::before {
    content: "";
    position: absolute;
    right: 0;
    top: -12px;
    width: 72px;
    height: 12px;
}

.music-control:hover .volume-popover,
.music-control:focus-within .volume-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 500ms, 500ms, 500ms;
}

.volume-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--home-muted);
}

.volume-popover-head output {
    color: var(--home-ink);
    font-variant-numeric: tabular-nums;
}

.volume-slider-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.volume-slider-row i {
    color: var(--accent-mint);
    font-size: 1rem;
    line-height: 1;
}

.volume-slider {
    width: 100%;
    min-width: 0;
    height: 22px;
    accent-color: var(--accent-mint);
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
}

.volume-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 3px solid #06100d;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 36, 71, 0.28);
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #06100d;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 36, 71, 0.28);
}

.home-main {
    display: grid;
    gap: 98px;
    padding: 86px 0 40px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
    gap: 54px;
    align-items: center;
    min-height: 720px;
}

.hero-copy {
    display: grid;
    gap: 26px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--home-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.eyebrow span,
.eyebrow::after {
    content: "";
    width: 38px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-coral), var(--accent-gold));
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--home-ink);
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-title .blue-tick {
    width: 30px;
    min-width: 30px;
    margin: 0;
}

.magic {
    position: relative;
    display: inline-block;
}

.magic-star {
    --size: 22px;
    position: absolute;
    left: var(--star-left, 8%);
    top: var(--star-top, 8%);
    display: block;
    width: var(--size);
    height: var(--size);
    animation: scales 0.75s forwards;
    pointer-events: none;
}

.magic-star svg {
    width: 100%;
    height: 100%;
    animation: rotate 1s linear infinite;
    opacity: 0.72;
}

.magic-star svg path {
    fill: var(--accent-gold);
}

.magic-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--home-ink), var(--accent-mint), var(--accent-coral), var(--accent-blue), var(--home-ink));
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textFlow 8s linear infinite;
}

.hero-title .magic > .magic-text {
    background: linear-gradient(90deg, var(--home-ink), var(--accent-mint), var(--accent-coral), var(--accent-blue), var(--home-ink));
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: textFlow 8s linear infinite;
    white-space: normal;
}

.hero-title .magic > .magic-star > svg > path {
    fill: var(--accent-gold);
}

.hero-lead {
    max-width: 650px;
    color: var(--home-muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-actions,
.social-strip,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-action,
.secondary-action,
.contact-actions a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-action {
    color: #07100d;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-gold));
    box-shadow: 0 18px 44px rgba(255, 36, 71, 0.28);
}

.secondary-action,
.contact-actions a {
    border: 1px solid var(--home-border);
    color: var(--home-ink);
    background: var(--home-surface);
}

.primary-action::after,
.secondary-action::after,
.contact-actions a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, 0.42) 48%, transparent 58% 100%);
    transform: translateX(-120%);
    transition: transform 540ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.contact-actions a:hover {
    transform: translateY(-2px);
}

.primary-action:hover::after,
.secondary-action:hover::after,
.contact-actions a:hover::after {
    transform: translateX(120%);
}

.social-strip {
    padding-top: 4px;
}

.social-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--home-muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(127, 143, 135, 0.09);
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-section .social-strip a,
.hero-section .social-strip a i {
    color: #ffffff !important;
}

.social-strip a:hover {
    color: var(--home-ink);
    border-color: var(--home-border);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 560px;
    transform-style: preserve-3d;
}

#bio,
#images,
#skills,
#projects,
#payment,
#contact {
    scroll-margin-top: 128px;
}

.motion-window {
    position: absolute;
    inset: 0;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--home-soft);
    box-shadow: var(--home-shadow);
}

.motion-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32)),
        repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, 0.08) 12px 13px);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
}

.portrait-stage {
    position: absolute;
    left: 50%;
    top: 49%;
    display: grid;
    place-items: center;
    width: 270px;
    height: 270px;
    transform: translate3d(-50%, -50%, 80px);
    border-radius: 50%;
    animation: portraitFloat 5.5s ease-in-out infinite;
}

.profile-aura {
    position: absolute;
    z-index: 3;
    width: 336px;
    max-width: none;
    opacity: 0.92;
    animation: slowSpin 18s linear infinite;
    pointer-events: none;
}

.profile-avatar {
    position: relative;
    z-index: 2;
    width: 212px;
    height: 212px;
    overflow: hidden;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    opacity: 0.7;
    transform: scale(1.14);
}

.signal-board {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #fff;
    background: rgba(7, 12, 10, 0.58);
    backdrop-filter: blur(20px) saturate(150%);
    transform: translateZ(90px);
}

.signal-board div {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #45ffb0;
    box-shadow: 0 0 0 6px rgba(69, 255, 176, 0.14), 0 0 24px rgba(69, 255, 176, 0.72);
}

#real-time {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.34rem !important;
    line-height: 1;
}

.marquee-track {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    border-block: 1px solid var(--home-border);
    background: linear-gradient(90deg, rgba(255, 36, 71, 0.1), rgba(127, 143, 135, 0.08), rgba(255, 92, 108, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.marquee-inner {
    display: flex;
    gap: 42px;
    width: max-content;
    min-width: max-content;
    padding: 18px 0;
    animation: marquee var(--marquee-duration, 42s) linear infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.marquee-inner span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--home-muted);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.marquee-inner span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-coral);
}

.section-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.section-label {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 8px;
    color: var(--home-muted);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.section-label span {
    display: grid;
    place-items: center;
    min-width: 42px;
    width: fit-content;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-ink);
    background: var(--home-surface);
    white-space: nowrap;
}

.content-panel,
.skill-block,
.image-frame,
.project-card,
.pay-card,
.contact-band {
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(22px) saturate(150%);
}

.scroll-panel {
    --panel-shift: 120px;
    --panel-rotate: 5deg;
    opacity: 0;
    filter: blur(16px) saturate(0.72);
    clip-path: inset(10% 0 10% 0 round 8px);
    transform: translate3d(var(--panel-x), 48px, 0) rotateY(var(--panel-rotate)) scale(0.965);
    transform-origin: var(--panel-origin);
    transition:
        opacity 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        filter 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        clip-path 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        border-color 180ms ease,
        background 180ms ease;
    will-change: transform, opacity, filter, clip-path;
}

.scroll-panel.from-right {
    --panel-x: var(--panel-shift);
    --panel-origin: right center;
}

.scroll-panel.from-left {
    --panel-x: calc(var(--panel-shift) * -1);
    --panel-origin: left center;
    --panel-rotate: -5deg;
}

.scroll-panel.is-visible {
    opacity: 1;
    filter: blur(0) saturate(1);
    clip-path: inset(0 0 0 0 round 8px);
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
}

.scroll-panel.is-leaving {
    opacity: 0;
    filter: blur(20px) saturate(0.65);
    clip-path: inset(16% 0 16% 0 round 8px);
}

.content-panel {
    padding: 34px;
}

.panel-kicker,
.section-label-inline {
    color: var(--accent-mint);
    font-size: 0.9rem;
    font-weight: 800;
}

.bio-panel h2,
.contact-band h2 {
    max-width: 760px;
    margin: 12px 0 18px;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 2.28rem;
    font-weight: 700;
    line-height: 1.15;
}

.bio-copy {
    display: grid;
    gap: 14px;
    max-width: 820px;
    color: var(--home-muted);
    line-height: 1.82;
}

#cham-ngon {
    color: var(--home-ink);
    font-weight: 700;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.metric-grid div {
    min-height: 110px;
    padding: 18px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: rgba(127, 143, 135, 0.08);
}

.metric-grid strong {
    display: block;
    color: var(--home-ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.metric-grid span {
    display: block;
    margin-top: 12px;
    color: var(--home-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.image-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(170px, 1fr));
    gap: 12px;
    min-height: 360px;
}

.image-frame {
    position: relative;
    display: block;
    min-height: 160px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform-style: preserve-3d;
    isolation: isolate;
}

.image-frame::before,
.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.image-frame::before {
    background:
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.74) 100%),
        linear-gradient(135deg, rgba(255, 36, 71, 0.22), transparent 38%, rgba(255, 61, 242, 0.14));
    opacity: 0.9;
}

.image-frame::after {
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    opacity: 0.82;
    transform: translateZ(24px);
}

.image-frame img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.04);
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease;
}

.image-frame:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.image-frame:hover img {
    transform: scale(1.1);
    filter: saturate(1.16) contrast(1.08);
}

.image-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    gap: 6px;
    transform: translateZ(48px);
}

.image-caption strong {
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: clamp(1.08rem, 1.55vw, 1.52rem);
    font-weight: 700;
    line-height: 1.1;
}

.image-caption small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
}

.skills-layout {
    display: grid;
    gap: 16px;
}

.skill-block {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 24px;
}

.skill-block h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-ink);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.skill-block h3 i {
    color: var(--accent-coral);
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-muted);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    font-weight: 800;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 420ms ease, opacity 420ms ease, color 180ms ease, border-color 180ms ease;
}

.skill-pill.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.skill-pill:hover {
    color: var(--home-ink);
    border-color: rgba(255, 36, 71, 0.42);
}

.skill-pill i {
    color: var(--accent-mint);
    font-size: 1.12rem;
}

.skill-pill i[class^="devicon-"],
.skill-pill i[class*=" devicon-"],
.skill-pill i[class^="ri-"],
.skill-pill i[class*=" ri-"] {
    flex: 0 0 1.18rem;
    width: 1.18rem;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 36, 71, 0.34));
}

.project-card-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 410px;
    padding: 40px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(155%);
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.34);
}

.project-card.scroll-panel {
    transition:
        opacity 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        filter 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        clip-path 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        border-color 180ms ease,
        background 180ms ease;
}

.project-index {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
}

.project-card-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 28px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.project-card-icon i {
    font-size: 2.25rem;
}

.project-card h3 {
    margin: 0 0 18px;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 1.72rem;
    font-weight: 700;
}

.project-card p {
    min-height: 112px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    line-height: 1.68;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 154px;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.project-link i {
    font-size: 1.1rem;
}

.project-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pay-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 172px;
    padding: 22px;
    transform-style: preserve-3d;
    transition: border-color 180ms ease;
}

.pay-card.scroll-panel {
    transition:
        opacity 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        filter 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        clip-path 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--panel-delay, 0ms),
        border-color 180ms ease,
        background 180ms ease;
}

.pay-card:hover {
    border-color: rgba(255, 36, 71, 0.42);
}

.bank-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: rgba(127, 143, 135, 0.1);
}

.bank-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.bank-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.bank-info span {
    color: var(--home-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.bank-info strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.18rem;
}

.bank-info button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-ink);
    background: rgba(127, 143, 135, 0.09);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease;
}

.bank-info button:hover {
    border-color: rgba(255, 92, 108, 0.45);
    background: rgba(255, 92, 108, 0.1);
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
}

.contact-band p {
    color: var(--home-muted);
}

.contact-showcase {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 620px;
    padding: 72px max(24px, calc((100vw - 1180px) / 2)) 86px;
    overflow: hidden;
    border-block: none;
    background: none;
    background-color: transparent;
}

.contact-showcase::before,
.contact-showcase::after {
    display: none;
}

.contact-heading,
.contact-card-grid {
    position: relative;
    z-index: 1;
}

.contact-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.contact-heading h2 {
    margin: 10px 0 12px;
    color: #fff;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 2.55rem;
    font-weight: 700;
    line-height: 1.12;
}

.contact-heading p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.contact-card {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 410px;
    padding: 40px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(155%);
}

.contact-card:nth-child(2) {
    transform-style: preserve-3d;
}

.contact-card-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 28px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.contact-card-icon i {
    font-size: 2.25rem;
}

.contact-card h3 {
    margin: 0 0 18px;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 1.72rem;
    font-weight: 700;
}

.contact-card p {
    min-height: 26px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    word-break: break-word;
}

.contact-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 154px;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-card a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.site-footer {
    padding: 44px 0 34px;
    color: var(--home-muted);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--home-ink);
    font-weight: 800;
    text-decoration: none;
}

.music-consent {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: end center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
}

.music-consent.is-visible {
    opacity: 1;
}

.music-consent-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: min(680px, 100%);
    padding: 18px 18px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-ink);
    background: var(--home-surface-strong);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(24px) saturate(150%);
    transform: translateY(18px);
    pointer-events: none;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-consent.is-visible .music-consent-card {
    transform: translateY(0);
    pointer-events: auto;
}

.music-consent-close {
    position: absolute;
    right: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--home-muted);
    background: transparent;
}

.music-consent-close:hover {
    color: var(--home-ink);
    background: rgba(127, 143, 135, 0.12);
}

.music-consent-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    color: #06100d;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-gold));
    box-shadow: 0 14px 34px rgba(255, 36, 71, 0.22);
}

.music-consent-icon i {
    font-size: 1.45rem;
}

.music-consent-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.music-consent-copy h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.music-consent-copy p {
    color: var(--home-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.music-consent-actions {
    display: inline-flex;
    gap: 10px;
    padding-right: 30px;
}

.music-consent-accept,
.music-consent-decline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.music-consent-accept {
    color: #06100d;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-gold));
}

.music-consent-decline {
    border: 1px solid var(--home-border);
    color: var(--home-muted);
    background: rgba(127, 143, 135, 0.08);
}

.music-consent-decline:hover {
    color: var(--home-ink);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-ink);
    background: var(--home-surface-strong);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(16px);
    transition: transform 220ms ease, opacity 220ms ease, background 180ms ease;
}

body.home-page .scroll-top {
    display: none !important;
}

body.home-page .pace {
    display: none !important;
}

.scroll-top .scroll-percent {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.scroll-top i {
    display: none;
    font-size: 1.25rem;
}

.scroll-top:hover {
    background: rgba(255, 36, 71, 0.13);
    transform: translateY(-3px);
}

.scroll-top:hover .scroll-percent {
    display: none;
}

.scroll-top:hover i {
    display: block;
}

#toast-prompt {
    gap: 10px;
    width: min(560px, calc(100% - 32px)) !important;
    left: 50% !important;
    bottom: 20px;
    transform: translateX(-50%);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface-strong) !important;
    color: var(--home-ink) !important;
    box-shadow: var(--home-shadow) !important;
}

#toast-prompt img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
}

#toast-prompt strong {
    font-family: "Space Grotesk", sans-serif;
}

#toast-prompt span {
    margin-left: 0;
    color: var(--home-muted);
}

#toast-prompt button {
    margin-left: 0;
}

.confirm-btn {
    background: var(--accent-mint) !important;
    color: #06100d !important;
    font-weight: 800;
}

.close-btn {
    color: var(--home-muted) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible,
.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes gridDrift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    to {
        background-position: 0 0, 0 0, 96px 96px, -96px 96px;
    }
}

@keyframes ribbonRun {
    0%,
    100% {
        transform: translateX(-8%) rotate(-8deg);
        opacity: 0.58;
    }
    50% {
        transform: translateX(8%) rotate(-5deg);
        opacity: 0.95;
    }
}

@keyframes textFlow {
    from {
        background-position: 0 50%;
    }
    to {
        background-position: 260% 50%;
    }
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes portraitFloat {
    0%,
    100% {
        transform: translate3d(-50%, -50%, 80px) translateY(0);
    }
    50% {
        transform: translate3d(-50%, -50%, 80px) translateY(-9px);
    }
}

@keyframes marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(var(--marquee-distance, 50%) * -1), 0, 0);
    }
}

@keyframes heartMeteor {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(var(--heart-rotate)) scale(0.84);
    }
    10% {
        opacity: 0.72;
    }
    82% {
        opacity: 0.62;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--heart-x), var(--heart-y), 0) rotate(calc(var(--heart-rotate) + 74deg)) scale(1);
    }
}

@media (max-width: 980px) {
    .site-shell {
        width: min(100% - 24px, 760px);
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .header-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 18px;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .hero-visual {
        min-height: 500px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section-label {
        position: static;
        display: flex;
        align-items: center;
    }

    .skill-block,
    .image-frame,
    .project-card,
    .contact-band {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .contact-showcase {
        min-height: auto;
        padding: 56px 18px 68px;
    }

    .project-card-grid,
    .image-showcase,
    .contact-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .image-showcase {
        grid-template-rows: none;
        min-height: 0;
    }

    .image-frame {
        aspect-ratio: 16 / 11;
    }

    .project-card,
    .contact-card {
        min-height: 320px;
    }

    .scroll-panel {
        --panel-shift: 54px;
        transform: translate3d(var(--panel-x), 34px, 0) rotateY(0deg) scale(0.98);
    }
}

@media (max-width: 640px) {
    html,
    body.home-page {
        overscroll-behavior-x: none;
    }

    body.home-page {
        touch-action: pan-y;
    }

    .site-shell {
        width: min(100% - 18px, 520px);
    }

    .site-header {
        top: 8px;
        gap: 10px;
        padding: 8px;
    }

    .brand-copy {
        display: grid;
        gap: 2px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-role {
        font-size: 0.68rem;
    }

    .header-actions {
        display: none;
        gap: 6px;
    }

    .theme-toggle,
    .music-toggle {
        width: 40px;
        height: 40px;
    }

    .header-nav {
        gap: 6px;
    }

    .header-nav a {
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .scroll-panel {
        --panel-shift: 8px;
    }

    .home-main {
        gap: 72px;
        padding-top: 58px;
    }

    .hero-copy {
        gap: 20px;
    }

    .hero-title {
        align-items: flex-start;
        font-size: 3rem;
    }

    .hero-title .blue-tick {
        width: 24px;
        min-width: 24px;
        margin-top: 5px;
    }

    .hero-lead {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .hero-actions a,
    .contact-actions a {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
    }

    .portrait-stage {
        width: 220px;
        height: 220px;
    }

    .profile-aura {
        width: 286px;
    }

    .profile-avatar {
        width: 178px;
        height: 178px;
    }

    .signal-board {
        left: 12px;
        right: 12px;
        bottom: 12px;
        min-height: 58px;
        padding: 0 12px;
    }

    #real-time {
        font-size: 1.08rem !important;
    }

    .content-panel,
    .skill-block,
    .image-frame,
    .project-card,
    .pay-card,
    .contact-band {
        padding: 20px;
    }

    .image-frame {
        min-height: 260px;
        padding: 0;
    }

    .image-frame::after {
        inset: 9px;
    }

    .image-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .bio-panel h2,
    .contact-band h2 {
        font-size: 1.78rem;
    }

    .contact-heading h2 {
        font-size: 2rem;
    }

    .project-card,
    .contact-card {
        padding: 28px 20px;
    }

    .project-card-icon,
    .contact-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 22px;
    }

    .project-card p {
        min-height: auto;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .pay-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .bank-icon {
        width: 58px;
        height: 58px;
    }

    .bank-icon img {
        width: 38px;
        height: 38px;
    }

    .bank-info button {
        width: 100%;
    }

    #toast-prompt {
        bottom: 10px;
    }

    .scroll-top {
        right: calc(env(safe-area-inset-right, 0px) + 10px);
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        width: 46px;
        height: 46px;
        max-width: calc(100vw - 20px);
        overflow: hidden;
        contain: layout paint;
    }

    .scroll-top:hover {
        transform: none;
    }

    .scroll-top .scroll-percent {
        max-width: 100%;
        font-size: 0.78rem;
    }

    .music-consent {
        place-items: end center;
        padding: 12px;
    }

    .music-consent-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .music-consent-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-right: 0;
    }

    .music-consent-copy h2 {
        font-size: 1rem;
    }

    .music-consent-copy p {
        font-size: 0.86rem;
    }
}

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

    .cursor-spotlight {
        display: none;
    }

    .ambient-grid::before,
    .ambient-grid::after,
    body.home-page::before {
        animation: none;
    }
}

/* Cyber Glass theme layer */
html.light,
html.dark {
    color-scheme: dark;
}

body.home-page {
    background:
        linear-gradient(118deg, rgba(255, 36, 71, 0.12), transparent 28%),
        linear-gradient(242deg, rgba(255, 61, 242, 0.13), transparent 32%),
        linear-gradient(180deg, var(--cyber-bg-deep) 0%, var(--cyber-bg-mid) 52%, #12061f 100%);
}

body.home-page::before {
    background:
        linear-gradient(120deg, rgba(255, 36, 71, 0.16), transparent 27%),
        linear-gradient(245deg, rgba(255, 61, 242, 0.13), transparent 34%),
        repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 36, 71, 0.075) 55px 56px),
        repeating-linear-gradient(0deg, transparent 0 54px, rgba(143, 11, 32, 0.06) 55px 56px);
    background-size: auto, auto, 112px 112px, 112px 112px;
    opacity: 0.92;
}

body.home-page::after {
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 6px),
        linear-gradient(112deg, transparent 0 12%, rgba(255, 36, 71, 0.1) 12.2% 12.8%, transparent 13% 46%, rgba(255, 61, 242, 0.08) 46.2% 46.8%, transparent 47% 100%);
    mix-blend-mode: screen;
    opacity: 0.68;
}

.cursor-spotlight {
    box-shadow: 0 0 130px 86px rgba(255, 36, 71, 0.13), 0 0 96px 60px rgba(255, 61, 242, 0.1);
}

.ambient-grid::before,
.ambient-grid::after {
    background: linear-gradient(90deg, transparent, rgba(255, 36, 71, 0.18), rgba(143, 11, 32, 0.13), rgba(255, 61, 242, 0.12), transparent);
    filter: blur(14px);
}

.td-loading-v2 {
    background:
        linear-gradient(118deg, rgba(255, 36, 71, 0.14), transparent 28%),
        linear-gradient(242deg, rgba(255, 61, 242, 0.13), transparent 32%),
        linear-gradient(180deg, #030411 0%, #090d2a 100%) !important;
    color: var(--home-ink);
}

.td-loading-v2 img {
    border: 1px solid rgba(255, 73, 103, 0.35);
    box-shadow: 0 0 36px rgba(255, 36, 71, 0.24), 0 18px 42px rgba(0, 0, 0, 0.38);
}

.ws-loader-text h4 {
    color: var(--home-ink) !important;
    text-shadow: 0 0 18px rgba(255, 36, 71, 0.36);
}

.ws-loader-text span {
    color: var(--cyber-text-soft);
}

.td-lock-screen {
    background-image: none;
    background:
        linear-gradient(118deg, rgba(255, 36, 71, 0.18), transparent 30%),
        linear-gradient(242deg, rgba(255, 61, 242, 0.16), transparent 35%),
        linear-gradient(180deg, #030411 0%, #090d2a 58%, #12061f 100%);
    color: var(--home-ink);
    overflow: hidden;
}

.td-lock-screen::before,
.td-lock-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.td-lock-screen::before {
    z-index: 1;
    background:
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 36, 71, 0.08) 53px 54px),
        repeating-linear-gradient(0deg, transparent 0 52px, rgba(143, 11, 32, 0.065) 53px 54px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 6px);
    mix-blend-mode: screen;
    opacity: 0.72;
}

.td-lock-screen::after {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(3, 4, 17, 0.18), rgba(3, 4, 17, 0.5)),
        linear-gradient(112deg, transparent 0 42%, rgba(255, 36, 71, 0.16) 44%, transparent 48%, rgba(255, 61, 242, 0.12) 51%, transparent 56%);
}

.td-lock-screen .medias {
    position: absolute;
    inset: 0;
    filter: saturate(1.22) contrast(1.08) brightness(0.56) hue-rotate(8deg);
    -webkit-filter: saturate(1.22) contrast(1.08) brightness(0.56) hue-rotate(8deg);
}

.td-lock-screen .infos {
    z-index: 3;
}

.td-lock-screen .infos .logo-web-title {
    gap: 18px;
    min-width: min(420px, calc(100vw - 48px));
    padding: 24px 26px;
    border: 1px solid rgba(255, 73, 103, 0.3);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(8, 17, 42, 0.46);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), 0 0 42px rgba(255, 36, 71, 0.15);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.td-lock-screen .infos .logo-ws {
    width: 7.25rem;
    height: 7.25rem;
    border: 1px solid rgba(237, 250, 255, 0.56);
    background: transparent;
    box-shadow: none;
}

.td-lock-screen .infos .web-title {
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 700;
    color: #f8fbff;
    background: transparent;
    -webkit-background-clip: unset;
    background-clip: unset;
    text-shadow: none;
    animation: none;
}

.td-lock-screen .infos .web_desc {
    max-width: min(720px, calc(100vw - 40px));
    color: rgba(237, 250, 255, 0.86);
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    line-height: 1.7;
    text-shadow: 0 0 18px rgba(255, 36, 71, 0.24);
}

.close-lockscreen {
    z-index: 4;
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 18px rgba(255, 36, 71, 0.7), 0 0 36px rgba(255, 61, 242, 0.32);
}

.td-lock-screen .medias .date {
    z-index: 3;
    margin: 0 18px 18px 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 73, 103, 0.24);
    border-radius: 8px;
    color: var(--home-ink);
    background: rgba(8, 17, 42, 0.46);
    box-shadow: 0 0 26px rgba(255, 36, 71, 0.14);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.site-header,
.content-panel,
.skill-block,
.project-card,
.pay-card,
.contact-card,
.contact-band,
.music-consent-card,
.volume-popover,
.scroll-top,
#toast-prompt,
.fui-toast .fui-toast-box,
.fancybox__content {
    border-color: var(--cyber-line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        var(--cyber-glass);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

.site-header {
    border-color: rgba(255, 73, 103, 0.2);
}

.site-header.not-top,
.site-header:hover {
    border-color: rgba(255, 36, 71, 0.4);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        var(--cyber-glass-strong);
    box-shadow: 0 24px 76px rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 36, 71, 0.16);
}

.brand-mark,
.project-card-icon,
.contact-card-icon,
.bank-icon,
.music-consent-icon {
    border: 1px solid rgba(255, 73, 103, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 36, 71, 0.28), rgba(199, 15, 47, 0.18) 46%, rgba(255, 61, 242, 0.2)),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 28px rgba(255, 36, 71, 0.18), 0 18px 42px rgba(0, 0, 0, 0.3);
}

.brand-name,
.site-footer a,
#cham-ngon,
.metric-grid strong,
.bank-info strong {
    color: var(--home-ink);
    text-shadow: 0 0 18px rgba(255, 36, 71, 0.18);
}

.brand-role,
.header-nav a,
.hero-lead,
.bio-copy,
.metric-grid span,
.bank-info span,
.contact-band p,
.music-consent-copy p,
.site-footer,
.marquee-inner span {
    color: var(--cyber-text-soft);
}

.hero-lead .bg-primary-foreground.text-transparent {
    display: inline-block;
    padding: 0 0.42rem;
    border: 1px solid rgba(255, 73, 103, 0.2);
    border-radius: 6px;
    color: rgba(218, 228, 255, 0.72) !important;
    -webkit-text-fill-color: rgba(218, 228, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(255, 36, 71, 0.08), rgba(255, 61, 242, 0.08)),
        rgba(255, 255, 255, 0.04) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-lead .bg-primary-foreground.text-transparent:hover {
    color: var(--home-ink) !important;
    -webkit-text-fill-color: var(--home-ink);
    border-color: rgba(255, 36, 71, 0.44);
    background: rgba(255, 36, 71, 0.1) !important;
}

.header-nav a,
.social-strip a,
.skill-pill,
.metric-grid div,
.bank-info button,
.music-consent-decline {
    border-color: rgba(255, 73, 103, 0.17);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.header-nav a:hover,
.social-strip a:hover,
.skill-pill:hover,
.bank-info button:hover,
.music-consent-decline:hover,
.scroll-top:hover {
    color: var(--home-ink);
    border-color: rgba(255, 36, 71, 0.48);
    background: rgba(255, 36, 71, 0.1);
    box-shadow: 0 0 28px rgba(255, 36, 71, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-nav a.is-active {
    color: #04101b;
    border-color: rgba(255, 36, 71, 0.66);
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-blue) 48%, var(--cyber-magenta));
    box-shadow: 0 0 26px rgba(255, 36, 71, 0.28), 0 10px 28px rgba(199, 15, 47, 0.18);
}

.theme-toggle,
.music-toggle {
    border-color: rgba(255, 73, 103, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
        var(--cyber-glass-strong);
    color: var(--home-ink);
    box-shadow: 0 0 22px rgba(255, 36, 71, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover,
.music-toggle:hover,
.music-toggle.is-active {
    border-color: rgba(255, 61, 242, 0.5);
    background: rgba(255, 61, 242, 0.12);
    box-shadow: 0 0 30px rgba(255, 61, 242, 0.2);
}

.volume-slider {
    accent-color: var(--cyber-cyan);
}

.volume-slider-row i,
.panel-kicker,
.section-label-inline,
.skill-pill i {
    color: var(--cyber-cyan);
}

.volume-slider::-webkit-slider-runnable-track,
.volume-slider::-moz-range-track {
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-blue), var(--cyber-magenta));
    box-shadow: 0 0 16px rgba(255, 36, 71, 0.24);
}

.volume-slider::-webkit-slider-thumb {
    border-color: #06101f;
    background: var(--home-ink);
    box-shadow: 0 0 20px rgba(255, 36, 71, 0.48);
}

.volume-slider::-moz-range-thumb {
    border-color: #06101f;
    background: var(--home-ink);
    box-shadow: 0 0 20px rgba(255, 36, 71, 0.48);
}

.eyebrow span,
.marquee-inner span::before,
.signal-dot {
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
    box-shadow: 0 0 18px rgba(255, 36, 71, 0.42);
}

.hero-title .magic > .magic-text,
.magic-text {
    background: linear-gradient(90deg, #ffffff, var(--cyber-cyan), var(--cyber-blue), var(--cyber-purple), var(--cyber-magenta), #ffffff);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.magic-star svg path,
.hero-title .magic > .magic-star > svg > path {
    fill: var(--cyber-cyan);
}

.primary-action,
.music-consent-accept,
.confirm-btn {
    border: 1px solid rgba(255, 73, 103, 0.54);
    color: #03111d !important;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-blue) 46%, var(--cyber-magenta)) !important;
    box-shadow: 0 0 26px rgba(255, 36, 71, 0.3), 0 18px 46px rgba(199, 15, 47, 0.18);
}

.secondary-action,
.contact-actions a,
.project-link,
.contact-card a {
    border-color: rgba(255, 73, 103, 0.28);
    color: var(--home-ink);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        rgba(8, 17, 42, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.secondary-action:hover,
.contact-actions a:hover,
.project-link:hover,
.contact-card a:hover,
.music-consent-accept:hover,
.confirm-btn:hover {
    border-color: rgba(255, 61, 242, 0.58);
    box-shadow: 0 0 30px rgba(255, 36, 71, 0.28), 0 0 54px rgba(255, 61, 242, 0.18);
    filter: saturate(1.08);
}

.motion-window {
    border-color: rgba(255, 73, 103, 0.3);
    background: var(--cyber-glass-strong);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45), 0 0 48px rgba(255, 36, 71, 0.14);
}

.motion-window::after {
    background:
        linear-gradient(180deg, rgba(4, 8, 22, 0.02), rgba(4, 8, 22, 0.42)),
        repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 36, 71, 0.09) 12px 13px),
        linear-gradient(112deg, transparent 0 45%, rgba(255, 61, 242, 0.18) 46%, transparent 52%);
}

.hero-video {
    filter: saturate(1.18) contrast(1.08) brightness(0.82) hue-rotate(8deg);
}

.profile-avatar {
    border-color: rgba(237, 250, 255, 0.72);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 36, 71, 0.42), 0 0 46px rgba(255, 61, 242, 0.2);
}

.profile-avatar img {
    opacity: 0.84;
    filter: saturate(1.12) contrast(1.06);
}

.signal-board {
    border-color: rgba(255, 73, 103, 0.36);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(5, 10, 28, 0.66);
    box-shadow: 0 0 32px rgba(255, 36, 71, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.marquee-track {
    border-block-color: rgba(255, 73, 103, 0.22);
    background:
        linear-gradient(90deg, rgba(255, 36, 71, 0.09), rgba(199, 15, 47, 0.08), rgba(255, 61, 242, 0.09)),
        rgba(8, 17, 42, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(255, 73, 103, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.section-label span {
    border-color: rgba(255, 73, 103, 0.28);
    color: var(--home-ink);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        var(--cyber-glass);
    box-shadow: 0 0 20px rgba(255, 36, 71, 0.12);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.skill-block h3 i {
    color: var(--cyber-magenta);
}

.project-card,
.contact-card {
    border-color: rgba(255, 73, 103, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        linear-gradient(160deg, rgba(255, 36, 71, 0.08), rgba(143, 11, 32, 0.08) 42%, rgba(255, 61, 242, 0.08)),
        rgba(4, 10, 28, 0.68);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38), 0 0 42px rgba(255, 36, 71, 0.1);
}

.project-card:hover,
.contact-card:hover {
    border-color: rgba(255, 61, 242, 0.42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        linear-gradient(160deg, rgba(255, 36, 71, 0.11), rgba(143, 11, 32, 0.1) 42%, rgba(255, 61, 242, 0.1)),
        rgba(4, 10, 28, 0.74);
}

.project-index {
    color: rgba(255, 36, 71, 0.82);
}

.project-card p,
.contact-card p {
    color: rgba(218, 228, 255, 0.72);
}

.pay-card:hover {
    border-color: rgba(255, 36, 71, 0.5);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), 0 0 36px rgba(255, 36, 71, 0.18);
}

.contact-showcase {
    background:
        linear-gradient(112deg, rgba(255, 36, 71, 0.08), transparent 35%),
        linear-gradient(248deg, rgba(255, 61, 242, 0.09), transparent 38%);
}

.contact-heading h2 {
    color: var(--home-ink);
    text-shadow: 0 0 26px rgba(255, 36, 71, 0.2);
}

/* Premium motion layer */
.skill-pill,
.primary-action,
.secondary-action,
.project-link,
.contact-card a,
.bank-info button,
.music-toggle,
.theme-toggle {
    will-change: transform, box-shadow;
}

.skill-pill {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.skill-pill::before {
    content: "";
    position: absolute;
    inset: -40% auto -40% -70%;
    z-index: -1;
    width: 58%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.42) 48%, transparent 100%);
    opacity: 0;
    transform: skewX(-18deg);
}

.skill-pill:hover::before {
    animation: skillGlowSweep 760ms ease forwards;
}

.skill-pill.is-visible {
    animation: skillFloat 5.8s ease-in-out infinite;
    animation-delay: calc(var(--float-delay, 0ms) + var(--panel-delay, 0ms));
}

.skill-pill:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 0 24px rgba(255, 36, 71, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.skill-pill.is-visible:hover {
    animation: none;
}

.image-frame {
    --image-pan-x: 0px;
    --image-pan-y: 0px;
}

.image-frame img {
    transform: translate3d(var(--image-pan-x), var(--image-pan-y), 0) scale(1.045);
}

.image-frame:hover img {
    transform: translate3d(var(--image-pan-x), var(--image-pan-y), 0) scale(1.12);
}

.image-frame .image-caption {
    transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.image-frame:hover .image-caption {
    opacity: 1;
    transform: translate3d(0, -8px, 48px);
}

.image-frame:hover::after {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 0 34px rgba(255, 61, 242, 0.12);
}

.content-panel,
.skill-block,
.image-frame,
.project-card,
.pay-card,
.contact-card,
.contact-band {
    animation: neonBorderPulse 4.8s ease-in-out infinite;
}

.scroll-panel.is-visible {
    animation-name: depthReveal, neonBorderPulse;
    animation-duration: 740ms, 4.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease-in-out;
    animation-delay: var(--panel-delay, 0ms), 0ms;
    animation-iteration-count: 1, infinite;
}

.section-grid.reveal.is-visible .section-label span,
.contact-showcase.reveal.is-visible .section-label-inline {
    animation: labelScan 900ms ease both;
}

.magic-text.is-scrambling {
    text-shadow: 0 0 20px rgba(255, 36, 71, 0.32), 0 0 42px rgba(255, 61, 242, 0.2);
}

.magnetic-action {
    --magnet-x: 0px;
    --magnet-y: 0px;
}

.fancybox__container {
    --fancybox-bg: rgba(3, 4, 17, 0.9);
}

.fancybox__slide {
    padding: 28px;
}

.fancybox__content,
.fancybox__image {
    border-radius: 8px;
}

.fancybox__content {
    box-shadow: 0 0 38px rgba(255, 36, 71, 0.2), 0 0 80px rgba(255, 61, 242, 0.12);
}

.fancybox__caption {
    color: rgba(237, 250, 255, 0.86);
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-weight: 700;
}

@keyframes skillGlowSweep {
    0% {
        left: -70%;
        opacity: 0;
    }
    18% {
        opacity: 0.86;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes skillFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes neonBorderPulse {
    0%,
    100% {
        box-shadow: var(--home-shadow);
    }
    50% {
        box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 36, 71, 0.18), 0 0 58px rgba(255, 61, 242, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.13);
    }
}

@keyframes depthReveal {
    0% {
        opacity: 0;
        filter: blur(18px) saturate(0.7);
        transform: translate3d(var(--panel-x, 0), 42px, 0) scale(0.965);
    }
    64% {
        opacity: 1;
        filter: blur(0) saturate(1.08);
        transform: translate3d(0, -4px, 0) scale(1.008);
    }
    100% {
        opacity: 1;
        filter: blur(0) saturate(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes labelScan {
    0% {
        filter: brightness(0.8);
        transform: translateX(-8px);
    }
    45% {
        filter: brightness(1.5);
        transform: translateX(4px);
        box-shadow: 0 0 30px rgba(255, 36, 71, 0.28);
    }
    100% {
        filter: brightness(1);
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skill-pill.is-visible,
    .content-panel,
    .skill-block,
    .image-frame,
    .project-card,
    .pay-card,
    .contact-card,
    .contact-band,
    .scroll-panel.is-visible,
    .section-grid.reveal.is-visible .section-label span,
    .contact-showcase.reveal.is-visible .section-label-inline {
        animation: none !important;
    }

    .image-frame img,
    .image-frame:hover img,
    .image-frame:hover .image-caption {
        transform: none;
    }
}

@media (max-width: 768px) {
    .heart-rain,
    .falling-heart {
        display: none !important;
    }

    body.home-page::before,
    body.home-page::after,
    .ambient-grid::before,
    .ambient-grid::after,
    .magic-star svg,
    .profile-aura,
    .portrait-stage {
        animation: none !important;
    }

    .content-panel,
    .skill-block,
    .image-frame,
    .project-card,
    .pay-card,
    .contact-card,
    .contact-band,
    .scroll-panel.is-visible {
        animation: none !important;
    }

    .scroll-panel,
    .project-card.scroll-panel,
    .pay-card.scroll-panel {
        opacity: 0;
        filter: none !important;
        clip-path: none !important;
        transform: translate3d(0, 18px, 0) scale(0.995) !important;
        transition:
            opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
            transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
            border-color 160ms ease,
            background 160ms ease !important;
        will-change: auto;
    }

    .scroll-panel.is-visible,
    .project-card.scroll-panel.is-visible,
    .pay-card.scroll-panel.is-visible {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) scale(1) !important;
    }

    .scroll-panel.is-leaving,
    .project-card.scroll-panel.is-leaving,
    .pay-card.scroll-panel.is-leaving {
        opacity: 0 !important;
        transform: translate3d(0, 16px, 0) scale(0.995) !important;
        pointer-events: none;
    }

    .reveal,
    .reveal.is-visible,
    .reveal.show,
    .skill-pill,
    .skill-pill.is-visible {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        animation: none !important;
        transition:
            opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
            transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
            color 160ms ease,
            border-color 160ms ease,
            background 160ms ease,
            box-shadow 160ms ease !important;
        will-change: auto;
    }

    .skill-pill::before,
    .image-frame::after {
        display: none;
    }

    .image-frame img,
    .image-frame:hover img,
    .image-frame:hover .image-caption {
        transform: none !important;
        transition: none !important;
    }

    .hero-video {
        filter: saturate(1.04) contrast(1.02) brightness(0.86) !important;
    }

    .content-panel,
    .skill-block,
    .project-card,
    .pay-card,
    .contact-card,
    .contact-band,
    .music-consent-card,
    .volume-popover,
    .scroll-top {
        backdrop-filter: blur(5px) saturate(115%) !important;
        -webkit-backdrop-filter: blur(5px) saturate(115%) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 12px rgba(255, 36, 71, 0.06) !important;
    }

    .hero-copy {
        justify-items: center;
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
        margin-inline: auto;
    }

    .hero-title {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .hero-lead {
        margin-inline: auto;
        text-align: center;
    }

    .hero-actions,
    .social-strip {
        justify-content: center;
        width: 100%;
    }

    .social-strip a {
        justify-content: center;
    }
}

.contact-heading p {
    color: rgba(218, 228, 255, 0.74);
}

.music-consent-card {
    border-color: rgba(255, 73, 103, 0.32);
}

.music-consent-close:hover {
    color: var(--home-ink);
    background: rgba(255, 61, 242, 0.12);
}

#toast-prompt {
    border-color: rgba(255, 73, 103, 0.32);
}

#toast-prompt span,
.close-btn {
    color: var(--cyber-text-soft) !important;
}

.dark .fui-toast .fui-toast-box,
.fui-toast .fui-toast-box {
    color: var(--home-ink) !important;
    border: 1px solid rgba(255, 73, 103, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
        var(--cyber-glass-strong) !important;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 36, 71, 0.14) !important;
}

.fancybox__container {
    --fancybox-bg: rgba(3, 4, 17, 0.88);
    --fancybox-color: var(--home-ink);
    --fancybox-hover-color: #ffffff;
}

.fancybox__backdrop {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.f-button {
    --f-button-color: var(--home-ink);
    --f-button-hover-color: var(--cyber-cyan);
    --f-button-bg: rgba(255, 255, 255, 0.06);
    --f-button-hover-bg: rgba(255, 36, 71, 0.13);
    --f-button-active-bg: rgba(255, 61, 242, 0.14);
    --f-button-border-radius: 8px;
}

:where(a, button, input):focus-visible {
    outline: 2px solid rgba(255, 36, 71, 0.72);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 36, 71, 0.12), var(--cyber-neon-shadow);
}

@media (prefers-reduced-motion: reduce) {
    body.home-page::before,
    .ambient-grid::before,
    .ambient-grid::after {
        animation: none;
    }
}

/* Modern lightweight entry loader */
.td-loading-v2 {
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100%;
    min-height: 100%;
    padding: 24px;
    color: var(--home-ink);
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 36, 71, 0.18), transparent 32%),
        linear-gradient(180deg, #030411 0%, #070a22 54%, #100519 100%) !important;
    overflow: hidden;
}

.td-loading-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 48px, rgba(255, 73, 103, 0.065) 49px 50px),
        linear-gradient(0deg, transparent 0 48px, rgba(255, 73, 103, 0.045) 49px 50px);
    background-size: 96px 96px;
    mask-image: radial-gradient(circle at center, #000 0 44%, transparent 74%);
    opacity: 0.7;
}

.td-loading-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px),
        linear-gradient(110deg, transparent 0 44%, rgba(255, 36, 71, 0.14) 46%, transparent 49%, rgba(255, 61, 242, 0.1) 53%, transparent 57%);
    opacity: 0.46;
    pointer-events: none;
}

.modern-loader {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(420px, 100%);
    padding: 28px 24px;
    border: 1px solid rgba(255, 73, 103, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(5, 9, 26, 0.54);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 34px rgba(255, 36, 71, 0.12);
    text-align: center;
    overflow: hidden;
}

.modern-loader::before,
.modern-loader::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.modern-loader::before {
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.modern-loader::after {
    left: 0;
    right: 0;
    top: -40%;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(255, 36, 71, 0.12), transparent);
    animation: loaderScan 2.8s ease-in-out infinite;
}

.loader-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 0 18px rgba(255, 36, 71, 0.2));
}

.loader-orbit::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 73, 103, 0.24);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 36, 71, 0.08) 48%, transparent 70%);
    box-shadow: 0 0 34px rgba(255, 36, 71, 0.18);
}

.loader-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-top-color: rgba(255, 36, 71, 0.78);
    border-right-color: rgba(255, 61, 242, 0.34);
    border-radius: 50%;
    animation: loaderRing 2.4s linear infinite;
}

.loader-orbit span {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-mint);
    box-shadow: 0 0 18px rgba(255, 36, 71, 0.82);
    animation: loaderOrbit 1.55s linear infinite;
}

.loader-orbit img {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 22px rgba(255, 36, 71, 0.34);
}

.loader-orbit span:nth-child(2) {
    animation-delay: -0.52s;
    background: var(--accent-coral);
}

.loader-orbit span:nth-child(3) {
    animation-delay: -1.04s;
    background: var(--accent-gold);
}

.td-loading-v2 .ws-loader-text {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.cipher-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 320px;
}

.cipher-strip span {
    min-width: 58px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 73, 103, 0.2);
    border-radius: 6px;
    color: rgba(218, 228, 255, 0.68);
    background: rgba(255, 255, 255, 0.045);
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    animation: cipherBlink 1.8s ease-in-out infinite;
}

.cipher-strip span:nth-child(2) {
    animation-delay: 0.18s;
}

.cipher-strip span:nth-child(3) {
    animation-delay: 0.36s;
}

.cipher-strip span:nth-child(4) {
    animation-delay: 0.54s;
}

.td-loading-v2 .loader-kicker {
    color: var(--accent-mint) !important;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.td-loading-v2 .ws-loader-text h4 {
    margin: 0;
    color: #f8fbff !important;
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    animation: loaderTitleGlitch 2.6s steps(1, end) infinite;
}

.td-loading-v2 .ws-loader-text span:not(.loader-kicker) {
    max-width: 320px;
    color: rgba(218, 228, 255, 0.76) !important;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
}

.loader-terminal {
    display: grid;
    gap: 7px;
    width: min(320px, 100%);
    padding: 12px;
    border: 1px solid rgba(255, 73, 103, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.loader-terminal div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 24px;
    color: rgba(218, 228, 255, 0.72);
    font-family: "Space Grotesk", "Be Vietnam Pro", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.loader-terminal span {
    color: rgba(255, 36, 71, 0.9);
    text-align: left;
}

.loader-terminal strong {
    color: rgba(248, 251, 255, 0.9);
    font-weight: 700;
    text-align: right;
}

.loader-progress {
    position: relative;
    width: min(260px, 82vw);
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.loader-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-mint), var(--accent-coral), var(--accent-gold));
    box-shadow: 0 0 18px rgba(255, 36, 71, 0.36);
    animation: loaderProgress 1.24s ease-in-out infinite;
}

@keyframes loaderOrbit {
    from {
        transform: rotate(0deg) translateX(38px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(38px) rotate(-360deg);
    }
}

@keyframes loaderRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderProgress {
    0% {
        transform: translateX(-115%);
    }
    55% {
        transform: translateX(82%);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes loaderScan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20%,
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(430%);
        opacity: 0;
    }
}

@keyframes loaderTitleGlitch {
    0%,
    88%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }
    90% {
        transform: translateX(-1px);
        opacity: 0.86;
    }
    92% {
        transform: translateX(1px);
        opacity: 1;
    }
    94% {
        transform: translateX(0);
        opacity: 0.92;
    }
}

@keyframes cipherBlink {
    0%,
    100% {
        opacity: 0.52;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

@media (max-width: 768px) {
    .td-loading-v2 {
        padding: 18px;
    }

    .td-loading-v2::before {
        opacity: 0.45;
    }

    .modern-loader {
        gap: 18px;
        padding: 24px 18px;
    }

    .loader-orbit {
        width: 78px;
        height: 78px;
    }

    .loader-orbit span {
        animation-duration: 1.8s;
    }

    .cipher-strip span {
        animation: none;
    }

    .loader-terminal {
        padding: 10px;
    }

    .loader-terminal div {
        grid-template-columns: 48px minmax(0, 1fr);
        font-size: 0.68rem;
    }

    @keyframes loaderOrbit {
        from {
            transform: rotate(0deg) translateX(30px) rotate(0deg);
        }
        to {
            transform: rotate(360deg) translateX(30px) rotate(-360deg);
        }
    }
}

/* Vertical Discord status card */
.discord-vertical-card {
    width: min(100%, 380px);
    min-height: 560px;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.discord-vertical-card::before {
    display: none;
}

.discord-vertical-card .discord-card-banner {
    display: block;
    min-height: 148px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(12, 0, 2, 0.96), rgba(70, 0, 12, 0.54) 48%, rgba(3, 0, 1, 0.98)),
        radial-gradient(circle at 64% 42%, rgba(206, 20, 48, 0.30), transparent 32%),
        #020101;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: none;
}

.discord-vertical-card .discord-card-banner::after {
    display: block;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
}

.discord-vertical-card .discord-card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    height: 100%;
    margin: 0;
    padding: 0 20px 20px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.discord-vertical-card .discord-profile-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: -42px;
    text-align: center;
}

.discord-vertical-card .discord-avatar-wrap {
    width: 124px;
    height: 124px;
    flex: 0 0 auto;
    border: 0;
    background: #222;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    overflow: visible;
}

.discord-vertical-card .discord-avatar-wrap > img:first-child {
    position: relative;
    z-index: 1;
    filter: none;
}

.discord-vertical-card .discord-avatar-decoration {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 130% !important;
    height: 130% !important;
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%);
}

.discord-vertical-card .discord-status-dot {
    right: -2px;
    bottom: 9px;
    width: 30px;
    height: 30px;
    border: 5px solid rgb(27, 28, 30);
    border-radius: 50%;
    background: #80848e;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

.discord-vertical-card .discord-status-dot::after {
    content: none;
}

.discord-vertical-card .discord-status-dot[data-discord-state="online"] {
    background: #23a55a;
}

.discord-vertical-card .discord-status-dot[data-discord-state="idle"] {
    background: #f0b232;
}

.discord-vertical-card .discord-status-dot[data-discord-state="idle"]::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgb(27, 28, 30);
}

.discord-vertical-card .discord-status-dot[data-discord-state="dnd"] {
    background: #f23f43;
}

.discord-vertical-card .discord-status-dot[data-discord-state="dnd"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 4px;
    border-radius: 999px;
    background: rgb(27, 28, 30);
    transform: translate(-50%, -50%);
}

.discord-vertical-card .discord-status-dot[data-discord-state="offline"] {
    background: #80848e;
}

.discord-vertical-card .discord-profile-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
}

.discord-vertical-card .discord-kicker {
    margin-bottom: 4px;
    color: #b5bac1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.discord-vertical-card .discord-name-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}

.discord-vertical-card .discord-profile-main h3 {
    color: #f2f3f5;
    font-size: 1.38rem;
    line-height: 1.15;
    text-shadow: none;
}

.discord-vertical-card .discord-add-friend {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 64, 98, 0.28);
    border-radius: 8px;
    color: #ffd7df;
    background: rgba(160, 0, 30, 0.18);
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.discord-vertical-card .discord-add-friend:hover {
    border-color: rgba(255, 64, 98, 0.48);
    background: rgba(160, 0, 30, 0.30);
    transform: translateY(-1px);
}

.discord-vertical-card .discord-add-friend i {
    font-size: 1rem;
    line-height: 1;
}

.discord-vertical-card .discord-profile-main p,
.discord-vertical-card .discord-identity-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: #b5bac1;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.discord-vertical-card .discord-profile-main .discord-identity-line {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    overflow: visible;
    width: auto;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.discord-vertical-card .discord-identity-line > span {
    flex: 0 0 auto;
}

.discord-vertical-card .discord-identity-line [data-discord-username] {
    font-size: 0.9rem;
    line-height: 1;
}

.discord-vertical-card .discord-separator {
    color: rgba(181, 186, 193, 0.72);
    font-weight: 800;
}

.discord-vertical-card .discord-profile-main p span.discord-clan-chip[data-discord-clan] {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    min-height: 22px;
    padding: 2px 7px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.76rem;
    font-weight: 800;
}

.discord-vertical-card .discord-clan-chip img {
    display: block;
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.discord-vertical-card .discord-inline-badges {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 8px auto 0;
    min-width: 0;
    line-height: 1;
    vertical-align: middle;
}

.discord-vertical-card .discord-inline-badges img {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    filter: none;
    object-fit: contain;
}

.discord-vertical-card .discord-custom-status,
.discord-vertical-card .discord-activity,
.discord-vertical-card .discord-game-status,
.discord-vertical-card .discord-badge-row {
    display: flex !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(17, 18, 20, 0.86);
    box-shadow: none;
}

.discord-vertical-card .discord-activity span {
    color: #b5bac1;
    font-size: 0.68rem;
    font-weight: 800;
}

.discord-vertical-card .discord-custom-status {
    width: 100%;
    margin: 0;
    padding: 12px 13px;
    color: #dbdee1;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.discord-vertical-card .discord-activity {
    width: 100%;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    padding: 11px;
}

.discord-vertical-card .discord-game-status {
    width: 100%;
    align-items: center;
    gap: 11px;
    padding: 11px;
}

.discord-vertical-card .discord-activity img {
    display: none;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.discord-vertical-card .discord-game-status img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(200, 167, 94, 0.10);
    box-shadow: inset 0 0 0 1px rgba(200, 167, 94, 0.16);
}

.discord-vertical-card .discord-activity.has-image img {
    display: block;
}

.discord-vertical-card .discord-activity div {
    min-width: 0;
}

.discord-vertical-card .discord-game-status div {
    min-width: 0;
}

.discord-vertical-card .discord-activity strong,
.discord-vertical-card .discord-activity small,
.discord-vertical-card .discord-game-status strong,
.discord-vertical-card .discord-game-status small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-vertical-card .discord-activity strong,
.discord-vertical-card .discord-game-status strong {
    color: #f2f3f5;
    font-size: 0.94rem;
}

.discord-vertical-card .discord-activity small,
.discord-vertical-card .discord-game-status small {
    color: #b5bac1;
    font-size: 0.8rem;
}

.discord-vertical-card .discord-game-status span {
    color: #c8aa6e;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.discord-vertical-card .discord-badge-row {
    display: none !important;
}

.discord-vertical-card [hidden] {
    display: none !important;
}

.tiktok-status-card .tiktok-card-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(12, 0, 2, 0.92), rgba(58, 0, 10, 0.55) 48%, rgba(5, 0, 1, 0.98)),
        radial-gradient(circle at 62% 46%, rgba(220, 24, 54, 0.34), transparent 32%),
        #020101;
    background-image: none;
}

.tiktok-status-card {
    min-height: 0;
    border-color: rgba(255, 55, 88, 0.16);
    background:
        linear-gradient(180deg, rgba(28, 5, 10, 0.78), rgba(4, 3, 4, 0.86)),
        rgba(0, 0, 0, 0.58);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(135, 0, 24, 0.16);
}

.tiktok-status-card .discord-card-body {
    background:
        linear-gradient(180deg, rgba(18, 3, 7, 0.20), rgba(4, 3, 4, 0));
}

.tiktok-status-card .tiktok-card-banner i {
    color: rgba(255, 58, 88, 0.22);
    font-size: 4.8rem;
    line-height: 1;
    text-shadow: 0 0 28px rgba(196, 0, 36, 0.46);
}

.tiktok-status-card .tiktok-avatar-wrap {
    background: linear-gradient(135deg, #ff355f, #151010 42%, #7a0016);
    padding: 3px;
}

.tiktok-status-card .tiktok-avatar-wrap > img:first-child {
    border-radius: 50%;
    background: #111;
}

.tiktok-status-dot {
    position: absolute;
    right: -2px;
    bottom: 9px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 5px solid rgb(27, 28, 30);
    border-radius: 50%;
    background: linear-gradient(135deg, #ff355f 0 48%, #8f001a 52% 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

.tiktok-status-card .discord-profile-main h3,
.tiktok-status-card .discord-identity-line {
    max-width: 100%;
}

.tiktok-status-card .tiktok-profile-button {
    border-color: rgba(255, 64, 98, 0.28);
    color: #ffd7df;
    background: rgba(160, 0, 30, 0.18);
}

.tiktok-status-card .tiktok-profile-button:hover {
    border-color: rgba(255, 64, 98, 0.48);
    background: rgba(160, 0, 30, 0.30);
}

.tiktok-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.tiktok-stats-grid div {
    min-width: 0;
    padding: 13px 12px;
    border: 1px solid rgba(255, 64, 98, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(80, 0, 14, 0.24), rgba(12, 10, 12, 0.90)),
        rgba(13, 10, 12, 0.94);
}

.tiktok-stats-grid span,
.tiktok-profile-info span,
.tiktok-profile-link span {
    display: block;
    color: #b5bac1;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.tiktok-stats-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    color: #f2f3f5;
    font-size: 1.24rem;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tiktok-status-card .tiktok-bio {
    min-height: 54px;
    align-items: center;
    border-color: rgba(255, 64, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(80, 0, 14, 0.18), rgba(13, 10, 12, 0.92)),
        rgba(17, 18, 20, 0.86);
}

.tiktok-profile-info,
.tiktok-profile-link {
    border-color: rgba(255, 64, 98, 0.12) !important;
    background:
        linear-gradient(180deg, rgba(80, 0, 14, 0.18), rgba(13, 10, 12, 0.92)),
        rgba(17, 18, 20, 0.86) !important;
    color: inherit;
    text-decoration: none;
}

.tiktok-profile-info i,
.tiktok-profile-link i {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-size: 1.35rem;
    background:
        linear-gradient(135deg, rgba(255, 53, 95, 0.38), rgba(111, 0, 20, 0.44)),
        rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 0 0 1px rgba(255, 96, 124, 0.14),
        0 0 18px rgba(157, 0, 28, 0.20);
}

.tiktok-profile-link {
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tiktok-profile-link:hover {
    border-color: rgba(255, 72, 104, 0.34);
    background: rgba(28, 10, 14, 0.96);
    transform: translateY(-1px);
}

.tiktok-profile-info strong,
.tiktok-profile-info small,
.tiktok-profile-link strong,
.tiktok-profile-link small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tiktok-status-card.is-loading .tiktok-stats-grid strong,
.tiktok-status-card.is-loading [data-tiktok-display-name],
.tiktok-status-card.is-loading .tiktok-bio {
    opacity: 0.72;
}

.facebook-status-card {
    min-height: 0;
    border-color: rgba(255, 55, 88, 0.14);
    background:
        linear-gradient(180deg, rgba(24, 5, 10, 0.72), rgba(4, 3, 4, 0.86)),
        rgba(0, 0, 0, 0.58);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(135, 0, 24, 0.12);
}

.facebook-status-card .facebook-card-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(12, 0, 3, 0.36)),
        var(--facebook-banner),
        linear-gradient(135deg, rgba(8, 0, 2, 0.96), rgba(58, 0, 10, 0.50) 48%, rgba(3, 0, 1, 0.98)),
        radial-gradient(circle at 64% 42%, rgba(206, 20, 48, 0.26), transparent 32%),
        #020101;
    background-position: center;
    background-size: cover;
}

.facebook-status-card .facebook-card-banner i {
    display: none;
}

.facebook-status-card .facebook-avatar-wrap {
    background: linear-gradient(135deg, #ff355f, #151010 42%, #6f0014);
    padding: 3px;
}

.facebook-status-card .facebook-avatar-wrap > img:first-child {
    border-radius: 50%;
    background: #111;
}

.facebook-status-dot {
    position: absolute;
    right: -2px;
    bottom: 9px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 5px solid rgb(27, 28, 30);
    border-radius: 50%;
    background: linear-gradient(135deg, #ff355f 0 48%, #8f001a 52% 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

.facebook-status-card .facebook-profile-button {
    border-color: rgba(255, 64, 98, 0.28);
    color: #ffd7df;
    background: rgba(160, 0, 30, 0.18);
}

.facebook-status-card .facebook-profile-button:hover {
    border-color: rgba(255, 64, 98, 0.48);
    background: rgba(160, 0, 30, 0.30);
}

.facebook-profile-sheet {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.facebook-bio-panel {
    min-width: 0;
    padding: 15px 14px;
    border: 1px solid rgba(255, 64, 98, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(105, 0, 18, 0.28), rgba(10, 8, 10, 0.94)),
        rgba(13, 10, 12, 0.94);
}

.facebook-bio-panel span {
    display: block;
    color: #b5bac1;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.facebook-bio-panel p {
    margin: 9px 0 0;
    color: #f2f3f5;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
}

.facebook-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
}

.facebook-detail-list div {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 64, 98, 0.10);
    border-radius: 8px;
    background: rgba(12, 10, 12, 0.78);
}

.facebook-detail-list dt {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #b5bac1;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
}

.facebook-detail-list dt i {
    color: #ff496b;
    font-size: 0.95rem;
    line-height: 1;
}

.facebook-detail-list dd {
    display: block;
    overflow: hidden;
    margin: 0;
    color: #f2f3f5;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.access-denied-notice {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 10000000;
    width: min(420px, calc(100vw - 28px));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -18px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.access-denied-notice.is-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 180ms ease, transform 180ms ease;
}

.access-denied-panel {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 70, 98, 0.42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(110, 6, 24, 0.96), rgba(12, 11, 14, 0.96)),
        #130d10;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    color: #fff;
    pointer-events: auto;
}

.access-denied-notice:not(.is-visible) .access-denied-panel {
    pointer-events: none;
}

.access-denied-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 70, 98, 0.16);
    color: #ff496b;
    font-size: 1.38rem;
}

.access-denied-copy {
    min-width: 0;
}

.access-denied-copy strong,
.access-denied-copy span {
    display: block;
    overflow-wrap: anywhere;
}

.access-denied-copy strong {
    color: #fff7f8;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.2;
}

.access-denied-copy span {
    margin-top: 3px;
    color: rgba(255, 235, 239, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.access-denied-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    color: rgba(255, 235, 239, 0.8);
    transition: background-color 150ms ease, color 150ms ease;
}

.access-denied-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 520px) {
    .discord-vertical-card {
        width: calc(100vw - 28px);
        max-width: none;
        min-height: 540px;
        margin-right: -6px;
        margin-left: -6px;
    }

    .discord-vertical-card .discord-card-body {
        padding: 0 18px 18px;
    }

    .discord-vertical-card .discord-avatar-wrap {
        width: 116px;
        height: 116px;
    }

    .discord-vertical-card .discord-profile-main h3 {
        font-size: 1.26rem;
    }

    .discord-vertical-card .discord-identity-line {
        font-size: 0.82rem;
    }

    .discord-vertical-card .discord-identity-line [data-discord-username] {
        font-size: 0.82rem;
    }

    .discord-vertical-card .discord-inline-badges img {
        width: 20px;
        height: 20px;
    }
}
