:root {
    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --neon-pink: #ec4899;
    --dark-bg: #050508;
    --dark-card: #0d0d1a;
    --dark-border: #1a1a2e;
    --dark-surface: #111128;
    --text-primary: #f0f0ff;
    --text-secondary: #8888aa;
    --gold: #f59e0b;
    --silver: #94a3b8;
    --bronze: #cd7c2f;
    --gradient-main: linear-gradient(135deg, #a855f7, #3b82f6);
    --font-main: 'Rajdhani', 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--dark-bg); color: var(--text-primary); font-family: var(--font-body); overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(168,85,247,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(168,85,247,.04) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; z-index: 0; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(5,5,8,.88); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(168,85,247,.2); padding: 0 2rem; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo { width: 42px; height: 42px; background: var(--gradient-main); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 900; color: white; font-family: var(--font-main); box-shadow: 0 0 20px rgba(168,85,247,.5); overflow: hidden; }
.navbar-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.navbar-name { font-family: var(--font-main); font-size: 1.5rem; font-weight: 700; letter-spacing: 4px; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: .875rem; letter-spacing: 1px; text-transform: uppercase; transition: color .3s; position: relative; }

/* NAV USER DROPDOWN */
.nav-login-btn { padding: 8px 20px; border: 1px solid var(--neon-purple); border-radius: 8px; color: var(--neon-purple); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: all .2s; white-space: nowrap; }
.nav-login-btn:hover { background: rgba(168,85,247,.1); }
.nav-user-menu { position: relative; margin-left: 1rem; }
.nav-user-btn { display: flex; align-items: center; gap: 10px; background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.25); border-radius: 10px; padding: 6px 12px 6px 8px; cursor: pointer; transition: all .2s; color: var(--text-primary); }
.nav-user-btn:hover, .nav-user-btn[aria-expanded="true"] { background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.5); }
.nav-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--dark-border); display: flex; align-items: center; justify-content: center; font-size: 1rem; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(168,85,247,.4); }
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.nav-user-name { font-family: var(--font-main); font-size: .9rem; font-weight: 700; letter-spacing: 1px; color: var(--text-primary); }
.nav-user-mmr { font-size: .68rem; color: var(--neon-purple); letter-spacing: 1px; }
.nav-chevron { font-size: .6rem; color: var(--text-secondary); transition: transform .2s; }
.nav-user-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; background: var(--dark-card); border: 1px solid rgba(168,85,247,.25); border-radius: 12px; padding: .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(168,85,247,.1); z-index: 200; }
.nav-dropdown.open { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.nav-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--text-secondary); font-size: .875rem; transition: all .15s; }
.nav-dropdown-item:hover { color: var(--text-primary); background: rgba(168,85,247,.08); }
.nav-dropdown-admin { color: #fbbf24 !important; }
.nav-dropdown-admin:hover { color: #fde68a !important; background: rgba(251,191,36,.12) !important; }
.nav-dropdown-danger { color: #ef4444 !important; }
.nav-dropdown-danger:hover { background: rgba(239,68,68,.08) !important; }
.nav-dropdown-divider { height: 1px; background: var(--dark-border); margin: .4rem .5rem; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--gradient-main); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-link-admin { color: #fbbf24; }
.nav-links a.nav-link-admin:hover { color: #fde68a; }
.nav-links a.nav-link-admin::after { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.nav-admin-btn { padding: 8px 20px; background: transparent; border: 1px solid var(--neon-purple) !important; color: var(--neon-purple) !important; border-radius: 6px; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; transition: all .3s; }
.nav-admin-btn:hover { background: var(--neon-purple) !important; color: white !important; box-shadow: 0 0 20px rgba(168,85,247,.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: all .3s; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding-top: 70px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168,85,247,.12) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 20% 80%, rgba(59,130,246,.08) 0%, transparent 50%), radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6,182,212,.08) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 2rem; max-width: 900px; }
.hero-badge { display: inline-block; padding: 6px 20px; border: 1px solid rgba(168,85,247,.4); border-radius: 50px; font-size: .75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--neon-purple); margin-bottom: 2rem; background: rgba(168,85,247,.1); }
.hero-title { font-family: var(--font-main); font-size: clamp(4rem,12vw,9rem); font-weight: 900; letter-spacing: 12px; text-transform: uppercase; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 1rem; filter: drop-shadow(0 0 40px rgba(168,85,247,.4)); }
.hero-subtitle { font-family: var(--font-main); font-size: clamp(1rem,3vw,1.5rem); letter-spacing: 6px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1.5rem; }
.hero-motto { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; font-style: italic; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary { padding: 14px 36px; background: var(--gradient-main); border: none; border-radius: 8px; color: white; font-size: .9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: all .3s; box-shadow: 0 0 30px rgba(168,85,247,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(168,85,247,.5); }
.btn-secondary { padding: 14px 36px; background: transparent; border: 1px solid rgba(168,85,247,.4); border-radius: 8px; color: var(--text-primary); font-size: .9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: all .3s; }
.btn-secondary:hover { border-color: var(--neon-purple); background: rgba(168,85,247,.1); transform: translateY(-2px); }

/* STATS BAR */
.stats-bar { position: relative; z-index: 1; background: var(--dark-card); border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border); padding: 2rem 0; }
.stats-grid { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-family: var(--font-main); font-size: 2.5rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-top: 4px; }

/* SECTIONS */
section { position: relative; z-index: 1; padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { display: inline-block; font-size: .7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--neon-purple); margin-bottom: 1rem; }
.section-title { font-family: var(--font-main); font-size: clamp(2rem,5vw,3rem); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1rem; }
.section-line { width: 60px; height: 2px; background: var(--gradient-main); margin: 0 auto; box-shadow: 0 0 10px rgba(168,85,247,.5); }

/* NEWS GRID */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; overflow: hidden; transition: all .3s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.news-card:hover { border-color: rgba(168,85,247,.4); transform: translateY(-4px); box-shadow: 0 8px 40px rgba(168,85,247,.15); }
.news-cover { width: 100%; height: 180px; object-fit: cover; background: var(--dark-surface); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 3rem; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 1.5rem; }
.news-category { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--neon-cyan); margin-bottom: .5rem; }
.news-title { font-family: var(--font-main); font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; margin-bottom: .75rem; color: var(--text-primary); }
.news-excerpt { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.news-meta { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-secondary); }

/* RANKINGS */
.rankings-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; border-bottom: 1px solid var(--dark-border); padding-bottom: 1rem; }
.tab-btn { padding: 8px 20px; background: transparent; border: 1px solid var(--dark-border); border-radius: 6px; color: var(--text-secondary); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .3s; font-family: var(--font-body); }
.tab-btn.active, .tab-btn:hover { border-color: var(--neon-purple); color: var(--neon-purple); background: rgba(168,85,247,.1); }
.ranking-table-wrap { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; overflow: hidden; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { padding: 1rem 1.25rem; text-align: left; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--dark-border); background: rgba(168,85,247,.05); }
.ranking-table td { padding: .875rem 1.25rem; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.ranking-table tr:last-child td { border-bottom: none; }
.ranking-table tr:hover td { background: rgba(168,85,247,.04); }
.rank-pos { font-family: var(--font-main); font-weight: 700; font-size: 1.1rem; width: 50px; }
.rank-1 .rank-pos { color: var(--gold); }
.rank-2 .rank-pos { color: var(--silver); }
.rank-3 .rank-pos { color: var(--bronze); }
.rank-guild-tag { display: inline-block; padding: 2px 8px; background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.3); border-radius: 4px; font-size: .7rem; color: var(--neon-purple); margin-left: 8px; }

/* ── RANKINGS DEL SERVIDOR ──────────────────────────────────── */
.server-rankings-section {
    background: linear-gradient(180deg, rgba(5,5,12,1) 0%, rgba(10,5,22,.98) 100%);
    border-top: 1px solid rgba(168,85,247,.12);
    border-bottom: 1px solid rgba(168,85,247,.12);
    padding: 1.5rem 1.5rem 1.75rem;
    position: relative; overflow: hidden;
}
.server-rankings-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 50% 150% at 50% 50%, rgba(168,85,247,.07) 0%, transparent 70%);
}
.server-rankings-inner { max-width: 1400px; margin: 0 auto; position: relative; }
.server-rankings-head {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.server-rankings-title {
    font-family: var(--font-main); font-size: 1rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--text-primary); margin: 0;
    display: flex; align-items: center; gap: .5rem;
    white-space: nowrap;
}
.server-rankings-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.srv-tab {
    padding: .4rem .9rem; background: transparent;
    border: 1px solid var(--dark-border); border-radius: 6px;
    color: var(--text-secondary); font-size: .75rem;
    letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer; transition: all .2s; font-family: var(--font-body);
    white-space: nowrap;
}
.srv-tab.active, .srv-tab:hover {
    border-color: var(--neon-purple); color: var(--neon-purple);
    background: rgba(168,85,247,.12);
}
.srv-source-link {
    margin-left: auto; font-size: .72rem; color: var(--text-secondary);
    text-decoration: none; letter-spacing: .5px; white-space: nowrap;
    transition: color .2s;
}
.srv-source-link:hover { color: var(--neon-cyan); }
.server-rankings-body { min-height: 80px; }
.srv-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--dark-border); }
.srv-table {
    width: 100%; border-collapse: collapse;
    font-size: .82rem;
}
.srv-table thead tr { background: rgba(168,85,247,.06); border-bottom: 1px solid var(--dark-border); }
.srv-table th {
    padding: .65rem 1rem; text-align: left;
    font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-secondary); font-family: var(--font-main); white-space: nowrap;
}
.srv-table td { padding: .55rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03); }
.srv-table tbody tr:last-child td { border-bottom: none; }
.srv-table tbody tr:hover td { background: rgba(168,85,247,.04); }
.srv-pos { font-family: var(--font-main); font-weight: 700; color: var(--text-secondary); font-size: .8rem; }
.srv-table tbody tr:nth-child(1) .srv-pos { color: var(--gold); font-size: .95rem; }
.srv-table tbody tr:nth-child(2) .srv-pos { color: #c0c0c0; }
.srv-table tbody tr:nth-child(3) .srv-pos { color: #cd7f32; }
.srv-player-link { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.srv-player-link:hover { color: var(--neon-purple); }
.srv-class { color: var(--text-secondary); font-size: .75rem; }
.srv-lvl { color: var(--text-secondary); font-size: .75rem; text-align: center; }
.srv-value { font-family: var(--font-main); font-weight: 700; color: var(--neon-cyan); text-align: right; }
.srv-mmr { color: var(--neon-purple) !important; }
.srv-guild-name { font-weight: 700; color: var(--text-primary); }
.srv-wins  { color: #4ade80; font-family: var(--font-main); font-weight: 700; text-align: center; }
.srv-losses { color: #f87171; font-family: var(--font-main); text-align: center; }
.srv-empty { text-align: center; padding: 2.5rem; color: var(--text-secondary); font-size: .85rem; }

/* MEMBERS GRID */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.member-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; transition: all .3s; position: relative; overflow: hidden; }
.member-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-main); transform: scaleX(0); transition: transform .3s; }
.member-card:hover { border-color: rgba(168,85,247,.3); transform: translateY(-4px); }
.member-card:hover::before { transform: scaleX(1); }
.member-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; border: 2px solid rgba(168,85,247,.4); box-shadow: 0 0 20px rgba(168,85,247,.2); background: var(--dark-surface); display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member-ign { font-family: var(--font-main); font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; margin-bottom: .25rem; }
.member-rank { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; padding: 3px 12px; border-radius: 50px; display: inline-block; margin-bottom: .5rem; }
.rank-Leader { background: rgba(245,158,11,.15); color: var(--gold); border: 1px solid rgba(245,158,11,.3); }
.rank-Co-Leader { background: rgba(148,163,184,.15); color: var(--silver); border: 1px solid rgba(148,163,184,.3); }
.rank-Officer { background: rgba(168,85,247,.15); color: var(--neon-purple); border: 1px solid rgba(168,85,247,.3); }
.rank-Veteran { background: rgba(6,182,212,.15); color: var(--neon-cyan); border: 1px solid rgba(6,182,212,.3); }
.rank-Member { background: rgba(59,130,246,.15); color: var(--neon-blue); border: 1px solid rgba(59,130,246,.3); }
.rank-Recruit { background: rgba(255,255,255,.05); color: var(--text-secondary); border: 1px solid rgba(255,255,255,.1); }
.member-class { font-size: .8rem; color: var(--text-secondary); }

/* FOOTER */
footer { position: relative; z-index: 1; background: var(--dark-card); border-top: 1px solid var(--dark-border); padding: 3rem 2rem; text-align: center; }
.footer-logo { margin-bottom: 1rem; display: flex; justify-content: center; }
.footer-logo-img { height: 64px; width: auto; object-fit: contain; filter: drop-shadow(0 0 12px rgba(168,85,247,.5)); }
footer p { color: var(--text-secondary); font-size: .875rem; }
.footer-powered { margin: 0 0 .75rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.footer-powered-label {
    font-size: .72rem; letter-spacing: 4px; text-transform: uppercase; color: var(--text-secondary);
    opacity: .9;
}
.footer-light-heaven {
    font-family: var(--font-main); font-size: 1.25rem; font-weight: 700; letter-spacing: 4px;
    background: linear-gradient(105deg, #c4b5fd, #fde68a, #fffbeb, #fbbf24, #a78bfa, #fde68a);
    background-size: 280% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: footerHeavenShine 5s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(251,191,36,.35));
}
@keyframes footerHeavenShine {
    0%, 100% { background-position: 0% center; filter: drop-shadow(0 0 10px rgba(168,85,247,.35)); }
    50% { background-position: 100% center; filter: drop-shadow(0 0 18px rgba(251,191,36,.55)); }
}
.footer-copy { font-size: .75rem !important; color: var(--text-secondary) !important; opacity: .85; margin: 0; letter-spacing: .5px; }

/* LOADING / EMPTY */
.loading { text-align: center; padding: 3rem; color: var(--text-secondary); }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(168,85,247,.2); border-top-color: var(--neon-purple); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 4rem; color: var(--text-secondary); font-size: .9rem; }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(5,5,8,.98); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--dark-border); }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    section { padding: 4rem 1rem; }
}

