/* Sprite icon fixes */
.sp-i { width: 1em; height: 1em; display: inline-block; vertical-align: middle; fill: currentColor; flex-shrink: 0; }

/* ====== VIP PLAYERS - CS2 Project ====== */

/* Layout: sidebar + main */
.vip-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

/* ====== SIDEBAR ====== */
.vip-sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 80px; }

.vip-side-block {
    background: var(--card-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    border-radius: 12px;
    padding: 16px;
}
.vip-side-label {
    font-size: 13px;
    color: var(--text-secondary, #888);
    margin-bottom: 12px;
}

/* Search */
.vip-search-box {
    position: relative;
}
.vip-search-box i, .vip-search-box > .sp-i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 16px; color: var(--text-secondary, #666);
    width: 16px; height: 16px;
}
.vip-search-box input {
    width: 100%; padding: 10px 12px 10px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    transition: border-color .2s;
    outline: none;
    box-sizing: border-box;
}
.vip-search-box input:focus {
    border-color: rgba(255,215,0,0.4);
}

/* Group filter buttons */
.vip-group-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vip-group-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #999);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: 1px solid transparent;
}
.vip-group-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-primary, #fff);
}
.vip-group-btn.active {
    background: rgba(255,215,0,0.12);
    color: var(--gc, #ffd700);
    border-color: rgba(255,215,0,0.25);
}

/* Stats */
.vip-stats-block { padding: 14px 16px; }
.vip-stat-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary, #999);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.vip-stat-item:last-child { border-bottom: none; }
.vip-stat-badge {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ====== CONTENT ====== */
.vip-content-block {
    background: var(--card-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    border-radius: 12px;
    overflow: hidden;
}
.vip-content-header {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vip-content-header h2 {
    font-size: 16px; font-weight: 700;
    color: var(--text-primary, #fff);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.vip-count-badge {
    background: rgba(255,215,0,0.12);
    color: #ffd700;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.vip-search-tag {
    font-size: 13px; color: var(--text-secondary, #999);
    margin-left: auto;
}
.vip-search-tag a { color: var(--text-secondary, #999); text-decoration: none; }
.vip-search-tag a:hover { color: #ef4444; }

/* Empty */
.vip-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary, #555);
}
.vip-empty i, .vip-empty .sp-i { font-size: 48px; opacity: .3; display: block; margin-bottom: 12px; }
.vip-empty p { font-size: 14px; }
.vip-empty-page {
    text-align: center; padding: 80px 20px;
    color: var(--text-secondary, #555);
}
.vip-empty-page i, .vip-empty-page .sp-i { font-size: 64px; opacity: .2; display: block; margin-bottom: 16px; }
.vip-empty-page h2 { font-size: 20px; color: var(--text-primary, #fff); margin-bottom: 8px; }

/* ====== VIP CARD GRID ====== */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}
.vip-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .2s;
}
.vip-card:hover { border-color: rgba(255,215,0,0.2); }

/* Banner */
.vip-card-banner {
    position: relative;
    height: 90px;
    overflow: hidden;
}
.vip-card-banner-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,215,0,0.06) 0%, rgba(255,255,255,0.01) 100%);
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transition: filter .3s;
}
.vip-card:hover .vip-card-banner-bg { filter: brightness(0.65); }

.vip-card-banner-info {
    position: absolute;
    right: 12px; top: 50%; transform: translateY(-50%);
    text-align: right;
    z-index: 2;
}
.vip-card-group {
    font-size: 14px; font-weight: 700;
    color: #ffd700;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 180px;
}

/* Permanent badge */
.vip-perm-badge {
    position: absolute;
    left: 12px; top: 10px;
    z-index: 2;
    line-height: 1;
    animation: vipBadgeGlow 2.5s ease-in-out infinite;
}
@keyframes vipBadgeGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,215,0,0.5)) drop-shadow(0 0 10px rgba(255,165,0,0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.9)) drop-shadow(0 0 20px rgba(255,165,0,0.5)) drop-shadow(0 0 30px rgba(255,215,0,0.2)); }
}
.vip-perm-icon {
    width: 28px; height: 28px;
    display: block;
    filter: brightness(0) saturate(100%) invert(84%) sepia(49%) saturate(786%) hue-rotate(1deg) brightness(104%) contrast(106%);
}

/* SteamID */
.vip-card-steamid {
    font-size: 11px; color: var(--text-secondary, #999);
    font-family: monospace;
    cursor: pointer;
    display: flex; align-items: center; gap: 5px;
    transition: all .2s;
    white-space: nowrap;
}
.vip-card-steamid:hover { color: var(--text-primary, #fff); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.vip-card-steamid i, .vip-card-steamid .sp-i { font-size: 12px; flex-shrink: 0; opacity: 0.5; }
.vip-card-steamid:hover i, .vip-card-steamid:hover .sp-i { opacity: 1; }
.vip-card-steamid.copied { color: #22c55e; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }

/* Mid row */
.vip-card-mid {
    position: relative;
}
.vip-card-mid .vip-card-steamid {
    position: absolute;
    right: 14px;
    top: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 10px;
}

/* Avatar */
.vip-card-avatar-wrap {
    position: relative;
    margin-top: -32px;
    margin-left: 14px;
    width: 64px; height: 64px;
    z-index: 3;
    flex-shrink: 0;
}
.vip-card-av {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 3px solid var(--card-bg, #131417);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary, #555); font-size: 26px;
    position: relative;
}
.vip-card-av img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0; border-radius: 50%;
}

/* Online indicator */
.vip-online-dot {
    display: none;
    position: absolute;
    bottom: 2px; right: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #666;
    border: 2.5px solid var(--card-bg, #131417);
    z-index: 4;
}
.vip-online-dot.online { display: block; background: #22c55e; }
.vip-online-dot.offline { display: block; background: #555; }
.vip-online-dot.away { display: block; background: #f59e0b; }

/* Name */
.vip-card-name {
    font-size: 16px; font-weight: 700; color: var(--text-primary, #fff);
    padding: 8px 14px 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.vip-card-name-link {
    display: block; text-decoration: none; color: var(--text-primary, #fff);
    transition: color .2s ease;
}
a.vip-card-name-link:hover { color: var(--accent-orange, #ff5500); }

/* Expire line */
.vip-card-expire {
    padding: 4px 14px 0;
    font-size: 12px;
    color: var(--text-secondary, #888);
    display: flex; align-items: center; gap: 5px;
}
.vip-card-expire i, .vip-card-expire .sp-i { font-size: 14px; opacity: .5; }
.vip-expire-perm { color: #ffd700; font-weight: 600; }

/* Action button */
.vip-card-action {
    margin: 10px 14px 14px;
    padding: 10px;
    text-align: center;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary, #999);
    background: rgba(255,255,255,0.035);
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.vip-card-action:hover {
    background: rgba(255,215,0,0.08);
    color: #ffd700;
}

/* ====== MODAL ====== */
.vip-overlay {
    display: none; position: fixed; inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    justify-content: center; align-items: center; padding: 20px;
}
.vip-overlay.open { display: flex; }
.vip-mdl {
    background: var(--card-bg, #131417);
    border-radius: 16px;
    width: 100%; max-width: 420px;
    animation: vipMdlIn .2s ease;
}
@keyframes vipMdlIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

.vip-mdl-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vip-mdl-head h3 { font-size: 16px; font-weight: 800; margin: 0; color: var(--text-primary, #fff); text-transform: none; letter-spacing: 0; }
.vip-mdl-head button {
    background: none; border: none; color: var(--text-secondary, #888);
    font-size: 22px; cursor: pointer; padding: 4px;
    display: flex; align-items: center;
}
.vip-mdl-head button .sp-i { width: 14px; height: 14px; }
.vip-mdl-head button:hover { color: #fff; }

.vip-mdl-body { padding: 14px 16px; }
.vip-mdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vip-mdl-cell {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
}
.vip-mdl-ci {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); color: var(--text-secondary, #777); font-size: 14px;
}
.vip-mdl-ci .sp-i { width: 16px; height: 16px; }
.vip-mdl-cell small { line-height: 1; font-size: 12px; opacity: 0.5; color: var(--text-primary); margin: 0; }
.vip-mdl-val { font-size: 13px; font-weight: 700; color: var(--text-primary, #fff); margin-top: -5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.vip-mdl-hl { color: #ffd700; }

.vip-steam-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary, #999); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: all .15s;
}
.vip-steam-btn i, .vip-steam-btn .sp-i { font-size: 18px; }
.vip-steam-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-primary, #fff);
}
.vip-profile-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 8px; padding: 14px;
    border-radius: 10px;
    background: rgba(255,85,0,0.08);
    border: 1px solid rgba(255,85,0,0.15);
    color: var(--accent-orange, #ff5500); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: all .15s;
}
.vip-profile-btn i, .vip-profile-btn .sp-i { font-size: 18px; }
.vip-profile-btn:hover {
    background: rgba(255,85,0,0.15);
    border-color: rgba(255,85,0,0.3);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .vip-layout { grid-template-columns: 1fr; }
    .vip-sidebar { position: static; }
    .vip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .vip-grid { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
    .vip-mdl-grid { grid-template-columns: 1fr; }
    .vip-mdl { max-width: 100%; }
}

/* Server dropdown */
.vip-server-dropdown { position:relative; margin-bottom:16px; }
.vip-server-dropdown-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; padding:8px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.03); color:rgba(255,255,255,.7); font-size:.82rem; font-weight:600; cursor:pointer; transition:all .2s; }
.vip-server-dropdown-toggle:hover { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); }
.vip-server-dropdown-toggle i, .vip-server-dropdown-toggle .sp-i { font-size:18px; opacity:.5; transition:transform .2s; }
.vip-server-dropdown.open .vip-server-dropdown-toggle { border-color:rgba(255,85,0,.3); background:rgba(255,85,0,.05); }
.vip-server-dropdown.open .vip-server-dropdown-toggle i, .vip-server-dropdown-toggle .sp-i { transform:rotate(180deg); }
.vip-server-dropdown-menu { display:none; position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:50; background:#1a1c22; border:1px solid rgba(255,255,255,.08); border-radius:10px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.4); }
.vip-server-dropdown.open .vip-server-dropdown-menu { display:block; }
.vip-server-dropdown-item { display:block; padding:9px 14px; color:rgba(255,255,255,.5); font-size:.8rem; font-weight:500; text-decoration:none; transition:all .15s; }
.vip-server-dropdown-item:hover { background:rgba(255,255,255,.05); color:rgba(255,255,255,.8); text-decoration:none; }
.vip-server-dropdown-item.active { background:rgba(255,85,0,.08); color:#ff5500; font-weight:600; }