:root {
    --primary-color: #6d55ff;
    --secondary-color: #8b7aff;
    --accent-color: #a29bfe;
    --text-primary: #e6e9ef;
    --text-secondary: #a0a9c9;
    --background-color: #0e1117;
    --surface-color: #1a1d29;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(14, 17, 23, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --primary-accent: rgba(14, 17, 23, 0.8);
    --secondary-accent: rgba(26, 29, 41, 0.8);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Orbitron', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}
html {
    height: 100%;
    scroll-behavior: smooth;
}
body {
    background: 
        radial-gradient(1200px 700px at 15% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(900px 600px at 90% 10%, rgba(99, 102, 241, 0.12), transparent 55%),
        radial-gradient(700px 500px at 50% 90%, rgba(16, 185, 129, 0.08), transparent 60%),
        linear-gradient(180deg, #0e1117 0%, #0b0e14 55%, #0a0d12 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #e6e9ef;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
main {
    flex-grow: 1;
}
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(13, 14, 27, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}
.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}
.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.1);
}
.nav-link.active {
    color: #fff;
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.search-container {
    grid-column: 3 / 4; 
    justify-self: end;  
    position: relative;
}
.search-bar {
    background-color: var(--glass-bg);
    border: var(--glass-border);
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    color: var(--text-primary);
    border-radius: 20px;
    width: 250px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.search-bar:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(109, 85, 255, 0.3);
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.tabs-container {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    gap: 1rem;
    position: relative;
}
.tab {
    padding: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}
.tab span {
    font-weight: 500;
}
.tab:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}
.tab.active {
    color: var(--text-primary);
}
.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}
.tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.tab-icon:has(img[style*="display: none"]) {
    font-size: 1.5rem;
    line-height: 2.5rem;
}
.tab.active .tab-icon {
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px rgba(109, 85, 255, 0.6);
    transform: scale(1.1);
}
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    padding: 2rem;
}
.page.active {
    display: block;
    opacity: 1;
}
.tier-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .tier-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tier-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tier-container {
        grid-template-columns: 1fr;
    }
}
.tier-section {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tier-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}
.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: var(--glass-border);
    font-family: var(--font-display);
    text-shadow: 0 0 10px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tier-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tier-header h3 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.tier-header span {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.tier-1 .tier-header { 
    color: #FFD700; 
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}
.tier-2 .tier-header { 
    color: #C0C0C0; 
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25), rgba(192, 192, 192, 0.1));
    border-bottom: 2px solid rgba(192, 192, 192, 0.3);
}
.tier-3 .tier-header { 
    color: #CD7F32; 
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.25), rgba(205, 127, 50, 0.1));
    border-bottom: 2px solid rgba(205, 127, 50, 0.3);
}
.tier-4 .tier-header { 
    color: #EAE8FF; 
    background: linear-gradient(135deg, rgba(234, 232, 255, 0.25), rgba(234, 232, 255, 0.1));
    border-bottom: 2px solid rgba(234, 232, 255, 0.3);
}
.tier-5 .tier-header { 
    color: #A19EB8; 
    background: linear-gradient(135deg, rgba(161, 158, 184, 0.25), rgba(161, 158, 184, 0.1));
    border-bottom: 2px solid rgba(161, 158, 184, 0.3);
}
.tier-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    min-height: 200px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}
.tier-content::-webkit-scrollbar {
    width: 6px;
}
.tier-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.tier-content::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 10px;
}
.tier-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}
.tier-item {
    background: rgba(38, 41, 72, 0.4);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    position: relative;
    text-align: center;
    min-height: 80px;
    justify-content: center;
}

