:root {
    /* Colores principales */
    --color-primary: #06b6d4;
    --color-glow: rgba(6, 182, 212, 0.15);
    
    /* Fondos */
    --bg-black: #000000;
    --bg-card: rgba(15, 15, 15, 0.6);
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #8b8b8b;
    --text-muted: #666666;
    
    /* Bordes */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.3);
}

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

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-black);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    user-select: none;
    cursor: url('https://yorzen.net/assets/img/puntero.png') 16 16, auto;
}

a, button, input[type="range"], [onclick] {
    cursor: url('https://yorzen.net/assets/img/puntero.png') 16 16, pointer !important;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
}

.particle.small {
    width: 1px;
    height: 1px;
    background: rgba(6, 182, 212, 0.3);
}

.particle.medium {
    width: 2px;
    height: 2px;
    background: rgba(6, 182, 212, 0.4);
}

.particle.large {
    width: 2px;
    height: 2px;
    background: rgba(6, 182, 212, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(30px);
        opacity: 0;
    }
}

/* ===== ENTRY SCREEN ===== */
#entry-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

.entry-text {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: #444;
    text-transform: lowercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== BACKGROUND ===== */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(ellipse at center top, rgba(6, 182, 212, 0.12), transparent 60%),
                radial-gradient(ellipse at center, transparent, #000 80%);
}

#video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(70%) brightness(0.5);
    z-index: 0;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.08), transparent 50%);
    z-index: 1;
}

/* ===== CONTENT ===== */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 1.5rem;
}

/* ===== MAIN CARD ===== */
.main-card {
    position: relative;
    max-width: 380px;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

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

.card-border {
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.2), transparent);
    opacity: 0.5;
}

.card-inner {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem 2rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

/* ===== AVATAR SECTION ===== */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    z-index: 2;
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
    z-index: 3;
}

.avatar-decoration {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 135px;
    height: 135px;
    z-index: 4;
    pointer-events: none;
}

/* ===== NAME SECTION ===== */
.name-section {
    text-align: center;
}

.main-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-primary);
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 2rem 0;
}

/* ===== DISCORD SERVER SECTION ===== */
.friend-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.friend-section:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.server-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-dot {
    color: #333;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* ===== BOTTOM SECTION ===== */
.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 0.7rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--border-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.1rem;
}

/* ===== VIEW COUNTER ===== */
.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.view-counter i {
    font-size: 0.9rem;
}

/* ===== AUDIO CONTROL ===== */
.audio-control {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 20;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--border-hover);
    color: var(--color-primary);
}

.audio-control.active {
    color: var(--color-primary);
    border-color: rgba(6, 182, 212, 0.3);
}

#audio-icon i {
    font-size: 1.1rem;
}

.volume-slider-wrapper {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.audio-control:hover .volume-slider-wrapper {
    opacity: 1;
    max-width: 140px;
}

.volume-slider {
    -webkit-appearance: none;
    width: 110px;
    height: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    border: none;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    animation: slideIn 0.3s ease forwards;
}

.toast-notification.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-primary);
    font-size: 1.1rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .audio-control {
        width: 48px;
        height: 48px;
        top: 1rem;
        left: 1rem;
    }

    .volume-slider-wrapper {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 2rem;
        transform: translateX(-50%);
        max-width: none;
        width: calc(100% - 2rem);
        max-width: 280px;
    }

    .audio-control.active .volume-slider-wrapper {
        opacity: 1;
    }

    .volume-slider {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card-inner {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .main-name {
        font-size: 1.9rem;
    }

    .toast-notification {
        right: 1rem;
        left: 1rem;
        top: 1rem;
    }
}