/* ── AUTH PAGES (login / register) ─────────────────────────── */
.auth-page body, body.auth-page { background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(168,85,247,.1) 0%, transparent 70%), var(--dark-bg); }
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-box { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 16px; padding: 3rem 2.5rem; width: 100%; max-width: 440px; box-shadow: 0 0 60px rgba(168,85,247,.1); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--gradient-main); border-radius: 16px; font-family: var(--font-main); font-size: 1.5rem; font-weight: 900; color: #fff; box-shadow: 0 0 30px rgba(168,85,247,.4); text-decoration: none; margin-bottom: 1rem; }
.auth-logo h1 { font-family: var(--font-main); font-size: 1.8rem; letter-spacing: 6px; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-logo p { font-size: .8rem; color: var(--text-secondary); letter-spacing: 2px; margin-top: 4px; text-transform: uppercase; }
.alert-auth { padding: .875rem 1rem; border-radius: 8px; font-size: .875rem; margin-bottom: 1.25rem; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #22c55e; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: .5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text-primary); font-size: .9rem; font-family: var(--font-body); outline: none; transition: border-color .3s; }
.form-group select { color-scheme: dark; cursor: pointer; background-color: #14142a; }
.form-group select option { background-color: #14142a; color: #f0f0ff; }
.form-group select option:checked { background-color: #2a2a52; color: #ffffff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--neon-purple); box-shadow: 0 0 0 3px rgba(168,85,247,.1); }
.form-hint { display: block; font-size: .72rem; color: var(--text-secondary); margin-top: .4rem; }
.btn-auth { display: block; width: 100%; padding: 14px; background: var(--gradient-main); border: none; border-radius: 8px; color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all .3s; box-shadow: 0 0 20px rgba(168,85,247,.3); margin-top: .5rem; }
.btn-auth:hover { box-shadow: 0 0 40px rgba(168,85,247,.5); transform: translateY(-1px); }
.auth-footer { text-align: center; font-size: .8rem; color: var(--text-secondary); margin-top: 1.25rem; }
.auth-footer a { color: var(--neon-purple); text-decoration: none; }

/* ── RANK BADGES (sistema MU) ───────────────────────────────── */
.rank-madera   { color: #a0785a; }
.rank-hierro   { color: #94a3b8; }
.rank-bronce   { color: #cd7f32; }
.rank-plata    { color: #c0c0c0; }
.rank-oro      { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,.5); }
.rank-platino  { color: #4dd9ac; text-shadow: 0 0 10px rgba(77,217,172,.4); }
.rank-diamante { color: #67e8f9; text-shadow: 0 0 10px rgba(103,232,249,.5); }
.rank-maestro  { background: linear-gradient(135deg,#a855f7,#fbbf24); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; filter:drop-shadow(0 0 6px rgba(168,85,247,.6)); }

/* ── MEMBER CARD (mejorado con enlace) ──────────────────────── */
a.member-card { text-decoration: none; cursor: pointer; position: relative; }
.member-online-indicator { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-secondary); }
.member-online-indicator.is-online { background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.5} }
.member-guild-tag { font-size: .7rem; letter-spacing: 1px; color: var(--neon-cyan); text-transform: uppercase; }
.member-mmr { font-family: var(--font-main); font-size: .85rem; color: var(--neon-purple); margin-top: 4px; }

/* Hover card del jugador */
.player-hover-card {
    position: fixed;
    width: min(330px, calc(100vw - 20px));
    border-radius: 12px;
    border: 1px solid rgba(168,85,247,.35);
    background: rgba(7,7,12,.96);
    box-shadow: 0 18px 60px rgba(0,0,0,.5);
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .12s ease, transform .12s ease;
}
.player-hover-card.show { opacity: 1; transform: translateY(0); }
.player-hover-banner {
    height: 92px;
    background: linear-gradient(145deg, rgba(168,85,247,.3), rgba(6,182,212,.2));
    background-size: cover;
    background-position: center;
}
.player-hover-body {
    padding: .85rem .95rem 1rem;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: .75rem;
}
.player-hover-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(168,85,247,.6);
    background: #101018;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8dbff;
    font-size: 1.25rem;
    overflow: hidden;
}
.player-hover-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-hover-name { font-family: var(--font-main); font-size: 1rem; letter-spacing: .5px; color: #f3e9ff; line-height: 1.1; }
.player-hover-stats {
    margin-top: .4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.player-hover-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    font-size: .69rem;
    letter-spacing: .5px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: #d8d2e8;
    background: rgba(255,255,255,.03);
}
.player-hover-pill.online {
    border-color: rgba(34,197,94,.35);
    color: #86efac;
    background: rgba(34,197,94,.11);
}
.player-hover-pill.mmr {
    border-color: rgba(6,182,212,.32);
    color: #67e8f9;
    background: rgba(6,182,212,.09);
}
.player-hover-activity {
    margin-top: .45rem;
    font-size: .78rem;
    color: #b8b4c7;
    line-height: 1.35;
}

/* ── FEED (homepage) ─────────────────────────────────────────── */
.feed-grid { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 1; }
.feed-grid.feed-scrollable {
    max-height: min(2000px, 97vh);
    overflow-y: auto;
    padding-right: 6px;
}
.feed-grid.feed-scrollable::-webkit-scrollbar { width: 5px; }
.feed-grid.feed-scrollable::-webkit-scrollbar-track { background: transparent; }
.feed-grid.feed-scrollable::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border-radius: 4px; }
.feed-more-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.feed-more-btn {
    padding: .62rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(168,85,247,.35);
    background: rgba(168,85,247,.12);
    color: var(--neon-purple);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .16s;
}
.feed-more-btn:hover { background: rgba(168,85,247,.22); color: #d8b4fe; }
.feed-more-btn:disabled { opacity: .6; cursor: not-allowed; }
.feed-card { background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 12px; padding: 1.25rem; transition: border-color .3s; width: 100%; box-sizing: border-box; }
.feed-card:hover { border-color: rgba(168,85,247,.3); }
.feed-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.feed-delete-btn { margin-left: auto; background: none; border: none; color: var(--text-secondary); font-size: .85rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; line-height: 1; opacity: .6; transition: opacity .15s, color .15s; }
.feed-delete-btn:hover { opacity: 1; color: #ff4d4d; }
.feed-card-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.feed-edit-btn { background: none; border: none; color: var(--text-secondary); font-size: .82rem; cursor: pointer; padding: 2px 5px; border-radius: 4px; line-height: 1; opacity: .55; transition: opacity .15s; }
.feed-edit-btn:hover { opacity: 1; }
.feed-edited-label { font-style: italic; color: var(--text-secondary); font-size: .7rem; }
.feed-inline-edit { margin-bottom: 1rem; }
.feed-edit-textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(168,85,247,.4); border-radius: 8px; padding: .65rem .9rem; color: var(--text-primary); font-family: var(--font-body); font-size: .9rem; resize: vertical; min-height: 70px; box-sizing: border-box; }
.feed-edit-textarea:focus { outline: none; border-color: rgba(168,85,247,.7); }
.feed-edit-actions { display: flex; gap: .5rem; margin-top: .45rem; }
.feed-edit-save { background: var(--neon-purple); color: #fff; border: none; border-radius: 7px; padding: .35rem .85rem; font-size: .82rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.feed-edit-save:hover { opacity: .85; }
.feed-edit-cancel { background: none; border: 1px solid var(--dark-border); color: var(--text-secondary); border-radius: 7px; padding: .35rem .85rem; font-size: .82rem; cursor: pointer; transition: border-color .15s; }
.feed-edit-cancel:hover { border-color: var(--text-secondary); }
.feed-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--dark-border); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; overflow: hidden; }
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-author { font-weight: 700; color: var(--neon-purple); text-decoration: none; font-size: .95rem; }
.feed-author:hover { text-decoration: underline; }
.feed-class { font-size: .75rem; color: var(--text-secondary); }
.feed-time { font-size: .72rem; color: var(--text-secondary); margin-top: 2px; }
.feed-content { font-size: .9rem; line-height: 1.6; color: var(--text-primary); margin-bottom: 1rem; word-break: break-word; }
.feed-image { border-radius: 8px; overflow: hidden; margin-bottom: 1rem; margin-left: -1.25rem; margin-right: -1.25rem; }
.feed-image img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.feed-comments-link { font-size: .8rem; color: var(--text-secondary); text-decoration: none; transition: color .2s; }
.feed-comments-link:hover { color: var(--neon-purple); }

/* ── PERFIL DE MIEMBRO ──────────────────────────────────────── */
.profile-hero {
    position: relative;
    padding-top: 70px;
    background: linear-gradient(180deg, rgba(168,85,247,.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--dark-border);
    overflow: hidden;
}
.profile-hero.has-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--profile-banner-url);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.03);
    z-index: 0;
}
.profile-hero.has-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,5,8,.3) 0%, rgba(5,5,8,.78) 48%, rgba(5,5,8,.95) 100%),
        radial-gradient(circle at 22% 28%, rgba(168,85,247,.35), transparent 56%);
    z-index: 0;
}
.profile-hero-inner { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; display: flex; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.profile-hero-inner { position: relative; z-index: 1; }
.profile-banner-controls {
    position: absolute;
    top: 84px;
    right: max(1rem, calc((100vw - 1000px) / 2 + 1rem));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    z-index: 2;
}
.profile-banner-change-btn {
    border: 1px solid rgba(168,85,247,.45);
    background: rgba(15,15,20,.9);
    color: #efe7ff;
    border-radius: 999px;
    padding: .45rem .85rem;
    font-size: .74rem;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .15s, border-color .15s, background .15s;
}
.profile-banner-change-btn:hover { transform: translateY(-1px); border-color: rgba(168,85,247,.75); background: rgba(20,20,28,.95); }
.profile-banner-msg {
    min-height: 1em;
    font-size: .72rem;
    color: var(--text-secondary);
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--dark-card); border: 3px solid var(--neon-purple); display: flex; align-items: center; justify-content: center; font-size: 3rem; object-fit: cover; box-shadow: 0 0 30px rgba(168,85,247,.3); }
.profile-avatar-placeholder { background: var(--dark-card); }
.online-dot { position: absolute; bottom: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--dark-bg); }
.online-dot.online  { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.online-dot.offline { background: var(--text-secondary); }
.profile-avatar-change-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.6);
    background: rgba(15, 15, 20, 0.92);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s, border-color 0.15s;
    z-index: 2;
}
.profile-avatar-change-btn:hover { transform: scale(1.06); border-color: var(--neon-purple); }
.profile-avatar-msg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 6px);
    width: max-content;
    max-width: 200px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}
