body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0d0d0f url('bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

header {
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #29292e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ff5252;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
}

nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: 1px solid #29292e;
    color: #a8a8b3;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: #ff5252;
    color: #fff;
    border-color: #ff5252;
    box-shadow: 0 0 12px rgba(255, 82, 82, 0.4);
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(18, 18, 22, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid #29292e;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #ff5252;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(18, 18, 22, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid #29292e;
    border-radius: 10px;
    overflow: hidden;
}

.rating-table th, .rating-table td {
    border-right: 1px solid #29292e;
    padding: 14px;
    text-align: center;
}

.rating-table th:last-child, .rating-table td:last-child {
    border-right: none;
}

.rating-table th {
    background: rgba(28, 28, 36, 0.9);
    color: #a8a8b3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.rating-table tbody tr {
    border-bottom: 1px solid #1c1c24;
    transition: background 0.15s;
}

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

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

.clickable-name {
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: color 0.15s;
}

.clickable-name:hover {
    color: #ff5252 !important;
    text-decoration: none !important;
}

.profile-card {
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid #29292e;
    border-radius: 12px;
    padding: 30px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-card h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
}

.profile-card h3 {
    margin: 0 0 15px 0;
    color: #ff5252;
    font-size: 1.2rem;
}

.profile-card input, .profile-card select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #141416;
    border: 1px solid #29292e;
    color: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.profile-card input:focus, .profile-card select:focus {
    outline: none;
    border-color: #ff5252;
}

.profile-card button {
    width: 100%;
    padding: 12px;
    background: #ff5252;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.profile-card button:hover {
    background: #e04343;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content {
    background: #121214;
    border: 1px solid #29292e;
    max-width: 550px;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #a8a8b3;
    font-size: 1.6rem;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.rating-table tbody tr td:nth-child(3) {
    color: #ffd700 !important;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.rank-C { color: #00e676 !important; text-shadow: 0 0 8px rgba(0, 230, 118, 0.2); }
.rank-B, .rank-B-plus { color: #29b6f6 !important; text-shadow: 0 0 8px rgba(41, 182, 246, 0.2); }
.rank-S, .rank-S-plus { color: #9575cd !important; text-shadow: 0 0 8px rgba(149, 117, 205, 0.3); }
.rank-A, .rank-A-plus { color: #ff5252 !important; text-shadow: 0 0 10px rgba(255, 82, 82, 0.4); font-weight: bold; }

.rank-Дракон {
    color: #000000 !important;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff;
    font-weight: 900;
}

.role-founder { color: #a855f7 !important; font-weight: bold; }
.role-admin { color: #06b6d4 !important; font-weight: bold; }
.role-bloodline { color: #ef4444 !important; font-weight: bold; }

@media (max-width: 768px) {
    body {
        background: #0d0d0f url('bgm.png') no-repeat center center fixed !important;
        background-size: cover !important;
    }
}
.modal-content {
    max-width: 400px !important;
    width: 90% !important;
}

body {
    background: #0d0d0f url('bg.png') no-repeat center center fixed !important;
    background-size: cover !important;
}
.profile-info-block textarea, 
#edit-bio {
    width: 100% !important; 
    height: 80px !important; 
    background: #141416 !important; 
    border: 1px solid #29292e !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    resize: none !important; 
}
.profile-card .rank-C { color: #00e676 !important; text-shadow: 0 0 8px rgba(0, 230, 118, 0.2); }
.profile-card .rank-B, .profile-card .rank-B-plus { color: #29b6f6 !important; text-shadow: 0 0 8px rgba(41, 182, 246, 0.2); }
.profile-card .rank-S, .profile-card .rank-S-plus { color: #9575cd !important; text-shadow: 0 0 8px rgba(149, 117, 205, 0.3); }
.profile-card .rank-A, .profile-card .rank-A-plus { color: #ff5252 !important; text-shadow: 0 0 10px rgba(255, 82, 82, 0.4); font-weight: bold; }
.profile-card .rank-Дракон { color: #000000 !important; text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff; font-weight: 900; }
