/* ============================================
   EVOLIO - PILNAS CSS FAILAS
   Versija: 2.0
   ============================================ */

/* --- 1. ŠRIFTAI IR KINTAMIEJI --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;600&family=Lora:ital,wght@1,400&display=swap');

:root {
    --bg-dark: #141210;
    --bg-panel: #1e1c1a;
    --accent-gold: #cfa86e;
    --accent-glow: rgba(207, 168, 110, 0.15);
    --text-main: #d0d0d0;
    --text-muted: #8a8580;
    --border-color: #332e2a;
    --success: #5c8d6d;
    --error: #8d5c5c;
}

/* --- 2. PAGRINDINIS RESET --- */
* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}



body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    display: flex;
    justify-content: center;
    /* align-items: center; <-- IŠTRINTA: Tai kėlė problemų slenkant */
    align-items: flex-start;
    /* Svarbu: Leidžia slinkti nuo viršaus */
    min-height: 100vh;
    padding: 20px 0;
    /* Šiek tiek tarpo viršuje/apačioje */
    position: relative;
    overflow-y: scroll;
    /* Slenkasi visas puslapis */
}

/* Fonas perkeliamas čia, kad telefone tikrai nejudėtų */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fono paveiksliukas čia: */
    background-image: url('https://wallpapercave.com/wp/wp3494944.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* Nustumiame į patį galą */
}

/* Tamsinimo sluoksnis (overlay) atskirai */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 8, 6, 0.75);
    /* Tamsinimas */
    z-index: -1;
    pointer-events: none;
}





/* ============================================
   INVENTORY SYSTEM (FINAL - NO SELL)
   ============================================ */