.profile-meta { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-main); font-size: 2.5rem; font-weight: 900; letter-spacing: 4px; line-height: 1.1; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
/* ── Badge de puntos ─────────────────────────────────────── */
.profile-points-badge { display: inline-flex; align-items: center; gap: .4rem; margin: .5rem 0 .75rem; padding: 5px 14px 5px 10px; background: linear-gradient(135deg,rgba(168,85,247,.18),rgba(6,182,212,.12)); border: 1px solid rgba(168,85,247,.35); border-radius: 50px; font-size: .82rem; }
.points-icon { font-size: 1rem; }
.points-value { font-family: var(--font-main); font-weight: 700; color: #e2d9ff; letter-spacing: 1px; }
.points-rank-label { color: var(--neon-purple); font-size: .72rem; letter-spacing: 1px; opacity: .9; }
.profile-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.profile-tag { padding: 4px 12px; border-radius: 50px; font-size: .75rem; letter-spacing: 1px; }
.tag-guild  { background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.3); color: var(--neon-purple); }
.tag-class  { background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.25); color: var(--neon-cyan); }
.tag-status { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text-secondary); }
.tag-online { background: rgba(148,163,184,.05); border: 1px solid rgba(148,163,184,.15); color: var(--text-secondary); }
.tag-online.is-online { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #22c55e; }
.profile-stats-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0; }
.profile-stat { text-align: center; }
.profile-stat-val { font-family: var(--font-main); font-size: 1.4rem; font-weight: 700; }
.profile-stat-lbl { font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); }
.profile-bio { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; max-width: 500px; margin-top: .5rem; }
/* Last.fm edit widget in profile hero */
.profile-lastfm-wrap { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.profile-lastfm-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: #d51007; background: rgba(213,16,7,.1); border: 1px solid rgba(213,16,7,.25); border-radius: 20px; padding: 2px 10px; }
.profile-lastfm-edit-btn { background: none; border: 1px solid rgba(255,255,255,.12); color: var(--text-secondary); border-radius: 20px; padding: 2px 10px; font-size: .72rem; cursor: pointer; transition: border-color .2s, color .2s; }
.profile-lastfm-edit-btn:hover { border-color: #d51007; color: #d51007; }
.profile-lastfm-input { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: var(--text-primary); border-radius: 6px; padding: .3rem .6rem; font-size: .8rem; width: 200px; outline: none; }
.profile-lastfm-input:focus { border-color: #d51007; }
.profile-lastfm-save, .profile-lastfm-cancel { padding: .2rem .75rem; border-radius: 6px; border: none; font-size: .78rem; cursor: pointer; }
.profile-lastfm-save { background: #d51007; color: #fff; }
.profile-lastfm-save:hover { background: #b20d06; }
.profile-lastfm-cancel { background: rgba(255,255,255,.08); color: var(--text-secondary); }
.profile-lastfm-cancel:hover { background: rgba(255,255,255,.14); }
.profile-lastfm-msg { font-size: .75rem; color: #4ade80; margin-top: .25rem; min-height: 1em; }
/* Música en perfil: Last.fm + Spotify (misma línea visual) */
.profile-music-services { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; }
.profile-music-services .profile-lastfm-wrap { margin-top: 0; }
.profile-spotify-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.profile-spotify-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: #1db954; background: rgba(29,185,84,.1); border: 1px solid rgba(29,185,84,.28); border-radius: 20px; padding: 3px 11px; }
.profile-spotify-connect { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #fff; background: #1db954; border: none; border-radius: 20px; padding: 5px 12px; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; font-weight: 600; }
.profile-spotify-connect:hover { background: #1ed760; color: #fff; transform: translateY(-1px); }
.profile-spotify-disconnect { font-size: .72rem; color: var(--text-secondary); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 4px 10px; cursor: pointer; transition: border-color .2s, color .2s; }
.profile-spotify-disconnect:hover { border-color: rgba(239,68,68,.4); color: #f87171; }
.profile-spotify-msg { font-size: .75rem; margin-top: .25rem; width: 100%; flex-basis: 100%; min-height: 0; }
.profile-spotify-msg:empty { display: none; }
.profile-body { max-width: 1000px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.profile-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.profile-card-title { font-family: var(--font-main); font-size: .85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1rem; }
.empty-mini { color: var(--text-secondary); font-size: .8rem; }

/* Eventos */
.event-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.event-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.event-type { color: var(--neon-cyan); font-weight: 600; }
.win-event-name { color: var(--gold); font-weight: 600; }
.event-date { color: var(--text-secondary); font-size: .7rem; white-space: nowrap; }
.act-event-name { color: var(--gold); }

/* Duelos */
.kill-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.kill-item { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; align-items: baseline; font-size: .78rem; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.kill-monster { color: #f87171; font-weight: 600; }
.kill-info { display: flex; gap: .3rem; align-items: baseline; justify-content: flex-end; }
.kill-map { color: var(--text-secondary); font-size: .72rem; }
.kill-coords { color: rgba(136,136,170,.5); font-size: .68rem; }
.kill-date { color: var(--text-secondary); font-size: .7rem; font-family: var(--font-main); }
.duel-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.duel-item { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; font-size: .8rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.duel-result { padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: 1px; }
.result-win  { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.result-lose { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.duel-vs { color: var(--text-primary); }
.duel-mmr { font-family: var(--font-main); font-size: .8rem; }
.mmr-up   { color: #22c55e; }
.mmr-down { color: #ef4444; }
.duel-date { color: var(--text-secondary); font-size: .7rem; grid-column: 1/-1; }

/* Posts */
.post-composer { }
.post-textarea { width: 100%; padding: 12px; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text-primary); font-family: var(--font-body); font-size: .9rem; resize: vertical; outline: none; transition: border-color .3s; min-height: 80px; }
.post-textarea:focus { border-color: var(--neon-purple); }
.composer-row { display: flex; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.composer-img-url { flex: 1; min-width: 0; padding: 10px 14px; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text-primary); font-size: .85rem; outline: none; }
.btn-post-submit { padding: 10px 20px; background: var(--gradient-main); border: none; border-radius: 8px; color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
.post-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.post-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.post-avatar-mini { width: 40px; height: 40px; border-radius: 50%; background: var(--dark-surface); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; overflow: hidden; }
.post-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.post-author { font-weight: 700; color: var(--neon-purple); text-decoration: none; }
.post-time { font-size: .72rem; color: var(--text-secondary); margin-top: 2px; }
.btn-delete-post { margin-left: auto; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: .8rem; padding: 4px 8px; border-radius: 4px; transition: all .2s; }
.btn-delete-post:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.post-content { font-size: .9rem; line-height: 1.65; word-break: break-word; margin-bottom: .75rem; }
.post-image { border-radius: 8px; overflow: hidden; margin-bottom: .75rem; }
.post-image img { width: 100%; max-height: 400px; object-fit: cover; }
.post-footer { border-top: 1px solid var(--dark-border); padding-top: .75rem; }
.btn-show-comments { background: none; border: none; color: var(--text-secondary); font-size: .8rem; cursor: pointer; transition: color .2s; padding: 0; }
.btn-show-comments:hover { color: var(--neon-purple); }
.comments-section { margin-top: 1rem; border-top: 1px solid var(--dark-border); padding-top: .75rem; }
.comment-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.03); font-size: .85rem; }

/* ── POST COMPOSER ─────────────────────────────────────────── */
/* ── Banner sistema de puntos ──────────────────────────────── */
.points-banner { position: relative; background: linear-gradient(135deg,rgba(168,85,247,.12),rgba(6,182,212,.08)); border: 1px solid rgba(168,85,247,.3); border-radius: 14px; padding: .85rem 1.2rem; margin-bottom: 1rem; }
.points-banner.hidden { display: none; }
.points-banner-close { position: absolute; top: .5rem; right: .6rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: .85rem; line-height: 1; padding: 2px 5px; border-radius: 4px; }
.points-banner-close:hover { color: var(--text-primary); background: rgba(255,255,255,.07); }
.points-banner-title { font-family: var(--font-main); font-size: .82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--neon-purple); margin-bottom: .55rem; }
.points-banner-list { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.points-banner-list span { font-size: .78rem; color: var(--text-secondary); white-space: nowrap; }
.points-banner-list strong { color: #e2d9ff; }

/* ── POINTS TOAST ────────────────────────────────────────── */
.points-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; align-items: center; gap: .55rem; background: linear-gradient(135deg,rgba(168,85,247,.92),rgba(6,182,212,.85)); color: #fff; padding: .65rem 1.1rem; border-radius: 12px; font-family: var(--font-main); font-size: .88rem; font-weight: 600; letter-spacing: .5px; box-shadow: 0 4px 24px rgba(168,85,247,.45); pointer-events: none; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.points-toast.show { opacity: 1; transform: translateY(0); }
.points-toast .pt-star { font-size: 1.1rem; }
.points-toast .pt-lbl { font-weight: 400; font-size: .8rem; margin-left: .25rem; opacity: .9; }

/* ── COMPOSER STRIP (full-width above 3-col grid) ─────────── */
.feed-composer-strip { max-width: 1400px; margin: 0 auto; padding: 1.5rem 1.5rem 0; }
.feed-composer-strip .points-banner { margin-bottom: .75rem; }
.feed-composer-strip .feed-composer { margin-bottom: 0; }

.feed-composer { display: flex; gap: 12px; align-items: flex-start; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.composer-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--dark-border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(168,85,247,.3); }
.composer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer-body { flex: 1; display: flex; flex-direction: column; gap: .7rem; }
.composer-body textarea, #member-post-form .post-textarea { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--dark-border); border-radius: 10px; padding: .75rem 1rem; color: var(--text-primary); font-family: var(--font-body); font-size: .9rem; resize: none; transition: border-color .2s; }
.composer-body textarea:focus, #member-post-form .post-textarea:focus { outline: none; border-color: rgba(168,85,247,.5); }
.composer-preview { position: relative; border-radius: 10px; overflow: hidden; max-height: 220px; }
.composer-preview img { width: 100%; max-height: 220px; object-fit: cover; display: block; border-radius: 10px; }
.composer-preview button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.65); border: none; color: #fff; font-size: .85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.composer-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; position: relative; }
.composer-tool-btn { display: flex; align-items: center; gap: 5px; padding: 7px 12px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text-secondary); cursor: pointer; font-size: .82rem; transition: all .15s; white-space: nowrap; }
.composer-tool-btn:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.3); color: var(--text-primary); }
.tool-label { font-size: .78rem; }
.composer-submit { margin-left: auto; padding: 7px 20px; background: var(--neon-purple); border: none; border-radius: 8px; color: #fff; font-family: var(--font-main); font-size: .82rem; font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: all .2s; }
.composer-submit:hover { background: #9333ea; box-shadow: 0 0 16px rgba(168,85,247,.4); }
.composer-submit:disabled { opacity: .6; cursor: not-allowed; }
/* Sticker panel */
.sticker-panel { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 50; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; padding: .6rem; box-shadow: 0 16px 40px rgba(0,0,0,.6); min-width: 220px; }
.sticker-panel.open { display: grid; }
#sticker-panel, #mp-sticker-panel { grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sticker-item { background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 4px; border-radius: 6px; transition: background .1s; line-height: 1; }
.sticker-item:hover { background: rgba(168,85,247,.12); }

/* ── FEED CARD (reactions + inline comments) ─────────────────── */
.feed-footer { display: flex; align-items: center; gap: .6rem; padding-top: .75rem; border-top: 1px solid var(--dark-border); flex-wrap: wrap; }
.feed-reactions { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.feed-react-btn { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 16px; border: 1px solid var(--dark-border); background: rgba(255,255,255,.03); cursor: pointer; font-size: .8rem; transition: all .15s; color: var(--text-secondary); }
.feed-react-btn:hover { border-color: rgba(168,85,247,.35); background: rgba(168,85,247,.08); }
.feed-react-btn.active { border-color: var(--neon-purple); background: rgba(168,85,247,.18); color: var(--text-primary); }
.fr-emoji { font-size: 1rem; line-height: 1; }
.fr-count { font-size: .72rem; font-family: var(--font-main); min-width: 6px; }
.feed-cmnt-toggle { background: none; border: none; color: var(--text-secondary); font-size: .82rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: all .15s; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.feed-cmnt-toggle:hover { color: var(--text-primary); background: rgba(255,255,255,.05); }
.fc-count { font-family: var(--font-main); }
/* Comment box */
.feed-cmnt-box { padding: .75rem 0 .25rem; }
.fc-item { display: flex; gap: .45rem; align-items: baseline; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.03); font-size: .82rem; }
.fc-author { color: var(--neon-purple); font-weight: 600; text-decoration: none; font-size: .82rem; flex-shrink: 0; }
.fc-author:hover { text-decoration: underline; }
.fc-text { color: var(--text-primary); flex: 1; word-break: break-word; }
.fc-time { color: var(--text-secondary); font-size: .68rem; white-space: nowrap; }
.fc-empty { color: var(--text-secondary); font-size: .8rem; padding: .35rem 0; margin: 0; }
.fc-more-btn { background: none; border: none; color: var(--neon-purple); font-size: .8rem; cursor: pointer; padding: .4rem 0; display: block; width: 100%; text-align: left; }
.fc-more-btn:hover { text-decoration: underline; }
.fcform { display: flex; gap: .5rem; margin-top: .75rem; }
.fcinput { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--dark-border); border-radius: 8px; padding: 7px 12px; color: var(--text-primary); font-size: .82rem; font-family: var(--font-body); }
.fcinput:focus { outline: none; border-color: rgba(168,85,247,.5); }
.fcform button { padding: 7px 14px; background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.3); border-radius: 8px; color: var(--neon-purple); cursor: pointer; font-size: .9rem; transition: all .15s; }
.fcform button:hover { background: rgba(168,85,247,.3); }

/* ── STORIES BAR ────────────────────────────────────────────── */
.stories-bar {
    background: linear-gradient(180deg, rgba(5,5,12,1) 0%, rgba(8,4,20,1) 100%);
    border-bottom: none;
    position: sticky; top: 70px; z-index: 90; backdrop-filter: blur(12px);
    overflow: hidden;
}
.stories-bar::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 120% at 50% 110%, rgba(168,85,247,.22) 0%, transparent 55%),
        radial-gradient(ellipse 40% 80% at 15% 60%, rgba(6,182,212,.07) 0%, transparent 50%),
        radial-gradient(ellipse 40% 80% at 85% 60%, rgba(236,72,153,.07) 0%, transparent 50%);
    pointer-events: none;
    animation: storiesGlowPulse 4s ease-in-out infinite alternate;
}
.stories-bar::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(168,85,247,.5) 20%,
        rgba(6,182,212,.7) 50%,
        rgba(236,72,153,.5) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmerLine 3.5s linear infinite;
}
@keyframes storiesGlowPulse {
    from { opacity: .65; }
    to   { opacity: 1; }
}
@keyframes shimmerLine {
    from { background-position: 100% 0; }
    to   { background-position: -100% 0; }
}
.stories-bar-label {
    text-align: center;
    padding: .3rem 0 .55rem;
    position: relative;
    letter-spacing: 4px;
    font-family: var(--font-main);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(210,170,255,.95);
    text-shadow: 0 0 14px rgba(168,85,247,.9), 0 0 36px rgba(168,85,247,.4);
    animation: labelGlow 2.8s ease-in-out infinite;
}
@keyframes labelGlow {
    0%,100% { text-shadow: 0 0 10px rgba(168,85,247,.7), 0 0 28px rgba(168,85,247,.3); }
    50%     { text-shadow: 0 0 22px rgba(210,170,255,1),  0 0 55px rgba(168,85,247,.6); }
}
.stories-bar-label::before,
.stories-bar-label::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 64px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168,85,247,.75));
    margin: 0 .75rem;
}
.stories-bar-label::after {
    background: linear-gradient(270deg, transparent, rgba(168,85,247,.75));
}
.stories-wrapper { display: flex; align-items: center; justify-content: center; max-width: 1200px; margin: 0 auto; padding: 0 .5rem; }
/* ── Botón ocultar historias ─────────────────────────────── */
.stories-hide-btn { display: block; margin: 0 auto .3rem; background: none; border: none; color: rgba(168,85,247,.5); font-size: .7rem; cursor: pointer; letter-spacing: 1px; padding: 2px 8px; border-radius: 4px; transition: color .15s, background .15s; }
.stories-hide-btn:hover { color: var(--neon-purple); background: rgba(168,85,247,.08); }
.stories-bar.collapsed .stories-wrapper,
.stories-bar.collapsed .stories-bar-label { display: none; }
.stories-bar.collapsed .stories-hide-btn { margin: .4rem auto; color: rgba(168,85,247,.6); }
.stories-arrow {
    background: none; border: none; color: var(--text-secondary); cursor: pointer;
    font-size: 2rem; line-height: 1; padding: 0 .35rem; flex-shrink: 0;
    transition: color .15s, transform .15s; display: flex; align-items: center;
}
.stories-arrow:hover { color: var(--neon-purple); transform: scale(1.25); }
.stories-track { display: flex; gap: 1.2rem; padding: 1rem .5rem .9rem; overflow: hidden; align-items: flex-start; justify-content: center; flex: 1; }
.stories-track::-webkit-scrollbar { display: none; }

/* ── PAGE WRAPPER (offset fixed navbar) ─────────────────────── */
.page-wrapper { padding-top: 70px; }

/* ── CLAN BANNER (reemplaza al hero) ─────────────────────────── */
.clan-banner { background: linear-gradient(135deg, #050508 0%, #0d0d1a 50%, #0a0015 100%); border-bottom: 1px solid rgba(168,85,247,.15); padding: 2rem 2rem 1.8rem; position: relative; overflow: hidden; }
.clan-banner::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 70% 50%, rgba(168,85,247,.08) 0%, transparent 60%); pointer-events:none; }
.clan-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.clan-banner-text { flex: 1; min-width: 200px; }
.clan-banner-tag { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--neon-purple); font-family: var(--font-main); }
.clan-banner-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; letter-spacing: 4px; color: var(--text-primary); margin: .25rem 0 .4rem; line-height: 1; }
.clan-banner-motto { font-size: .8rem; color: var(--text-secondary); font-style: italic; margin: 0; }
.clan-banner-stats { display: flex; gap: 1.5rem; }
.cbs-item { display: flex; flex-direction: column; align-items: center; }
.cbs-item span { font-family: var(--font-main); font-size: 1.5rem; font-weight: 700; color: var(--neon-cyan); }
.cbs-item small { font-size: .65rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.clan-banner-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── HOME LAYOUT (3 columnas) ───────────────────────────────── */
.home-layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr 300px; gap: 1.5rem; padding: 1.5rem 1.5rem 3rem; align-items: start; }
.home-main { min-width: 0; }
.home-main #feed { background: none; padding: 0; max-width: none; margin: 0; }
/* align-self:stretch garantiza que el bloque contenedor sea tan alto como la columna central,
   evitando que el sticky "pop" al tope antes de que la otra columna lo haga */
.home-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 190px; align-self: stretch; min-width: 0; }
.home-activity { position: sticky; top: 190px; min-width: 0; align-self: stretch; }
.sidebar-section { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 14px; padding: 1.2rem; }
.sidebar-section-title { font-family: var(--font-main); font-size: .9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-primary); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--dark-border); }
/* Noticias en sidebar: compactas */
.sidebar-news { display: flex; flex-direction: column; gap: .6rem; }
.sidebar-news .news-card { display: flex; gap: .75rem; padding: .6rem; border-radius: 8px; transition: background .2s; text-decoration:none; }
.sidebar-news .news-card:hover { background: rgba(168,85,247,.06); }
.sidebar-news .news-cover { width: 60px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--dark-border); display:flex;align-items:center;justify-content:center;font-size:1.2rem; }
.sidebar-news .news-cover img { width:100%; height:100%; object-fit:cover; }
.sidebar-news .news-body { flex: 1; min-width: 0; }
.sidebar-news .news-title { font-size: .8rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-news .news-category { font-size: .65rem; letter-spacing: 1px; color: var(--neon-purple); text-transform: uppercase; margin-bottom: 2px; }
.sidebar-news .news-meta { font-size: .68rem; color: var(--text-secondary); margin-top: 2px; }
/* Ventanita de líderes */
.leaders-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251,191,36,.35);
    background:
        radial-gradient(circle at 92% -15%, rgba(251,191,36,.22), transparent 48%),
        radial-gradient(circle at 6% 115%, rgba(168,85,247,.2), transparent 40%),
        linear-gradient(145deg, rgba(24,18,40,.94), rgba(12,12,24,.95));
}
.leaders-window::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(251,191,36,.08) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: leadersSweep 4.8s linear infinite;
}
.leaders-title {
    color: #fde68a;
    text-shadow: 0 0 12px rgba(251,191,36,.28);
}
.leaders-list { display: grid; gap: .52rem; }
.leader-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(251,191,36,.2);
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    padding: .45rem .52rem;
    transition: transform .16s, border-color .16s, box-shadow .16s;
}
.leader-item:hover {
    transform: translateY(-1px);
    border-color: rgba(251,191,36,.48);
    box-shadow: 0 8px 20px rgba(251,191,36,.16);
}
.leader-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(251,191,36,.5);
    background: rgba(251,191,36,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: .9rem;
    flex-shrink: 0;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-info { min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.leader-info strong {
    font-family: var(--font-main);
    letter-spacing: 1px;
    color: #fff7d6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leader-info span {
    font-size: .68rem;
    color: #fef3c7;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leaders-empty { color: var(--text-secondary); font-size: .78rem; }
@keyframes leadersSweep {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(130%); }
}
/* Miembros en sidebar: compactos */
.home-sidebar .members-grid {
    display: flex; flex-direction: column;
    max-height: 480px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--dark-border) transparent;
}
.home-sidebar .member-card {
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem .75rem;
    text-decoration: none; color: inherit;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    border-radius: 0;
    text-align: left;
    overflow: visible;
    transform: none;
    transition: background .15s;
}
.home-sidebar .member-card:hover { background: rgba(168,85,247,.08); transform: none; }
.home-sidebar .member-card:last-child { border-bottom: none; }
.home-sidebar .member-avatar-wrap {
    flex-shrink: 0;
    width: 36px; height: 36px;
}
.home-sidebar .member-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--dark-surface); border: 1px solid var(--dark-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; overflow: hidden;
}
.home-sidebar .member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.home-sidebar .member-online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
    display: block;
    background: rgba(100,100,140,.4);
    border: none;
}
.home-sidebar .member-online-dot.is-online {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,.8);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
.home-sidebar .member-ign {
    font-size: .88rem; font-weight: 700; letter-spacing: .3px;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.25;
}
.home-sidebar .member-info { flex: 1; min-width: 0; }
.home-sidebar .member-mmr {
    font-size: .7rem; color: var(--neon-cyan);
    font-family: var(--font-main); letter-spacing: .5px; margin-top: 1px;
}
.home-sidebar .member-rank {
    font-size: .7rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; flex-shrink: 0;
    display: block;
    background: none; border: none; padding: 0; margin: 0;
    white-space: nowrap;
}

