:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #4caf50;
    --border-color: #333;
    --input-bg: #2c2c2c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: white;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #43a047;
}

.profile-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.profile-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}

.stats b {
    color: white;
}

#p-clan {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

th {
    background-color: #252525;
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background-color: #2a2a2a;
}

.card-img {
    width: 40px;
    height: 50px;
    object-fit: contain;
    display: block;
}


/* Бейджи */
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 4px;
    width: fit-content;
}

.badge-hero {
    background-color: #ffeb3b; /* Золотой */
    color: #000;
    box-shadow: 0 0 5px rgba(255, 235, 59, 0.4);
}

.badge-evo-active {
    background-color: #9c27b0; /* Фиолетовый */
    color: white;
    box-shadow: 0 0 5px rgba(156, 39, 176, 0.4);
}

.badge-evo-locked {
    background-color: #444;
    color: #aaa;
    border: 1px solid #666;
}

.card-name-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.card-name {
    font-weight: bold;
    font-size: 1rem;
}

.hidden { display: none !important; }
.error { color: #ff5252; text-align: center; margin-bottom: 10px; font-weight: bold; }
.loading { text-align: center; color: var(--text-secondary); margin-bottom: 10px; }