@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --primary: #ff0000;
    --card-bg: rgba(20, 2, 2, 0.92);
    --card-blur: 20px;
    --card-radius: 16px;
    --section-bg: rgba(120, 0, 0, 0.35);
    --section-border: rgba(255, 0, 0, 0.25);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --font-family: 'Inter', sans-serif;
    --name-size: 24px;
    --bio-size: 14px;
    --name-weight: 700;
}

body {
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0a0000;
    color: var(--text);
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    background: #0a0000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-name {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    animation: loadingPulse 1s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
    from { opacity: 0.4; transform: scale(0.96); text-shadow: 0 0 0 transparent; }
    to { opacity: 1; transform: scale(1); text-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary); }
}

/* ===== Background ===== */
.background {
    position: fixed;
    top: -20px; left: -20px;
    width: calc(100% + 40px); height: calc(100% + 40px);
    z-index: 0;
    overflow: hidden;
    transition: transform 0.1s ease-out;
}

.background img, .background video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ===== Grain Overlay ===== */
.grain-overlay {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, -5%); }
    50% { transform: translate(5%, 0); }
    75% { transform: translate(-2%, 5%); }
    100% { transform: translate(0, 0); }
}

/* ===== Vignette Overlay ===== */
.vignette-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
}

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    pointer-events: none;
    z-index: 4;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,0,0.15) 0%, transparent 70%);
    width: 200px; height: 200px;
    transform: translate(-50%, -50%);
    transition: left 0.05s linear, top 0.05s linear;
}

/* ===== Effects Canvas ===== */
#effects-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 5;
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto;
}

