* { box-sizing: border-box; }
body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d0d2a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow-text {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.2);
}

.card-shine {
    position: relative;
    overflow: hidden;
}
.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.account-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(20, 20, 60, 0.8) 0%, rgba(10, 10, 40, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.account-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 200, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 255, 0.3);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.build-card {
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
    background: linear-gradient(135deg, rgba(30, 30, 80, 0.7) 0%, rgba(15, 15, 40, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.build-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 200, 255, 0.15);
    border-color: rgba(0, 200, 255, 0.3);
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.copy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.copy-btn:hover::before {
    width: 200px;
    height: 200px;
}

.element-badge {
    transition: all 0.3s ease;
}
.element-badge:hover {
    transform: scale(1.3) rotate(5deg);
    filter: brightness(1.5) !important;
}

.header-glow {
    animation: headerGlow 3s ease-in-out infinite;
}
@keyframes headerGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.2);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.support-icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.support-icon:hover {
    transform: scale(1.3) rotate(10deg);
    z-index: 10;
}

.copy-icon {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}
.copy-icon:hover {
    color: #00ffff !important;
    transform: scale(1.2);
}
.copy-icon::after {
    content: 'Copied!';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 255, 255, 0.9);
    color: #0a0a1a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.3s ease;
    pointer-events: none;
}
.copy-icon.copied::after {
    transform: translateX(-50%) scale(1);
}
.copy-icon.copied {
    color: #00ff88 !important;
}

.character-modal {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.character-modal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95) 0%, rgba(20, 20, 50, 0.98) 100%);
    border: 2px solid var(--modal-accent, #00ffff);
    border-radius: 16px;
    padding: 16px;
    width: 200px;
    box-shadow: 0 0 30px var(--modal-accent)44, 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
    backdrop-filter: blur(12px);
}
.modal-avatar {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--modal-accent, #00ffff);
    box-shadow: 0 0 20px var(--modal-accent)33;
    margin-bottom: 12px;
}
.modal-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--modal-accent)66;
}
.modal-element {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-element-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.avatar-ring {
    --ring-color: #00ffff;
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 var(--ring-color); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.section-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    height: 1px;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #0088ff);
    border-radius: 4px;
}