/* ── PANEL ÚLTIMAS ACTIVIDADES ────────────────────────────────── */
.activity-panel {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    overflow: hidden;
}
.activity-panel-title {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--font-main); font-size: .8rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-primary);
    padding: .85rem 1rem; border-bottom: 1px solid var(--dark-border);
    background: rgba(168,85,247,.04);
}
.activity-pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--neon-purple); flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(168,85,247,.6);
    animation: actPulse 2s ease-out infinite;
}
@keyframes actPulse {
    0%   { box-shadow: 0 0 0 0 rgba(168,85,247,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(168,85,247,.0); }
    100% { box-shadow: 0 0 0 0 rgba(168,85,247,.0); }
}
.activity-list {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding: .35rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,.2) transparent;
}
.activity-list::-webkit-scrollbar { width: 3px; }
.activity-list::-webkit-scrollbar-thumb { background: rgba(168,85,247,.2); border-radius: 2px; }

/* Item genérico */
.act-item {
    display: flex; align-items: flex-start; gap: 9px;
    padding: .65rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03);
    transition: background .15s; cursor: default;
    position: relative;
}
.act-item:last-child { border-bottom: none; }
.act-item:hover { background: rgba(255,255,255,.025); }
.act-delete-btn {
    display: none;
    position: absolute; top: 6px; right: 6px;
    background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
    color: rgba(239,68,68,.8); border-radius: 4px;
    width: 18px; height: 18px; font-size: .6rem; line-height: 1;
    cursor: pointer; padding: 0; transition: all .15s;
    align-items: center; justify-content: center;
}
.act-item:hover .act-delete-btn { display: flex; }
.act-delete-btn:hover { background: rgba(239,68,68,.35); color: #fff; border-color: rgba(239,68,68,.6); }
.act-delete-btn:disabled { opacity: .5; cursor: not-allowed; }

.act-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; overflow: hidden; text-decoration: none;
}
.act-avatar img { width: 100%; height: 100%; object-fit: cover; }

