@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blur-amount: 15px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.noise {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    opacity: 0.05;
    background: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif');
    pointer-events: none;
}

#overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease;
}

.click-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 20px white; }
}

#main-content {
    opacity: 0;
    transition: opacity 1s ease;
    transform: scale(0.95);
    width: 100%;
    display: flex;
    justify-content: center;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.views-counter {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.views-counter i { font-size: 0.7rem; }

.pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    object-fit: cover;
    transition: transform 0.3s;
}

.pfp:hover { transform: scale(1.05); }

.username {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.username-decoration { margin-left: 8px; text-shadow: 0 0 15px currentColor; -webkit-text-fill-color: currentColor; }
.username-decoration.fa-check-circle { color: #1DA1F2; }
.username-decoration.fa-crown { color: gold; }
.username-decoration.fa-terminal { color: #0f0; }
.username-decoration.fa-skull { color: #eee; }
.username-decoration.fa-bolt { color: #ff0; }

.bio { font-size: 1rem; color: #aaa; margin-bottom: 2rem; min-height: 1.5em; }

.cursor { display: inline-block; width: 2px; background: white; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.social-links { display: flex; justify-content: center; gap: 1.5rem; }

.social-btn {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.social-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.tooltip {
    position: absolute; bottom: -30px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px; border-radius: 4px;
    font-size: 0.8rem; opacity: 0;
    pointer-events: none; transition: 0.2s;
}

.social-btn:hover .tooltip.show-hover { opacity: 1; }
.tooltip.show-click { opacity: 1; }

#admin-trigger { position: fixed; bottom: 20px; right: 20px; color: rgba(255,255,255,0.2); cursor: pointer; }

#admin-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
}

.modal-hidden { display: none; }
#admin-modal.modal-hidden { display: none; }

.modal-content {
    width: min(680px, 92vw);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    line-height: 1;
    font-size: 18px;
}

.close-modal:hover { background: rgba(255, 255, 255, 0.1); }
.close-modal:active { transform: scale(0.95); }

#admin-login-view h2,
#admin-dashboard-view h2 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
}

#admin-dashboard-view { display: none; }

#login-error {
    display: none;
    margin-top: 12px;
    color: #ff4d4d;
    font-size: 0.9rem;
}

.admin-login-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.admin-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.admin-section {
    margin-top: 24px;
    text-align: left;
}

.admin-section h3 {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#admin-pass,
#bio-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

#admin-pass::placeholder,
#bio-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#admin-pass:focus,
#bio-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

#login-btn,
#save-bio-btn {
    padding: 11px 14px;
    border-radius: 12px;
    border: 0;
    background: #fff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

#login-btn:hover,
#save-bio-btn:hover {
    filter: brightness(0.95);
}

#login-btn:active,
#save-bio-btn:active {
    transform: scale(0.98);
}

.badge-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.badge-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.badge-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.badge-btn:active { transform: translateY(0) scale(0.98); }

.badge-btn i { font-size: 18px; }

#audio-controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: 0.6s;
}

#audio-controls button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

#play-pause-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: transform 0.15s ease, background 0.15s ease;
}

#play-pause-btn:hover { background: rgba(255, 255, 255, 0.1); }
#play-pause-btn:active { transform: scale(0.95); }
#play-pause-btn i { font-size: 14px; }

#volume-slider {
    width: 160px;
    height: 38px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    --volume: 0.3;
}

#volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.9) calc(var(--volume) * 100%),
        rgba(255, 255, 255, 0.2) calc(var(--volume) * 100%),
        rgba(255, 255, 255, 0.2) 100%
    );
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

#volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.9) calc(var(--volume) * 100%),
        rgba(255, 255, 255, 0.2) calc(var(--volume) * 100%),
        rgba(255, 255, 255, 0.2) 100%
    );
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

#toast {
    visibility: hidden; position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%); background: #333; color: #fff;
    padding: 16px; border-radius: 8px; opacity: 0; transition: 0.5s;
}
#toast.show { visibility: visible; opacity: 1; bottom: 50px; }