/* Advanced Modern GunZ Website Design - Inspired by fgunz.net */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #19f6ff; /* Neon cyan for primary elements */
    --secondary-color: #00d4ff; /* Lighter cyan for secondary elements */
    --accent-color: #ffd700; /* Gold for special highlights */
    --bg-dark: #0a0a0f; /* Deep dark background */
    --bg-darker: #050508; /* Even darker background */
    --bg-light: #1a1a2e; /* Panel/row background */
    --bg-lighter: #16213e; /* Slightly lighter for contrast */
    --text-primary: #ffffff;
    --text-secondary: #b8c6d1;
    --text-muted: #8a9ba8;
    --border-color: #1a1a2e;
    --success-color: #00ff88;
    --error-color: #ff4757;
    --warning-color: #ffa502;
    --gradient-primary: linear-gradient(135deg, #19f6ff 0%, #00d4ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    --shadow-light: 0 2px 10px rgba(25, 246, 255, 0.1);
    --shadow-medium: 0 8px 25px rgba(25, 246, 255, 0.15);
    --shadow-heavy: 0 15px 40px rgba(25, 246, 255, 0.2);
    --glass-bg: linear-gradient(135deg, rgba(25, 25, 35, 0.95) 0%, rgba(35, 35, 50, 0.95) 100%);
    --glass-border: rgba(25, 246, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(25, 246, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(25, 246, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(25, 246, 255, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    background: transparent;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* Main Wrapper */
#wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: none;
    padding: 5px;
}

/* Header Section */
#logo {
    background: none;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    padding: 10px 0 8px 0;
    text-shadow: 0 0 12px var(--primary-color), 0 0 32px var(--primary-color), 0 0 48px var(--primary-color);
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        text-shadow: 0 0 12px var(--primary-color), 0 0 32px var(--primary-color), 0 0 48px var(--primary-color);
    }
    to {
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color), 0 0 60px var(--primary-color), 0 0 80px var(--primary-color);
    }
}

/* Navigation */
#navbar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin: 8px 0;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

#navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

#navbar a {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 2;
}

#navbar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

#navbar a:hover {
    color: var(--bg-dark);
    background: rgba(25, 246, 255, 0.2);
    text-shadow: 0 0 10px var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

#navbar a:hover::before {
    left: 0;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 15px;
    flex: 1;
}

/* Left Sidebar */
#left {
    width: 250px;
    flex-shrink: 0;
}

/* Server Status */
.serverstatus {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.serverstatus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

.serverstatus h3 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-shadow: 0 0 8px var(--primary-color);
}

#server-status {
    font-size: 0.8rem;
    font-weight: 600;
}

#server-status .online {
    color: var(--success-color);
    text-shadow: 0 0 8px var(--success-color);
}

#server-status .offline {
    color: var(--error-color);
    text-shadow: 0 0 8px var(--error-color);
}

/* Sidebar Panels */
.sidebar-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

.sidebar-panel:hover {
    border-color: rgba(25, 246, 255, 0.4);
    transform: translateY(-1px);
}

.sidebar-panel .t {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 0 8px var(--primary-color);
}

.sidebar-panel .t img {
    vertical-align: middle;
    margin-right: 5px;
}

.sidebar-panel .m {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
}

.sidebar-panel.maximized .m {
    display: block;
}

.sidebar-panel .b {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 0 0 8px 8px;
    margin: 8px -10px -10px -10px;
}

