/* ========================================
   XFINITY WARS RP - Main Stylesheet
   Theme: Dark Cyberpunk / Street Gang
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #00a8ff;
    --primary-dark: #0077b3;
    --primary-glow: rgba(0, 168, 255, 0.5);

    /* Secondary Colors */
    --secondary: #1a1a2e;
    --secondary-light: #252542;

    /* Accent Colors */
    --accent-cyan: #00f5ff;
    --accent-blue: #0066ff;
    --accent-purple: #9d00ff;
    --accent-gold: #ffd700;
    --accent-red: #ff3366;
    --accent-green: #00ff88;

    /* Backgrounds */
    --bg-dark: #0a0a12;
    --bg-darker: #050508;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(37, 37, 66, 0.9);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;

    /* Borders */
    --border-color: rgba(0, 168, 255, 0.3);
    --border-glow: rgba(0, 168, 255, 0.6);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00a8ff 0%, #0066ff 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0a0a12 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 46, 0.9) 0%, rgba(10, 10, 18, 0.9) 100%);

    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1400px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   Scanline Effect
   ======================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* ========================================
   Particle Background
   ======================================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, var(--secondary) 0%, var(--bg-dark) 70%, var(--bg-darker) 100%);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.glow-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(0, 168, 255, 0.3); }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.logo-sub {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 5px;
}

.logo-sub .rp {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    position: relative;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 30px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(157, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    -webkit-background-clip: text;
    background-clip: text;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(70px, 9999px, 90px, 0); }
    10% { clip: rect(20px, 9999px, 60px, 0); }
    15% { clip: rect(80px, 9999px, 100px, 0); }
    20% { clip: rect(10px, 9999px, 40px, 0); }
    25% { clip: rect(50px, 9999px, 70px, 0); }
    30% { clip: rect(90px, 9999px, 110px, 0); }
    35% { clip: rect(5px, 9999px, 25px, 0); }
    40% { clip: rect(60px, 9999px, 80px, 0); }
    45% { clip: rect(100px, 9999px, 120px, 0); }
    50% { clip: rect(15px, 9999px, 35px, 0); }
    55% { clip: rect(75px, 9999px, 95px, 0); }
    60% { clip: rect(25px, 9999px, 45px, 0); }
    65% { clip: rect(85px, 9999px, 105px, 0); }
    70% { clip: rect(35px, 9999px, 55px, 0); }
    75% { clip: rect(65px, 9999px, 85px, 0); }
    80% { clip: rect(45px, 9999px, 65px, 0); }
    85% { clip: rect(95px, 9999px, 115px, 0); }
    90% { clip: rect(55px, 9999px, 75px, 0); }
    95% { clip: rect(105px, 9999px, 125px, 0); }
    100% { clip: rect(40px, 9999px, 60px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 85px, 0); }
    5% { clip: rect(15px, 9999px, 35px, 0); }
    10% { clip: rect(95px, 9999px, 115px, 0); }
    15% { clip: rect(25px, 9999px, 45px, 0); }
    20% { clip: rect(75px, 9999px, 95px, 0); }
    25% { clip: rect(5px, 9999px, 25px, 0); }
    30% { clip: rect(55px, 9999px, 75px, 0); }
    35% { clip: rect(105px, 9999px, 125px, 0); }
    40% { clip: rect(35px, 9999px, 55px, 0); }
    45% { clip: rect(85px, 9999px, 105px, 0); }
    50% { clip: rect(45px, 9999px, 65px, 0); }
    55% { clip: rect(10px, 9999px, 30px, 0); }
    60% { clip: rect(60px, 9999px, 80px, 0); }
    65% { clip: rect(110px, 9999px, 130px, 0); }
    70% { clip: rect(20px, 9999px, 40px, 0); }
    75% { clip: rect(70px, 9999px, 90px, 0); }
    80% { clip: rect(30px, 9999px, 50px, 0); }
    85% { clip: rect(80px, 9999px, 100px, 0); }
    90% { clip: rect(50px, 9999px, 70px, 0); }
    95% { clip: rect(100px, 9999px, 120px, 0); }
    100% { clip: rect(40px, 9999px, 60px, 0); }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 600;
    letter-spacing: 10px;
    color: var(--primary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat-box {
    padding: 20px 30px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    min-width: 140px;
    transition: var(--transition-normal);
}

.stat-box:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.2);
}