/* Inventory Stats */
.inv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.inv-stat-box {
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-stat-box i {
    font-size: 13px;
    color: var(--accent-gold);
}

.inv-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.inv-stat-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

/* Ekipuotė: kas uždėta ant kūno – gražiai išdėstyta */
.equip-worn-wrap {
    margin-bottom: 20px;
}

.equip-worn-title {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.equip-worn-title i {
    color: var(--accent-gold);
    font-size: 12px;
}

.equip-worn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.equip-worn-card {
    background: rgba(28, 26, 24, 0.95);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.equip-worn-card:not(.equip-worn-card--empty) {
    border-color: var(--accent-gold);
    background: rgba(207, 168, 110, 0.06);
    box-shadow: 0 0 12px rgba(207, 168, 110, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.equip-worn-card--empty {
    border-style: dashed;
    opacity: 0.85;
}

.equip-worn-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.equip-worn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.equip-worn-icon i {
    font-size: 20px;
    color: var(--accent-gold);
}

.equip-worn-card--empty .equip-worn-icon i {
    color: var(--text-muted);
    font-size: 18px;
}

.equip-worn-icon img,
.equip-worn-icon .inv-item-img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.equip-worn-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    line-height: 1.25;
    min-height: 1.4em;
}

.equip-worn-card:not(.equip-worn-card--empty) .equip-worn-name {
    color: var(--accent-gold);
}

.equip-worn-card--empty .equip-worn-name {
    color: var(--text-muted);
    font-weight: 500;
}

.equip-worn-action {
    margin-top: 2px;
}

.equip-worn-action .inv-btn-unequip {
    font-size: 11px;
    padding: 4px 10px;
}

/* Inventory Category */
.inv-category {
    margin-bottom: 12px;
}

/* Category Header (Clickable) */
.inv-category-header {
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.inv-category-header:hover {
    background-color: rgba(34, 32, 30, 1);
    border-color: var(--accent-gold);
}

.inv-category-title-main {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-category-title-main i {
    font-size: 12px;
}

.inv-count {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 5px;
}

.inv-toggle-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* Ekipuotė – kategorijos nuorodomis (paspaudus išlenda tos kategorijos sąrašas) */
.inv-category-links-wrap {
    margin-bottom: 16px;
}

.inv-category-links-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.inv-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.inv-category-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(34, 32, 30, 0.6);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.inv-category-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(207, 168, 110, 0.1);
}

.inv-category-link--active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(207, 168, 110, 0.15);
}
.inv-category-block {
    display: none;
    margin-top: 16px;
}
.inv-category-block:first-of-type {
    margin-top: 0;
}
.inv-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 40px;
    max-height: 40px;
}
.inv-shop-link-wrap {
    margin-top: 24px;
    text-align: center;
}
.btn-submit-link {
    display: inline-block;
    text-decoration: none;
}

.inv-empty-msg {
    font-size: 12px;
    color: var(--text-muted);
    padding: 16px;
    text-align: center;
}
.inv-empty-msg a {
    margin-left: 4px;
}

/* Parduotuvė – be spalvų kortelėms (be rarity), vienoda rėmelis */
.inv-shop-page .inv-item {
    border: 1px solid var(--border-color);
}
.inv-shop-page .inv-item:hover {
    border-color: var(--accent-gold);
}

/* Pirkti mygtukas – ne suspaustas, aiškiai matomas */
.inv-btn-buy {
    width: auto;
    min-width: 130px;
    height: auto;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
    justify-content: center;
}
.inv-btn-buy i {
    margin-right: 6px;
}

/* Category Content (Collapsible) */
.inv-category-content {
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inventory Items Grid */
.inv-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.inv-item {
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    transition: all 0.2s;
}

.inv-item:hover {
    background-color: rgba(34, 32, 30, 1);
    border-color: var(--accent-gold);
}

/* Equipped Item */
.inv-item.equipped {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(207, 168, 110, 0.15) 0%, rgba(176, 141, 85, 0.05) 100%);
}

/* Rarity Colors */
.inv-item.rarity-common {
    border-left: 3px solid #8a8580;
}

.inv-item.rarity-uncommon {
    border-left: 3px solid #5c8d6d;
}

.inv-item.rarity-rare {
    border-left: 3px solid #4a9eff;
}

.inv-item.rarity-epic {
    border-left: 3px solid #9d5fd8;
}

.inv-item.rarity-legendary {
    border-left: 3px solid #ffa500;
}

/* Item Icon */
.inv-item-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: rgba(20, 18, 16, 0.8);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.inv-item-icon i {
    font-size: 13px;
    color: var(--accent-gold);
}

.inv-item-qty {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(207, 168, 110, 0.9);
    color: #1a1816;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 3px;
}

.inv-equipped-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(135deg, #cfa86e 0%, #b08d55 100%);
    color: #1a1816;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #141210;
}

/* Item Info */
.inv-item-info {
    flex: 1;
}

.inv-item-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.inv-item-desc {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 5px;
}

.inv-item-bonus {
    font-size: 10px;
    color: var(--accent-gold);
}

.inv-item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 9px;
    color: var(--accent-gold);
    font-weight: 600;
}

.inv-item-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Item Actions */
.inv-item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.inv-btn {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: rgba(34, 32, 30, 0.8);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.inv-btn:hover {
    transform: scale(1.05);
}

.inv-btn-use {
    background-color: rgba(92, 141, 109, 0.2);
    border-color: #5c8d6d;
    color: #5c8d6d;
}

.inv-btn-use:hover {
    background-color: rgba(92, 141, 109, 0.3);
}

.inv-btn-equip {
    background-color: rgba(207, 168, 110, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.inv-btn-equip:hover {
    background-color: rgba(207, 168, 110, 0.3);
}

/* Empty State */
.inv-empty {
    text-align: center;
    padding: 30px 15px;
    color: var(--text-muted);
}

.inv-empty i {
    font-size: 30px;
    color: #3a3530;
    margin-bottom: 8px;
}

.inv-empty p {
    font-size: 10px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .inv-stats {
        grid-template-columns: 1fr;
    }

    .equip-worn-grid {
        grid-template-columns: 1fr;
    }

    .inv-item {
        padding: 8px;
    }

    .inv-item-icon {
        width: 35px;
        height: 35px;
    }

    .inv-item-icon i {
        font-size: 12px;
    }

    .inv-category-header {
        padding: 8px 10px;
    }
}




/* --- 3. ŽAIDIMO KONTEINERIS --- */
.game-container {
    width: 100%;
    max-width: 600px;
    background-color: rgba(30, 28, 26, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
    margin: 15px;
    min-height: 600px;
}

/* ============================================
   TOP BAR (Laikrodis)
   ============================================ */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 14, 13, 0.95);
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 10px;
    height: 32px;
}

.top-title {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 11px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.top-bar-msg:hover {
    color: var(--accent-gold);
    background-color: rgba(207, 168, 110, 0.15);
}

.top-bar-msg i {
    font-size: 14px;
}

.top-bar-msg-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #5c8d6d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.top-clock {
    font-family: 'Inter', monospace;
    color: #666;
    font-size: 10px;
}

/* ============================================
   CONTENT AREA
   ============================================ */

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    flex: 1;
    /* overflow-y: auto;  <-- IŠTRINTA: Panaikinam vidinį slinkimą */
    overflow: visible;
    /* Leidžiam turiniui išplėsti konteinerį */
}








/* --- 4. LOGOTIPAS --- */
.logo-container {
    text-align: center;
    padding: 25px 20px 15px 20px;
    /* background: linear-gradient(...) - PAŠALINTA */
    max-width: 400px;
    margin: 0 auto;
}

.game-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(207, 168, 110, 0.25));
    object-fit: contain;
}

.logo-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 600;
}