.act-body { flex: 1; min-width: 0; }
.act-icon { font-size: .7rem; margin-right: 3px; }
.act-author {
    font-size: .78rem; font-weight: 700; color: var(--neon-purple);
    text-decoration: none; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; display: block; max-width: 100%;
}
.act-author:hover { text-decoration: underline; }
.act-desc { font-size: .72rem; color: var(--text-secondary); line-height: 1.35; margin-top: 1px; }
.act-time { font-size: .64rem; color: rgba(255,255,255,.25); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

/* Raffle item */
.act-item.type-raffle .act-avatar { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); }
.act-raffle-badge { display: inline-block; font-size: .62rem; letter-spacing: .5px; font-family: var(--font-main); color: #fbbf24; text-transform: uppercase; }

/* Toggle winners */
.act-winners-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 4px; font-size: .68rem; color: #fbbf24;
    background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2);
    border-radius: 10px; padding: 2px 8px; cursor: pointer;
    transition: all .15s;
}
.act-winners-toggle:hover { background: rgba(251,191,36,.18); }
.act-winners-list {
    margin-top: 5px; padding: 6px 8px;
    background: rgba(251,191,36,.04); border: 1px solid rgba(251,191,36,.12);
    border-radius: 7px; display: none;
}
.act-winners-list.open { display: block; }
.act-winners-list li {
    font-size: .7rem; color: var(--text-primary); padding: 2px 0;
    list-style: none; border-bottom: 1px solid rgba(255,255,255,.04);
}
.act-winners-list li:last-child { border-bottom: none; }

