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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Glow Effects (customizable in script.js) */
    --icon-glow-color: rgba(59, 130, 246, 0.6);
    --icon-glow-blur: 10px;
    --image-glow-color: rgba(255, 255, 255, 0.8);
    --image-glow-size: 20px;
    --username-glow-color1: rgba(255, 255, 255, 0.3);
    --username-glow-color2: rgba(59, 130, 246, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 40px 20px;
    cursor: none;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.profile-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Profile Icon */
.profile-icon-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.profile-icon-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--icon-glow-color) 0%, var(--icon-glow-color) 70%, transparent 100%);
    top: 0;
    left: 0;
    animation: glow 3s ease-in-out infinite;
    filter: blur(var(--icon-glow-blur));
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--icon-glow-color), 0 0 40px var(--icon-glow-color);
    }
    50% { 
        box-shadow: 0 0 30px var(--icon-glow-color), 0 0 60px var(--icon-glow-color);
    }
}

.profile-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3), 0 0 30px var(--icon-glow-color);
    border: 2px solid var(--icon-glow-color);
    animation: floatIcon 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

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

/* Badge Bar - Glassy/translucent container */
.badge-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin: 12px 0 18px 0;
    flex-wrap: wrap;
    width: auto;
    min-width: 150px;
}

.badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}

.badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
    z-index: 10;
}

.badge:hover::after {
    opacity: 1;
}

/* Username with Glow */
.username {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 15px 0 5px 0;
    text-shadow: 0 0 20px var(--username-glow-color1), 0 0 40px var(--username-glow-color2);
    animation: titleGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px var(--username-glow-color1), 0 0 40px var(--username-glow-color2);
    }
    50% {
        text-shadow: 0 0 30px var(--username-glow-color1), 0 0 60px var(--username-glow-color2);
    }
}

/* Particle Effects */
#particleContainer {
    z-index: 5;
    pointer-events: none;
}

.particle {
    pointer-events: none;
}

@keyframes floatParticle {
    to {
        transform: translate(var(--random-x), var(--random-y));
        opacity: 0;
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    height: 20px;
    min-height: 20px;
}

/* Icon Links - NO SQUARES, just icons! */
.icon-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.icon-link {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 2rem;
    position: relative;
    filter: brightness(0) invert(1);
    overflow: visible;
    line-height: 0;
    -webkit-appearance: none;
    -webkit-user-select: none;
}

.icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.icon-link:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(59, 130, 246, 0.6));
}

/* Edit Button (Floating) */
.edit-btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.edit-btn-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Edit Panel */
.edit-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.edit-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    margin: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUp 0.3s ease;
}

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

.edit-form h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.form-input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#linksForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.link-input-group input {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.link-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-delete {
    background: var(--danger-color);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-add {
    background: var(--success-color);
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    align-self: flex-start;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #059669;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-save, .btn-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-save {
    background: var(--primary-color);
    color: white;
}

.btn-save:hover {
    background: var(--primary-dark);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Snowflake Cursor */
#snowflakeContainer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: fixed;
    color: #e0e0e0;
    font-size: 1.5rem;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    user-select: none;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-icon {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }

    .username {
        font-size: 1.5rem;
    }

    .icon-link {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .icon-links {
        gap: 15px;
    }

    .edit-btn-floating {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .badge {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}
