* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #f8f9fa;
    --text-color-darker: rgba(248, 249, 250, 0.5);
    --bg-color: #000000;
    --container-bg: rgba(0, 0, 0, 0);
    --container-blur: 0px;
    --container-border: 10px solid rgba(0, 0, 0, 0);
    --container-radius: 100px;
    --container-width: 40rem;
    --container-padding: 25px;
    --username-glow: 0px 0px 16.5px #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 16px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    hover: background rgba(255, 255, 255, 0.1);
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.audio-btn.muted {
    opacity: 0.5;
}

.audio-slider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.audio-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.audio-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

body.admin-page {
    overflow: auto;
    align-items: flex-start;
}

/* Background Effects */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.effect-rain {
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
    animation: rain 0.5s linear infinite;
}

.effect-rain::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    animation: rainDrop 1s linear infinite;
}

@keyframes rain {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

@keyframes rainDrop {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.effect-snowflakes {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 200px 200px, 150px 150px, 180px 180px;
    animation: snowflakes 20s linear infinite;
}

@keyframes snowflakes {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 100vh, 0 100vh, 0 100vh; }
}

.effect-aurora {
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(99, 102, 241, 0.1) 75%,
        rgba(139, 92, 246, 0.1) 100%);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

@keyframes aurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Profile Wrapper */
.profile-wrapper {
    width: 100%;
    max-width: var(--container-width);
    position: relative;
    z-index: 1;
}

.profile-container {
    background: var(--container-bg);
    backdrop-filter: blur(var(--container-blur));
    border: var(--container-border);
    border-radius: var(--container-radius);
    padding: var(--container-padding);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.profile-avatar-container {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.username-section {
    margin-bottom: 15px;
}

.profile-username {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    text-shadow: var(--username-glow);
    letter-spacing: -0.5px;
    display: inline;
}

.badges-inline {
    display: inline-flex;
    align-items: center;
    gap: 0; /* no space between badges */
    vertical-align: middle;
    flex-wrap: nowrap; /* keep badges in a single straight line */
    overflow-x: auto; /* allow horizontal scrolling if too many badges */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    transform: translateY(-0.5px);
}

/* hide webkit scrollbars */
.badges-inline::-webkit-scrollbar {
    display: none;
    /* hide visible scrollbar while allowing scroll interactions */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
/* duplicate scrollbar rule removed (was causing extra closing brace)
   kept single scrollbar-hide block above */

.badge-inline-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* pull badges slightly on top of each other so there is visually no gap */
.badge-inline-item + .badge-inline-item {
    margin-left: 5px;
}

.badge-inline-item img { display: block; }

.badge-inline-item:hover {
    transform: translateY(-4px); /* small lift instead of scale to avoid pushing neighbors */
    z-index: 3; /* ensure hovered badge appears on top */
}

.badge-inline-item img {
    width: 20.5px; /* bigger badges */
    height: 20.5px;
    object-fit: contain;
    filter: none; /* default: no drop-shadow so badges touch */
    image-rendering: crisp-edges;
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 0 10px rgba(248, 249, 250, 0.12); /* subtle glow */
}

.profile-bio {
    font-size: 14px;
    color: var(--text-color-darker);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Social Links Section */
.socials-section {
    margin: 30px 0;
}

.socials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(248, 249, 250, 0.22);
    border: 2px solid rgba(248, 249, 250, 0.12);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-link:hover {
    background: rgba(248, 249, 250, 0.32);
    border-color: rgba(248, 249, 250, 0.25);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 20px;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.no-socials {
    text-align: center;
    color: var(--text-color-darker);
    font-style: italic;
    padding: 20px;
}

/* Profile Views */
.profile-views {
    position: absolute;
    bottom: 12px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 550;
}

.profile-views svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        border-radius: 50px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-username {
        font-size: 28px;
    }

    .profile-bio {
        font-size: 13px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .badge-inline-item img {
        width: 20.5px !important;
        height: 20.5px !important;
        object-fit: contain !important;
        image-rendering: crisp-edges !important;
}
    }
}

/* Uniform color mode: when admin enables a single color for all badges */
/* All styling is now handled by JS in index.html, not CSS */

/* Admin Panel Styles */
.admin-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.admin-panel {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.admin-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.admin-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.badge-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.badge-checkbox label {
    cursor: pointer;
    flex: 1;
    color: var(--text-color);
}

.success-message {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.link-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-input-group input {
    flex: 1;
}

.link-input-group button {
    width: auto;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.link-input-group button:hover {
    background: rgba(239, 68, 68, 0.4);
}

.add-link-btn {
    width: auto;
    padding: 10px 20px;
    margin-top: 10px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Splash overlay (click to reveal) */
.splash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.splash-overlay .prompt {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    user-select: none;
    opacity: 0.95;
}
.splash-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}