/* ── NOW PLAYING PANEL ──────────────────────────────────────── */
.now-playing-panel .activity-panel-title { border-bottom-color: rgba(6,182,212,.2); background: rgba(6,182,212,.04); }
.now-playing-list { padding: .35rem 0; }
.np-item { display: flex; align-items: center; gap: 9px; padding: .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03); }
.np-item:last-child { border-bottom: none; }
.np-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.3); display: flex; align-items: center; justify-content: center; font-size: .75rem; overflow: hidden; text-decoration: none; }
.np-avatar img { width: 100%; height: 100%; object-fit: cover; }
.np-body { flex: 1; min-width: 0; }
.np-name { font-size: .78rem; font-weight: 700; color: var(--neon-cyan); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.np-name:hover { text-decoration: underline; }
.np-status { font-size: .68rem; color: var(--text-secondary); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.np-game-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-cyan); flex-shrink: 0; animation: actPulse 2s ease-out infinite; }
.np-music { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .65rem; color: #1db954; min-width: 0; }
.np-music-icon { flex-shrink: 0; line-height: 1; display: flex; align-items: center; }
.np-music-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.np-album-art { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,.12); }
.np-item.np-has-spotify .np-name { color: #1ed760; }
.np-item.np-has-lastfm .np-name { color: var(--neon-cyan); }
.np-item.np-spotify-linked:not(.np-has-spotify) .np-name { color: #a7f3d0; }
.np-spotify-connected {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: .64rem;
    color: #1db954;
}

/* ── RECENT DUELS PANEL (sidebar) ───────────────────────────── */
#recent-duels { overflow: hidden; }
.recent-duels-list { display: flex; flex-direction: column; gap: .4rem; padding-top: .25rem; }
#recent-duels .duel-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; background: rgba(255,255,255,.025); font-size: .78rem; min-width: 0; overflow: hidden; border-left: 3px solid transparent; }
#recent-duels .duel-item.duel-win { border-left-color: #22c55e; }
#recent-duels .duel-item.duel-lose { border-left-color: #ef4444; }
#recent-duels .duel-result { font-family: var(--font-main); font-weight: 700; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; min-width: 32px; flex-shrink: 0; background: none; border: none; padding: 0; border-radius: 0; }
#recent-duels .duel-win .duel-result { color: #22c55e; }
#recent-duels .duel-lose .duel-result { color: #ef4444; }
#recent-duels .duel-vs { flex: 1; min-width: 0; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#recent-duels .duel-vs strong { color: var(--neon-purple); }
#recent-duels .duel-mmr { font-family: var(--font-main); font-size: .72rem; white-space: nowrap; flex-shrink: 0; }
#recent-duels .duel-win .duel-mmr { color: #22c55e; }
#recent-duels .duel-lose .duel-mmr { color: #ef4444; }

/* Story item */
.act-item.type-story .act-avatar { border-color: rgba(168,85,247,.4); }

/* Comment item */
.act-item.type-comment .act-avatar { border-color: rgba(6,182,212,.25); background: rgba(6,182,212,.06); }
.act-comment-snippet {
    font-size: .7rem; color: var(--text-secondary);
    background: rgba(255,255,255,.03); border-radius: 5px;
    padding: 3px 7px; margin-top: 3px; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 2px solid rgba(6,182,212,.25);
}

/* ── Duelos ─────────────────────────────────── */
.act-item.type-duel { cursor: default; }
.act-duel-icon {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
.act-item.duel-win  .act-duel-icon { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.25); }
.act-item.duel-loss .act-duel-icon { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.2); }
.act-mmr-badge {
    display: inline-block; font-size: .65rem; font-weight: 700;
    font-family: var(--font-main); border-radius: 8px; padding: 1px 6px;
    margin-left: 3px; vertical-align: middle;
}
.act-mmr-badge.win  { background: rgba(34,197,94,.12);  color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.act-mmr-badge.loss { background: rgba(239,68,68,.1);   color: #ef4444; border: 1px solid rgba(239,68,68,.2); }
.act-mmr-total {
    display: block; font-size: .64rem; color: rgba(255,255,255,.25);
    margin-top: 1px; font-family: var(--font-main);
}

/* ── Cambios de rango ───────────────────────── */
.act-item.type-rank { cursor: default; }
.act-rank-icon {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
.act-item.rank-up   .act-rank-icon { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); }
.act-item.rank-down .act-rank-icon { background: rgba(148,163,184,.06); border: 1px solid rgba(148,163,184,.15); }
.act-rank-change {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 4px; font-size: .7rem; vertical-align: middle;
}
.act-rank-old  { color: rgba(255,255,255,.3); text-decoration: line-through; }
.act-rank-new  { color: var(--text-primary); font-weight: 700; }
.act-rank-arrow        { font-size: .6rem; font-weight: 900; }
.act-rank-arrow.up     { color: #22c55e; }
.act-rank-arrow.down   { color: #ef4444; }

.act-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-secondary); font-size: .8rem; }

/* Kill de monstruo */
.act-item.type-kill { cursor: default; }
.act-monster { color: #f87171; font-weight: 700; }
.act-kill-loc { font-size: .7rem; color: var(--text-secondary); display: block; margin-top: 1px; }
.act-coords { color: rgba(255,255,255,.3); font-size: .65rem; margin-left: 2px; }

/* ── PANEL DISCORD ─────────────────────────────────────────── */
.discord-panel {
    background: var(--dark-card);
    border: 1px solid rgba(88,101,242,.25);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 1rem;
}
.discord-panel-header {
    display: flex; align-items: center; gap: 8px;
    padding: .85rem 1rem;
    background: rgba(88,101,242,.07);
    border-bottom: 1px solid rgba(88,101,242,.18);
}
.discord-logo {
    width: 18px; height: 18px; color: #5865F2; flex-shrink: 0;
}
.discord-title {
    font-family: var(--font-main); font-size: .8rem; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-primary);
    flex: 1;
}
/* Iframe ocupa todo el ancho del panel */
.discord-iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: none;
    background: transparent;
}

@media (max-width: 1100px) {
    .home-layout { grid-template-columns: 1fr 360px; }
    .home-activity { display: none; }
    .home-sidebar { position: static; }
    .clan-banner-stats { gap: 1rem; }
}
@media (max-width: 900px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { position: static; }
    .clan-banner-stats { gap: 1rem; }
}
@media (max-width: 600px) {
    .clan-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .clan-banner-title { font-size: 1.6rem; }
}
.stories-empty { color: var(--text-secondary); font-size: .85rem; padding: .5rem 0; white-space: nowrap; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 0; background: none; border: none; cursor: pointer; flex-shrink: 0; transition: transform .2s cubic-bezier(.16,1,.3,1); padding: 0; }
.story-bubble:hover { transform: scale(1.06) translateY(-3px); }
.story-ring { width: 120px; height: 178px; border-radius: 16px; padding: 2.5px; background: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #ec4899 100%); background-size: 300%; animation: storyRingAnim 3s linear infinite; }
@keyframes storyRingAnim { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.story-avatar-inner { width: 100%; height: 100%; border-radius: 14px; background: var(--dark-card); overflow: hidden; position: relative; }
.story-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 55%); }
.story-card-avatar { position: absolute; top: 7px; left: 7px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; overflow: hidden; background: var(--dark-bg); display: flex; align-items: center; justify-content: center; font-size: .7rem; z-index: 2; }
.story-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-card-name { position: absolute; bottom: 7px; left: 4px; right: 4px; font-size: .68rem; color: #fff; font-family: var(--font-main); text-align: center; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.95); letter-spacing: .5px; font-weight: 600; }
.story-name { display: none; }
.story-create-btn { width: 120px; height: 178px; border-radius: 16px; background: var(--dark-card); border: 2px dashed rgba(168,85,247,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.story-create-btn:hover { border-color: var(--neon-purple); background: rgba(168,85,247,.07); transform: scale(1.05); }
.story-create-plus { width: 32px; height: 32px; border-radius: 50%; background: var(--neon-purple); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; line-height: 1; }
.story-create-label { font-size: .6rem; color: var(--text-secondary); font-family: var(--font-main); letter-spacing: .4px; text-align: center; line-height: 1.35; }

/* ── STORY VIEWER MODAL ─────────────────────────────────────── */
.story-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.story-viewer[hidden] { display: none; }
.story-viewer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.87); backdrop-filter: blur(6px); }
.story-viewer-card { position: relative; width: 100%; max-width: 390px; max-height: 92vh; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; border: 1px solid rgba(168,85,247,.2); box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 50px rgba(168,85,247,.08); overflow: hidden; display: flex; flex-direction: column; margin: 1rem; }
/* Progress bars */
.story-progress-bars { display: flex; gap: 4px; padding: 10px 14px 6px; background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent); position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.sv-pbar { flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.sv-pbar-fill { height: 100%; background: #fff; width: 0; }
.sv-pbar.done .sv-pbar-fill { width: 100%; }
.sv-pbar.active .sv-pbar-fill { animation: svFill linear forwards; }
@keyframes svFill { from{width:0} to{width:100%} }
/* Header */
.story-viewer-header { display: flex; align-items: center; gap: 10px; padding: 42px 16px 12px; position: relative; z-index: 1; flex-shrink: 0; }
.sv-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--dark-border); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden; border: 2px solid rgba(168,85,247,.5); flex-shrink: 0; }
.sv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sv-meta { flex: 1; overflow: hidden; }
.sv-name { display: block; font-family: var(--font-main); font-weight: 700; font-size: .95rem; color: var(--text-primary); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-name:hover { color: var(--neon-purple); }
.sv-time { font-size: .72rem; color: var(--text-secondary); }
.sv-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); border: none; color: var(--text-primary); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.sv-close:hover { background: rgba(255,255,255,.2); }
/* Body */
.story-viewer-body { padding: 0; flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
#sv-content { color: #fff; font-size: 1.05rem; line-height: 1.65; margin: 0; word-break: break-word; padding: 16px 20px 12px; text-shadow: 0 1px 6px rgba(0,0,0,.8); position: relative; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent); }
#sv-image-wrap { width: 100%; aspect-ratio: 9 / 16; border-radius: 0; overflow: hidden; margin: 0 -20px; width: calc(100% + 40px); }
#sv-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Footer + reactions */
.story-viewer-footer { padding: 12px 16px; border-top: 1px solid var(--dark-border); background: rgba(0,0,0,.2); flex-shrink: 0; }
.story-reactions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.reaction-btn { display: flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--dark-border); background: rgba(255,255,255,.04); color: var(--text-secondary); cursor: pointer; font-size: .875rem; transition: all .15s; }
.reaction-btn:hover { border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.08); }
.reaction-btn.active { border-color: var(--neon-purple); background: rgba(168,85,247,.18); color: var(--text-primary); }
.r-emoji { font-size: 1.1rem; line-height: 1; }
.r-count { font-size: .75rem; font-family: var(--font-main); min-width: 8px; color: var(--text-secondary); }
.reaction-btn.active .r-count { color: var(--text-primary); }
/* Nav buttons */
.story-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 3; backdrop-filter: blur(4px); line-height: 1; }
.story-nav-btn:hover { background: rgba(255,255,255,.22); }
.story-nav-prev { left: 8px; }
.story-nav-next { right: 8px; }
/* Story con imagen: la imagen llena el fondo, texto superpuesto abajo */
.story-viewer-card.has-image #sv-image-wrap { position: absolute; inset: 0; width: 100% !important; margin: 0 !important; aspect-ratio: unset; border-radius: 0; z-index: 0; }
.story-viewer-card.has-image #sv-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.story-viewer-card.has-image .story-viewer-body { position: absolute; inset: 0; z-index: 1; pointer-events: none; justify-content: flex-end; }
.story-viewer-card.has-image #sv-content { pointer-events: all; padding: 16px 20px 72px; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, transparent 100%); }
.story-viewer-card.has-image .story-viewer-header { position: relative; z-index: 2; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.story-viewer-card.has-image .story-viewer-footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.08); }
.story-viewer-card.has-image .story-progress-bars { background: transparent; }
@media (max-width: 600px) { .story-viewer-card { max-height: 95vh; border-radius: 14px; margin: .5rem; } }

/* ══════════════════════════════════════════════════════════════
   CHAT EN VIVO
══════════════════════════════════════════════════════════════ */
.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(168,85,247,.45);
    background: linear-gradient(135deg, rgba(168,85,247,.93), rgba(59,130,246,.92));
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(168,85,247,.35);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 34px rgba(168,85,247,.45); filter: brightness(1.06); }
.chat-fab:active { transform: translateY(0) scale(.99); }
.chat-fab-icon { font-size: 1rem; line-height: 1; animation: chatFabPulse 1.8s ease-in-out infinite; }
.chat-fab-text { line-height: 1; }
.chat-fab-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(15,15,20,.35);
    border: 1px solid rgba(255,255,255,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
}
@keyframes chatFabPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Castle Siege nagger (solo miembros del clan) */
.siege-nagger {
    position: fixed;
    left: 18px;
    top: 86px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    text-decoration: none;
    background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.25), rgba(239,68,68,.18) 40%, rgba(21,7,10,.95) 100%);
    border: 1px solid rgba(239,68,68,.5);
    box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 20px rgba(239,68,68,.35);
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
}
.siege-nagger-face {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fecaca;
    transform: translateY(-1px);
    animation: siegeNagFaceShake 1.15s ease-in-out infinite;
}
.siege-nagger-bubble {
    position: absolute;
    left: calc(100% + 8px);
    top: -2px;
    width: min(240px, 55vw);
    padding: .52rem .65rem;
    border-radius: 10px;
    border: 1px solid rgba(239,68,68,.4);
    background: rgba(25,8,12,.94);
    color: #fecaca;
    font-size: .66rem;
    line-height: 1.28;
    letter-spacing: .35px;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0,0,0,.4);
    pointer-events: none;
    animation: siegeNagPulse 1.7s ease-in-out infinite;
}
@keyframes siegeNagPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .78; }
}
@keyframes siegeNagFaceShake {
    0%, 100% { transform: translateY(-1px) rotate(0deg); }
    35% { transform: translateY(-1px) rotate(-8deg); }
    65% { transform: translateY(-1px) rotate(8deg); }
}

