:root {
    --bg-dark: #0a0e1a;
    --bg-panel: #0f1020;
    --bg-card: #15162a;
    --accent-gold: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: #2d3748;
    
    --tier-1-bg: #EAB308;
    --tier-2-bg: #A3A3A3;
    --tier-3-bg: #CD7F32;
    --tier-4-bg: #334155;
    --tier-5-bg: #1E293B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}


.ad-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.left-ad {
    left: 20px;
}

.right-ad {
    right: 20px;
}


.ad-panel.collapsed {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.left-ad.collapsed {
    transform: translateX(-280px) translateY(-50%);
}

.right-ad.collapsed {
    transform: translateX(280px) translateY(-50%);
}

.ad-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}


.ad-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    font-size: 0.9rem;
}

.ad-close-btn:hover {
    background-color: #dc2626;
    transform: rotate(90deg);
}


.ad-toggle-tab {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 11;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
}

.left-ad .ad-toggle-tab {
    right: -40px;
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.right-ad .ad-toggle-tab {
    left: -40px;
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.ad-toggle-tab:hover {
    background: linear-gradient(135deg, #fbbf24 0%, var(--accent-gold) 100%);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.6);
}

.ad-toggle-tab i {
    transition: transform 0.3s;
}

.ad-panel.collapsed .ad-toggle-tab i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}


.ad-panel:not(.collapsed) .ad-toggle-tab {
    opacity: 0;
    pointer-events: none;
}

.ad-content {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(15, 16, 32, 0.05) 100%);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.ad-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.ad-placeholder i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    opacity: 0.5;
}

.ad-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.ad-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
}


@media (max-width: 1600px) {
    .ad-panel {
        display: none;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 20px;
}


.navbar {
    background-color: transparent;
    padding: 20px 0 25px 0;
    margin-bottom: 25px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-brand img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 5px;
    background-color: #1a1d2e;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #2d3748;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.05);
}

.nav-item.active {
    background-color: #0f1020;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-search {
    background-color: #1a1d2e;
    padding: 10px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #2d3748;
    min-width: 280px;
}

.nav-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.nav-search input::placeholder {
    color: #6b7280;
}

.search-key {
    background-color: #2d3748;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}


.view-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.view-tab {
    background-color: #1a1d2e;
    border: 2px solid #2d3748;
    color: var(--text-secondary);
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 220px;
    justify-content: center;
}

.view-tab i {
    font-size: 1.2rem;
}

.view-tab:hover {
    background-color: #1f2230;
    border-color: #374151;
    transform: translateY(-2px);
}

.view-tab.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.view-tab.active i {
    color: var(--accent-gold);
}


.kit-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.kit-tab {
    background-color: #1a1d2e;
    border: 1px solid #2d3748;
    color: var(--text-secondary);
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 95px;
    transition: all 0.3s;
}

.kit-tab img.kit-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.3s;
}

.kit-tab:hover {
    background-color: #1f2230;
    border-color: #374151;
}

.kit-tab:hover img.kit-icon {
    filter: grayscale(0%) brightness(1);
}

.kit-tab.active {
    background-color: #1f2230;
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
}

.kit-tab.active img.kit-icon {
    filter: grayscale(0%) brightness(1);
}


.content-panel {
    background-color: #0f1020;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #1f2937;
    min-height: 600px;
    position: relative;
    margin-top: 60px;
}


.kit-tabs.content-panel {
    padding: 15px 20px;
    min-height: auto;
    margin-top: 30px;
}

.panel-header {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: -50px;
    right: 0;
    width: 100%;
    pointer-events: none;
}

.panel-header * {
    pointer-events: auto;
}

.header-info {
    display: flex;
    gap: 15px;
    margin-left: auto;
    position: relative;
}

.info-btn {
    background-color: #1a1d2e;
    border: 1px solid #2d3748;
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.info-btn:hover {
    background-color: #1f2230;
    border-color: #374151;
}

.server-ip {
    background-color: #1a1d2e;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #2d3748;
}

.server-label {
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    transform: skew(-8deg);
}

.ip-address {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #e5e7eb;
}


.rankings-table {
    width: 100%;
}

.table-header {
    display: flex;
    padding: 10px 20px;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.col-rank {
    width: 60px;
}

.col-player {
    flex: 1;
}

.col-region {
    width: 100px;
    text-align: center;
}

.col-tiers {
    width: 450px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.player-row {
    background-color: #15162a;
    margin-bottom: 10px;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border: 1px solid #1f2937;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.player-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-row.rank-1::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0) 100%);
    opacity: 1;
}

.player-row.rank-2::before {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0) 100%);
    opacity: 1;
}

.player-row.rank-3::before {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0) 100%);
    opacity: 1;
}

