:root {
    --primary: #9147ff;
    --primary-light: #b380ff;
    --primary-dark: #7c3aed;
    --accent-pink: #ff49db;
    --accent-cyan: #00f5ff;
    --accent-green: #00ff88;
    --bg-dark: #0d0d0f;
    --bg-surface: rgba(20, 20, 25, 0.8);
    --bg-card: rgba(30, 30, 40, 0.6);
    --bg-card-hover: rgba(40, 40, 55, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --twitch: #9147ff;
    --discord: #5865f2;
    --youtube: #ff0000;
    --twitter: #1da1f2;
    --instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --tiktok: #ff0050;
    --support: #ff6b6b;
    --container-width: 420px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="light"] {
    --bg-dark: #f5f5f7;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .gradient-orb {
    opacity: 0.3;
}

[data-theme="light"] .link-card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .link-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 100;
    transition: all var(--transition-medium);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-card-hover);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    top: 50%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-cyan);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(30px, 10px) scale(1.02);
    }
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: -3s;
    animation-duration: 22s;
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: -6s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    left: 55%;
    animation-delay: -9s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 70%;
    animation-delay: -12s;
    animation-duration: 17s;
}

.particle:nth-child(6) {
    left: 85%;
    animation-delay: -4s;
    animation-duration: 21s;
}

.particle:nth-child(7) {
    left: 15%;
    animation-delay: -8s;
    animation-duration: 19s;
}

.particle:nth-child(8) {
    left: 60%;
    animation-delay: -14s;
    animation-duration: 23s;
}

.particle:nth-child(9) {
    left: 5%;
    animation-delay: -2s;
    animation-duration: 19s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(10) {
    left: 33%;
    animation-delay: -7s;
    animation-duration: 24s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(11) {
    left: 48%;
    animation-delay: -11s;
    animation-duration: 17s;
}

.particle:nth-child(12) {
    left: 78%;
    animation-delay: -5s;
    animation-duration: 21s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(13) {
    left: 92%;
    animation-delay: -16s;
    animation-duration: 18s;
}

.particle:nth-child(14) {
    left: 20%;
    animation-delay: -10s;
    animation-duration: 25s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(15) {
    left: 52%;
    animation-delay: -1s;
    animation-duration: 20s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(16) {
    left: 88%;
    animation-delay: -13s;
    animation-duration: 22s;
}

@keyframes rise {
    0% {
        bottom: -5%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }

    10% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
        transform: translateX(20px) scale(1);
    }

    90% {
        opacity: 0.5;
    }

    100% {
        bottom: 105%;
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
}

[data-theme="light"] .particle {
    background: rgba(145, 71, 255, 0.3);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.avatar-glow {
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--accent-cyan));
    border-radius: 50%;
    animation: rotateGlow 4s linear infinite;
    filter: blur(15px);
    opacity: 0.7;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    padding: 4px;
    position: relative;
    z-index: 1;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    overflow: hidden;
}

.avatar-emoji {
    animation: bounce 2s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.live-badge {
    position: absolute;
    bottom: 5px;
    right: -5px;
    background: #eb0400;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(235, 4, 0, 0.5);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.name {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.social-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.4rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.link-card {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
    padding: 1.4rem 1.8rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.15s;
}

.link-card:nth-child(3) {
    animation-delay: 0.2s;
}

.link-card:nth-child(4) {
    animation-delay: 0.25s;
}

.link-card:nth-child(5) {
    animation-delay: 0.3s;
}

.link-card:nth-child(6) {
    animation-delay: 0.35s;
}

.link-card:nth-child(7) {
    animation-delay: 0.4s;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:active {
    transform: translateY(-1px) scale(1.01);
}

.link-card.primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary-light);
}

.link-card.primary.is-live {
    animation: liveGlow 2s ease-in-out infinite;
    border-color: #ff4444;
}

@keyframes liveGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.4), 0 0 40px rgba(145, 71, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.6), 0 0 60px rgba(145, 71, 255, 0.4);
    }
}

.link-card.primary:hover {
    box-shadow: 0 10px 40px rgba(145, 71, 255, 0.4), 0 0 0 1px var(--primary-light);
}

.link-card.support {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border-color: rgba(255, 107, 107, 0.3);
}

.link-card.support:hover {
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3), 0 0 0 1px rgba(255, 107, 107, 0.5);
}

.link-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.link-icon svg {
    width: 22px;
    height: 22px;
}

.link-card:hover .link-icon {
    transform: scale(1.1);
}

.twitch-icon {
    background: linear-gradient(135deg, #9147ff, #772ce8);
    color: white;
}

.discord-icon {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
}

.youtube-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
}

.twitter-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.instagram-icon {
    background: var(--instagram);
    color: white;
}

.tiktok-icon {
    background: linear-gradient(135deg, #000000, #25f4ee);
    color: white;
}

.support-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.link-subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.link-arrow {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
    color: var(--text-primary);
}

.footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.footer p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    html {
        font-size: 58%;
    }

    .container {
        padding: 3rem 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-inner {
        font-size: 3.5rem;
    }

    .name {
        font-size: 2.4rem;
    }

    .link-card {
        padding: 1.2rem 1.4rem;
    }

    .link-icon {
        width: 38px;
        height: 38px;
    }

    .link-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-orb {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .link-card {
        border-width: 2px;
    }

    .text-secondary,
    .text-muted {
        color: var(--text-primary);
    }
}