.chat-float-panel {
    position: fixed;
    right: 20px;
    bottom: 78px;
    width: min(560px, calc(100vw - 28px));
    z-index: 119;
    opacity: 0;
    transform: translateY(18px) scale(.985);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.chat-float-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.clan-chat-inner {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(0,0,0,.42);
}
/* Layout: mensajes | columna online */
.chat-body {
    display: grid;
    grid-template-columns: 1fr 180px;
    height: 480px;
    min-height: 0;
}
.chat-messages-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--dark-border);
    min-width: 0;
    min-height: 0;
}
/* Columna lateral online */
.chat-online-col {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,.12);
    overflow: hidden;
}
.chat-online-col-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .65rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--dark-border);
    text-transform: uppercase;
}
.chat-online-col-count { background: rgba(74,222,128,.15); color: #4ade80; border-radius: 10px; padding: 1px 6px; font-size: .65rem; }
.chat-online-list {
    flex: 1;
    overflow-y: auto;
    padding: .5rem .6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-online-list::-webkit-scrollbar { width: 3px; }
.chat-online-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.chat-online-avatar {
    position: relative;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(168,85,247,.12);
    border: 2px solid rgba(74,222,128,.45);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-decoration: none;
    flex-shrink: 0; transition: border-color .2s;
}
.chat-online-avatar::before {
    content: attr(data-initials);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .55rem; font-weight: 800;
    color: rgba(168,85,247,.9);
}
.chat-online-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.chat-online-avatar.is-self { border-color: rgba(168,85,247,.8); }
.chat-online-status {
    position: absolute; bottom: 0; right: 0;
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; border: 1.5px solid var(--dark-card);
    z-index: 2;
}
.chat-online-name { font-size: .68rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--dark-border);
    background: rgba(168,85,247,.04);
}
.chat-header-left { display: flex; align-items: center; gap: .65rem; }
.chat-header-actions { display: flex; align-items: center; gap: .5rem; }
.chat-title { font-family: var(--font-main); font-weight: 700; font-size: .95rem; letter-spacing: 1px; color: var(--text-primary); }
.chat-live-badge { font-size: .65rem; font-weight: 700; background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.3); padding: 2px 8px; border-radius: 20px; letter-spacing: 1px; }

/* Contador de online (header derecho) */
.chat-online-summary { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--text-secondary); cursor: default; white-space: nowrap; }
.chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0; box-shadow: 0 0 6px rgba(74,222,128,.6); animation: onlinePulse 2s ease-in-out infinite; }
@keyframes onlinePulse { 0%,100%{opacity:1} 50%{opacity:.5} }
#chat-online-count { font-weight: 700; color: #4ade80; }
.chat-clear-btn { flex-shrink: 0; padding: 4px 10px; font-size: .72rem; font-weight: 700; background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.25); border-radius: 8px; cursor: pointer; transition: background .2s; }
.chat-clear-btn:hover { background: rgba(239,68,68,.22); }
.chat-clear-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    transition: all .15s;
}
.chat-close-btn:hover { color: var(--text-primary); border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.14); }

/* Barra de avatares online */
.chat-online-bar {
    display: none;
    align-items: center;
    gap: 6px;
    padding: .55rem 1.25rem;
    background: rgba(0,0,0,.1);
    border-bottom: 1px solid var(--dark-border);
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}
.chat-online-bar::-webkit-scrollbar { display: none; }
.chat-online-avatar {
    position: relative;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(168,85,247,.12);
    border: 2px solid rgba(74,222,128,.45);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-decoration: none; color: inherit;
    font-size: .65rem; font-weight: 700; color: var(--text-secondary);
    flex-shrink: 0; transition: border-color .2s, transform .15s;
}
.chat-online-avatar::before {
    /* Mostrar iniciales si no hay imagen */
    content: attr(data-initials);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 800; letter-spacing: .5px;
    color: rgba(168,85,247,.9);
}
.chat-online-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.chat-online-avatar.is-self { border-color: rgba(168,85,247,.8); }
.chat-online-avatar:hover { transform: scale(1.12); border-color: #4ade80; z-index: 2; }
.chat-online-status {
    position: absolute; bottom: 0; right: 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80; border: 1.5px solid var(--dark-card);
    z-index: 2;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .75rem 1rem;
    scroll-behavior: smooth;
}
.chat-list::-webkit-scrollbar { width: 4px; }
.chat-list::-webkit-scrollbar-track { background: transparent; }
.chat-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.chat-empty { text-align: center; color: var(--text-secondary); font-size: .85rem; padding: 2.5rem 0; margin: auto; }

/* Burbujas */
.chat-msg { display: flex; gap: 7px; align-items: flex-end; max-width: 80%; }
.chat-msg-own { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; overflow: hidden; flex-shrink: 0; text-decoration: none; color: inherit;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-bubble {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px 14px 14px 4px;
    padding: .45rem .75rem .35rem;
    max-width: 100%;
    word-break: break-word;
}
.chat-msg-own .chat-bubble {
    background: rgba(168,85,247,.12);
    border-color: rgba(168,85,247,.18);
    border-radius: 14px 14px 4px 14px;
}
.chat-author { display: block; font-size: .68rem; color: var(--neon-purple); font-weight: 700; margin-bottom: 3px; opacity: .9; }
.chat-author-own { color: rgba(168,85,247,.65); text-align: right; }
.chat-text { display: block; font-size: .875rem; color: var(--text-primary); line-height: 1.5; }
.chat-sticker { font-size: 2rem; line-height: 1.2; display: block; }
.chat-audio audio { max-width: 220px; height: 34px; border-radius: 20px; }
.chat-meta { display: block; font-size: .6rem; color: var(--text-secondary); margin-top: 3px; text-align: right; }

/* Reacciones en mensajes de chat */
.chat-react-bar { display: flex; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.chat-react-btn {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px; padding: 2px 7px; cursor: pointer;
    font-size: .78rem; color: var(--text-secondary); transition: all .15s;
}
.chat-react-btn:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.3); }
.chat-react-btn.active { background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.45); color: var(--text-primary); }
.crb-cnt { font-size: .68rem; font-family: var(--font-main); min-width: 6px; }

/* Botón eliminar mensaje */
.chat-delete-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(239,68,68,.35); font-size: .7rem; padding: 2px 4px;
    border-radius: 4px; align-self: flex-start; flex-shrink: 0;
    transition: color .15s, background .15s; line-height: 1;
}
.chat-delete-btn:hover { color: #f87171; background: rgba(239,68,68,.1); }

/* Input */
.chat-input-wrap {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .75rem 1rem;
    border-top: 1px solid var(--dark-border);
    background: rgba(0,0,0,.15);
    position: relative;
}
.chat-tools { display: flex; gap: 4px; align-items: center; position: relative; flex-shrink: 0; }
.chat-tool-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--dark-border);
    color: var(--text-secondary); cursor: pointer;
    font-size: .95rem; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
}
.chat-tool-btn:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.35); color: var(--text-primary); }
.chat-tool-btn.recording { background: rgba(239,68,68,.18); border-color: #f87171; animation: chatPulse 1s infinite; }
@keyframes chatPulse { 0%,100%{opacity:1;box-shadow:0 0 0 rgba(239,68,68,.4)} 50%{opacity:.75;box-shadow:0 0 0 6px rgba(239,68,68,.0)} }
/* Barra de grabación de audio (sustituye input mientras graba) */
.chat-rec-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 4px;
}
.chat-rec-cancel {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4);
    color: #f87171; cursor: pointer; font-size: .85rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background .15s;
}
.chat-rec-cancel:hover { background: rgba(239,68,68,.3); }
.chat-rec-send {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    border: none; color: #fff; cursor: pointer; font-size: .75rem; font-weight: 700;
    transition: opacity .15s;
}
.chat-rec-send:hover { opacity: .85; }
#chat-rec-time { font-size: .72rem; font-weight: 700; color: #f87171; font-variant-numeric: tabular-nums; flex: 1; }

/* Sticker panel del chat */
#chat-sticker-panel { position: absolute; bottom: calc(100% + 8px); left: 0; grid-template-columns: repeat(6, 1fr); z-index: 60; }

#chat-input {
    flex: 1; background: rgba(255,255,255,.04);
    border: 1px solid var(--dark-border); border-radius: 20px;
    padding: 7px 14px; color: var(--text-primary);
    font-size: .875rem; font-family: var(--font-body);
    min-width: 0;
}
#chat-input:focus { outline: none; border-color: rgba(168,85,247,.5); background: rgba(255,255,255,.07); }
.chat-send-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .2s;
}
.chat-send-btn:hover { transform: scale(1.08); box-shadow: 0 0 18px rgba(168,85,247,.5); }
.chat-login-prompt {
    text-align: center; color: var(--text-secondary);
    font-size: .85rem; padding: 1rem;
    margin: 0; border-top: 1px solid var(--dark-border);
}
.chat-login-prompt a { color: var(--neon-purple); text-decoration: none; }
.chat-login-prompt a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .chat-fab { right: 12px; bottom: 14px; padding: 9px 12px; }
    .chat-float-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 66px;
    }
    .chat-body { grid-template-columns: 1fr; }
    .chat-online-col { display: none; } /* en móvil se oculta, solo el contador del header */
    .chat-msg { max-width: 92%; }
    .chat-online-summary { display: none; }
    .chat-header { padding: .7rem .95rem; }
    .siege-nagger { width: 56px; height: 56px; left: 10px; top: 78px; }
    .siege-nagger-bubble { width: min(185px, 63vw); font-size: .6rem; }
}