.player-row:hover {
    background-color: #1a1b2e;
    border-color: #2d3748;
}

.rank-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
}

.player-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #1f2937;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f3f4f6;
}

.player-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.region-badge-large {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.tier-icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tier-mini-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tier-badge {
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    color: #000;
}

.bg-ht1 {
    background-color: var(--tier-1-bg);
}

.bg-tier2 {
    background-color: var(--tier-2-bg);
}

.bg-tier3 {
    background-color: var(--tier-3-bg);
}

.bg-tier4 {
    background-color: var(--tier-4-bg);
    color: #fff;
}

.bg-lt5 {
    background-color: var(--tier-5-bg);
    color: #fff;
}

.bg-dash {
    background-color: #1f2937;
    color: #6b7280;
}

.tier-icon-wrapper.faded {
    opacity: 0.3;
}


.tier-columns-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.tier-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tier-column-header {
    padding: 15px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tier-header-1 {
    background-color: #ca8a04;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-header-2 {
    background-color: #9ca3af;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-header-3 {
    background-color: #92400e;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tier-header-4 {
    background-color: #1e293b;
    color: #94a3b8;
    box-shadow: none;
    border: 1px solid #334155;
}

.tier-header-5 {
    background-color: #1e293b;
    color: #64748b;
    box-shadow: none;
    border: 1px solid #334155;
}

.tier-column-content {
    flex: 1;
    background-color: transparent;
}

.empty-state-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
    text-align: center;
}

.empty-state-column i {
    font-size: 2rem;
    margin-bottom: 15px;
    border: 2px dashed #374151;
    padding: 20px;
    border-radius: 12px;
    opacity: 0.4;
}

.empty-state-column p {
    font-size: 0.9rem;
    font-weight: 500;
}

.player-column-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.column-card {
    background-color: var(--bg-card);
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: none;
    position: relative;
    height: 44px;
    gap: 0;
}

.tier-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0px;
    opacity: 0.5;
}

.tier-indicator i {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 0.8;
}

.player-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.region-indicator-container {
    height: 100%;
    width: 4px;
    background-color: var(--region-color, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    flex-shrink: 0;
}

.region-text {
    opacity: 0;
    color: #fff;
    font-weight: bold;
    font-size: 0.7rem;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.column-card:hover .region-indicator-container {
    width: 42px;
}

.column-card:hover .region-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.player-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 5px;
}

.player-name-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background-color: #15162a;
    border: 1px solid #2d3748;
    padding: 0;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #2d3748;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-header button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.modal-header button:hover {
    color: var(--accent-gold);
}

.modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 25px;
    border-bottom: 1px solid #2d3748;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.modal-tab-btn:hover {
    color: var(--text-primary);
}

.modal-tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.modal-body {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 380px;
    overflow-y: auto;
}

.modal-body h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

.title-list,
.points-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-item,
.points-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background-color: #1a1d2e;
    border-radius: 8px;
    border: 1px solid #2d3748;
}

.title-item i,
.points-item i {
    font-size: 1.2rem;
    margin-top: 2px;
    position: relative;
}