.stat-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 5px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 1s backwards;
}

/* ========================================
   Status Bar
   ======================================== */
.status-bar {
    background: rgba(0, 168, 255, 0.05);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.status-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-dot.offline {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.event-active {
    color: var(--accent-gold);
}

.event-active i {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--section-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 24px;
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ========================================
   Leaderboards
   ======================================== */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.leaderboard-table {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 70px 1fr 100px 100px 200px;
    padding: 20px 25px;
    background: rgba(0, 168, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.gang-table .table-header {
    grid-template-columns: 70px 1fr 100px 100px 140px;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 70px 1fr 100px 100px 200px;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    align-items: center;
}

.gang-table .table-row {
    grid-template-columns: 70px 1fr 100px 100px 140px;
}

.table-row:hover {
    background: rgba(0, 168, 255, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #000;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Player avatar wrapper for Steam images */
.player-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.player-avatar {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

/* Steam avatar image */
.steam-avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.steam-avatar:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Fallback avatar when Steam image fails */
.player-avatar-fallback {
    width: 45px;
    height: 45px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Admin badge in leaderboard rows - smaller version */
.player-name-row .admin-badge {
    padding: 2px 6px;
    font-size: 8px;
}

.player-name-row .admin-badge i {
    font-size: 7px;
}

/* Animated name with sin wave colors - per-character animation */
.player-name.animated-name {
    font-weight: 700;
    display: inline-flex;
}

/* Each character in animated name */
.player-name.animated-name .animated-char {
    display: inline-block;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
    transition: none; /* No transition for smooth animation */
}

.player-steam {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.level-badge i {
    color: #fff;
}

/* Smaller level badge variant for gang members list */
.level-badge.level-badge-small {
    padding: 4px 10px;
    font-size: 12px;
    gap: 4px;
}

.level-badge.level-badge-small i {
    font-size: 10px;
}

.xp-value, .money-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.money-value {
    color: var(--accent-green);
}

.gang-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.gang-tag i {
    color: var(--primary);
}

/* Gang tag with icon for leaderboard rows - matches profile card style */
.gang-tag-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.gang-tag-with-icon.clickable-gang-tag {
    cursor: pointer;
}

.gang-tag-with-icon.clickable-gang-tag:hover {
    background: rgba(0, 168, 255, 0.15);
}

.gang-tag-with-icon.clickable-gang-tag:hover .gang-tag-name {
    color: var(--accent-cyan);
}

.gang-tag-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gang-tag-icon-shadow {
    position: absolute;
    width: 24px;
    height: 24px;
    object-fit: contain;
    top: 3px;
    left: 3px;
    z-index: 1;
    opacity: 0.9;
}

.gang-tag-icon-main {
    position: absolute;
    width: 24px;
    height: 24px;
    object-fit: contain;
    top: 1px;
    left: 1px;
    z-index: 2;
}

.gang-tag-letter {
    font-size: 16px;
    font-weight: 700;
}

.gang-tag-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gang-tag-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gang-tag-rank {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gang-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gang-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    background: var(--secondary);
}

/* Gang logo with icon image - layered shadow effect */
.gang-logo.gang-logo-with-icon {
    background: transparent;
    overflow: visible;
}

/* Shadow layer - positioned behind at +2px offset */
.gang-icon-shadow {
    position: absolute;
    width: 40px;
    height: 40px;
    object-fit: contain;
    top: 7px;
    left: 7px;
    z-index: 1;
    opacity: 0.9;
}

/* Main icon layer - on top */
.gang-icon-main {
    position: absolute;
    width: 40px;
    height: 40px;
    object-fit: contain;
    top: 5px;
    left: 5px;
    z-index: 2;
}

.gang-letter-fallback {
    font-size: 24px;
    font-weight: 700;
    z-index: 2;
}

.gang-details .gang-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.points-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-gold);
}

/* ========================================
   Gangs Showcase
   ======================================== */
.gangs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gang-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.gang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.gang-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.2);
}

.gang-card:hover::before {
    opacity: 1;
}

.gang-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gang-card-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    flex-shrink: 0;
    background: var(--secondary);
}

/* Gang card logo with icon image - layered shadow effect */
.gang-card-logo.gang-card-logo-with-icon {
    background: transparent;
    overflow: visible;
}

/* Shadow layer for card - positioned behind at +3px offset */
.gang-card-icon-shadow {
    position: absolute;
    width: 56px;
    height: 56px;
    object-fit: contain;
    top: 10px;
    left: 10px;
    z-index: 1;
    opacity: 0.9;
}

/* Main icon layer for card - on top */
.gang-card-icon-main {
    position: absolute;
    width: 56px;
    height: 56px;
    object-fit: contain;
    top: 7px;
    left: 7px;
    z-index: 2;
}

.gang-card-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.gang-card-level {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.gang-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gang-stat {
    text-align: center;
}

.gang-stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.gang-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ========================================
   Player Lookup
   ======================================== */
.lookup-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 40px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--gradient-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 8px 8px 25px;
    transition: var(--transition-normal);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.search-input-wrapper i {
    font-size: 24px;
    color: var(--primary);
    margin-right: 15px;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    padding: 15px 0;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover {
    background: rgba(0, 168, 255, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Player Profile */
.player-profile {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.player-profile.hidden {
    display: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), transparent);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* Compact profile header layout */
.profile-header-compact {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08), transparent);
    border-bottom: 1px solid var(--border-color);
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-top-row .profile-name {
    margin-bottom: 0;
    font-size: 28px;
}

.profile-top-row .profile-custom-title {
    margin-bottom: 0;
}

.profile-details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-title-gang {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-title-gang .profile-title {
    margin-bottom: 0;
}

.profile-separator {
    color: var(--text-muted);
    font-size: 12px;
}

.profile-inline-stats {
    display: flex;
    align-items: center;
    gap: 25px;
}

.inline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.is-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1.2;
}

.is-value.gold {
    color: var(--accent-gold);
}

.is-value.blue {
    color: var(--accent-blue);
}

.is-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-avatar {
    position: relative;
}

.avatar-frame {
    width: 100px;
    height: 100px;
    background: var(--secondary);
    border: 3px solid var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
}

/* Steam avatar for profile */
.profile-avatar-link {
    display: block;
    position: relative;
    cursor: pointer;
}

.profile-avatar-link::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: var(--transition-fast);
}

.profile-avatar-link:hover::after {
    opacity: 1;
}

.profile-steam-avatar {
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary);
    border-radius: 16px;
    object-fit: cover;
    transition: var(--transition-fast);
}

.profile-avatar-link:hover .profile-steam-avatar,
.profile-steam-avatar:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.05);
}

.avatar-fallback {
    display: flex;
}

.profile-level-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    border: 3px solid var(--bg-card);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    margin-bottom: 5px;
}

/* Animated profile name with sin wave colors */
.profile-name.animated-name {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-name.animated-name .animated-char {
    display: inline-block;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    transition: none;
}

.profile-title {
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.profile-gang {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
}

.profile-gang i {
    color: var(--primary);
}

/* Profile gang display with icon */
.profile-gang-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-gang-display.clickable-gang {
    cursor: pointer;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.profile-gang-display.clickable-gang:hover {
    background: rgba(0, 168, 255, 0.1);
}

.profile-gang-display.clickable-gang:hover .profile-gang-name {
    color: var(--accent-blue);
}

.profile-gang-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-gang-icon-shadow {
    position: absolute;
    width: 28px;
    height: 28px;
    object-fit: contain;
    top: 4px;
    left: 4px;
    z-index: 1;
    opacity: 0.9;
}

.profile-gang-icon-main {
    position: absolute;
    width: 28px;
    height: 28px;
    object-fit: contain;
    top: 2px;
    left: 2px;
    z-index: 2;
}

.profile-gang-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-gang-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-gang-rank {
    font-size: 11px;
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Custom title badge styling */
.profile-custom-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.2) 0%, rgba(128, 0, 200, 0.1) 100%);
    border: 1px solid rgba(157, 0, 255, 0.4);
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
    color: var(--accent-purple);
    letter-spacing: 0.5px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-custom-title i {
    font-size: 10px;
    opacity: 0.8;
}

/* Responsive custom title - shrinks for long titles */
@media (max-width: 768px) {
    .profile-custom-title {
        max-width: 150px;
        font-size: 10px;
        padding: 3px 10px;
    }
}

.profile-quick-stats {
    display: flex;
    gap: 30px;
}

.quick-stat {
    text-align: center;
}

.qs-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.qs-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-green);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 40px;
}

.profile-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.profile-stat-card:hover {
    border-color: var(--border-color);
    background: rgba(0, 168, 255, 0.05);
}

.psc-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.psc-value {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.psc-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Profile Sections (Boosts & Upgrades) */
.profile-section {
    padding: 0 40px 30px;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.profile-section-header i {
    color: var(--accent-gold);
}

.profile-boosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.boost-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 180, 0, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    transition: var(--transition-fast);
    cursor: default;
}

.boost-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 180, 0, 0.06) 100%);
    transform: translateY(-2px);
}

.boost-card.upgrade-card {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08) 0%, rgba(0, 102, 255, 0.04) 100%);
    border-color: rgba(0, 168, 255, 0.25);
}