/* ===== Card ===== */
.card {
    width: 480px;
    max-width: 95vw;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--section-border);
    overflow: visible;
    padding-bottom: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.card.glow-enabled {
    border-color: transparent;
    box-shadow: 0 0 calc(var(--glow-strength, 20px) * 2) color-mix(in srgb, var(--glow-color, #ff0000) 25%, transparent),
                0 0 calc(var(--glow-strength, 20px) * 5) color-mix(in srgb, var(--glow-color, #ff0000) 10%, transparent);
}

/* ===== Card Style Variants ===== */

/* Glass — very transparent with strong blur */
.card.card-glass {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Transparent — no card, content floats on page */
.card.card-transparent {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.card.card-transparent .banner {
    border-radius: var(--card-radius);
}

/* Minimal — subtle dark, no border */
.card.card-minimal {
    background: rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Outlined — just a border, no fill */
.card.card-outlined {
    background: transparent !important;
    border: 2px solid var(--section-border) !important;
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    box-shadow: none;
}

/* Frosted — heavier glass with subtle noise */
.card.card-frosted {
    background: rgba(20, 20, 20, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(255, 255, 255, 0.02);
}

/* Card Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.card.anim-fadeIn { animation: fadeIn 0.6s ease; }
.card.anim-slideUp { animation: slideUp 0.8s ease; }
.card.anim-scaleIn { animation: scaleIn 0.5s ease; }

/* ===== Sequential Reveal ===== */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.card.sequential-reveal > * {
    opacity: 0;
    animation: revealUp 0.5s ease forwards;
}

/* ===== Banner ===== */
.banner {
    width: 100%;
    overflow: hidden;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    position: relative;
}

.banner-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60px;
    background: linear-gradient(transparent, var(--card-bg));
}

.banner.no-image::after {
    display: none;
}

/* When banner is hidden, reset avatar pull-up */
.banner.hidden + .avatar-wrapper {
    margin-top: 20px;
}

/* Remove avatar border ring when no banner image (prevents visible line) */
.banner.no-image + .avatar-wrapper .avatar,
.banner.hidden + .avatar-wrapper .avatar {
    border-color: transparent;
}

/* ===== Avatar ===== */
.avatar-wrapper {
    position: relative;
    width: 104px; height: 104px;
    margin: -52px auto 0;
    z-index: 2;
}

.avatar-glow-ring {
    position: absolute;
    top: -4px; left: -4px;
    width: 112px; height: 112px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-glow-ring.active {
    opacity: 1;
    background: conic-gradient(
        var(--primary),
        transparent,
        var(--primary),
        transparent,
        var(--primary)
    );
    animation: avatarRingSpin 3s linear infinite;
}

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

.avatar-glow-ring.active::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: calc(100% - 6px); height: calc(100% - 6px);
    border-radius: 50%;
    background: var(--card-bg);
}

.avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    margin: 4px;
    border: 4px solid var(--card-bg);
    overflow: hidden;
    background: var(--section-bg);
}

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

/* ===== Profile ===== */
.profile-info {
    text-align: center;
    padding: 12px 24px 0;
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.display-name {
    font-size: var(--name-size);
    font-weight: var(--name-weight);
    color: var(--text);
    margin-bottom: 4px;
}

/* ===== Badges ===== */
.badges {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

.badge i {
    font-size: 10px;
    color: var(--primary);
}

/* ===== Profile Meta (Pronouns, Location, Status) ===== */
.profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    min-height: 0;
}

.profile-meta:empty,
.profile-meta.empty {
    display: none;
}

.pronouns, .location, .user-status {
    font-size: 12px;
    color: var(--text-dim);
    display: none;
}

.pronouns.visible, .location.visible, .user-status.visible {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.location i, .user-status i {
    font-size: 10px;
    color: var(--primary);
}

/* ===== Name Effects ===== */
.display-name.effect-glitch {
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); opacity: 1; }
    91% { transform: translate(-2px, 1px); opacity: 0.8; }
    93% { transform: translate(2px, -1px); opacity: 0.8; }
    95% { transform: translate(-1px, -1px); opacity: 0.9; }
    97% { transform: translate(1px, 2px); opacity: 0.8; }
}

.display-name.effect-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0077ff, #8800ff, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.display-name.effect-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); }
    to { text-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary), 0 0 45px var(--primary); }
}

/* Neon Flicker */
.display-name.effect-neonFlicker {
    animation: neonFlicker 3s ease-in-out infinite;
    text-shadow: 0 0 7px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 7px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 80px var(--primary);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.6;
    }
}

/* Wavy Effect */
.display-name.effect-wavy .wavy-char {
    display: inline-block;
    animation: wavyBounce 1.5s ease-in-out infinite;
}

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

/* Scramble Effect - text color handled by JS, just ensure visibility */
.display-name.effect-scramble {
    letter-spacing: 1px;
}

/* Chromatic Aberration */
.display-name.effect-chromatic {
    position: relative;
    color: var(--text);
}

.display-name.effect-chromatic::before,
.display-name.effect-chromatic::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    overflow: hidden;
}

.display-name.effect-chromatic::before {
    color: #ff0044;
    z-index: -1;
    animation: chromaticR 2s ease-in-out infinite alternate;
}

.display-name.effect-chromatic::after {
    color: #00ffff;
    z-index: -1;
    animation: chromaticB 2s ease-in-out infinite alternate;
}

@keyframes chromaticR {
    from { transform: translate(-2px, 0); }
    to { transform: translate(2px, 1px); }
}

@keyframes chromaticB {
    from { transform: translate(2px, 0); }
    to { transform: translate(-2px, -1px); }
}

/* Shader Background */
#shader-bg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Blood Drip Effect */
.display-name.effect-bloodDrip {
    position: relative;
    display: inline-block;
}
.blood-char {
    position: relative;
    display: inline-block;
    color: var(--primary);
}
.blood-drop {
    position: absolute;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 0 50% 50%;
    opacity: 0;
    transform-origin: top center;
    animation: bloodDrip var(--drip-duration) var(--drip-delay) ease-in infinite;
    filter: brightness(1.1);
}
.blood-drop::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.9;
}
@keyframes bloodDrip {
    0% {
        height: 0;
        opacity: 0;
        bottom: 0;
    }
    10% {
        height: 4px;
        opacity: 0.8;
        bottom: 0;
    }
    30% {
        height: var(--drip-height);
        opacity: 1;
        bottom: 0;
    }
    50% {
        height: var(--drip-height);
        opacity: 1;
        bottom: calc(-1 * var(--drip-height));
    }
    70% {
        height: calc(var(--drip-height) * 0.4);
        opacity: 0.6;
        bottom: calc(-1 * var(--drip-height) - 10px);
    }
    85% {
        opacity: 0;
    }
    100% {
        height: 0;
        opacity: 0;
        bottom: calc(-1 * var(--drip-height) - 20px);
    }
}

.bio {
    font-size: var(--bio-size);
    color: var(--text-dim);
    font-weight: 400;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 40%, transparent);
    transform: translateY(-2px);
}

