.member-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.member-table thead {
}

.member-table th {
    padding: 16px 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    border-bottom: 2px solid #5a5a8a;
}

.member-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(90, 90, 138, 0.3);
    vertical-align: middle;
}

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

.member-table tbody tr:hover {
    background: rgba(90, 90, 138, 0.2);
    transition: all 0.2s ease;
}

.member-table a {
    color: #6ab0ff;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: 10px;
    font-weight: 500;
}

.member-table a:hover {
    color: #8cc2ff;
    text-decoration: underline;
}


.kick-btn {
    background: linear-gradient(90deg, #ff5c5c, #ff3a3a);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(255, 60, 60, 0.3);
}

.kick-btn:hover {
    background: linear-gradient(90deg, #ff3a3a, #ff1a1a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 60, 60, 0.4);
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-leader {
    background: linear-gradient(90deg, #121212, #ff0000);
    color: white;
}

.role-officer {
    background: linear-gradient(90deg, #6a5acd, #483d8b);
    color: white;
}

.role-member {
    background: linear-gradient(90deg, #172018, #2e7d32);
    color: white;
}

.kd-high {
    color: #4caf50;
    font-weight: 600;
}

.kd-medium {
    color: #ffc107;
    font-weight: 600;
}

.kd-low {
    color: #f44336;
    font-weight: 600;
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(106, 176, 255, 0.5);
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.avatar-img:hover {
    transform: scale(1.1);
}

.rotebal-clan-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.rotebal-clan-modal-content {
    background: linear-gradient(135deg, #1e1e1e, #252525);
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 500px;
    color: #fff;
    position: relative;
}

.rotebal-clan-close {
    color: #aaa;
    float: right;
    font-weight: bold;
    cursor: pointer;
}

.rotebal-clan-close:hover,
.rotebal-clan-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.rotebal-upload-form {
    margin-top: 20px;
}

.rotebal-upload-form input[type="file"] {
	margin-bottom: 10px;
    padding: 10px;
    color: #fff;
    margin-left: 0px;
	background: #1f1f2e00;
}

.rotebal-upload-form button {
    padding: 10px 20px;
    background-color: #7289da;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.rotebal-upload-form button:hover {
    background-color: #677bc4;
	margin-left: 10px;
}

.rotebal-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.rotebal-upload-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.rotebal-upload-message.success {
    background-color: #4caf50;
    color: #fff;
}

.rotebal-upload-message.error {
    background-color: #f44336;
    color: #fff;
}

@media (max-width: 768px) {
    .rotebal-clan-modal-content {
        margin: 20% auto;
        padding: 15px;
        width: 90%; 
        max-width: 100%;
    }

    .rotebal-clan-close {
        font-size: 24px;
    }

    .rotebal-upload-form input[type="file"] {
        padding: 8px;
    }

    .rotebal-upload-form button {
        padding: 10px 15px;
    }

    .rotebal-thumbnail {
        width: 80px;
        height: 80px;
    }

    .rotebal-upload-message {
        padding: 8px;
        font-size: 14px;
    }
}

.top-clans-container {
    text-align: center;
    padding: 20px;
    position: absolute;
	margin-top: -260px;
    margin-left: 500px;
}

@media (max-width: 768px) {
	
.top-clans-container {
	display: none;
	}
}

.top-clans-flex {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 20px;
}

.top-clan-block {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 160px;
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.9), rgba(20, 20, 30, 0.9));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-clan-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.top-clan-block.center {
    order: 2;
    transform: scale(1.15);
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgb(49 46 29 / 90%), rgba(255, 180, 0, 0.9));
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.3);
}

.top-clan-block.center::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 215, 0, 0.3) 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 2px);
    background-size: 50px 50px;
    animation: particleFlow 20s linear infinite;
    z-index: -1;
}

.top-clan-block.center::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 20%),
        radial-gradient(circle at 70% 80%, rgba(255, 200, 0, 0.6) 0%, transparent 25%);
    opacity: 0;
    animation: particleFlicker 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes particleFlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes particleFlicker {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
}

.top-clan-block.left {
    order: 1;
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.9), rgb(9 9 9 / 90%));
    overflow: hidden;
}

.top-clan-block.right {
    order: 3;
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.9), rgb(23 20 17 / 90%));
    overflow: hidden;
}

.top-clan-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.top-clan-block.left::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px) 0 0,
        radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px) 20px 20px;
    background-size: 40px 40px;
    animation: particleMove 10s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

