/* ==========================================
   1. ШАПКА САЙТА И УВЕДОМЛЕНИЯ (head.php)
   ========================================== */
.rpg-head-wrap {
    background: linear-gradient(180deg, #252830 0%, #17191e 100%);
    border-bottom: 1px solid rgba(204, 162, 51, 0.35);
    padding: 7px 8px 6px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.rpg-head-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.rpg-loc-title {
    font-size: 14px;
    font-weight: bold;
    color: #f5f6fa;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpg-hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(231, 76, 60, 0.14);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: bold;
    color: #ff7675;
    flex-shrink: 0;
}
.rpg-head-alerts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}
.rpg-alert-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    text-decoration: none;
    color: #ecf0f1;
}
.rpg-head-exp {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.7);
    overflow: hidden;
}
.rpg-head-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #cca233, #f39c12);
    transition: width 0.25s ease;
}
.rpg-toast {
    margin: 6px 4px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
    position: relative;
}
.rpg-toast-err {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ff7675;
}
.rpg-toast-ok {
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.38);
    color: #55efc4;
}
.rpg-toast-gold {
    background: linear-gradient(180deg, rgba(241, 196, 15, 0.16), rgba(211, 84, 0, 0.14));
    border: 1px solid rgba(241, 196, 15, 0.45);
    color: #f1c40f;
}
.rpg-toast-info {
    background: rgba(28, 30, 36, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ecf0f1;
}
.rpg-toast-close {
    float: right;
    margin-left: 8px;
    opacity: 0.75;
}
.rpg-event-box {
    margin: 6px 4px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(32, 35, 42, 0.95), rgba(20, 22, 27, 0.98));
    border: 1px solid rgba(204, 162, 51, 0.3);
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
}
.rpg-guide-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 4px;
    padding: 8px 10px;
    background: linear-gradient(90deg, rgba(204, 162, 51, 0.14), rgba(24, 26, 32, 0.96));
    border: 1px solid rgba(204, 162, 51, 0.35);
    border-radius: 8px;
    text-decoration: none;
}

/* ==========================================
   2. ПОДВАЛ И НИЖНЯЯ НАВИГАЦИЯ (footer.php)
   ========================================== */
.rpg-footer-wrap {
    margin-top: 8px;
    padding: 0 4px 12px 4px;
}
.rpg-nav-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(180deg, rgba(32, 35, 42, 0.96) 0%, rgba(20, 22, 27, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.rpg-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 2px;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
    font-size: 10px;
    color: #bdc3c7;
}
.rpg-nav-btn:last-child {
    border-right: none;
}
.rpg-nav-btn:hover {
    background: rgba(204, 162, 51, 0.12);
    color: #f1c40f;
}
.rpg-nav-btn img {
    margin-bottom: 2px;
}
.rpg-mini-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
}
.rpg-mini-ava {
    border-radius: 6px;
    border: 1px solid rgba(204, 162, 51, 0.45);
    flex-shrink: 0;
}
.rpg-curr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}
.rpg-curr-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #ecf0f1;
    font-weight: bold;
}
.rpg-promo-card {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 7px;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.rpg-promo-orange {
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.16), rgba(211, 84, 0, 0.24), rgba(230, 126, 34, 0.16));
    border-color: rgba(230, 126, 34, 0.35);
}
.rpg-promo-green {
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.14), rgba(39, 174, 96, 0.22), rgba(46, 204, 113, 0.14));
    border-color: rgba(46, 204, 113, 0.35);
}
.rpg-promo-purple {
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.16), rgba(142, 68, 173, 0.24), rgba(155, 89, 182, 0.16));
    border-color: rgba(155, 89, 182, 0.35);
}
.rpg-foot-links {
    background: rgba(18, 20, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 6px;
}
.rpg-foot-links a {
    color: #bdc3c7;
    text-decoration: none;
}
.rpg-foot-links a:hover {
    color: #f1c40f;
}
.rpg-foot-bottom {
    text-align: center;
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.6;
}
.rpg-foot-bottom a {
    color: #95a5a6;
}

/* ==========================================
   3. ПРОФИЛЬ ГЕРОЯ (hero)
   ========================================== */
.rpg-card {
    background: linear-gradient(180deg, rgba(28, 30, 36, 0.92) 0%, rgba(18, 20, 24, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.rpg-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cca233;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 5px;
}
.rpg-gear-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
}
.rpg-gear-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rpg-slot {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.rpg-slot:hover {
    transform: scale(1.05);
}
.rpg-avatar-box {
    position: relative;
    border-radius: 8px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(204, 162, 51, 0.5), rgba(255, 255, 255, 0.05));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.rpg-avatar-box img {
    display: block;
    border-radius: 6px;
    object-fit: cover;
}
.rpg-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}
.rpg-stat-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 7px 4px;
    text-align: center;
}
.rpg-stat-val {
    font-size: 13px;
    font-weight: bold;
    color: #f1c40f;
    margin-top: 2px;
}
.rpg-stat-lbl {
    font-size: 11px;
    color: #95a5a6;
}
.rpg-exp-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.rpg-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f39c12);
    border-radius: 4px;
}
.rpg-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.07);
    color: #ecf0f1;
}
.rpg-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
}
.rpg-row-item:last-child {
    border-bottom: none;
}