.title-item:first-child i.fa-crown,
.player-title-row i.fa-crown,
.player-profile-title i.fa-crown {
    animation: crownGlow 2s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }
}

.title-item div,
.points-item div {
    flex: 1;
}

.title-item strong,
.points-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.title-item p,
.points-item p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}


#kit-contents {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.kit-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #2d3748;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}


.hidden {
    display: none !important;
}


.info-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #15162a;
    border: 1px solid #2d3748;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    animation: slideDown 0.3s ease-out;
    transform-origin: top right;
}

.info-dropdown.hiding {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.info-dropdown-tabs {
    display: flex;
    gap: 0;
    padding: 0 15px;
    border-bottom: 1px solid #2d3748;
}

.info-dropdown-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.info-dropdown-tab:hover {
    color: var(--text-primary);
}

.info-dropdown-tab.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.info-dropdown-body {
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
}


.info-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.info-dropdown-body::-webkit-scrollbar-track {
    background: transparent;
}

.info-dropdown-body::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 3px;
}

.info-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

.info-dropdown-content {
    display: none;
}

.info-dropdown-content:not(.hidden) {
    display: block;
}


.player-modal-box {
    background-color: #15162a;
    border: 1px solid #2d3748;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-overlay.hiding .player-modal-box {
    animation: modalSlideOut 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.player-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    padding: 5px;
}

.player-modal-close:hover {
    color: var(--accent-gold);
}

#player-modal-content {
    padding: 30px 25px;
}

.player-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.player-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid #2d3748;
}

.player-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.player-profile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.player-profile-region {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    margin-top: 8px;
}

.player-profile-position {
    background-color: #1a1d2e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #2d3748;
}

.player-profile-position h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-profile-rank {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-rank-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    color: var(--accent-gold);
}

.player-profile-tiers {
    background-color: #1a1d2e;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #2d3748;
}

.player-profile-tiers h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-tiers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.player-tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.player-tier-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.player-tier-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
}


.notification-toast {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #ef4444;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 1001;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-toast.hiding {
    animation: toastSlideOut 0.3s ease-out forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.notification-toast i {
    font-size: 1.3rem;
}

.notification-toast span {
    font-weight: 600;
    font-size: 0.95rem;
}


.player-row {
    cursor: pointer;
}

.column-card {
    cursor: pointer;
}


@media (max-width: 768px) {
    .navbar {
        padding: 15px 0 20px 0;
    }
    
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-brand {
        width: 100%;
        text-align: center;
    }
    
    .nav-links {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .nav-search {
        width: 100%;
        min-width: auto;
    }
    
    .kit-tabs {
        gap: 8px;
    }
    
    .kit-tab {
        min-width: 75px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .kit-tab img.kit-icon {
        width: 24px;
        height: 24px;
    }
    
    .content-panel {
        padding: 20px;
        margin-top: 80px;
    }
    
    .panel-header {
        position: relative;
        top: 0;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .header-info {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        position: static;
    }
    
    
    .info-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .info-dropdown-body {
        max-height: calc(70vh - 60px);
    }
    
    .table-header {
        display: none;
    }
    
    .player-row {
        flex-wrap: wrap;
        padding-bottom: 50px;
    }
    
    .col-rank {
        width: 50px;
    }
    
    .col-player {
        flex: 1;
        min-width: 150px;
    }
    
    .col-region {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .col-tiers {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        border-top: 1px solid #1f2937;
        padding-top: 15px;
    }
    
    .tier-columns-container {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .tier-column {
        margin-bottom: 20px;
    }
    
    .tier-column-header {
        margin-bottom: 15px;
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .modal-box {
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 400px;
    }
    
    .player-modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    .view-tabs {
        gap: 10px;
    }
    
    .view-tab {
        min-width: auto;
        flex: 1;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}


.testers-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(15, 16, 32, 0) 100%);
    border-radius: 16px;
}

.testers-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.testers-title > i {
    color: var(--accent-gold);
    font-size: 2.2rem;
}

.testers-title .info-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.testers-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.testers-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tester-card {
    background-color: #15162a;
    margin-bottom: 0;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border: 1px solid #1f2937;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tester-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.tester-card.rank-1::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0) 100%);
    opacity: 1;
}

.tester-card.rank-2::before {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0) 100%);
    opacity: 1;
}

.tester-card.rank-3::before {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0) 100%);
    opacity: 1;
}

.tester-card:hover {
    background-color: #1a1b2e;
    border-color: #2d3748;
}

.tester-rank {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    width: 60px;
}

.tester-header {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tester-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #1f2937;
}

.tester-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tester-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f3f4f6;
}

.tester-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tester-badge i {
    font-size: 0.8rem;
}

.tester-badge span {
    font-size: 0.8rem;
    font-weight: 600;
}

.tester-badge.legendary-rank {
    position: relative;
    animation: legendaryGlow 3s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.6));
    }
}

