.perks-container {
    position: relative;
    z-index: 1;
}


.perks-header {
    background: linear-gradient(135deg, rgba(70, 43, 226, 0.15), rgba(20, 24, 255, 0.15));
    border: 2px solid;
    border-image: linear-gradient(135deg, #706eff, #362cbf, #1900ff) 1;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.perks-header .subtitle {
    max-width: 800px;
    margin: 15px auto 0;
    line-height: 1.6;
}

.role-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.role-btn {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9), rgba(44, 44, 44, 0.9));
    border: 3px solid rgba(120, 110, 255, 0.3);
    padding: 20px 50px;
    border-radius: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.role-btn i {
    font-size: 1.8rem;
}

.role-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(110, 112, 255, 0.8);
    box-shadow: 0 10px 40px rgba(120, 110, 255, 0.4);
}


.role-btn.active {
    background: linear-gradient(135deg, rgba(61, 43, 226, 0.3), rrgba(24, 20, 255, 0.3));
    border-color: #7c6eff;
    box-shadow: 0 10px 40px rgba(112, 110, 255, 0.5),
                0 0 40px rgba(46, 44, 191, 0.4);
    transform: scale(1.05);
}

.builds-main-section {
    margin: 50px 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 40px;
}

.section-intro h2 {
    background: linear-gradient(135deg, #786eff, #3b2cbf, #1900ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-intro p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.killer-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.killer-card {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(44, 44, 44, 0.95));
    border: 2px solid rgba(120, 110, 255, 0.3);
    padding: 20px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.killer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 110, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.killer-card:hover::before {
    opacity: 1;
}

.killer-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(112, 110, 255, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}


.killer-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.killer-icon i {
    font-size: 2.5rem;
    color: #786eff;
}

.killer-card:hover .killer-icon {
    transform: scale(1.15) rotate(5deg);
    border-color: #1100ff;
    box-shadow: 0 0 25px rgba(17, 0, 255, 0.6);
}

.killer-card span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.killer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(17, 0, 255, 0.8);
    box-shadow: 0 10px 30px rgba(17, 0, 255, 0.4);
}

.killer-card.active {
    background: linear-gradient(135deg, rgba(55, 43, 226, 0.3), rrgba(24, 20, 255, 0.3));
    border-color: #786eff;
    box-shadow: 0 0 30px rgba(120, 110, 255, 0.6);
    transform: scale(1.05);
}

.builds-grid,
.builds-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.build-card {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(44, 44, 44, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(124, 110, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.build-card:hover::before {
    left: 100%;
}

.build-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(17, 0, 255, 0.8);
    box-shadow: 0 15px 50px rgba(120, 110, 255, 0.4),
                0 0 40px rgba(17, 0, 255, 0.3);
}

.build-header {
    margin-bottom: 20px;
}

.build-type {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(120, 110, 255, 0.3), rgba(59, 44, 191, 0.3));
    border: 1px solid #786eff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #6e70ff;
}

.build-type.meta {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(123, 44, 191, 0.3));
    border-color: #00f5ff;
    color: #00f5ff;
}

.build-type.beginner {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3), rgba(76, 175, 80, 0.3));
    border-color: #4caf50;
    color: #4caf50;
}

.build-type.fun {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    border-color: #ffc107;
    color: #ffc107;
}

.build-type.orientated {
    background: linear-gradient(135deg, rgba(255, 7, 7, 0.3), rgba(255, 0, 0, 0.3));
    border-color: #ff0707;
    color: #ff0707;
}

.build-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #6e70ff, #0400ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.build-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.build-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.build-section:last-child {
    margin-bottom: 0;
}

.build-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.build-section-title i {
    color: #ff6ec7;
    font-size: 1.1rem;
}

.perks-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.perk-tooltip {
    display: none;
}

.perk-tooltip.show {
    opacity: 1;
}

.perk-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #7c6eff;
}

.addons-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.perk-slot,
.addon-slot {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible !important;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 50;
}

.addon-slot.ultra-rare {
    border-color: rgba(255, 110, 199, 0.6);
    background: rgba(112, 110, 255, 0.1);
}

.addon-slot.ultra-rare:hover,

.addon-slot.ultra-rare .perk-name-label {
    border-color: #ff6ec7;
    background: linear-gradient(135deg, rgba(124, 110, 255, 0.3), rgba(44, 44, 44, 0.98));
}

.addon-slot.very-rare {
    border-color: rgba(155, 89, 182, 0.6);
    background: rgba(95, 89, 182, 0.1);
}

.addon-slot.very-rare:hover,

.addon-slot.very-rare .perk-name-label {
    border-color: #9b59b6;
    background: linear-gradient(135deg, rgba(91, 89, 182, 0.3), rgba(44, 44, 44, 0.98));
}


.addon-slot.very-rare .perk-name-label::after {
    border-bottom-color: #9b59b6;
}

.addon-slot.rare {
    border-color: rgba(0, 245, 255, 0.6);
    background: rgba(17, 0, 255, 0.1);
}

.addon-slot.rare:hover,

.addon-slot.rare .perk-name-label {
    border-color: #2600ff;
    background: linear-gradient(135deg, rgba(25, 0, 255, 0.3), rgba(44, 44, 44, 0.98));
}

.addon-slot.rare .perk-name-label::after {
    border-bottom-color: #1900ff;
}

.perk-slot:hover,
.addon-slot:hover {
    transform: scale(1.4);
    z-index: 10;
}

.perk-slot img,
.addon-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.perk-slot:hover .perk-name-label,
.addon-slot:hover .perk-name-label {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 50 !important;
}


.perk-name-label::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #786eff, #0400ff);
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.perk-name-label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98), rgba(44, 44, 44, 0.98));
    border: 2px solid #7c6eff;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 50 !important;
    box-shadow: 0 5px 20px rgba(137, 110, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.perk-slot:hover .perk-name-label::before,
.addon-slot:hover .perk-name-label::before {
    opacity: 0.5;
}

.perk-name-label::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #786eff;
    z-index: 50;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .perk-name-label {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .role-selector {
        flex-direction: column;
    }
    
    .role-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .killer-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .builds-grid,
    .builds-display {
        grid-template-columns: 1fr;
    }
    
    .perks-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 30px;
    }

    .addons-row {
        gap: 10px;
        margin-bottom: 30px;
    }
}

.addons-row,
.build-section,
.builds-grid,
.builds-display,
.build-card {
    overflow: visible !important;
}