.boost-card.upgrade-card:hover {
    border-color: rgba(0, 168, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.12) 0%, rgba(0, 102, 255, 0.06) 100%);
}

.boost-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.boost-card-icon img.boost-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.upgrade-card .boost-card-icon img.boost-icon {
    filter: drop-shadow(0 0 4px rgba(0, 168, 255, 0.4));
}

.boost-card-icon i {
    font-size: 24px;
    color: var(--accent-gold);
}

.upgrade-card .boost-card-icon i {
    color: var(--primary);
}

.boost-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.boost-card-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boost-card-expires {
    font-size: 11px;
    color: var(--accent-gold);
    margin-top: 2px;
}

.boost-card-level {
    font-size: 11px;
    color: var(--primary);
    margin-top: 2px;
}

/* Legacy boost badge (fallback) */
.profile-boosts {
    padding: 20px 40px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 13px;
    color: var(--accent-gold);
}

.boost-badge i {
    font-size: 16px;
}

/* ========================================
   Gang Profile Card
   ======================================== */
.gang-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), transparent);
    border-bottom: 1px solid var(--border-color);
}

.gang-profile-icon {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.gang-profile-icon-shadow {
    position: absolute;
    width: 72px;
    height: 72px;
    object-fit: contain;
    top: 6px;
    left: 6px;
    z-index: 1;
    opacity: 0.9;
}

.gang-profile-icon-main {
    position: absolute;
    width: 72px;
    height: 72px;
    object-fit: contain;
    top: 4px;
    left: 4px;
    z-index: 2;
}

.gang-profile-icon.gang-profile-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
}