.tester-badge.legendary-rank i {
    animation: starRotate 4s linear infinite;
}

@keyframes starRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tester-stats {
    width: 450px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.tester-total {
    display: none;
}

.tester-kits-title {
    display: none;
}

.tester-kit-list {
    display: flex;
    gap: 10px;
    width: 100%;
}

.tester-kit-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.tester-kit-item.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
    animation: kitGlow 2s ease-in-out infinite;
    opacity: 1 !important;
}

@keyframes kitGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.3);
    }
}

.tester-kit-item.active .tester-kit-icon {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}

.tester-kit-item.active .tester-kit-count {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%) !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
    font-weight: 900;
}

.tester-kit-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tester-kit-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s;
}

.tester-kit-name {
    display: none;
}

.tester-kit-count {
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    color: #000;
    background-color: var(--tier-1-bg);
    transition: all 0.3s;
}

.tester-kit-item.faded {
    opacity: 0.3;
}

.tester-kit-item.faded .tester-kit-count {
    background-color: #1f2937;
    color: #6b7280;
}

.empty-state-testers {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-testers i {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state-testers h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state-testers p {
    font-size: 1rem;
}


@media (max-width: 768px) {
    .testers-grid {
        gap: 10px;
    }
    
    .tester-card {
        flex-wrap: wrap;
        padding-bottom: 50px;
    }
    
    .col-rank {
        width: 50px;
    }
    
    .tester-header {
        flex: 1;
        min-width: 150px;
    }
    
    .tester-stats {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        border-top: 1px solid #1f2937;
        padding-top: 15px;
    }
    
    .testers-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .testers-subtitle {
        font-size: 1rem;
    }
}


.tester-modal-box {
    background-color: #15162a;
    border: 1px solid #2d3748;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.hiding .tester-modal-box {
    animation: modalSlideOut 0.3s ease-out forwards;
}

.tester-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    padding: 5px;
}

.tester-modal-close:hover {
    color: var(--accent-gold);
}

#tester-modal-content {
    padding: 30px 25px;
}

.tester-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2d3748;
}

.tester-profile-avatar-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.tester-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.tester-profile-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.tester-profile-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.tester-profile-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.tester-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.tester-stat-card {
    background: linear-gradient(135deg, #1a1b2e 0%, #16172a 100%);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.tester-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.tester-stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.tester-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tester-kits-section {
    background: linear-gradient(135deg, #1a1b2e 0%, #16172a 100%);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 20px;
}

.tester-kits-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tester-kits-title i {
    color: var(--accent-gold);
}

.tester-kits-grid {
    display: grid;
    gap: 12px;
}

.tester-kits-section .tester-kit-item {
    background: #0f1018;
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.tester-kits-section .tester-kit-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.tester-kits-section .tester-kit-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #2d3748;
}

.tester-kits-section .tester-kit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tester-kits-section .tester-kit-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.tester-kits-section .tester-kit-count {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.tester-no-stats {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.tester-no-stats i {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 15px;
}

.tester-no-stats p {
    font-size: 1rem;
    margin: 0;
}