.top-clan-block.right::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,215,0,0.8) 1px, transparent 1px) 0 0,
        radial-gradient(circle, rgba(255,165,0,0.5) 1px, transparent 1px) 20px 20px;
    background-size: 40px 40px;
    animation: particleMove 8s linear infinite reverse;
    opacity: 0.3;
    z-index: -1;
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.top-clan-block:hover::after {
    opacity: 0.5;
    animation-duration: 5s;
}

.rank-badge img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
	margin-top: 10px;
}

.rank-badge img:hover {
    transform: scale(1.2);
}

.clan-name {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.leader-name-v2 {
    font-size: 0.8em;
    color: #000000;
    margin-bottom: 10px;
}

.stats {
    margin-top: 10px;
}

.stat-item-v2 {
    display: block;
    font-size: 0.8em;
    color: #fff;
    margin-bottom: 5px;
}

.rank-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-icon:hover {
    transform: scale(1.2);
}

.rank-icon.gold {
    border: 3px solid #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.rank-icon.silver {
    border: 3px solid #c0c0c0;
    box-shadow: 0 0 10px #c0c0c0;
}

.rank-icon.bronze {
    border: 3px solid #cd7f32;
    box-shadow: 0 0 10px #cd7f32;
}

form {
    display: inline-block;
    position: relative;
}

.styled-select {
width: 200px;
    padding: 10px;
    font-size: 16px;
    margin-left: 165px;
    margin-top: 2px;
    position: absolute;
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.styled-select:hover {
    background: var(--akcenti);
}

.btn_bans_muts:hover{
		color: var(--cvet-na-akcente);
    align-items: center;
    transition: 0.2s;
    justify-content: center;
    background: var(--akcenti);
	
}

@media (max-width: 768px) {
	
.styled-select {
    width: 180px;
    margin-left: 140px;
	}
}

.styled-select::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #bbb;
}

.styled-select:focus {
    outline: none;
}

.styled-select option {
    padding: 10px;
    background-color: #333;
    color: #ddd;
}

.styled-select option:checked {
    background-color: #1a1a26;
    color: #fff;
}



.clans-container {
	width: 100%;
}

.clan-block {
    position: relative;
    background-color: #12121b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    flex-basis: calc(33.333% - 10px);
    box-sizing: border-box;
	object-fit: cover;
}

.clan-block:hover {
    transform: scale(0.95);
}

.rank-badge {
    position: absolute;
    top: 10px;
    right: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
	margin-top: -15px;
    padding: 2px 5px;
    border-radius: 8px;
}

.clan-header {
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.clan-name {
    color: #4d00ff;
    margin: 0;
    font-size: 1.1em;
    margin-top: -70px;
    margin-left: 50px;
    position: absolute;
}

.clan-name-top {
	color: #4d00ff;
    font-size: 1.1em;
    margin-top: -15px;
}

.leader-name {
    color: #008cff;
    font-size: 1em;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.stat-item {
    font-size: 1em;
}

.stat-item strong {
    color: #2d3e50;
}

.clan-info, .clan-head {
    display: flex;
    justify-content: space-around;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    height: 380px;
    color: #fff;
    width: 100%;
}

.clan-info {
    background-image: url('../../../modules_extra/system_clan/img/chapka.png');
}

.modal-clans_v2 {
    display: none;
    position: fixed;
    z-index: 1000;
    margin-left: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-clan_v2 {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

.blocked_block {
    height: 360px;
    background: #282b3b;
    padding: 20px 25px;
    display: flex;
    background-size: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

.left_blocked {
    width: 40%;
    padding: 20px;
}

.bans_muts {
    display: flex;
    gap: 8px;
    align-items: center;
    border: solid 1px #464646;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 45px;
    width: 280px;
}

.active_btn_stats {
    cursor: pointer;
    height: 50px;
    width: 100%;
    display: flex;
    text-shadow: #00000059 1px 0 11px;
    background: var(--akcenti);
    font-weight: 600;
    border-radius: 11px;
    box-shadow: 0 10px 40px #29293cd1;
    align-items: center;
    transition: 0.2s;
    justify-content: center;
}

.btn_bans_muts {
    cursor: pointer;
    height: 50px;
    display: flex;
    font-weight: 600;
    border-radius: 11px;
    width: 100%;
    color: #838383;
    align-items: center;
    transition: 0.2s;
    justify-content: center;
}

.flex_blocked {
    display: flex;
    flex-direction: column;
    margin-bottom: 55px;
}

.blocked_text {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 15px;
    color: #fff;
}

.blocked_desp {
    font-size: 12.5px;
    font-weight: 600;
    color: #777777;
    line-height: 18px;
    position: relative;
}


@media (max-width: 768px) {
	
.blocked_desp {
    font-size: 12.5px;
    font-weight: 600;
    color: #777777;
    line-height: 18px;
    position: relative;
	width: 300%;
	}
}

.back-button {
display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: absolute;
    left: 0;
    top: -10px;
	opacity: 0.7;
}

.back-button:hover {
    opacity: 1;
	color: var(--cvet-na-akcente);;
}

.server-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.server-info .info-item {
    font-size: 1em;
    color: #fff;
}

.server-info .info-item strong {
    color: #2d3e50;
}

.pagination-1 {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-1 a {
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 15px;
    transition: 0.3s;
}

.pagination-1 a:hover {
    background: #5a5a5a;
	border-radius: 32px;
    color: #121212;
}

.pagination-1 a.active {
    font-weight: bold;
    background: #5a5a5a;
    color: #121212;
	border-radius: 32px;
}

.modal {
    display: <?= $openModal ? 'flex' : 'none' ?>;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center; align-items: center;
}
		
#modal-content {
    background: linear-gradient(135deg, #1e1e1e, #252525);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 420px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}
		
.error-box, .success-box {
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}
		
.error-box {
    background: #ff4d4d;
    color: #fff;
}
		
.success-box {
    background: #27ae60;
    color: #fff;
}
		
.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 14px;
    outline: none;
}
		
.submit-btn {
background: var(--akcenti);
    color: var(--cvet-na-akcente);
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
	opacity: 0.7;
}

.submit-btn:hover {
	opacity: 1;
}

.submit-btn-clan-v2 {
    background: var(--akcenti);
    color: var(--cvet-na-akcente);
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    position: absolute;
    margin-top: 85px;
    margin-left: 0px;
	opacity: 0.7;
}

.submit-btn-clan-v2:hover {
opacity: 1;
background-color: none;
}

.submit-btn-modal {
    background: linear-gradient(135deg, #b22222, #8b0000);
    color: #fff;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
	width: 100%;
}

.submit-btn-modal:hover {
    background: linear-gradient(135deg, #422626, #8b0000);
}

.members-mobile {
	text-align: center; 
	margin-top: -40px; 
	font-size: 14px; 
	color: #fff; 
	left: 1050px;
	position: absolute;	
}

@media (max-width: 768px) {
	
.submit-btn {
background: var(--akcenti);
    color: var(--cvet-na-akcente);
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
	opacity: 0.7;
}

.pagination-1 {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.members-mobile {
	left: 280px;
}
	
.submit-btn-modal {
	width: 100%;
	margin-top: 0px;
    margin-left: 0px;
	}
}

.submit-btn:hover {
	opacity: 1;
	}

.submit-btn i {
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 14px;
    color: #ffdddd;
    display: flex;
    width: 28px;
    height: 28px;
    background: rgba(255, 100, 100, 0.3);
    align-items: center;
    justify-content: center;
}

.submit-btn:hover i {
    background: rgba(255, 100, 100, 0.5);
    transform: rotate(10deg);
}

.submit-btn-2 {
    background: linear-gradient(135deg, #b22222, #8b0000);
    color: #fff;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
}


.submit-btn-2:hover {
    background: linear-gradient(135deg, #8b0000, #6b0000);
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}
	
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .clan-block {
        flex-basis: calc(50% - 10px);
    }

    .server-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .clan-block {
        flex-basis: 100%;
    }

    .clan-info, .clan-head {
        flex-direction: column;
        align-items: center;
    }
	
	.info_clan_table {
		display: none;
	}

    .clan-header {
        font-size: 1em;
    }

    .clan-name {
        font-size: 1em;
    }
	
	.clan-name-top {
        font-size: 1em;
    }

    .leader-name {
        font-size: 0.9em;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        margin-bottom: 5px;
    }

    .member-table {
        font-size: 0.9em;
    }
	
	.member-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #00000070;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    font-weight: bold;
    display: block;
    max-width: 100%;
    overflow-x: auto;
	}	
}