:root { --primary: #2563eb; --primary-dark: #1e40af; --accent: #06b6d4; --danger: #ef4444; --glass-bg: rgba(255, 255, 255, 0.95); --text: #1f2937; --font: 'Montserrat', sans-serif; --gold: #f59e0b; --dark-card: #0f172a; --success: #22c55e; }
html, body { height: 100%; margin: 0; padding: 0; font-family: var(--font); overflow: hidden; background: #f8fafc; color: var(--text); }
#app-view, .container { height: 100%; width: 100%; display: flex; }
#map { flex: 1; height: 100%; width: 100%; z-index: 0; }
.hidden { display: none !important; }
button { font-family: var(--font); }

/* --- TOASTS CENTRADOS --- */
#toast-container { 
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); 
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 350px;
}

/* --- HEADER APP CENTRO --- */
.app-header {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    z-index: 2000; text-align: center; pointer-events: none;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
    padding: 8px 25px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: max-content; max-width: 90%;
}
.app-logo { font-weight: 900; font-size: 1.1rem; color: #111; letter-spacing: -0.5px; }
.app-tagline { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- HEADER INDICADOR MAPA AMIGO --- */
.map-header {
    position: absolute;
    top: 85px; /* PC */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #444;
    transition: top 0.3s;
}
.return-btn {
    background: var(--primary); color: white; border: none; padding: 5px 12px; border-radius: 15px; font-size: 0.75rem; cursor: pointer; font-weight: 700; transition: background 0.2s;
}
.return-btn:hover { background: var(--primary-dark); }

/* Login */
#login-view { height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&q=80') center/cover; position: absolute; z-index: 5000; }
.glass-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(25px); padding: 40px; border-radius: 30px; width: 90%; max-width: 400px; text-align: center; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.logo-area { font-size: 4rem; margin-bottom: 5px; }
.login-card h1 { margin: 0; font-weight: 800; font-size: 2rem; color: #111; }
.subtitle { margin: 5px 0 20px; color: #666; font-weight: 500; }
.quote { font-style: italic; color: #555; font-size: 0.9rem; margin-bottom: 10px; padding: 0 20px; }
.hint-text { font-size: 0.85rem; color: #666; margin-top: 15px; font-weight: 500; }
.auth-link { color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: none; transition: 0.2s; }
.auth-link:hover { color: var(--primary-dark); text-decoration: underline; }
.login-footer { margin-top: 25px; font-size: 0.75rem; color: #888; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 15px; }

/* Sidebar (Escritorio) */
.glass-sidebar { 
    position: absolute; top: 20px; left: 20px; bottom: 20px; width: 380px; 
    background: var(--glass-bg); backdrop-filter: blur(30px); border-radius: 25px; 
    padding: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
    z-index: 4000;
    display: flex; flex-direction: column; 
    transform: translateX(-120%); transition: transform 0.4s; 
}
@media (min-width: 769px) { .glass-sidebar { transform: translateX(0); } #btn-menu-toggle { display: none; } }
.glass-sidebar.active { transform: translateX(0); }

/* Contenido scrollable en escritorio */
.sidebar-top-content { 
    flex-grow: 1; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
    scrollbar-width: none; 
}
.sidebar-top-content::-webkit-scrollbar { display: none; }

.sidebar-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.user-info h2 { margin: 0; font-size: 1.5rem; font-weight: 800; color: #111; }

.stats-row-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
    flex-wrap: wrap;
}
.level-badge { 
    font-size: 0.85rem; background: #dbeafe; color: var(--primary-dark); 
    padding: 6px 12px; border-radius: 20px; font-weight: 700; display: inline-block; 
}
.rank-badge-small {
    font-size: 0.75rem; 
    background: rgba(245, 158, 11, 0.15); 
    color: #d97706; 
    padding: 6px 10px; 
    border-radius: 20px; 
    font-weight: 700; 
    cursor: pointer;
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
    text-transform: uppercase;
}
.rank-badge-small:hover { 
    background: rgba(245, 158, 11, 0.25); 
    transform: translateY(-1px);
}

.rank-list-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rank-list-info li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rank-list-info li:last-child { border-bottom: none; }
.rank-list-info strong { color: #333; }
.rank-list-info span { 
    background: #f8fafc; color: #64748b; 
    padding: 2px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; 
}

.close-btn { background: none; border: none; font-size: 1.8rem; cursor: pointer; display: none; color: #999; }
@media (max-width: 768px) { .close-btn { display: block; } }

.nav-tabs { display: flex; background: #f1f5f9; padding: 6px; border-radius: 16px; margin-bottom: 20px; }
.nav-tabs button { flex: 1; padding: 10px; border-radius: 12px; border: none; background: transparent; color: #64748b; cursor: pointer; font-weight: 700; transition: 0.3s; }
.nav-tabs button.active-tab { background: white; color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.logout-tab { background: #fef2f2; color: var(--danger) !important; width: 100%; border-radius: 14px; padding: 12px; border: none; font-weight: 700; cursor: pointer; transition: 0.2s; }
.logout-tab:hover { background: var(--danger); color: white !important; }

/* --- BADGE PASAPORTE BLOQUEADO --- */
.passport-locked-badge {
    background: #f3f4f6;
    color: #6b7280;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px dashed #d1d5db;
}

/* --- BOTÓN PASAPORTE EN SIDEBAR --- */
.btn-passport-style {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    background: linear-gradient(90deg, #1e293b, #334155);
    color: #fbbf24;
    border: 1px solid #475569;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.btn-passport-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #0f172a, #1e293b);
}

/* --- NUEVO BOTÓN VOLVER (ELEGANTE) --- */
.btn-elegant-back {
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: var(--primary);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-elegant-back:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    color: var(--primary-dark);
}
.btn-elegant-back:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* --- DISEÑO PASAPORTE FINAL --- */
.passport-card-design {
    width: 100%; 
    aspect-ratio: 1.58; 
    background: linear-gradient(135deg, var(--dark-card), #1e293b);
    border-radius: 20px;
    color: white;
    padding: 25px;
    box-sizing: border-box;
    position: relative; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.passport-bg-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 20%);
    pointer-events: none; z-index: 0;
}
.passport-top {
    display: flex; justify-content: space-between; align-items: flex-start; z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 15px;
    flex-shrink: 0;
}
.passport-title {
    font-size: 0.8rem; letter-spacing: 3px; font-weight: 800; color: rgba(255,255,255,0.6);
}
.passport-icon { font-size: 1.5rem; }

.passport-body { 
    display: flex; gap: 15px; z-index: 1; flex-grow: 1; align-items: center; 
    padding-bottom: 60px; 
}
.passport-user-col { display: flex; flex-direction: column; gap: 5px; flex: 1; justify-content: center; align-items: center; }

.passport-rank-badge {
    animation: floatAnim 3s ease-in-out infinite;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.passport-rank-badge img {
    width: 120px; 
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); 
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.passport-center-col {
    flex: 2; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
}

.passport-username { font-size: 1.3rem; font-weight: 900; color: white; text-transform: capitalize; }

.passport-stats-col { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    gap: 20px; 
    text-align: right; 
}
.pass-stat-row { display: flex; flex-direction: column; }
.pass-label { font-size: 0.6rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.pass-val { font-size: 1.25rem; font-weight: 800; color: white; line-height: 1.1; }
.gold-text { color: var(--gold); text-shadow: 0 0 15px rgba(245, 158, 11, 0.5); font-size: 1.3rem; margin-top: 5px; display: block;} 

.challenge-text-large {
    font-size: 1.5rem; font-weight: 900; color: #67e8f9; text-transform: capitalize;
    line-height: 1.1; max-width: 100%; word-break: break-word;
    text-shadow: 0 0 20px rgba(103, 232, 249, 0.3);
}
.separator-line { height:1px; background: rgba(255,255,255,0.1); width: 60%; margin: 15px 0; }

.passport-footer {
    position: absolute;
    bottom: 20px;
    right: 25px;
    left: 25px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    z-index: 2; 
}

/* FECHA EXPEDICIÓN */
.passport-date-box {
    display: flex; flex-direction: column;
}
.passport-date-box span {
    font-size: 0.5rem; color: rgba(255,255,255,0.5); letter-spacing: 1px;
}
.passport-date-box strong {
    font-size: 0.8rem; color: white; font-family: monospace; letter-spacing: 1px;
}

.passport-verified-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 8px;
    backdrop-filter: blur(5px); 
}
.verified-icon {
    background: var(--success);
    color: white;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.8rem; font-weight: 900;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}
.verified-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.verified-text span { font-size: 0.5rem; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 2px; letter-spacing: 1px; }
.verified-text strong { font-size: 0.7rem; color: white; font-weight: 800; letter-spacing: 0.5px; }

/* MEDIA QUERY PARA PASAPORTE EN MÓVIL (CORREGIDO) */
@media (max-width: 480px) {
    /* Corregir el corte de previsualización quitando padding del modal */
    .glass-modal { padding: 15px !important; width: 95% !important; }

    .passport-card-design { padding: 15px; }
    
    /* CAMBIO: Logo más pequeño para evitar solapamiento */
    .passport-rank-badge img { width: 50px; height: 50px; }
    .passport-rank-badge { margin-bottom: 2px; }
    
    .passport-username { font-size: 1rem; }
    .passport-title { font-size: 0.6rem; letter-spacing: 2px; }
    .passport-icon { font-size: 1.2rem; }
    
    .passport-body { gap: 8px; padding-bottom: 45px; }
    .passport-stats-col { gap: 10px; }
    
    .pass-label { font-size: 0.45rem; }
    .pass-val { font-size: 0.9rem; }
    .challenge-text-large { font-size: 1rem; }
    .gold-text { font-size: 0.95rem; margin-top: 2px; }
    
    .separator-line { margin: 8px 0; }

    .passport-footer { bottom: 10px; right: 10px; left: 10px; }
    .passport-verified-badge { padding: 4px 8px; border-radius: 6px; }
    .verified-icon { width: 14px; height: 14px; font-size: 0.5rem; }
    .verified-text span { font-size: 0.35rem; margin-bottom: 1px; }
    .verified-text strong { font-size: 0.5rem; }
    
    .passport-date-box span { font-size: 0.4rem; }
    .passport-date-box strong { font-size: 0.6rem; }
}

/* SCROLL VISIBLE GENERAL */
.tab-content { display: flex; flex-direction: column; padding-right: 5px; height: auto; overflow: visible; }
.social-title { margin-top: 0; font-size: 1rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.divider { border: 0; border-top: 1px solid #eee; margin: 20px 0; }
.modern-list li { background: white; padding: 15px; border-radius: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.rank-pos { font-weight: 900; color: var(--primary); font-size: 1.2rem; width: 35px; }
.rank-val { font-weight: 800; color: #111; background: #f1f5f9; padding: 4px 10px; border-radius: 10px; }

/* Botón Premium (ARREGLO SOMBRA) */
.btn-premium { background: linear-gradient(135deg, #f59e0b, #ea580c); color: white; border: none; padding: 16px; border-radius: 50px; width: calc(100% - 60px); margin: 10px auto 30px auto; font-size: 1.1rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3); transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; border: 2px solid rgba(255,255,255,0.3); }
.btn-premium:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(234, 88, 12, 0.4); }

/* --- CONTROLES MENÚ (Izquierda) --- */
.app-controls { position: absolute; top: 20px; left: 20px; z-index: 3000; pointer-events: none; }
.menu-btn-pos { pointer-events: auto; }

/* --- CONTADOR CIMAS --- */
.top-counter-badge { position: absolute; top: 20px; right: 20px; z-index: 3005; background: rgba(255, 255, 255, 0.9); padding: 10px 20px; border-radius: 30px; font-weight: 800; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; backdrop-filter: blur(5px); color: var(--text); pointer-events: auto; }

/* --- NOTIFICACIONES --- */
.bottom-controls { position: absolute; bottom: 30px; right: 20px; z-index: 3000; }
#notif-dropdown { position: absolute; bottom: 90px; right: 20px; width: 320px; z-index: 3001; background: var(--glass-bg); backdrop-filter: blur(25px); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); transform-origin: bottom right; }
.float-btn { width: 50px; height: 50px; border-radius: 15px; background: white; border: none; box-shadow: 0 8px 20px rgba(0,0,0,0.1); cursor: pointer; font-size: 1.4rem; display: flex; justify-content: center; align-items: center; color: var(--text); }
.badge { position: absolute; top: -5px; right: -5px; background: var(--danger); color: white; font-size: 0.75rem; width: 22px; height: 22px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; border: 2px solid white; }
#notif-list li { padding: 12px; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.9rem; }
.notif-btn { padding: 6px 12px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 0.8rem; margin: 5px 5px 0 0; }

input, select, textarea { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #e5e7eb; background: rgba(255,255,255,0.9); margin-bottom: 12px; box-sizing: border-box; font-family: inherit; }
.gradient-btn, .white-btn, .danger-btn, .secondary-btn { border: none; font-weight: 700; cursor: pointer; transition: 0.2s; }
.gradient-btn { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; }
.danger-btn { background: var(--danger); color: white; } .secondary-btn { background: #e5e7eb; color: #374151; } .white-btn { background: white; color: var(--primary); }
.full-btn { width: 100%; padding: 14px; border-radius: 14px; font-size: 1rem; }
.friend-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
.friend-card-item { background: white; padding: 20px 10px; border-radius: 20px; text-align: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.friend-avatar { width: 50px; height: 50px; background: #e0e7ff; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 10px; font-size: 1.5rem; }
.friend-stats-card { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 25px; border-radius: 25px; margin-bottom: 25px; position: relative; }
.close-card-btn { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.2); border: none; color: white; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; }
.stats-grid { display: flex; gap: 15px; margin: 20px 0; }
.stat-item { flex: 1; background: rgba(255,255,255,0.15); padding: 15px; border-radius: 15px; text-align: center; }
.stat-val { font-size: 1.4rem; font-weight: 900; display: block; } .stat-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); z-index: 8000; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; } 
.glass-modal { background: white; width: 100%; max-width: 450px; border-radius: 30px; padding: 35px; box-shadow: 0 30px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; animation: pop 0.3s; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.close-icon { background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-weight: bold; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; } .full-width { grid-column: span 2; }
.search-row { display: flex; gap: 8px; } .icon-btn { width: 50px; background: #f1f5f9; border: none; border-radius: 12px; cursor: pointer; font-size: 1.2rem; }
.pin-btn { background: #e0f2fe; color: #0284c7; } /* ESTILO NUEVO BOTÓN CHINCHETA */
.chips-container { display: flex; flex-wrap: wrap; gap: 10px; } .chip { padding: 10px 18px; background: #f1f5f9; border-radius: 25px; font-size: 0.9rem; cursor: pointer; font-weight: 600; } .chip.selected { background: var(--primary); color: white; border-color: var(--primary-dark); }
.success-card, .danger-card { text-align: center; } .success-icon { font-size: 5rem; margin-bottom: 15px; animation: bounce 0.6s; } .danger-icon { font-size: 5rem; margin-bottom: 15px; color: var(--danger); }
.modal-buttons { display: flex; gap: 15px; margin-top: 25px; } .history-entry { padding: 20px; border-bottom: 1px solid #f1f5f9; position: relative; }
.del-btn { position: absolute; top: 20px; right: 20px; background: #fef2f2; color: var(--danger); border: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
@keyframes pop { from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1} } @keyframes bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }

/* 📱 MÓVIL (MEDIA QUERIES) */
@media (max-width: 768px) {
    .glass-sidebar { bottom: 10px; top: 10px; right: 10px; left: 10px; width: auto; display: block; overflow-y: auto; z-index: 6000; scrollbar-width: none; -ms-overflow-style: none; }
    .glass-sidebar::-webkit-scrollbar { display: none; }
    .sidebar-top-content { display: block; overflow: visible; height: auto; }
    .sidebar-footer { margin-top: 30px; padding-bottom: 20px; }
    .app-controls { top: auto; bottom: 30px; }
    .top-counter-badge { top: auto; bottom: 95px; right: 20px; font-size: 1.1rem; padding: 8px 15px; }
    .map-header { top: 80px; width: 85%; justify-content: center; }
    .hidden-in-mobile-social { display: none !important; }
}

/* --- Solicitudes en Sidebar --- */
#sidebar-requests-area { margin-bottom: 20px; animation: slideIn 0.3s ease-out; }
.request-alert-title { font-size: 0.85rem; color: var(--primary); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-request-card { background: white; padding: 15px; border-radius: 16px; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15); border-left: 5px solid var(--primary); margin-bottom: 10px; }
.req-info { font-size: 0.95rem; margin-bottom: 10px; color: #333; }
.req-actions { display: flex; gap: 8px; }
.req-btn { flex: 1; padding: 8px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.8rem; transition: transform 0.1s; }
.req-btn:active { transform: scale(0.95); }
.req-accept { background: #dcfce7; color: #166534; }
.req-reject { background: #fee2e2; color: #991b1b; }

/* --- Borrar Amigos --- */
.icon-btn-small { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 5px; border-radius: 50%; transition: background 0.2s; }
.icon-btn-small:hover { background: #f1f5f9; }
.icon-btn-small.active { background: #fee2e2; border: 1px solid var(--danger); }

.friend-card-item { position: relative; }
.delete-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--danger); color: white;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 0.8rem; font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10; animation: pop 0.2s;
}
.shake-anim { animation: shake 0.5s infinite; }
@keyframes shake { 0% { transform: rotate(0deg); } 25% { transform: rotate(1deg); } 75% { transform: rotate(-1deg); } 100% { transform: rotate(0deg); } }