.tier-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.tier-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tier-item span {
    flex: 1;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.tier-item span div:first-child {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-item span div:last-child {
    font-weight: 600;
    font-size: 0.9rem;
}
.tier-item.ht {
    border-left: 3px solid #FFAE00;
}
.tier-item.ht::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #FFAE00, rgba(255, 174, 0, 0.5));
}
.tier-item.lt {
    border-left: 3px solid #95a5a6;
}
.tier-item.lt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #95a5a6, rgba(149, 165, 166, 0.5));
}
.profile-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}
.profile-card-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.profile-card {
    width: 520px;
    max-width: 95vw;
    background: rgba(18, 20, 39, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.profile-info {
    flex: 1;
    padding-bottom: 16px;
}

.username {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.user-rank {
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.user-region {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.close-button {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}
.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.header-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    opacity: 0.5;
}
.profile-content {
    margin-top: -60px;
    padding: 0 24px 24px;
    position: relative;
    z-index: 5;
    text-align: center;
}
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--background-color);
    margin: 0 auto;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.username {
    font-family: var(--font-display);
    color: #FFD700;
    font-size: 28px;
    margin: 16px 0 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: 700;
}

.user-badge {
    margin: 8px 0;
}

.user-region {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.position-section, .tiers-section {
    margin-top: 24px;
    width: 100%;
    padding: 0 24px;
}

.tiers-section {
    margin-top: 16px;
}

.section-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.position-bar {
    width: 100%;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .profile-card {
        width: 90vw;
        max-width: 400px;
    }
    
    .tiers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        width: 95vw;
        max-width: 350px;
    }
    
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tier-item {
        min-height: 70px;
        padding: 10px;
    }
    
    .tier-item img {
        width: 28px;
        height: 28px;
    }
}
.user-id {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 12px;
    margin-bottom: 20px;
}
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: transparent;
}
.footer a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-accent);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn {
    0% { transform: translate(-50%, -40%); opacity: 0; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}
@keyframes slideOutToBottomRight {
    0% { transform: translate(-50%, -50%); opacity: 1; }
    100% { transform: translate(100%, 100%); opacity: 0; }
}
@media (max-width: 992px) {
    .navbar {
        display: flex; 
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links,
    .search-container {
        grid-column: auto;
        justify-self: auto;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .navbar {
         padding: 1rem;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
     .search-container {
        width: 90%;
    }
    .tabs-container {
        padding: 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .tabs-container::-webkit-scrollbar { display: none; }
    .page {
        padding: 1rem;
    }
    .profile-card {
        width: 90vw;
    }
}
.overall-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.overall-table {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
}

.overall-table table {
    width: 100%;
    border-collapse: collapse;
}

.overall-table thead {
    background: rgba(109, 85, 255, 0.1);
}

.overall-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: var(--glass-border);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overall-table td {
    padding: 1rem 1.5rem;
    border-bottom: var(--glass-border);
    color: var(--text-primary);
}

.overall-table tbody tr {
    transition: all 0.2s ease;
}

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

.overall-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .tab-icon { width: 40px; height: 40px; }
    .tab { padding: 0.75rem; }
}

@media (max-width: 576px) {
    .tab span { display: none; }
    .tab { padding: 0.5rem; }
    .tab-icon { width: 36px; height: 36px; }
    .tier-header { font-size: 1.2rem; }
    .overall-table {
        overflow-x: auto;
    }
    .overall-table table {
        min-width: 800px;
    }
}

/* Admin Page Styles */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-form-container {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(109, 85, 255, 0.3);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.tiers-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.tier-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tier-select {
    background: rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    padding: 0.6rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.submit-btn,
.download-btn {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 85, 255, 0.3);
}

.submit-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 85, 255, 0.5);
}

.submit-btn:active,
.download-btn:active {
    transform: translateY(0);
}

.players-list-container {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.player-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
}

.player-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.player-card img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-card-info {
    flex: 1;
}

.player-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.player-card-region {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.player-card-actions {
    display: flex;
    gap: 0.5rem;
}

.delete-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4444;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .tiers-input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .players-list {
        grid-template-columns: 1fr;
    }
}

/* Admin Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.modal-content {
    background: rgba(18, 20, 39, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    max-width: 90vw;
}

.modal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(109, 85, 255, 0.3);
}

.modal-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    box-shadow: 0 4px 15px rgba(109, 85, 255, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 85, 255, 0.5);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .modal-content {
        min-width: auto;
        padding: 1.5rem;
    }
}

/* Home Page Styles */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.home-content {
    display: grid;
    gap: 3rem;
}

.home-section {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
}

.home-section h3 {
    font-family: var(--font-display);
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.home-players-grid {
    display: grid;
    gap: 1rem;
}

.home-player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-player-card:hover {
    background: rgba(109, 85, 255, 0.2);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

.home-player-card .rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-accent);
    min-width: 30px;
}

.home-player-card img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.home-player-card .player-info {
    flex: 1;
}

.home-player-card .name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.home-player-card .points {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-accent);
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.3);
}

/* Advertisement Banners */
.ad-banner {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    z-index: 100;
    display: none; /* GEÇİCİ OLARAK KAPATILDI */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}