.gang-profile-info {
    flex: 1;
}

.gang-profile-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.gang-profile-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.gps-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gps-value {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gps-value.money {
    color: var(--accent-green);
}

.gps-value i {
    font-size: 14px;
    opacity: 0.8;
}

.gps-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Gang Upgrades Section */
.gang-upgrades-section {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

.gang-upgrades-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.gang-upgrades-header i {
    color: var(--accent-green);
}

.gang-upgrades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.gang-upgrade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 8px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: var(--transition-fast);
    cursor: default;
    flex: 1 1 calc(10% - 8px);
    min-width: 70px;
    max-width: 90px;
}

.gang-upgrade-item:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
}

.gang-upgrade-name {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.gang-upgrade-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(1.1);
}

.gang-upgrade-level {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.gang-upgrade-desc {
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Gang Upgrade Percentage Value */
.gang-upgrade-pct {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-green);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Gang Members Section */
.gang-members-section {
    padding: 20px 30px 30px;
}

.gang-members-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.gang-members-header i {
    color: var(--accent-gold);
}

.gang-members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.gang-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition-fast);
    margin-right: 5px;
}

.gang-member-row:hover {
    background: rgba(0, 168, 255, 0.08);
    border-color: rgba(0, 168, 255, 0.2);
    transform: translateX(5px);
    margin-right: 0;
}