/* ===== Social Icon Style Variants ===== */

/* Square */
.social-links.socials-square .social-icon {
    border-radius: 12px;
}

/* Pill — wider with label */
.social-links.socials-pill .social-icon {
    border-radius: 20px;
    width: auto;
    padding: 0 14px;
    gap: 6px;
    font-size: 15px;
}

.social-links.socials-pill .social-icon .pill-label {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
}

.social-links.socials-pill .social-icon .icon-tooltip {
    display: none;
}

/* Flat — no background, just icons */
.social-links.socials-flat .social-icon {
    background: transparent;
    border: none;
    font-size: 22px;
    width: auto;
    height: auto;
    padding: 8px;
}

.social-links.socials-flat .social-icon:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px) scale(1.15);
    box-shadow: none;
}

/* Glow — circle with glow */
.social-links.socials-glow .social-icon {
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 40%, transparent),
                0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.social-links.socials-glow .social-icon:hover {
    box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 60%, transparent),
                0 0 8px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* Glass — glassmorphism style */
.social-links.socials-glass .social-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

.social-links.socials-glass .social-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Outlined icons — just border */
.social-links.socials-outlined .social-icon {
    background: transparent;
    border: 2px solid var(--primary);
}

.social-links.socials-outlined .social-icon:hover {
    background: var(--primary);
    color: #fff;
}

/* Icon Only — bare icons, no container */
.social-links.socials-icon .social-icon,
.social-links.socials-icon-glow .social-icon,
.social-links.socials-icon-glass .social-icon {
    background: transparent !important;
    border: none;
    width: auto !important;
    height: auto !important;
    padding: 6px;
    color: var(--primary);
    box-shadow: none !important;
    transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.social-links.socials-icon .social-icon:hover {
    color: var(--text);
    transform: translateY(-3px) scale(1.2);
}

/* Icon Glow — bare icons with neon glow */
.social-links.socials-icon-glow .social-icon {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 50%, transparent));
}

.social-links.socials-icon-glow .social-icon:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.2);
    filter: drop-shadow(0 0 12px var(--primary))
           drop-shadow(0 0 24px color-mix(in srgb, var(--primary) 60%, transparent))
           drop-shadow(0 0 40px color-mix(in srgb, var(--primary) 30%, transparent));
}

/* Icon Glass — bare icons with frosted glass backdrop */
.social-links.socials-icon-glass .social-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.social-links.socials-icon-glass .social-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 25%, transparent);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Social Icon Tooltip */
.social-icon .icon-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.social-icon .icon-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.social-icon:hover .icon-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Discord Card ===== */
.discord-card {
    margin: 0 20px 16px;
    padding: 14px 16px;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discord-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-avatar {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
}

.discord-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}

.discord-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;
}

.discord-username:hover {
    color: var(--primary);
}