/* ==========================================
   4. СТРАНИЦА КЛАНА И СПИСОК КЛАНОВ
   ========================================== */
.clan-card {
    background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.clan-sec-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cca233;
    font-weight: bold;
    margin: 4px 0 6px 2px;
}
.clan-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.clan-logo-wrap {
    padding: 2px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(204, 162, 51, 0.65), rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}
.clan-logo-wrap img {
    display: block;
    border-radius: 6px;
    object-fit: cover;
}
.clan-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 5px;
}
.clan-badge-lvl {
background: rgba(241, 196, 15, 0.15);
color: #f1c40f;
border: 1px solid rgba(241, 196, 15, 0.3);
}
.clan-badge-war {
background: rgba(231, 76, 60, 0.2);
color: #ff6b6b;
border: 1px solid rgba(231, 76, 60, 0.4);
}
.clan-badge-ally {
background: rgba(46, 204, 113, 0.2);
color: #2ecc71;
border: 1px solid rgba(46, 204, 113, 0.4);
}
.clan-exp-bar {
width: 100%;
height: 7px;
background: rgba(0, 0, 0, 0.6);
border-radius: 4px;
overflow: hidden;
margin-top: 5px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.clan-exp-fill {
height: 100%;
background: linear-gradient(90deg, #cca233, #f39c12);
border-radius: 4px;
}
.clan-desc {
margin-top: 8px;
padding: 7px 9px;
background: rgba(0, 0, 0, 0.28);
border-left: 2px solid #cca233;
border-radius: 0 5px 5px 0;
font-size: 12px;
color: #d0d3d4;
white-space: pre-wrap;
word-break: break-word;
}
.clan-stats-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
margin-bottom: 6px;
}
.clan-stat-tile {
background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
padding: 8px;
text-align: center;
text-decoration: none;
display: block;
}
.clan-stat-tile:hover {
border-color: rgba(204, 162, 51, 0.45);
}
.clan-stat-lbl {
font-size: 11px;
color: #95a5a6;
margin-bottom: 3px;
}
.clan-stat-val {
font-size: 12px;
font-weight: bold;
color: #fff;
}
.clan-menu-box {
border-radius: 8px;
overflow: hidden;
margin-bottom: 6px;
border: 1px solid rgba(255, 255, 255, 0.07);
}
.clan-pill-right {
float: right;
font-size: 11px;
padding: 1px 6px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.06);
color: #bdc3c7;
}
.clans-wrap {
padding: 4px;
}
.clans-banner {
border-radius: 8px;
overflow: hidden;
margin-bottom: 6px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.clans-banner img {
display: block;
width: 100%;
height: auto;
}
.clans-actions {
display: flex;
gap: 6px;
margin-bottom: 6px;
}
.clans-act-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 6px;
border-radius: 7px;
text-decoration: none;
font-size: 12px;
font-weight: bold;
background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #ecf0f1;
transition: border-color 0.15s ease;
}
.clans-act-btn:hover {
border-color: rgba(204, 162, 51, 0.5);
color: #f1c40f;
}
.clans-act-gold {
background: linear-gradient(180deg, rgba(204, 162, 51, 0.22) 0%, rgba(145, 110, 20, 0.3) 100%);
border-color: rgba(204, 162, 51, 0.45);
color: #f1c40f;
}
.clan-list-card {
display: flex;
align-items: center;
gap: 10px;
background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
padding: 8px 10px;
margin-bottom: 5px;
text-decoration: none;
transition: border-color 0.15s ease;
}
.clan-list-card:hover {
border-color: rgba(204, 162, 51, 0.4);
}
.clan-list-card.is-my-clan {
border-color: rgba(46, 204, 113, 0.45);
background: linear-gradient(90deg, rgba(46, 204, 113, 0.08), rgba(18, 20, 24, 0.98));
}
.clan-rank {
min-width: 28px;
height: 28px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: bold;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #95a5a6;
flex-shrink: 0;
}
.clan-rank-1 {
background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(211, 84, 0, 0.25));
border-color: #f1c40f;
color: #f1c40f;
}
.clan-rank-2 {
background: rgba(189, 195, 199, 0.2);
border-color: #bdc3c7;
color: #ecf0f1;
}
.clan-rank-3 {
background: rgba(205, 127, 50, 0.22);
border-color: #cd7f32;
color: #e67e22;
}
.clan-list-ava {
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.12);
flex-shrink: 0;
object-fit: cover;
}
.clan-rel-tag {
display: inline-block;
padding: 1px 5px;
border-radius: 4px;
font-size: 10px;
font-weight: bold;
margin-left: 4px;
vertical-align: middle;
}
.tag-war {
background: rgba(231, 76, 60, 0.2);
color: #ff6b6b;
border: 1px solid rgba(231, 76, 60, 0.4);
}
.tag-ally {
background: rgba(46, 204, 113, 0.2);
color: #2ecc71;
border: 1px solid rgba(46, 204, 113, 0.4);
}
/* ==========================================
5. ЗАЛ СЛАВЫ И РЕЙТИНГ (rating)
========================================== */
.hof-wrap {
padding: 4px;
}
.hof-tabs {
display: flex;
flex-wrap: wrap;
gap: 5px;
background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
padding: 7px;
margin-bottom: 6px;
justify-content: center;
}
.hof-tab {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 9px;
border-radius: 5px;
font-size: 12px;
text-decoration: none;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.07);
color: #bdc3c7;
transition: all 0.15s ease;
}
.hof-tab:hover {
border-color: rgba(204, 162, 51, 0.45);
color: #fff;
}
.hof-tab.active {
background: linear-gradient(180deg, rgba(204, 162, 51, 0.25), rgba(168, 128, 24, 0.35));
border-color: #cca233;
color: #f1c40f;
font-weight: bold;
}
.hof-card {
display: flex;
align-items: center;
gap: 10px;
background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
padding: 8px 10px;
margin-bottom: 5px;
text-decoration: none;
transition: border-color 0.15s ease;
}
.hof-card:hover {
border-color: rgba(204, 162, 51, 0.4);
}
.hof-card.is-me {
border-color: rgba(46, 204, 113, 0.45);
background: linear-gradient(90deg, rgba(46, 204, 113, 0.08), rgba(18, 20, 24, 0.98));
}
.hof-rank {
min-width: 30px;
height: 30px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #95a5a6;
flex-shrink: 0;
}
.hof-rank-1 {
background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(211, 84, 0, 0.25));
border-color: #f1c40f;
color: #f1c40f;
box-shadow: 0 0 8px rgba(241, 196, 15, 0.25);
}
.hof-rank-2 {
background: rgba(189, 195, 199, 0.2);
border-color: #bdc3c7;
color: #ecf0f1;
}
.hof-rank-3 {
background: rgba(205, 127, 50, 0.22);
border-color: #cd7f32;
color: #e67e22;
}
.hof-ava {
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.12);
flex-shrink: 0;
}
.hof-info {
flex: 1;
min-width: 0;
}
.hof-nick {
font-size: 13px;
font-weight: bold;
color: #ecf0f1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hof-sub {
font-size: 11px;
color: #95a5a6;
margin-top: 2px;
}
/* ==========================================
   6. ПЛИТКИ ХАБА (index.php и trade_shop)
   ========================================== */