.gang-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gang-member-avatar-wrapper {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.gang-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.gang-member-avatar-fallback {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.gang-member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gang-member-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gang-member-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.gang-member-name.animated-name {
    display: inline-flex;
}

.gang-member-name.animated-name .animated-char {
    display: inline-block;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
    transition: none;
}

.gang-member-rank {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.gang-member-rank.rank-1 {
    color: var(--accent-gold);
}

.gang-member-rank.rank-2 {
    color: var(--accent-purple);
}

.gang-member-rank.rank-3 {
    color: var(--accent-cyan);
}

.gang-member-rank.rank-4,
.gang-member-rank.rank-5 {
    color: var(--text-muted);
}

.gang-member-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gms-stat {
    text-align: right;
}

.gms-value {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.gms-value i {
    color: var(--accent-gold);
    font-size: 11px;
}

.gms-value.money {
    color: var(--accent-green);
}

/* Admin Badge Styles */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.1) 100%);
    border: 1px solid rgba(255, 51, 102, 0.4);
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-badge i {
    font-size: 8px;
}

/* Admin badge in profile header */
.profile-top-row .admin-badge {
    padding: 4px 12px;
    font-size: 11px;
}

.profile-top-row .admin-badge i {
    font-size: 10px;
}

/* Admin badge in gang member list */
.gang-member-details .admin-badge {
    margin-left: 8px;
}

/* Admin badge color variations by level */
.admin-badge.admin-level-6 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 140, 0, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: var(--accent-gold);
}

.admin-badge.admin-level-5 {
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.2) 0%, rgba(157, 0, 255, 0.1) 100%);
    border-color: rgba(157, 0, 255, 0.4);
    color: var(--accent-purple);
}

.admin-badge.admin-level-4,
.admin-badge.admin-level-3 {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2) 0%, rgba(0, 168, 255, 0.1) 100%);
    border-color: rgba(0, 168, 255, 0.4);
    color: var(--primary);
}

/* Gang members list scrollbar */
.gang-members-list::-webkit-scrollbar {
    width: 6px;
}