/* Mobile optimizacija */
@media (max-width: 768px) {
    .logo-container {
        padding: 20px 15px 12px 15px;
        max-width: 360px;
    }

    .game-logo {
        max-width: 340px;
    }

    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }
}

@media (max-width: 360px) {
    .logo-container {
        padding: 15px 10px 10px 10px;
        max-width: 320px;
    }

    .game-logo {
        max-width: 300px;
    }

    .logo-subtitle {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}







/* ============================================
   NAVIGATION BAR
   ============================================ */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: rgba(20, 18, 16, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.btn-back,
.btn-home,
.btn-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-msg {
    position: relative;
    padding: 8px 14px;
}

.btn-msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #5c8d6d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-back:hover,
.btn-home:hover,
.btn-msg:hover {
    background-color: rgba(34, 32, 30, 1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-home {
    padding: 8px 14px;
}

.btn-home i {
    font-size: 14px;
}

.btn-back i {
    font-size: 10px;
}

/* ============================================
   TOPIC SISTEMA
   ============================================ */
.topic-bar {
    background: linear-gradient(135deg, rgba(207, 168, 110, 0.1) 0%, rgba(176, 141, 85, 0.05) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 15px 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.topic-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.topic-content i {
    color: var(--accent-gold);
    font-size: 14px;
    flex-shrink: 0;
}

.topic-text {
    font-size: 11px;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
}

.topic-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-author {
    font-size: 9px;
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
}

.topic-change-btn {
    background-color: rgba(207, 168, 110, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.topic-change-btn:hover {
    background-color: rgba(207, 168, 110, 0.25);
}

/* ============================================
   NAUJIENOS WIDGET
   ============================================ */
.news-widget {
    margin: 0 15px 12px 15px;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.news-link:hover {
    background-color: rgba(34, 32, 30, 1);
    border-color: var(--accent-gold);
    transform: translateX(2px);
}

.news-link>i {
    font-size: 16px;
    color: var(--accent-gold);
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

.news-stats {
    font-size: 10px;
    color: var(--text-muted);
}

.news-stats strong {
    color: var(--text-main);
    font-weight: 600;
}

.news-today {
    color: var(--accent-gold) !important;
}

.news-link>.fa-chevron-right {
    color: #555;
    font-size: 10px;
}

/* ============================================
   STATS PANEL (NAUJA VERSIJA)
   ============================================ */
.stats-panel-new {
    background: linear-gradient(135deg, rgba(30, 28, 26, 0.95) 0%, rgba(20, 18, 16, 0.95) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Profilio veikėjas centre, aplink – kortelės su šarvais ir ginklais (optimizuotas rodymas) */
.profile-character-wrap {
    position: relative;
    display: block;
    width: 300px;
    height: 300px;
    margin: 0 auto 16px;
    min-width: 300px;
    min-height: 300px;
    flex-shrink: 0;
}

/* Avataras centre – aiškiai matomas, su šviesiu rėmeliu */
.profile-character-wrap .profile-character-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    z-index: 1;
    padding: 6px;
    background: rgba(34, 32, 30, 0.9);
    border-radius: 16px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.06);
}

.profile-character-wrap .profile-character-avatar .player-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    display: block;
}

.profile-character-wrap .profile-character-avatar .level-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
}

/* Kortelės aplink veikėją – skaitoma, gražiai atskirta kas uždėta */
.profile-equip-slot {
    position: absolute;
    z-index: 2;
}

.profile-equip-slot--card {
    width: 78px;
    min-height: 62px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: rgba(28, 26, 24, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    top: 50%;
    left: 50%;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

/* Uždėti daiktai – ryškūs aukso rėmelis ir šviesus fonas */
.profile-equip-slot--card:not(.profile-equip-slot--empty) {
    border-color: var(--accent-gold);
    background: rgba(207, 168, 110, 0.08);
    box-shadow: 0 0 14px rgba(207, 168, 110, 0.25), 0 2px 10px rgba(0,0,0,0.25);
}

.profile-equip-slot--empty {
    border-color: var(--border-color);
    background: rgba(24, 22, 20, 0.9);
    opacity: 0.9;
}

.profile-equip-slot-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.profile-equip-slot-icon i {
    font-size: 18px;
    color: var(--accent-gold);
}

.profile-equip-slot--empty .profile-equip-slot-icon i {
    color: var(--text-muted);
    font-size: 16px;
}

.profile-equip-slot-icon .profile-equip-img,
.profile-equip-slot-icon img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

/* Slotas (Ginklas, Šarvai…) – maža etiketė */
.profile-equip-slot-label {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1px;
}

/* Daikto pavadinimas – aiškiai matomas */
.profile-equip-slot-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
    word-break: break-word;
}

.profile-equip-slot--card:not(.profile-equip-slot--empty) .profile-equip-slot-name {
    color: var(--accent-gold);
}

.profile-equip-slot--empty .profile-equip-slot-name {
    color: var(--text-muted);
    font-weight: 500;
}

/* Pozicijos aplink veikėją (apskritimu, radius 108px) */
.profile-equip-slot--pos0 { transform: translate(-50%, -50%) translate(0, -108px); }
.profile-equip-slot--pos1 { transform: translate(-50%, -50%) translate(63px, -88px); }
.profile-equip-slot--pos2 { transform: translate(-50%, -50%) translate(103px, -33px); }
.profile-equip-slot--pos3 { transform: translate(-50%, -50%) translate(103px, 33px); }
.profile-equip-slot--pos4 { transform: translate(-50%, -50%) translate(63px, 88px); }
.profile-equip-slot--pos5 { transform: translate(-50%, -50%) translate(0, 108px); }
.profile-equip-slot--pos6 { transform: translate(-50%, -50%) translate(-63px, 88px); }
.profile-equip-slot--pos7 { transform: translate(-50%, -50%) translate(-103px, 33px); }
.profile-equip-slot--pos8 { transform: translate(-50%, -50%) translate(-103px, -33px); }
.profile-equip-slot--pos9 { transform: translate(-50%, -50%) translate(-63px, -88px); }

.profile-equip-slot .profile-equip-img,
.profile-equip-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 36px;
    max-height: 36px;
    border-radius: 6px;
}

.stat-bonus {
    font-size: 9px;
    color: var(--success);
}

.online-badge--online {
    background: rgba(92, 141, 109, 0.2);
    border-color: var(--success);
}

.online-badge-dot {
    color: var(--success);
    font-size: 8px;
}

.inv-icon-online {
    color: var(--success);
}

.profile-equip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.profile-equip-card {
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.profile-equip-card--empty {
    opacity: 0.7;
}

.profile-equip-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-equip-card-icon .profile-equip-img,
.profile-equip-card-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.profile-equip-card-icon .fa-solid {
    color: var(--text-muted);
    font-size: 22px;
}

.profile-equip-card:not(.profile-equip-card--empty) .profile-equip-card-icon .fa-solid {
    color: var(--accent-gold);
}

.profile-equip-card-label {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.profile-equip-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

.player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar-wrapper {
    position: relative;
}

.player-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(207, 168, 110, 0.3);
    object-fit: cover;
}

.level-circle {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #cfa86e 0%, #b08d55 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #1a1816;
    border: 2px solid #141210;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.player-info-main {
    flex: 1;
}

.player-name-large {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.player-tribe {
    font-size: 10px;
    color: var(--accent-gold);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-money {
    font-size: 11px;
    color: #ffd700;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* XP Section */
.xp-section {
    margin-bottom: 12px;
}

.xp-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 600;
}

.xp-bar-new {
    height: 18px;
    background-color: rgba(20, 18, 16, 0.8);
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.xp-fill-new {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2 0%, #7ac142 50%, #ffd700 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.5);
}

.xp-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Epoch Section */
.epoch-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 10px;
    background-color: rgba(20, 18, 16, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.epoch-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
}

.epoch-badge i {
    font-size: 12px;
}

.online-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #5c8d6d;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-box {
    background-color: rgba(34, 32, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.stat-box:hover {
    background-color: rgba(34, 32, 30, 0.9);
    border-color: var(--accent-gold);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hp-icon {
    background-color: rgba(141, 92, 92, 0.2);
    color: #e68a8a;
}

.energy-icon {
    background-color: rgba(207, 168, 110, 0.2);
    color: #cfa86e;
}

.attack-icon {
    background-color: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

.defense-icon {
    background-color: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

.pop-icon {
    background-color: rgba(138, 133, 128, 0.2);
    color: #a8a098;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-bar-mini {
    height: 3px;
    background-color: rgba(20, 18, 16, 0.8);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.hp-fill {
    background-color: #e68a8a;
}

.energy-fill {
    background-color: #cfa86e;
}

.stat-value {
    font-size: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.stat-value-large {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

/* ============================================
   GAME CONTENT
   ============================================ */
.game-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

/* Resursų Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.res-card {
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.res-card:hover {
    background-color: rgba(34, 32, 30, 1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.res-icon {
    font-size: 18px;
    color: var(--accent-gold);
}

.res-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
}

.res-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Section Title */
.section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
}

.section-title i {
    font-size: 14px;
}

/* Quick Menu Grid - MAŽESNI DYDŽIAI */
.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.quick-menu-item {
    background-color: rgba(34, 32, 30, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    min-height: 65px;
    position: relative;
}

.quick-menu-item:hover {
    background-color: rgba(34, 32, 30, 1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.quick-menu-item i {
    font-size: 18px;
    color: var(--accent-gold);
    transition: transform 0.2s;
}

.quick-menu-item:hover i {
    transform: scale(1.1);
}

.quick-menu-item span {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.quick-menu-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #cfa86e;
    color: #1a1816;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.quick-menu-badge--pm {
    background: #5c8d6d;
    color: #ffffff;
}

.quick-menu-badge--rank {
    background: #8d4a4a;
    color: #ffffff;
}

.quick-menu-badge--top {
    background: #9d5fd8;
    color: #ffffff;
}

/* Admin Highlight */
.admin-highlight {
    background: linear-gradient(135deg, rgba(207, 168, 110, 0.15) 0%, rgba(176, 141, 85, 0.1) 100%) !important;
    border-color: var(--accent-gold) !important;
}

.admin-highlight i {
    color: #ffd700 !important;
}

.admin-highlight:hover {
    background: linear-gradient(135deg, rgba(207, 168, 110, 0.25) 0%, rgba(176, 141, 85, 0.15) 100%) !important;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 10px 15px;
    background-color: rgba(22, 20, 19, 0.6);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.breadcrumb i {
    font-size: 8px;
    color: #555;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(22, 20, 19, 0.95);
    padding: 4px;
    margin: 15px 15px 10px 15px;
    border-radius: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: rgba(30, 28, 26, 0.95);
    color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.forms-wrapper {
    padding: 0 15px;
}

.auth-form {
    display: none;
    animation: fadein 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #554e48;
    font-size: 12px;
    transition: color 0.3s;
}

.styled-input {
    width: 100%;
    background-color: rgba(22, 20, 19, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 10px 10px 36px;
    border-radius: 8px;
    font-size: 11px;
    transition: all 0.2s;
}

.styled-input:focus {
    border-color: var(--accent-gold);
    background-color: rgba(26, 24, 22, 0.95);
}

.styled-input:focus+i {
    color: var(--accent-gold);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #cfa86e 0%, #b08d55 100%);
    color: #1a1816;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 15px;
}

.btn-submit:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadein 0.2s;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 28, 26, 0.98) 0%, rgba(20, 18, 16, 0.98) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-gold);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--accent-gold);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-info {
    background-color: rgba(34, 32, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.modal-info p {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: var(--text-main);
    font-weight: 600;
}

.modal-info ul {
    margin: 0;
    padding-left: 18px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.8;
}

.char-counter {
    text-align: right;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

.help-text {
    text-align: center;
    font-size: 10px;
    color: var(--error);
    margin-top: 8px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 12px 15px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background-color: rgba(92, 141, 109, 0.2);
    border: 1px solid var(--success);
    color: #a8d4b8;
}

.alert-error {
    background-color: rgba(141, 92, 92, 0.2);
    border: 1px solid var(--error);
    color: #e8a8a8;
}

/* ============================================
   FOOTER
   ============================================ */
.game-footer {
    padding: 12px 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: rgba(15, 14, 13, 0.95);
    font-size: 10px;
    color: var(--text-muted);
}

.game-footer-links .logout-link {
    display: inline-block;
    margin: 0 4px;
}

.game-footer-sep {
    color: var(--text-muted);
    margin: 0 4px;
    user-select: none;
}

.logout-link,
.tiny-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s;
}

.logout-link:hover,
.tiny-link:hover {
    color: var(--accent-gold);
}

.footer-links {
    text-align: center;
    margin-top: 10px;
}

/* ============================================
   CHAT CONTAINER
   ============================================ */
.chat-container {
    background-color: rgba(34, 32, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    background-color: rgba(20, 18, 16, 0.8);
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 2px solid var(--accent-gold);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chat-author {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-level {
    font-size: 9px;
    background-color: rgba(207, 168, 110, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--accent-gold);
}

.chat-time {
    font-size: 9px;
    color: var(--text-muted);
}

.chat-text {
    font-size: 11px;
    color: var(--text-main);
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background-color: rgba(20, 18, 16, 0.8);
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    background-color: rgba(22, 20, 19, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    transition: all 0.2s;
}

.chat-input:focus {
    border-color: var(--accent-gold);
    background-color: rgba(26, 24, 22, 0.95);
    outline: none;
}

.chat-send {
    background: linear-gradient(135deg, #cfa86e 0%, #b08d55 100%);
    border: none;
    color: #1a1816;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.chat-send:hover {
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.chat-send i {
    font-size: 12px;
}

/* ============================================
   NEWS & ADMIN STYLES
   ============================================ */
.page-header {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--accent-gold);
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card {
    background: linear-gradient(135deg, rgba(34, 32, 30, 0.9) 0%, rgba(26, 24, 22, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s;
}

.news-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(207, 168, 110, 0.15);
}

.news-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.news-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--text-main);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: var(--text-muted);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta i {
    color: var(--accent-gold);
}

.news-author {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

.news-content {
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-main);
}

.news-content strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 12px;
    background-color: rgba(34, 32, 30, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.page-btn {
    background-color: rgba(207, 168, 110, 0.1);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: rgba(207, 168, 110, 0.2);
    border-color: var(--accent-gold);
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-num {
    padding: 5px 10px;
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.page-num:hover {
    background-color: rgba(207, 168, 110, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.page-num.active {
    background: linear-gradient(135deg, #cfa86e 0%, #b08d55 100%);
    color: #1a1816;
    border-color: #cfa86e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 50px;
    color: #3a3530;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 12px;
    margin: 0;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-header {
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(207, 168, 110, 0.1) 0%, rgba(176, 141, 85, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid var(--accent-gold);
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.admin-menu-item {
    background-color: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.admin-menu-item i {
    font-size: 20px;
    color: var(--accent-gold);
}

.admin-menu-item span {
    font-size: 11px;
    font-weight: 600;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background-color: rgba(207, 168, 110, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-main);
}

.admin-section {
    animation: fadein 0.3s ease;
}

.admin-form {
    background-color: rgba(34, 32, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.styled-textarea {
    width: 100%;
    background-color: rgba(22, 20, 19, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.2s;
}

.styled-textarea:focus {
    border-color: var(--accent-gold);
    background-color: rgba(26, 24, 22, 0.95);
    outline: none;
}

.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-news-item {
    background-color: rgba(34, 32, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
}

.admin-news-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.admin-news-meta {
    display: flex;
    gap: 12px;
    font-size: 9px;
    color: var(--text-muted);
}

.admin-news-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-admin {
    background: linear-gradient(135deg, #cfa86e 0%, #b08d55 100%);
    color: #1a1816;
}

.status-mod {
    background: linear-gradient(135deg, #4a9eff 0%, #3a7fd5 100%);
    color: #ffffff;
}

.status-badge-small {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-small.status-admin {
    background-color: rgba(207, 168, 110, 0.2);
    color: #cfa86e;
    border: 1px solid #cfa86e;
}

.status-badge-small.status-mod {
    background-color: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid #4a9eff;
}

.status-badge-small.status-player {
    background-color: rgba(138, 133, 128, 0.2);
    color: #8a8580;
    border: 1px solid #3a3530;
}

/* Users Table */
.users-table-wrapper {
    overflow-x: auto;
    background-color: rgba(34, 32, 30, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background-color: rgba(20, 18, 16, 0.8);
}

.users-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.users-table td {
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(51, 46, 42, 0.3);
}

.users-table tbody tr:hover {
    background-color: rgba(207, 168, 110, 0.05);
}

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

.btn-small {
    padding: 5px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}

.btn-edit {
    background-color: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid #4a9eff;
}

.btn-edit:hover {
    background-color: rgba(74, 158, 255, 0.3);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .game-container {
        margin: 10px auto;
        width: 95%;

        /* SVARBU: Šie du nustatymai kartu užtikrina ir slinkimą, ir apvalius kampus */
        max-height: none;
        /* Leidžia konteineriui augti į aukštį (kad veiktų body scroll) */
        overflow: hidden;
        /* Nukerpa stačius kampus (grąžina apvalumą) */

        min-height: 80vh;
        border-radius: 12px;
    }

    /* ... likęs kodas lieka toks pat ... */


    .stats-panel-new {
        padding: 12px;
    }

    .profile-character-wrap {
        width: 240px;
        height: 240px;
        min-width: 240px;
        min-height: 240px;
    }

    .profile-character-wrap .profile-character-avatar {
        padding: 4px;
    }

    .profile-character-wrap .profile-character-avatar .player-avatar-large {
        width: 56px;
        height: 56px;
    }

    .profile-equip-slot--card {
        width: 62px;
        min-height: 52px;
        padding: 5px 4px;
    }

    .profile-equip-slot-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
    }

    .profile-equip-slot-icon i {
        font-size: 14px;
    }

    .profile-equip-slot-icon img {
        max-width: 22px;
        max-height: 22px;
    }

    .profile-equip-slot-label {
        font-size: 7px;
    }

    .profile-equip-slot-name {
        font-size: 8px;
        -webkit-line-clamp: 2;
    }

    .profile-equip-slot--pos0 { transform: translate(-50%, -50%) translate(0, -82px); }
    .profile-equip-slot--pos1 { transform: translate(-50%, -50%) translate(48px, -67px); }
    .profile-equip-slot--pos2 { transform: translate(-50%, -50%) translate(78px, -25px); }
    .profile-equip-slot--pos3 { transform: translate(-50%, -50%) translate(78px, 25px); }
    .profile-equip-slot--pos4 { transform: translate(-50%, -50%) translate(48px, 67px); }
    .profile-equip-slot--pos5 { transform: translate(-50%, -50%) translate(0, 82px); }
    .profile-equip-slot--pos6 { transform: translate(-50%, -50%) translate(-48px, 67px); }
    .profile-equip-slot--pos7 { transform: translate(-50%, -50%) translate(-78px, 25px); }
    .profile-equip-slot--pos8 { transform: translate(-50%, -50%) translate(-78px, -25px); }
    .profile-equip-slot--pos9 { transform: translate(-50%, -50%) translate(-48px, -67px); }

    .player-avatar-large {
        width: 55px;
        height: 55px;
    }

    .level-circle {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .player-name-large {
        font-size: 15px;
    }

    .stats-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .stat-box {
        padding: 8px;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .quick-menu-item {
        padding: 8px 4px;
        min-height: 60px;
    }

    .quick-menu-item i {
        font-size: 16px;
    }

    .quick-menu-item span {
        font-size: 9px;
    }

    .topic-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .topic-content {
        width: 100%;
    }

    .topic-meta {
        width: 100%;
        justify-content: space-between;
    }

    .topic-change-btn {
        font-size: 8px;
        padding: 4px 6px;
    }

    .news-link {
        padding: 8px 10px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-direction: column;
        gap: 12px;
    }

    .page-numbers {
        order: -1;
    }

    .news-meta {
        flex-direction: column;
        gap: 6px;
    }

    .users-table {
        font-size: 10px;
    }

    .users-table th,
    .users-table td {
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    body {
        font-size: 11px;
        padding: 5px 0;
    }

    .game-container {
        margin: 5px;
        max-height: calc(100vh - 10px);
    }

    .game-logo {
        width: 140px;
    }

    .resources-grid {
        gap: 6px;
    }

    .player-card {
        flex-direction: column;
        text-align: center;
    }

    .player-info-main {
        width: 100%;
    }

    .player-tribe,
    .player-money {
        justify-content: center;
    }
}

/* ============================================
   INDEX HERO ELEMENTS
   ============================================ */
.hero-text-block {
    text-align: center;
    padding: 10px 15px;
}

.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: var(--border-color);
}

.ornament-line::before,
.ornament-line::after {
    content: "";
    height: 1px;
    background: var(--border-color);
    flex-grow: 1;
    margin: 0 8px;
}

.ornament-icon {
    color: var(--accent-gold);
    font-size: 10px;
}

.story-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 11px;
    color: #a8a098;
    line-height: 1.6;
    margin-bottom: 10px;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 auto;
    max-width: 300px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(207, 168, 110, 0.08);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 16px;
    color: var(--accent-gold);
}

.feature-item span {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}







/* ============================================
   FIX: PREVENT LARGE EMPTY SPACES
   ============================================ */

/* Game content should NOT stretch with flex */
.game-content {
    flex: 0 0 auto !important;
    /* Override flex: 1 */
    min-height: auto !important;
    padding-bottom: 15px;
    /* Nedidelis tarpas iki footer */
}

/* Game container should be compact */
.game-container {
    min-height: auto !important;
    height: auto !important;
}

/* Content area compact */
.content-area {
    flex: 0 0 auto !important;
}

/* Footer always at bottom with small gap */
.game-footer {
    margin-top: 0;
    padding-top: 12px;
}

/* Logout link spacing */
.logout-link {
    display: inline-block;
    margin-bottom: 5px;
    /* 5px tarpas iki footer teksto */
}


/* ============================================
   KOVŲ SISTEMA - COMBAT STYLES
   ============================================ */

/* Mob kortelė */
.mob-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.mob-card:hover {
    border-color: var(--accent-gold);
    transform: translateX(3px);
}

.mob-card.rarity-common {
    border-left: 3px solid #888;
}

.mob-card.rarity-uncommon {
    border-left: 3px solid #4a9c5d;
}

.mob-card.rarity-rare {
    border-left: 3px solid #5c7cfa;
}

.mob-card.rarity-epic {
    border-left: 3px solid #a855f7;
}

.mob-card.rarity-legendary {
    border-left: 3px solid #f59e0b;
}

/* Mob ikona */
.mob-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.mob-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Mob info */
.mob-info {
    flex: 1;
    min-width: 0;
}

.mob-name {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 2px;
}

.mob-stats {
    font-size: 9px;
    color: #888;
}

.mob-stats span {
    margin-right: 8px;
}

/* Mob veiksmas */
.mob-action {
    flex-shrink: 0;
}

.mob-btn {
    padding: 6px 12px;
    font-size: 10px;
    background: linear-gradient(135deg, #8d4a4a 0%, #a85c5c 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.mob-btn:hover {
    background: linear-gradient(135deg, #a85c5c 0%, #c86e6e 100%);
    transform: scale(1.05);
}

.mob-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mini statistika */
.stat-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 10px;
    margin-right: 5px;
}

.stat-mini i {
    font-size: 9px;
    opacity: 0.7;
}

/* Kovos rezultatas */
.result-box {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-box.win {
    background: linear-gradient(135deg, rgba(74, 156, 93, 0.2) 0%, rgba(74, 156, 93, 0.1) 100%);
    border: 1px solid #4a9c5d;
}

.result-box.lose {
    background: linear-gradient(135deg, rgba(156, 74, 74, 0.2) 0%, rgba(156, 74, 74, 0.1) 100%);
    border: 1px solid #9c4a4a;
}

.result-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.result-details {
    font-size: 10px;
    color: #888;
    margin-bottom: 10px;
}

.result-rewards {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reward-item {
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 11px;
}

/* Pasirinktas mobas */
.selected-mob {
    text-align: center;
    padding: 20px;
    background: rgba(34, 32, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
}

.selected-mob-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

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

.selected-mob-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.selected-mob-desc {
    font-size: 10px;
    color: #888;
    margin-bottom: 10px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Sunkumo ženklas */
.difficulty-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Cooldown juosta */
.cooldown-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.cooldown-fill {
    height: 100%;
    background: linear-gradient(90deg, #e87a35 0%, #f5a855 100%);
    transition: width 1s linear;
}

/* XP progresas kovose */
.xp-progress-mini {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.xp-progress-label {
    font-size: 9px;
    color: #888;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.xp-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cfa86e 0%, #e8c896 100%);
    border-radius: 3px;
    transition: width 0.3s;
}

.xp-fights-info {
    font-size: 9px;
    color: var(--accent-gold);
    margin-top: 5px;
    text-align: center;
}

/* Stat eilutė */
.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

/* Cooldown info */
.cooldown-info {
    font-size: 10px;
    color: #e87a35;
    margin-bottom: 5px;
}

/* Užrakinta mob kortelė */
.mob-card.locked {
    opacity: 0.6;
}

.mob-card.locked:hover {
    transform: none;
    border-color: var(--border-color);
}

.lock-icon {
    color: #666;
    font-size: 9px;
    margin-left: 5px;
}

/* Mob mygtukas disabled */
.mob-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #444;
}

.mob-btn.fight {
    padding: 8px 25px;
}

/* Auksinis tekstas */
.gold {
    color: var(--accent-gold);
}

/* Mob detalės */
.mob-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 10px;
}

/* Sunkumo badge spalvos */
.difficulty-badge.easy {
    background: #4a9c5d;
    color: white;
}

.difficulty-badge.medium {
    background: #9c8a4a;
    color: white;
}

.difficulty-badge.impossible {
    background: #9c4a4a;
    color: white;
}

/* Lygio pakilimo žinutė */
.level-up-msg {
    margin-top: 10px;
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: bold;
}

/* Mirties įspėjimas */
.death-warning {
    margin-top: 10px;
    color: #9c4a4a;
    font-size: 11px;
    font-weight: bold;
}

/* Pralaimėjimo atlygis */
.reward-item.lose-reward {
    color: #a86e6e;
}

/* Grįžimo nuoroda */
.back-link {
    text-align: center;
    margin-top: 10px;
}

.back-link a {
    font-size: 10px;
    color: #888;
    text-decoration: none;
}

.back-link a:hover {
    color: var(--accent-gold);
}


/* ============================================
   AMATŲ (CRAFTING) SISTEMA
   ============================================ */

/* Difficulty badge spalvos (rarity) - papildomos */
.difficulty-badge.common {
    background: #8a8580;
    color: white;
}

.difficulty-badge.uncommon {
    background: #5c8d6d;
    color: white;
}

.difficulty-badge.rare {
    background: #4a9eff;
    color: white;
}

.difficulty-badge.epic {
    background: #9d5fd8;
    color: white;
}

.difficulty-badge.legendary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1816;
}

/* Locked items (naudojama ir kovose, ir amatuose) */
.inv-item.locked {
    opacity: 0.6;
}

/* Mob-card kaip nuoroda (be underline) */
a.mob-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Inv-item kaip nuoroda */
a.inv-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* XP progress fill animacija */
.xp-progress-fill[data-width] {
    transition: width 0.5s ease;
}






/* ============================================
   AMATU (CRAFTING) CSS PAPILDYMAI
   Prideti i style.css apacia
   ============================================ */

/* Difficulty badge retumo spalvos */
.difficulty-badge.common { background: #6a6560; color: white; }
.difficulty-badge.uncommon { background: #4a9c5d; color: white; }
.difficulty-badge.rare { background: #5c7cfa; color: white; }
.difficulty-badge.epic { background: #a855f7; color: white; }
.difficulty-badge.legendary { background: #f59e0b; color: #1a1816; }

/* inv-item kaip nuoroda (be underline) */
a.inv-item { text-decoration: none; color: inherit; }
a.inv-item:hover { text-decoration: none; }