.rpg-hub {
    padding: 6px;
}
.rpg-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #3a3226;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}
.rpg-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.rpg-sec-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cca233;
    margin: 10px 2px 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(204, 162, 51, 0.25);
}
.rpg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.rpg-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none !important;
    background: linear-gradient(180deg, #25221e 0%, #191714 100%);
    border: 1px solid #383229;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.15s, background 0.15s;
    min-height: 36px;
}
.rpg-tile:hover {
    border-color: #8c6d32;
    background: linear-gradient(180deg, #2e2923 0%, #1f1c18 100%);
}
.rpg-tile.locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.6);
}
.rpg-tile-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.rpg-tile-icon img {
    max-width: 22px;
    max-height: 22px;
}
.rpg-tile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.rpg-tile-name {
    color: #eee3ce;
    font-size: 12.5px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpg-tile-sub {
    color: #8c8273;
    font-size: 11px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpg-tile .rpg-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.2;
}
.badge-success {
    background: #1b5e20;
    color: #a5d6a7;
    border: 1px solid #4caf50;
}
.badge-danger {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid #ef4444;
}
.badge-new {
    background: #6b4c11;
    color: #fde047;
    border: 1px solid #eab308;
}
/* ==========================================
   7. УНИВЕРСАЛЬНЫЕ ЭЛЕМЕНТЫ ДЛЯ ВСЕХ СТРАНИЦ
   ========================================== */

/* Кнопки действий (Атака, Купить, Создать) */
.rpg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    margin-bottom: 6px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: bold;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #282b33 0%, #1a1c22 100%);
    color: #ecf0f1;
    transition: all 0.15s ease;
}
.rpg-btn:hover {
    border-color: rgba(204, 162, 51, 0.5);
    color: #f1c40f;
}
/* Золотая кнопка (главное действие: Купить, В бой, Забрать) */
.rpg-btn-gold {
    background: linear-gradient(180deg, rgba(204, 162, 51, 0.25) 0%, rgba(145, 110, 20, 0.35) 100%);
    border-color: rgba(204, 162, 51, 0.55);
    color: #f1c40f;
}
/* Красная кнопка (Атака, Выйти, Удалить) */
.rpg-btn-red {
    background: linear-gradient(180deg, rgba(231, 76, 60, 0.22) 0%, rgba(169, 50, 38, 0.3) 100%);
    border-color: rgba(231, 76, 60, 0.45);
    color: #ff7675;
}
/* Зелёная кнопка (Лечение, Принять) */
.rpg-btn-green {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.2) 0%, rgba(30, 132, 73, 0.28) 100%);
    border-color: rgba(46, 204, 113, 0.45);
    color: #55efc4;
}