.comment-author a { color: var(--neon-purple); text-decoration: none; font-weight: 600; }
.comment-text { flex: 1; min-width: 0; color: var(--text-primary); }
.comment-time { font-size: .7rem; color: var(--text-secondary); }
.btn-delete-comment { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: .75rem; padding: 2px 6px; margin-left: auto; transition: color .2s; }
.btn-delete-comment:hover { color: #ef4444; }
.comment-form { display: flex; gap: .75rem; margin-top: .75rem; }
.comment-input { flex: 1; padding: 9px 14px; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 8px; color: var(--text-primary); font-size: .85rem; outline: none; transition: border-color .3s; }
.comment-input:focus { border-color: var(--neon-purple); }
.btn-comment-submit { padding: 9px 18px; background: var(--gradient-main); border: none; border-radius: 8px; color: #fff; font-size: .8rem; font-weight: 700; cursor: pointer; }
.login-prompt-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: .875rem; color: var(--text-secondary); text-align: center; }
.login-prompt-card a { color: var(--neon-purple); text-decoration: none; }

@media (max-width: 768px) {
    .profile-banner-controls {
        position: static;
        align-items: center;
        padding: 0 1rem 1rem;
    }
    .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats-row { justify-content: center; }
    .profile-tags { justify-content: center; }
    .profile-body { grid-template-columns: 1fr; }
    .profile-sidebar { order: 2; }
    .profile-main { order: 1; }
    .feed-grid { flex-direction: column; }
    .player-hover-card { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   EVENTOS PAGE
══════════════════════════════════════════════════════════════ */
.ev-page-inner { max-width: 1300px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* Main card wrapper */
.ev-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid rgba(245,158,11,.18);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}
.ev-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% -10%, rgba(245,158,11,.08) 0%, transparent 55%);
    pointer-events: none;
}

/* Header */
.ev-header { text-align: center; margin-bottom: 1.2rem; position: relative; z-index: 1; }
.ev-header-title {
    font-family: var(--font-main);
    font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
    background: linear-gradient(90deg, #fff 0%, #ffd87a 50%, var(--gold) 100%);
    -webkit-background-clip: text; color: transparent; background-clip: text;
}
.ev-header-sub { font-size: .85rem; color: var(--text-secondary); margin-top: 4px; }

/* Timezone bar */
.ev-tz-box { text-align: center; font-size: .78rem; color: var(--text-secondary); margin-bottom: 1.2rem; position: relative; z-index: 1; }
.ev-tz-server { color: #ffdd77; font-weight: 600; }
.ev-tz-local  { color: var(--text-primary); font-weight: 600; }

/* Search */
.ev-search-wrap {
    position: relative; z-index: 2;
    max-width: 420px; margin: 0 auto 1.5rem;
    display: flex; align-items: center;
    background: var(--dark-surface); border: 1px solid rgba(245,158,11,.25);
    border-radius: 12px; padding: 9px 14px;
}
.ev-search-icon { font-size: .9rem; margin-right: 10px; color: #ffdd77; flex-shrink: 0; }
.ev-search-input {
    width: 100%; background: transparent; border: 0; outline: 0;
    color: var(--text-primary); font-size: .88rem; font-family: inherit;
}
.ev-search-input::placeholder { color: var(--text-secondary); }

/* Next event banner */
.ev-next-banner {
    position: relative; z-index: 1;
    background: rgba(30,20,0,.5);
    border: 1px solid rgba(245,158,11,.45);
    border-radius: 16px; padding: 14px 20px;
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 14px;
    text-align: center; margin-bottom: 2rem;
    animation: evBannerPulse 2.5s infinite;
}
@keyframes evBannerPulse {
    0%,100% { box-shadow: 0 0 18px rgba(245,158,11,.2); }
    50%      { box-shadow: 0 0 32px rgba(245,158,11,.5); }
}
.ev-next-badge {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    background: linear-gradient(90deg, var(--gold), #d97706); color: #000;
    padding: 5px 10px; border-radius: 8px; font-family: var(--font-main);
}
.ev-next-name     { font-size: .95rem; font-weight: 700; color: var(--text-primary); }
.ev-next-time     { font-family: monospace; font-size: .95rem; color: #ffdd77; font-weight: 600; }
.ev-next-countdown { font-family: monospace; font-size: .95rem; font-weight: 700; color: #fff; }

/* Columns grid */
.ev-columns {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin-bottom: 1.5rem;
}
.ev-col {
    background: var(--dark-surface);
    border: 1px solid rgba(245,158,11,.15);
    border-radius: 14px; padding: 1rem;
}
.ev-col-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: .9rem;
}
.ev-col-title {
    font-family: var(--font-main); font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em; color: #ffe9a6;
}
.ev-col-badge {
    background: rgba(60,46,0,.9); color: #ffe9a6;
    padding: 3px 8px; border-radius: 6px;
    border: 1px solid rgba(245,158,11,.3);
    font-family: var(--font-main); font-size: .66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0;
}

/* Event list */
.ev-list { display: flex; flex-direction: column; gap: 6px; }

/* Event row */
.ev-row {
    display: grid; grid-template-columns: 1fr auto auto;
    align-items: center;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--dark-border);
    border-radius: 10px; padding: 9px 12px;
    font-size: .84rem; transition: border-color .15s;
}
.ev-row:hover { border-color: rgba(245,158,11,.3); }
.ev-row .ev-name     { font-weight: 600; color: var(--text-primary); padding-right: 8px; }
.ev-row .ev-time     { font-family: monospace; font-size: .81rem; color: #ffdd77; text-align: right; min-width: 54px; }
.ev-row .ev-countdown {
    font-family: monospace; font-size: .73rem; color: var(--text-secondary);
    text-align: right; min-width: 88px; padding-left: 8px;
}
.ev-row.soon { border-color: rgba(245,158,11,.6); box-shadow: 0 0 10px rgba(245,158,11,.25); }
.ev-row.soon .ev-countdown { color: var(--text-primary); font-weight: 700; font-size: .8rem; }

/* Castle Siege card */
.ev-castle {
    position: relative; z-index: 1;
    background: rgba(60,0,0,.4);
    border: 1px solid rgba(239,68,68,.35);
    border-radius: 14px; padding: 1.25rem;
    text-align: center; margin-bottom: 1.5rem;
    box-shadow: 0 0 16px rgba(239,68,68,.12);
}
.ev-castle-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: .75rem; }
.ev-castle-title {
    font-family: var(--font-main); font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; color: var(--text-primary);
}
.ev-castle-badge {
    display: inline-block;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    color: #fff; font-size: .7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    letter-spacing: .06em; font-family: var(--font-main);
}
.ev-castle-line { font-size: .84rem; color: var(--text-secondary); margin-bottom: 4px; }
.ev-castle-line strong { color: var(--text-primary); }
.ev-castle-countdown { font-family: monospace; font-size: 1rem; font-weight: 700; color: #fff; margin-top: .5rem; }

/* Footer note */
.ev-footer-note { position: relative; z-index: 1; text-align: center; margin-top: .5rem; font-size: .75rem; color: var(--text-secondary); }
.ev-footer-note span { color: #ffdd77; }

/* Active nav link on eventos page */
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { transform: scaleX(1); }

@media (max-width: 768px) {
    .ev-card { padding: 1.25rem; }
    .ev-header-title { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   EVENT NOTIFICATION POPUP
══════════════════════════════════════════════════════════════ */
.ev-notif {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
    background: var(--dark-card);
    border: 1px solid rgba(245,158,11,.5);
    border-radius: 16px; padding: 1rem 1.2rem;
    max-width: 320px; min-width: 260px;
    box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 24px rgba(245,158,11,.2);
    display: flex; align-items: flex-start; gap: 12px;
    transform: translateY(24px) scale(.97); opacity: 0;
    transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease;
    pointer-events: none;
}
.ev-notif.show {
    transform: translateY(0) scale(1); opacity: 1;
    pointer-events: all;
}
.ev-notif-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.ev-notif-body { flex: 1; min-width: 0; }
.ev-notif-label {
    font-size: .64rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); font-family: var(--font-main); margin-bottom: 4px;
}
.ev-notif-name {
    font-family: var(--font-main); font-size: .95rem; font-weight: 700;
    color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-notif-sub { font-size: .78rem; color: var(--text-secondary); margin-top: 4px; }
.ev-notif-sub strong { color: #ffdd77; font-weight: 700; }
.ev-notif-link {
    display: inline-block; margin-top: 8px; font-size: .75rem;
    color: var(--neon-purple); text-decoration: none;
    opacity: .9; transition: opacity .15s;
}
.ev-notif-link:hover { opacity: 1; text-decoration: underline; }
.ev-notif-close {
    background: rgba(255,255,255,.06); border: 1px solid var(--dark-border);
    color: var(--text-secondary); cursor: pointer; font-size: .8rem;
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; margin-top: 1px;
}
.ev-notif-close {
    background: rgba(255,255,255,.06); border: 1px solid var(--dark-border);
    color: var(--text-secondary); cursor: pointer; font-size: .8rem;
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; margin-top: 1px;
}
.ev-notif-close:hover { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #ef4444; }

/* ══════════════════════════════════════════════════════════════
   STORY CREATE MODAL (index)
══════════════════════════════════════════════════════════════ */
.story-create-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; pointer-events: none; }
.story-create-modal.open { opacity: 1; pointer-events: all; }
.scm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.scm-card { position: relative; width: 100%; max-width: 460px; background: var(--dark-card); border: 1px solid rgba(168,85,247,.3); border-radius: 18px; padding: 1.5rem; margin: 1rem; z-index: 1; transform: translateY(22px) scale(.97); transition: transform .28s cubic-bezier(.16,1,.3,1); }
.story-create-modal.open .scm-card { transform: translateY(0) scale(1); }
.scm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.scm-title { font-family: var(--font-main); font-weight: 700; font-size: 1.05rem; color: var(--text-primary); letter-spacing: .5px; }
.scm-close { background: none; border: none; color: var(--text-secondary); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: color .15s, background .15s; }
.scm-close:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.scm-body textarea { width: 100%; box-sizing: border-box; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 10px; padding: .75rem 1rem; color: var(--text-primary); font-family: var(--font-body); font-size: .9rem; resize: none; outline: none; transition: border-color .2s; }
.scm-body textarea:focus { border-color: rgba(168,85,247,.4); }
.scm-toolbar { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; position: relative; flex-wrap: wrap; }
.scm-toolbar .btn-post-submit { margin-left: auto; background: var(--gradient-main); border: none; color: #fff; font-family: var(--font-main); font-weight: 700; font-size: .85rem; padding: .5rem 1.2rem; border-radius: 10px; cursor: pointer; letter-spacing: .5px; transition: opacity .15s; }
.scm-toolbar .btn-post-submit:hover { opacity: .85; }
.scm-toolbar .btn-post-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════
   PROFILE STORIES SECTION
══════════════════════════════════════════════════════════════ */
.profile-card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.profile-card-title-row .profile-card-title { margin-bottom: 0; }
.btn-story-create-toggle { background: var(--gradient-main); border: none; color: #fff; font-family: var(--font-main); font-size: .78rem; font-weight: 700; padding: .35rem .85rem; border-radius: 8px; cursor: pointer; letter-spacing: .4px; transition: opacity .15s; }
.btn-story-create-toggle:hover { opacity: .85; }
.profile-story-form-wrap { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--dark-border); }
.profile-story-form-wrap textarea { width: 100%; box-sizing: border-box; background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: 10px; padding: .75rem 1rem; color: var(--text-primary); font-family: var(--font-body); font-size: .9rem; resize: none; outline: none; transition: border-color .2s; }
.profile-story-form-wrap textarea:focus { border-color: rgba(168,85,247,.4); }
.profile-story-form-wrap .composer-row { margin-top: .5rem; }
.profile-stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .6rem; margin-top: .85rem; }
.profile-story-thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--dark-surface); border: 1px solid var(--dark-border); aspect-ratio: 9/16; max-height: 115px; }
.profile-story-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-story-text-thumb { padding: .35rem .4rem; font-size: .58rem; color: var(--text-secondary); line-height: 1.35; height: 100%; display: flex; align-items: center; }
.profile-story-date { position: absolute; bottom: 3px; right: 4px; font-size: .5rem; color: rgba(255,255,255,.55); font-family: var(--font-main); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.btn-delete-story { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(0,0,0,.65); color: rgba(255,255,255,.7); font-size: .6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; line-height: 1; }
.btn-delete-story:hover { background: rgba(239,68,68,.75); color: #fff; }