.discord-copy-tooltip {
    position: absolute;
    top: -28px;
    left: 0;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.discord-copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #747f8d;
}
.status-dot.online { background: #3ba55c; }
.status-dot.idle { background: #faa61a; }
.status-dot.dnd { background: #ed4245; }
.status-dot.offline { background: #747f8d; }

.discord-btn {
    padding: 8px 16px;
    border: 1px solid var(--section-border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-family);
}
.discord-btn i { margin-left: 6px; font-size: 11px; }
.discord-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== Spotify Card ===== */
.spotify-card {
    margin: 0 20px 16px;
    padding: 14px 16px;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.spotify-album-art {
    width: 48px; height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.spotify-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.spotify-label {
    font-size: 11px;
    color: #1DB954;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.spotify-song {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Widgets Row ===== */
.widgets-row {
    display: flex;
    gap: 10px;
    margin: 0 20px 16px;
    flex-wrap: wrap;
}

.widget {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.widget i {
    color: var(--primary);
    font-size: 14px;
}

.widget .view-number,
.widget #view-count {
    font-weight: 700;
    color: var(--text);
}

.widget #clock-time {
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* ===== Music Player ===== */
.music-player {
    margin: 0 20px;
    padding: 16px;
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 12px;
}

.player-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.volume-btn {
    background: none; border: none;
    color: var(--text);
    font-size: 16px; cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.volume-btn:hover { color: var(--primary); }

.song-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Audio Visualizer */
.visualizer-canvas {
    width: 100%;
    height: 64px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: block;
}

/* Audio FX Controls (Speed / Reverb) */
.audio-fx {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
}

.fx-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fx-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    min-width: 42px;
    flex-shrink: 0;
}

.fx-control input[type="range"] {
    flex: 1;
    height: 3px;
    appearance: none;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    outline: none;
}

.fx-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--text);
    transition: transform 0.15s ease;
}

.fx-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.fx-val {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.player-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time {
    font-size: 12px;
    color: var(--text-dim);
    min-width: 38px;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex: 1; height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--text);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    width: 14px; height: 14px;
    background: var(--text);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 0%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}
.progress-bar:hover .progress-thumb { opacity: 1; }

.player-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.player-btn {
    background: none; border: none;
    color: var(--text);
    font-size: 16px; cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s;
}
.player-btn:hover { color: var(--primary); }

/* ===== Click Effect Ripple ===== */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 9999;
    animation: clickRippleExpand 0.5s ease-out forwards;
}

@keyframes clickRippleExpand {
    from { width: 0; height: 0; opacity: 1; }
    to { width: 60px; height: 60px; opacity: 0; }
}

/* ===== Cursor Sparkle ===== */
.cursor-sparkle {
    position: fixed;
    width: 4px; height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: sparkleFloat 0.6s ease-out forwards;
}

@keyframes sparkleFloat {
    from { opacity: 1; transform: translate(0, 0) scale(1); }
    to { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

/* ===== Cursor Trail Dots ===== */
.cursor-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== Layout Modes ===== */

/* Compact — narrower, tighter, denser */
.card.layout-compact {
    width: 400px;
    padding-bottom: 16px;
}
.card.layout-compact .profile-info { padding: 8px 16px 0; }
.card.layout-compact .social-links { padding: 10px 0; gap: 8px; }
.card.layout-compact .discord-card,
.card.layout-compact .widgets-row,
.card.layout-compact .music-player { margin: 0 12px; }
.card.layout-compact .music-player { padding: 12px; }
.card.layout-compact .banner { border-radius: var(--card-radius) var(--card-radius) 0 0; }

/* Wide — expansive, more breathing room */
.card.layout-wide {
    width: 580px;
    padding-bottom: 32px;
}
.card.layout-wide .profile-info { padding: 16px 32px 0; }
.card.layout-wide .social-links { padding: 20px 0; gap: 16px; }
.card.layout-wide .discord-card,
.card.layout-wide .widgets-row,
.card.layout-wide .music-player { margin: 0 28px; }

/* Minimal — hide discord & widgets, focus on profile + socials + music */
.card.layout-minimal .discord-card,
.card.layout-minimal .widgets-row,
.card.layout-minimal .spotify-card { display: none !important; }
.card.layout-minimal .social-links { padding: 20px 0; }
.card.layout-minimal .music-player { margin-top: 4px; }

/* Clean — stripped down to essentials: avatar, name, socials, music only */
.card.layout-clean .discord-card,
.card.layout-clean .widgets-row,
.card.layout-clean .spotify-card { display: none !important; }
.card.layout-clean .banner { display: none !important; }
.card.layout-clean .avatar-wrapper { margin-top: 24px; }
.card.layout-clean .avatar-wrapper .avatar { border-color: transparent; }
.card.layout-clean .social-links { padding: 20px 0 8px; }
.card.layout-clean .profile-info { padding-top: 16px; }

/* ===== Hidden state ===== */
.hidden { display: none !important; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* ===== Responsive ===== */
@media (max-width: 520px) {
    .card { width: 100%; }
    .discord-card { flex-direction: column; gap: 12px; align-items: flex-start; }
    .discord-btn { width: 100%; text-align: center; }
    .player-bottom { flex-wrap: wrap; }
    .player-buttons { margin-left: auto; }
    .spotify-card { flex-direction: column; text-align: center; }
    .widgets-row { flex-direction: column; }
    .loading-name { font-size: 32px; }
}
