/* ═══════════════════════════════════════════════════════
   NexusHoverCard v2.0 — CSS
   Design: Dark Gaming / Playzek Romania
   ═══════════════════════════════════════════════════════ */

#nhc-card {
    position: absolute;
    z-index: 99999;
    width: 310px;
    background: #12141c;
    border: 2px solid #ff4700;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 71, 0, 0.35), 0 8px 40px rgba(0,0,0,0.8);
    overflow: hidden;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e0e0e0;
    pointer-events: auto;
}

/* ─── Close button ─── */
.nhc-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nhc-close:hover { background: rgba(255,71,0,0.7); }

/* ─── Banner ─── */
.nhc-banner {
    width: 100%;
    height: 95px;
    background: linear-gradient(135deg, rgba(255,71,0,0.25) 0%, #0d0e13 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ─── Avatar ─── */
.nhc-avatar-wrap {
    position: absolute;
    top: 58px;
    left: 14px;
    width: 60px;
    height: 60px;
    z-index: 5;
}

.nhc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #ff4700;
    object-fit: cover;
    background: #1a1e29;
    display: block;
}

.nhc-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #00e676;
    border: 2px solid #12141c;
    display: none;
}

/* ─── VIP badge (crown) ─── */
.nhc-vip-badge {
    position: absolute;
    top: 100px;
    left: 80px;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* ─── Content area ─── */
.nhc-content {
    padding: 12px 14px 14px 14px;
    margin-top: 28px;
}

/* ─── Username ─── */
.nhc-username {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Badges ─── */
.nhc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}

.nhc-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.nhc-badge-group, .nhc-badge-extra {
    background: rgba(255, 200, 0, 0.12);
    color: #ffc800;
    border-color: #ffc800;
}

.badge-founder {
    background: rgba(255, 71, 0, 0.15);
    color: #ff6b2b;
    border-color: #ff4700;
}

.badge-admin {
    background: rgba(255, 0, 0, 0.12);
    color: #ff4444;
    border-color: #ff0000;
}

.badge-root {
    background: rgba(0, 200, 255, 0.12);
    color: #00c8ff;
    border-color: #00c8ff;
}

/* ─── Meta (Joined / Last seen) ─── */
.nhc-meta {
    margin-bottom: 10px;
}

.nhc-meta-row {
    font-size: 11.5px;
    color: #9a9aaa;
    margin-bottom: 3px;
    display: flex;
    gap: 4px;
}

.nhc-meta-label {
    color: #c0c0cc;
    font-weight: 600;
}

.nhc-joined, .nhc-lastseen {
    color: #e0e0e0;
}

/* ─── Stats ─── */
.nhc-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 8px 6px;
    margin-bottom: 12px;
    gap: 4px;
}

.nhc-stat {
    flex: 1;
    text-align: center;
}

.nhc-stat-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff4700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.nhc-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.nhc-stat-sep {
    width: 1px;
    height: 34px;
    background: rgba(255,71,0,0.3);
    flex-shrink: 0;
}

/* ─── Action buttons ─── */
.nhc-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nhc-btn-pm {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #ff4700, #ff8c00);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.nhc-btn-pm:hover { opacity: 0.85; }

.nhc-actions-row2 {
    display: flex;
    gap: 7px;
}

.nhc-btn-profile {
    flex: 1;
    display: block;
    text-align: center;
    background: transparent;
    color: #e0e0e0 !important;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
}
.nhc-btn-profile:hover {
    border-color: #ff4700;
    color: #ff4700 !important;
}

.nhc-btn-admincp {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    color: #000 !important;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.nhc-btn-admincp:hover { opacity: 0.85; }

/* ─── Loader ─── */
.nhc-loader {
    position: absolute;
    inset: 0;
    background: rgba(18, 20, 28, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.nhc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,71,0,0.2);
    border-top-color: #ff4700;
    border-radius: 50%;
    animation: nhc-spin 0.7s linear infinite;
}

@keyframes nhc-spin {
    to { transform: rotate(360deg); }
}