/* Form Elements */
.inputbg {
    width: 100%;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.inputbg:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(25, 246, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.submitbg, .register {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submitbg:hover, .register:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Ranking Items */
.ranking-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 4px;
    border: 1px solid rgba(25, 246, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(25, 246, 255, 0.2);
    transform: translateX(2px);
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-position {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-name {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
}

.ranking-level {
    color: var(--text-secondary);
    font-size: 0.7rem;
    background: rgba(25, 246, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Right Content Area */
#right {
    flex: 1;
    min-width: 0;
}

/* Content Panels */
.content-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-panel:hover {
    border-color: rgba(25, 246, 255, 0.4);
    transform: translateY(-1px);
}

.content-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

.content-panel .t, .glowing-header {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 8px var(--primary-color);
    letter-spacing: 1px;
}

.content-panel .m {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.content-panel .b {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 0 0 8px 8px;
    margin: 10px -15px -15px -15px;
}

/* Announcements */
.announce {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.announce::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

/* YouTube Container */
.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Vote Button */
.vote {
    background: var(--gradient-accent);
    color: var(--bg-dark);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.vote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.vote:hover, .vote:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: var(--bg-dark);
}

/* Footer */
#footer {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    font-size: 0.7rem;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

#footer .left, #footer .right {
    color: var(--text-secondary);
    z-index: 2;
    position: relative;
}

#footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

#footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Icons */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.icon-user::before { content: '👤'; }
.icon-trophy::before { content: '🏆'; }
.icon-clan::before { content: '🏰'; }
.icon-sword::before { content: '⚔️'; }
.icon-duel::before { content: '🤺'; }
.icon-video::before { content: '🎥'; }
.icon-controls::before { content: '🎮'; }
.icon-features::before { content: '✨'; }
.icon-links::before { content: '🔗'; }
.icon-info::before { content: 'ℹ️'; }
.icon-edit::before { content: '✏️'; }
.icon-gear::before { content: '⚙️'; }
.icon-right::before { content: '→'; }

/* Responsive Design */
@media (max-width: 1200px) {
    #wrapper {
        width: 95%;
        padding: 5px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 10px;
    }
    
    #left {
        width: 100%;
    }
    
    #navbar {
        gap: 4px;
        padding: 6px;
    }
    
    #navbar a {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    #logo {
        font-size: 1.5rem;
        padding: 8px 0 6px 0;
    }
    
    .serverstatus, .sidebar-panel {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .content-panel {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    #footer {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    #wrapper {
        width: 98%;
        padding: 3px;
    }
    
    #logo {
        font-size: 1.2rem;
        padding: 6px 0 4px 0;
    }
    
    #navbar {
        padding: 4px;
        gap: 2px;
    }
    
    #navbar a {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .serverstatus, .sidebar-panel, .content-panel {
        padding: 6px;
        margin-bottom: 6px;
    }
    
    .vote {
        padding: 8px;
        font-size: 0.7rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

/* Modern Table Styles */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
}

.modern-table th {
    background: rgba(25, 246, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(25, 246, 255, 0.2);
}

.modern-table td {
    padding: 6px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.modern-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.modern-table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

.modern-table .rank-1, .modern-table .gold { color: #ffd700; font-weight: bold; }
.modern-table .rank-2, .modern-table .silver { color: #c0c0c0; font-weight: bold; }
.modern-table .rank-3, .modern-table .bronze { color: #cd7f32; font-weight: bold; }

.modern-table .gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(25, 246, 255, 0.3);
}

.neon-glow {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
    to { text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color), 0 0 35px var(--primary-color), 0 0 45px var(--primary-color); }
}

.neon-glow::before, .neon-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
}

.neon-glow::before {
    box-shadow: inset 0 0 20px rgba(25, 246, 255, 0.3);
}

.neon-glow::after {
    box-shadow: 0 0 20px rgba(25, 246, 255, 0.2);
}

.advanced-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advanced-panel:hover {
    border-color: rgba(25, 246, 255, 0.4);
    transform: translateY(-1px);
}

.advanced-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

.panel-header {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 8px var(--primary-color);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.panel-title {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 6px var(--primary-color);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.panel-content {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.btn {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(25, 246, 255, 0.3);
}

.message {
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 2;
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.message.warning {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
    color: #ffa726;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid {
    display: grid;
    gap: 15px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--glass-border);
    font-size: 0.7rem;
    backdrop-filter: blur(15px);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 246, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

.card:hover {
    border-color: rgba(25, 246, 255, 0.4);
    transform: translateY(-1px);
}

.card-header {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 6px var(--primary-color);
}

.card-content {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
}

.badge-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.badge-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

/* Apply Top Players font size to Announcements, Latest Updates, Recent Clan Wars, and Recent Player Wars */
.announce,
.latest-updates,
.recent-clan-wars,
.recent-player-wars {
    font-size: 0.75rem !important;
}

.stat-wins {
    background: rgba(0, 255, 136, 0.12) !important; /* subtle green background */
    color: var(--success-color) !important; /* green text */
    border-radius: 8px;
    padding: 2px 10px;
    margin-right: 4px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.91rem;
    border: 1px solid #30304a;
}

.stat-losses {
    background: rgba(255, 71, 87, 0.12) !important; /* subtle red background */
    color: var(--error-color) !important; /* red text */
    border-radius: 8px;
    padding: 2px 10px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.91rem;
    border: 1px solid #30304a;
} 