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

:root {
    --primary: #00a2ff;
    --secondary: #2d3748;
    --accent: #ff6b6b;
    --text: #ffffff;
    --text-muted: #a0aec0;
    --bg: rgba(0, 0, 0, 0.7);
    --grid: rgba(0, 162, 255, 0.1);
    --glow: rgba(0, 162, 255, 0.3);
    --roblox-blue: #00a2ff;
    --roblox-green: #02b757;
    --roblox-gray: #393b3d;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('background-abstract-pixel-rain_23-2148367760.avif') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-overlay {
    display: none;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.error-content {
    text-align: center;
    background: rgba(26, 27, 30, 0.95);
    border: 1px solid #393b3d;
    border-radius: 12px;
    max-width: 800px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Roblox Profile Header */
.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.profile-avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.avatar-container {
    margin: 0;
    width: 100%;
    height: 100%;
}

#avatar-display {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--roblox-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

#avatar-img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.profile-display-name {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--roblox-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-description {
    background: rgba(57, 59, 61, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.description-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.error-description {
    display: none;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.generator-controls {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-group input {
    padding: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.input-group textarea {
    padding: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--secondary);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.account-card {
    background: rgba(45, 55, 72, 0.3);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.account-info {
    text-align: left;
    margin-bottom: 1.5rem;
}

.account-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.account-info strong {
    color: var(--text);
}

.account-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--glow);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0088cc);
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.floating-robux {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.robux-item {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    animation: floatUp 8s ease-in-out infinite;
}

.robux-item:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.robux-item:nth-child(2) {
    left: 50%;
    animation-delay: 2s;
}

.robux-item:nth-child(3) {
    left: 80%;
    animation-delay: 4s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar-container {
        width: 150px;
        height: 150px;
    }
}