/* Полоса здоровья (HP) для врагов и боссов */
.rpg-hp-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.rpg-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border-radius: 4px;
    transition: width 0.25s ease;
}

/* Поля ввода и формы (Чат, Аукцион, Поиск, Настройки) */
.rpg-input, .rpg-select, .rpg-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 8px 10px;
    color: #ecf0f1;
    font-size: 12.5px;
    margin-bottom: 6px;
    outline: none;
}
.rpg-input:focus, .rpg-select:focus, .rpg-textarea:focus {
    border-color: #cca233;
}

/* Постраничная навигация (Пагинация) */
.rpg-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}
.rpg-pager a, .rpg-pager span {
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
    text-decoration: none;
    background: rgba(28, 30, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #bdc3c7;
}
.rpg-pager span.current {
    border-color: #cca233;
    color: #f1c40f;
    font-weight: bold;
    background: rgba(204, 162, 51, 0.15);
}
/* ==========================================
   7. АВТО-АДАПТАЦИЯ СТАРЫХ БЛОКОВ ПОД НОВЫЙ СТИЛЬ
   ========================================== */

/* Единый вид для старых карточек построек, вещей, зелий и инфо-блоков */
.t_max, .user_info, .svg_list_m {
    background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 9px 10px;
    margin: 0 0 6px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Старые списки игроков/кланов (.menulitl) -> стиль карточек Зала Славы */
.menulitl li {
    background: linear-gradient(180deg, rgba(28, 30, 36, 0.94) 0%, rgba(18, 20, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 4px;
    transition: border-color 0.15s ease;
}
.menulitl li:hover {
    border-color: rgba(204, 162, 51, 0.45);
    background: linear-gradient(180deg, rgba(34, 37, 45, 0.96) 0%, rgba(22, 24, 29, 0.99) 100%);
}

/* Современные плоские кнопки в стиле хаба вместо старых объемных */
.rpg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    margin-bottom: 6px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: bold;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #282b33 0%, #1a1c22 100%);
    color: #ecf0f1;
    transition: all 0.15s ease;
}
.rpg-btn:hover {
    border-color: rgba(204, 162, 51, 0.5);
    color: #f1c40f;
}
.rpg-btn-gold {
    background: linear-gradient(180deg, rgba(204, 162, 51, 0.25) 0%, rgba(145, 110, 20, 0.35) 100%);
    border-color: rgba(204, 162, 51, 0.55);
    color: #f1c40f;
}
.rpg-btn-red {
    background: linear-gradient(180deg, rgba(231, 76, 60, 0.22) 0%, rgba(169, 50, 38, 0.3) 100%);
    border-color: rgba(231, 76, 60, 0.45);
    color: #ff7675;
}
.rpg-btn-green {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.2) 0%, rgba(30, 132, 73, 0.28) 100%);
    border-color: rgba(46, 204, 113, 0.45);
    color: #55efc4;
}

/* Универсальный бейдж справа в меню (работает и в .menulist, и в .clan-menu-box) */
.menulist .clan-pill-right {
    margin-top: -1px;
}
