:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7;
    --bg-dark: #030712;
    --card-bg: rgba(17, 24, 39, 0.7);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-alt: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Static Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: -1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 1;
}

/* Profile Card with Animated Gradient */
.profile-card {
    background: linear-gradient(-45deg, rgba(17, 24, 39, 0.8), rgba(30, 27, 75, 0.8), rgba(49, 46, 129, 0.8), rgba(30, 27, 75, 0.8));
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite, fadeIn 0.8s ease-out;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.avatar-container::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-main);
    background: var(--bg-dark);
}

/* Typography */
.nickname {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.badge {
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
}

.handle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 24px;
    font-family: var(--font-alt);
}

.bio {
    margin-bottom: 32px;
}

.bio p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sub-bio {
    font-size: 0.95rem !important;
    color: var(--secondary);
    font-weight: 600;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.link-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.telegram-blue {
    background: rgba(36, 161, 222, 0.1);
    border-color: rgba(36, 161, 222, 0.3);
}

.telegram-blue:hover {
    background: rgba(36, 161, 222, 0.3);
    border-color: #24a1de;
    box-shadow: 0 0 20px rgba(36, 161, 222, 0.6);
    color: #fff;
}

.telegram-blue i {
    color: #24a1de;
}

/* Burning Portfolio Button */
.portfolio-burning {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    position: relative;
    overflow: hidden;
    color: #fee2e2;
}

.portfolio-burning::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4), transparent);
    transform: translateX(-100%);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    100% {
        transform: translateX(100%);
    }
}

.portfolio-burning:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), inset 0 0 15px rgba(239, 68, 68, 0.3);
    animation: shake 0.5s infinite linear;
}

@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    75% {
        transform: translate(1px, 1px);
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-yes {
    background: var(--primary);
    color: white;
}

.btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* Warning Button (@toxayback) */
.warning-btn {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fef9c3;
}

.warning-btn:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
    color: #fff;
}

.warning-btn i {
    color: #eab308;
}

/* Soon Button */
.soon {
    opacity: 0.7;
    cursor: default;
}

.soon:hover {
    transform: none;
}

.link-item i {
    font-size: 1.4rem;
}

/* Footer */
.footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-alt);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .profile-card {
        padding: 30px 20px;
    }
}