.mini-armory-popup {
    background: linear-gradient(135deg, #1a1512 0%, #2d2319 50%, #1a1512 100%);
    border: 1px solid #4a3c2a;
    border-radius: 8px;
    padding: 15px;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 215, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    position: relative;
    overflow: hidden;
}

.mini-armory-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a34c, transparent);
}

.mini-armory-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 163, 76, 0.2);
    margin-bottom: 12px;
    position: relative;
}

.mini-armory-avatar {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #4a3c2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.mini-armory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-armory-info {
    flex: 1;
    min-width: 0;
}

.mini-armory-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mini-armory-details {
    font-size: 12px;
    color: #9e8b6e;
    margin-bottom: 2px;
}

.mini-armory-guild {
    font-size: 11px;
    color: #4fc3f7;
    margin-bottom: 2px;
}

.mini-armory-spec {
    font-size: 11px;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-armory-spec img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.mini-armory-ilvl {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.mini-armory-ilvl span {
    color: #ffd700;
    font-weight: bold;
}

.mini-armory-full-link {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10px;
    color: #c9a34c;
    text-decoration: none;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mini-armory-full-link:hover {
    background: rgba(201, 163, 76, 0.2);
    color: #ffd700;
}

.mini-armory-gear {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-armory-left-slots,
.mini-armory-right-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-armory-character-model {
    width: 120px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(50, 40, 30, 0.5) 0%, transparent 70%);
    border-radius: 8px;
    overflow: hidden;
}

.character-model-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #4a3c2a;
    box-shadow: 0 0 20px rgba(201, 163, 76, 0.2);
}

.mini-armory-slot {
    width: 36px;
    height: 36px;
    background: rgba(30, 24, 18, 0.8);
    border: 1px solid #3d3225;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mini-armory-slot:hover {
    border-color: #c9a34c;
    box-shadow: 0 0 8px rgba(201, 163, 76, 0.4);
    transform: scale(1.05);
}

.mini-armory-slot.has-item {
    background: rgba(40, 32, 24, 0.9);
}

.mini-armory-slot.q0 { border-color: #9d9d9d; }
.mini-armory-slot.q1 { border-color: #ffffff; }
.mini-armory-slot.q2 { border-color: #1eff00; }
.mini-armory-slot.q3 { border-color: #0070dd; }
.mini-armory-slot.q4 { border-color: #a335ee; }
.mini-armory-slot.q5 { border-color: #ff8000; }
.mini-armory-slot.q6 { border-color: #e6cc80; }
.mini-armory-slot.q7 { border-color: #00ccff; }

.mini-armory-slot img {
    width: 32px;
    height: 32px;
    border-radius: 3px;
}

.mini-armory-slot a {
    display: block;
    line-height: 0;
}

.empty-slot {
    width: 24px;
    height: 24px;
    opacity: 0.3;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.empty-slot.head-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M12 2C9 2 6 4.5 6 8v3c0 1 .5 2 1.5 2.5V17c0 2 2 3 4.5 3s4.5-1 4.5-3v-3.5c1-.5 1.5-1.5 1.5-2.5V8c0-3.5-3-6-6-6z"/></svg>'); }
.empty-slot.neck-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><circle cx="12" cy="12" r="6" stroke="%236b5b4a" stroke-width="2" fill="none"/><circle cx="12" cy="18" r="2"/></svg>'); }
.empty-slot.shoulders-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M4 10c0-2 2-4 4-4h8c2 0 4 2 4 4v4H4v-4z"/></svg>'); }
.empty-slot.back-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M8 4h8v16l-4-3-4 3V4z"/></svg>'); }
.empty-slot.chest-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M6 6h12v12H6z"/></svg>'); }
.empty-slot.body-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M8 4h8l2 6v10H6V10l2-6z"/></svg>'); }
.empty-slot.tabard-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M8 4h8v16H8z"/><path d="M6 4h2v4H6zM16 4h2v4h-2z"/></svg>'); }
.empty-slot.wrists-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><rect x="6" y="8" width="12" height="8" rx="2"/></svg>'); }
.empty-slot.hands-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M8 12v-2c0-1 1-2 2-2h4c1 0 2 1 2 2v2l2 6H6l2-6z"/></svg>'); }
.empty-slot.waist-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><rect x="4" y="10" width="16" height="4" rx="1"/></svg>'); }
.empty-slot.legs-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M8 4h3v16H8zM13 4h3v16h-3z"/></svg>'); }
.empty-slot.feet-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M6 12h4v6H4v-4l2-2zM14 12h4l2 2v4h-6v-6z"/></svg>'); }
.empty-slot.finger-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><circle cx="12" cy="12" r="5" stroke="%236b5b4a" stroke-width="3" fill="none"/></svg>'); }
.empty-slot.trinket-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M12 2l3 6h6l-5 4 2 7-6-4-6 4 2-7-5-4h6z"/></svg>'); }
.empty-slot.mainhand-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M6 18L18 6l-2-2-14 14h4z"/></svg>'); }
.empty-slot.offhand-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><circle cx="12" cy="12" r="8" stroke="%236b5b4a" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="3"/></svg>'); }
.empty-slot.ranged-slot { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%236b5b4a"><path d="M4 4c8 0 16 8 16 16M4 4v6M4 4h6"/></svg>'); }

.mini-armory-weapons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(201, 163, 76, 0.2);
}

.mini-armory-realm {
    text-align: center;
    font-size: 10px;
    color: #6b5b4a;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 163, 76, 0.1);
}

.color-c1 { color: #C79C6E; }
.color-c2 { color: #F58CBA; }
.color-c3 { color: #ABD473; }
.color-c4 { color: #FFF569; }
.color-c5 { color: #FFFFFF; }
.color-c6 { color: #C41F3B; }
.color-c7 { color: #0070DE; }
.color-c8 { color: #69CCF0; }
.color-c9 { color: #9482C9; }
.color-c10 { color: #00FF96; }
.color-c11 { color: #FF7D0A; }
.color-c12 { color: #A330C9; }

#mini-armory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

#mini-armory-modal.active {
    display: flex;
}

#mini-armory-modal-content {
    position: relative;
    animation: miniArmoryFadeIn 0.3s ease;
}

#mini-armory-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #c9a34c;
    border: none;
    border-radius: 50%;
    color: #1a1512;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

#mini-armory-close:hover {
    background: #ffd700;
    transform: scale(1.1);
}

@keyframes miniArmoryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mini-armory-loading {
    text-align: center;
    padding: 40px;
    color: #9e8b6e;
}

.mini-armory-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #c9a34c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mini_armory_spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes mini_armory_spin {
    to { transform: rotate(360deg); }
}