.gang-members-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.gang-members-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.gang-members-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   Stats Section
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-card.large {
    grid-column: span 2;
    padding: 40px;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-value {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card.large .stat-card-value {
    font-size: 36px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.stat-card-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    color: rgba(0, 168, 255, 0.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.footer-logo .logo-main {
    font-size: 28px;
}

.footer-logo .logo-sub {
    font-size: 16px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.connect-link {
    padding: 12px 20px !important;
    background: var(--gradient-primary);
    border-radius: 8px;
    margin-top: 10px;
    color: var(--text-primary) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-credits {
    margin-top: 10px;
    font-size: 12px;
}

/* ========================================
   Loading & Animations
   ======================================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 20px;
    color: var(--text-muted);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Cyber Frame
   ======================================== */
.cyber-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-style: solid;
    opacity: 0.3;
}

.frame-corner.top-left {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.frame-corner.top-right {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.frame-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.frame-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-box {
        min-width: 120px;
        padding: 15px 20px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 60px 1fr 100px 100px;
    }

    .col-gang {
        display: none;
    }

    .stat-card.large {
        grid-column: span 1;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }

    .nav-actions .btn:not(:last-child) {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-box {
        width: 100%;
        max-width: 250px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .status-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 50px 1fr 80px;
    }

    .col-xp {
        display: none;
    }

    .gangs-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-header-compact {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .profile-top-row {
        justify-content: center;
    }

    .profile-details-row {
        flex-direction: column;
        gap: 15px;
    }

    .profile-title-gang {
        justify-content: center;
    }

    .profile-inline-stats {
        justify-content: center;
    }

    .profile-quick-stats {
        justify-content: center;
    }

    .profile-section {
        padding: 0 20px 25px;
    }

    .profile-boosts-grid {
        grid-template-columns: 1fr;
    }

    .boost-card-name {
        font-size: 12px;
    }

    .profile-stats-grid {
        padding: 20px;
    }

    /* Gang Profile responsive */
    .gang-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .gang-profile-stats {
        justify-content: center;
    }

    .gang-members-section {
        padding: 15px 20px 25px;
    }

    .gang-member-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .gang-member-info {
        flex-direction: column;
    }

    .gang-member-stats {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
        gap: 30px;
    }

    .footer-column a {
        justify-content: center;
    }
}

/* ========================================
   Sticky Server Statistics Footer Bar
   ======================================== */
.server-stats-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.98) 0%, rgba(5, 5, 8, 0.99) 100%);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

.stats-footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.stats-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    position: relative;
}

.stats-footer-item.stats-rotator {
    min-height: 40px;
}

.stats-rotation-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-rotation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.stats-rotation-item.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.stats-rotation-item.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.stats-footer-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
}

.stats-footer-value {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Add padding to footer to account for sticky stats bar */
.footer {
    padding-bottom: 80px;
}

/* Responsive adjustments for stats footer */
@media (max-width: 1200px) {
    .stats-footer-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-footer-item {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .server-stats-footer {
        padding: 10px 0;
    }

    .stats-footer-container {
        gap: 15px;
    }

    .stats-footer-item {
        min-width: 100px;
    }

    .stats-footer-label {
        font-size: 8px;
    }

    .stats-footer-value {
        font-size: 12px;
    }

    .footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .stats-footer-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .stats-footer-item {
        flex: 0 0 calc(33.33% - 10px);
        min-width: 90px;
    }

    .stats-footer-label {
        font-size: 7px;
    }

    .stats-footer-value {
        font-size: 11px;
    }

    .footer {
        padding-bottom: 120px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .leaderboard-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .search-input-wrapper {
        flex-direction: column;
        padding: 15px;
    }

    .search-input-wrapper i {
        display: none;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ========================================
   Equipment Display
   ======================================== */

.eq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 4px 0;
}

.eq-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    border-left: 3px solid #555;
    transition: background 0.2s, border-color 0.2s;
}

.eq-slot-filled {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
}

.eq-slot-filled:hover {
    background: rgba(255, 255, 255, 0.08);
}

.eq-slot-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eq-slot-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

.eq-slot-fallback {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.eq-slot-empty {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444;
}

.eq-slot-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.eq-slot-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 1px;
}

.eq-slot-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Equipment Tooltip (matches in-game style)
   ======================================== */

.eq-tooltip {
    position: fixed;
    z-index: 10000;
    background: rgb(18, 18, 22);
    border: 1px solid rgb(55, 55, 65);
    border-radius: 8px;
    min-width: 240px;
    max-width: 300px;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Header bar (dark strip at top) */
.eq-tt-header {
    background: rgb(28, 28, 35);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eq-tt-header-costume {
    background: rgb(40, 25, 50);
    border-bottom: 1px solid rgba(150, 100, 200, 0.3);
}

.eq-tt-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

/* Body section */
.eq-tt-body {
    padding: 8px 12px 10px;
}

/* Crafted by line - yellow */
.eq-tt-crafter {
    font-size: 12px;
    font-weight: 600;
    color: rgb(255, 215, 80);
    margin-bottom: 2px;
}

/* Level requirement - yellow */
.eq-tt-level {
    font-size: 12px;
    font-weight: 600;
    color: rgb(255, 215, 80);
    margin-bottom: 4px;
}

/* Weapon type line - gray */
.eq-tt-type {
    font-size: 12px;
    color: rgb(160, 160, 170);
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Laser VFX - cyan */
.eq-tt-laser {
    font-size: 12px;
    font-weight: 700;
    color: rgb(0, 200, 255);
    margin-bottom: 4px;
}

/* Description - cyan (costumes) */
.eq-tt-desc {
    font-size: 12px;
    color: rgb(140, 200, 220);
    margin-bottom: 4px;
}

/* Base stats - gold color (armor/ring/orb base upgrades) */
.eq-tt-stat-gold {
    font-size: 12px;
    color: rgb(220, 180, 80);
    margin-bottom: 2px;
}

/* Upgrade stats - green color */
.eq-tt-stat-green {
    font-size: 12px;
    color: rgb(80, 200, 120);
    margin-bottom: 2px;
}

/* Two-column layout for armor/ring stats */
.eq-tt-columns {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.eq-tt-col {
    flex: 1;
    min-width: 0;
}

/* Upgrade slots section */
.eq-tt-slots-label {
    font-size: 11px;
    color: rgb(160, 160, 170);
    margin-top: 8px;
    margin-bottom: 4px;
}

.eq-tt-slots-row {
    display: flex;
    gap: 4px;
}

.eq-tt-slot {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.eq-tt-slot-filled {
    background: rgba(80, 200, 120, 0.25);
    border: 1px solid rgb(80, 200, 120);
}

.eq-tt-slot-empty {
    background: transparent;
    border: 1px solid rgb(180, 180, 180);
    opacity: 0.4;
}

@media (max-width: 768px) {
    .eq-grid {
        grid-template-columns: 1fr;
    }
}
