/* === ARMORY PAGE - MODERN DESIGN === */
.armory-page {
    min-height: calc(100vh - 150px);
    padding: 30px 20px 60px;
    position: relative;
    overflow: hidden;
}

.armory-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(74, 163, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.armory-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.armory-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #7a8aa5;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.armory-back-btn:hover {
    background: rgba(74, 163, 255, 0.15);
    border-color: rgba(74, 163, 255, 0.3);
    color: #60a5fa;
    transform: translateX(-5px);
}

.armory-back-btn i {
    font-size: 1.1rem;
}

/* Main Container */
.armory-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Character Header Card */
.armory-character-card {
    background: rgba(15, 20, 35, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.armory-character-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.armory-portrait-wrapper {
    position: relative;
    flex-shrink: 0;
}

.armory-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4aa3ff;
    box-shadow: 0 0 30px rgba(74, 163, 255, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(74, 163, 255, 0.2), rgba(31, 111, 214, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.armory-portrait img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.armory-online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #50c878, #3da35d);
    border-radius: 50%;
    border: 3px solid rgba(15, 20, 35, 0.9);
    box-shadow: 0 0 12px rgba(80, 200, 120, 0.6);
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 12px rgba(80, 200, 120, 0.6); }
    50% { box-shadow: 0 0 20px rgba(80, 200, 120, 0.9); }
}

.armory-character-info {
    flex: 1;
}

.armory-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #ffffff, #4aa3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(74, 163, 255, 0.3);
}

.armory-level-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(74, 163, 255, 0.25), rgba(31, 111, 214, 0.25));
    border: 1px solid rgba(74, 163, 255, 0.4);
    border-radius: 20px;
    color: #7bb4ff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.armory-identity-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.armory-identity-badges .armory-level-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 0;
}

.armory-details-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.armory-class-race {
    display: flex;
    align-items: center;
    gap: 10px;
}

.armory-class-race img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.armory-class-race span {
    color: #cfeaff;
    font-weight: 500;
    font-size: 1.05rem;
}

.armory-faction-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.armory-faction-badge.alliance {
    background: linear-gradient(135deg, rgba(69, 120, 196, 0.3), rgba(45, 90, 160, 0.3));
    color: #6ba3e0;
    border: 1px solid rgba(69, 120, 196, 0.5);
}

.armory-faction-badge.horde {
    background: linear-gradient(135deg, rgba(163, 51, 51, 0.3), rgba(130, 40, 40, 0.3));
    color: #e06b6b;
    border: 1px solid rgba(163, 51, 51, 0.5);
}

.armory-guild-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(125, 175, 255, 0.18);
    background: rgba(255,255,255,0.045);
    color: #d7e6ff;
    font-size: 0.78rem;
    font-weight: 900;
}

.armory-guild-badge i {
    color: #7bb4ff;
}

.armory-money-display {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.armory-money-display .money-gold {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.1rem;
}

.armory-money-display .money-silver {
    color: #c0c0c0;
    font-weight: 600;
}

.armory-money-display .money-copper {
    color: #b87333;
    font-weight: 600;
}

.armory-played-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(74, 163, 255, 0.2);
    color: #9fb3d1;
    font-size: 0.9rem;
}

.armory-played-display i {
    color: #4aa3ff;
}

.armory-played-display span {
    font-weight: 500;
}

/* Equipment Section */
.armory-equipment-card {
    background: rgba(15, 20, 35, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.armory-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d4e4ff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.armory-section-title i {
    color: #60a5fa;
    font-size: 1.3rem;
}

/* Paper Doll Grid */
.armory-paperdoll {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}

.armory-gear-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.armory-gear-column.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.armory-gear-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Gear Slots */
.armory-slot {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 25, 40, 0.6));
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.armory-slot:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(74, 163, 255, 0.3), inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.armory-slot.empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.05);
    opacity: 0.5;
}

.armory-slot.empty i {
    color: rgba(215, 230, 255, 0.22);
    font-size: 1.15rem;
}

.armory-slot.empty:hover {
    transform: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.armory-slot-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    position: absolute;
    bottom: 4px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

/* Quality Colors */
.armory-slot.q0 { border-color: rgba(157, 157, 157, 0.4); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(157, 157, 157, 0.1); }
.armory-slot.q1 { border-color: rgba(255, 255, 255, 0.3); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.1); }
.armory-slot.q2 { border-color: rgba(30, 255, 0, 0.5); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(30, 255, 0, 0.2); }
.armory-slot.q3 { border-color: rgba(0, 112, 221, 0.6); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 112, 221, 0.3); }
.armory-slot.q4 { border-color: rgba(163, 53, 238, 0.6); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(163, 53, 238, 0.3); }
.armory-slot.q5 { border-color: rgba(255, 128, 0, 0.6); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 128, 0, 0.3); }
.armory-slot.q6 { border-color: rgba(230, 204, 128, 0.6); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(230, 204, 128, 0.3); }

.armory-slot.has-item {
    border-color: color-mix(in srgb, var(--quality-color, #ffffff) 62%, transparent);
}

.armory-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.armory-slot:hover .armory-item-icon {
    transform: scale(1.05);
}

/* Character Avatar in Center */
.armory-char-avatar {
    text-align: center;
}

.armory-char-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(74, 163, 255, 0.5);
    box-shadow: 0 0 25px rgba(74, 163, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.armory-char-name-mini {
    color: #9fb3d1;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tooltip */
#armory-tooltip {
    position: absolute;
    display: none;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(5, 10, 20, 0.98), rgba(15, 25, 45, 0.98));
    border: 1px solid rgba(74, 163, 255, 0.4);
    border-radius: 12px;
    padding: 11px 12px;
    color: white;
    min-width: 235px;
    max-width: 305px;
    max-height: calc(100vh - 28px);
    overflow: auto;
    font-size: 0.8rem;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(74, 163, 255, 0.1);
    line-height: 1.32;
    backdrop-filter: blur(10px);
}

#armory-tooltip .tt-name {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#armory-tooltip .tt-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#armory-tooltip .tt-stat,
#armory-tooltip .tt-armor,
#armory-tooltip .tt-dmg,
#armory-tooltip .tt-speed,
#armory-tooltip .tt-ilvl,
#armory-tooltip .tt-bonding,
#armory-tooltip .tt-slot,
#armory-tooltip .tt-req,
#armory-tooltip .tt-enchant,
#armory-tooltip .tt-gem,
#armory-tooltip .tt-gem-stat,
#armory-tooltip .tt-socket,
#armory-tooltip .tt-socket-bonus,
#armory-tooltip .tt-durability,
#armory-tooltip .tt-sell {
    color: #9fb3d1;
    font-size: 0.8rem;
}

#armory-tooltip .tt-heroic {
    color: #1eff00;
    font-weight: 800;
}

#armory-tooltip .tt-enchant {
    color: #1eff00;
}

#armory-tooltip .tt-gem {
    margin-top: 0.12rem;
    color: #9fd0ff;
}

#armory-tooltip .tt-gem-stat {
    color: #9fd0ff;
    padding-left: 0.45rem;
}

#armory-tooltip .tt-gem-effect {
    color: #8bd4ff;
}

#armory-tooltip .tt-socket {
    color: #9fd0ff;
}

#armory-tooltip .tt-durability,
#armory-tooltip .tt-sell {
    margin-top: 0.2rem;
}

#armory-tooltip .tt-durability strong {
    color: #f4f8ff;
    font-weight: 900;
}

#armory-tooltip .tt-sell strong {
    color: #ffd76a;
    font-weight: 900;
}

#armory-tooltip .tt-sell .money-gold {
    color: #ffd76a;
}

#armory-tooltip .tt-sell .money-silver {
    color: #d9e1ee;
}

#armory-tooltip .tt-sell .money-copper {
    color: #d58b52;
}

#armory-tooltip .tt-flavor {
    color: #ffd100;
    font-style: italic;
    margin-top: 8px;
    font-size: 0.8rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 800px) {
    .armory-character-header {
        flex-direction: column;
        text-align: center;
    }

    .armory-money-display {
        margin-left: 0;
        justify-content: center;
    }

    .armory-details-row {
        justify-content: center;
    }

    .armory-paperdoll {
        grid-template-columns: 70px 1fr 70px;
        gap: 15px;
    }

    .armory-slot {
        width: 60px;
        height: 60px;
    }

    .armory-item-icon {
        width: 50px;
        height: 50px;
    }
}

/* Modern polish */
.armory-page {
    min-height: calc(100vh - 200px);
    padding: 42px 20px 70px;
}

.armory-page::before {
    top: -120px;
    left: 22%;
    transform: none;
    width: 900px;
    height: 620px;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(74, 163, 255, 0.11) 0%, transparent 48%),
        radial-gradient(ellipse at 82% 36%, rgba(16, 185, 129, 0.055) 0%, transparent 42%);
}

.armory-page::after {
    content: '';
    position: absolute;
    right: -180px;
    bottom: 7%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(125, 175, 255, 0.055), transparent 62%);
    pointer-events: none;
}

.armory-container {
    max-width: 1120px;
}

.armory-back-btn {
    padding: 10px 16px;
    background: rgba(10, 15, 25, 0.48);
    border-color: rgba(125, 175, 255, 0.12);
    border-radius: 999px;
    color: #9fb2ce;
    backdrop-filter: blur(12px) saturate(125%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    margin-bottom: 0;
}

.armory-character-card,
.armory-equipment-card {
    background:
        radial-gradient(ellipse at 18% 0%, rgba(74, 163, 255, 0.10) 0%, transparent 42%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.60), rgba(7, 12, 22, 0.52));
    backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(125, 175, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.24);
    overflow: hidden;
}

.armory-character-card::before,
.armory-equipment-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 175, 255, 0.42), transparent);
}

.armory-character-card {
    padding: 30px;
}

.armory-directory-hero,
.armory-directory-filters,
.armory-directory-list {
    border: 1px solid rgba(74, 163, 255, 0.18);
    background: linear-gradient(135deg, rgba(15, 45, 70, 0.72), rgba(5, 14, 28, 0.82));
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.armory-directory-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-bottom: 18px;
}

.armory-directory-hero h1 {
    margin: 10px 0 8px;
    color: #f4f8ff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
}

.armory-directory-hero p {
    max-width: 760px;
    margin: 0;
    color: #bdd0ed;
    line-height: 1.7;
}

.armory-directory-count {
    min-width: 132px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(125, 175, 255, 0.24);
    background: rgba(8, 14, 25, 0.64);
    text-align: center;
}

.armory-directory-count strong,
.armory-directory-count span {
    display: block;
}

.armory-directory-count strong {
    color: #f4f8ff;
    font-size: 2rem;
    font-weight: 900;
}

.armory-directory-count span {
    color: #8fa5c4;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.armory-directory-filters {
    display: grid;
    grid-template-columns: minmax(300px, 2fr) repeat(2, minmax(140px, 1fr)) repeat(2, minmax(86px, 0.6fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 18px;
}

.armory-directory-filters label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.armory-directory-filters span {
    color: #8fa5c4;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.armory-directory-filters input,
.armory-directory-filters select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid rgba(125, 175, 255, 0.18);
    border-radius: 12px;
    background: rgba(5, 13, 24, 0.72);
    color: #f4f8ff;
    padding: 0 13px;
    font-weight: 800;
}

.armory-directory-filters select option {
    background: #081827;
    color: #f4f8ff;
}

.armory-directory-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.armory-directory-actions button,
.armory-directory-actions a {
    min-width: 104px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    padding: 0 15px;
    font-weight: 900;
    text-decoration: none;
}

.armory-directory-actions button {
    border: 0;
    background: linear-gradient(135deg, #4aa3ff, #2d6df6);
    color: #fff;
}

.armory-directory-actions a {
    border: 1px solid rgba(125, 175, 255, 0.18);
    color: #bdd0ed;
    background: rgba(255,255,255,0.045);
}

.armory-directory-actions a[hidden] {
    display: none;
}

.armory-directory-filters.is-loading,
.armory-directory-list.is-loading,
.armory-directory-pagination.is-loading {
    opacity: 0.72;
}

.armory-directory-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.armory-directory-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto auto 24px;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid rgba(125, 175, 255, 0.14);
    border-radius: 14px;
    background: rgba(8, 14, 25, 0.58);
    color: #d9e8ff;
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.armory-directory-row:hover {
    border-color: rgba(74, 163, 255, 0.42);
    background: rgba(19, 47, 74, 0.72);
    transform: translateY(-1px);
}

.armory-directory-row img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(125, 175, 255, 0.28);
}

.armory-directory-name {
    min-width: 0;
}

.armory-directory-name strong,
.armory-directory-name small {
    display: block;
}

.armory-directory-name strong {
    color: #f4f8ff;
    font-size: 1rem;
    font-weight: 900;
}

.armory-directory-name small {
    color: #8fa5c4;
    margin-top: 3px;
}

.armory-directory-meta,
.armory-directory-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #bdd0ed;
    background: rgba(255,255,255,0.055);
    font-size: 0.76rem;
    font-weight: 900;
}

.armory-directory-meta.alliance {
    color: #82b9ff;
}

.armory-directory-meta.horde {
    color: #ff7f7f;
}

.armory-directory-status.online {
    color: #82f0b9;
    background: rgba(49, 211, 142, 0.12);
}

.armory-directory-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.armory-directory-pagination a {
    min-width: 42px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid rgba(125, 175, 255, 0.22);
    background: rgba(8, 14, 25, 0.68);
    color: #bdd0ed;
    font-weight: 900;
    text-decoration: none;
}

.armory-directory-pagination a.active {
    color: #fff;
    background: linear-gradient(135deg, #4aa3ff, #2d6df6);
}

.armory-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.armory-card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7bb4ff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.armory-character-header {
    gap: 24px;
}

.armory-portrait {
    width: 116px;
    height: 116px;
    border: 1px solid rgba(125, 175, 255, 0.28);
    background:
        radial-gradient(circle at 50% 28%, rgba(125, 175, 255, 0.22), transparent 52%),
        linear-gradient(135deg, rgba(74, 163, 255, 0.14), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 34px rgba(0,0,0,0.28);
}

.armory-portrait img {
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.36));
}

.armory-online-badge {
    background: #34d399;
    border-color: rgba(7, 12, 22, 0.95);
}

.armory-name {
    color: #f4f8ff;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 12px;
    text-shadow: none;
}

.armory-level-badge,
.armory-faction-badge,
.armory-money-display,
.armory-played-display {
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.armory-level-badge {
    background: rgba(74, 163, 255, 0.10);
    border-color: rgba(125, 175, 255, 0.20);
    color: #9fd0ff;
    margin-bottom: 14px;
}

.armory-class-race {
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
}

.armory-char-avatar .armory-class-race {
    margin: 12px auto 0;
    width: fit-content;
}

.armory-class-race img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(125, 175, 255, 0.18);
}

.armory-class-race span {
    color: #d7e6ff;
    font-weight: 800;
    font-size: 0.94rem;
}

.armory-faction-badge {
    padding: 8px 13px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.armory-money-display,
.armory-played-display {
    align-self: auto;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.armory-played-display {
    color: #9fb2ce;
}

.armory-character-meta {
    display: grid;
    gap: 8px;
    min-width: 170px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.armory-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #8fa5c4;
    font-size: 0.82rem;
    font-weight: 800;
}

.armory-meta-row > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.armory-meta-row i {
    color: #7bb4ff;
}

.armory-meta-value {
    color: #d7e6ff;
    font-weight: 900;
    text-align: right;
}

.armory-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.armory-subnav button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(125, 175, 255, 0.18);
    background: rgba(8, 14, 25, 0.62);
    color: #bdd0ed;
    font-weight: 900;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.armory-subnav button:hover,
.armory-subnav button:focus-visible {
    border-color: rgba(125, 175, 255, 0.42);
    color: #f4f8ff;
    transform: translateY(-1px);
}

.armory-subnav button.active,
.armory-subnav button[aria-selected="true"] {
    border-color: rgba(74, 163, 255, 0.56);
    background: linear-gradient(135deg, rgba(74, 163, 255, 0.26), rgba(45, 109, 246, 0.22));
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(45, 109, 246, 0.18);
}

.armory-tab-panel {
    animation: armoryTabIn 0.18s ease;
}

.armory-tab-panel[hidden] {
    display: none;
}

@keyframes armoryTabIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.armory-equipment-card {
    padding: 28px;
}

.armory-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.armory-private-card,
.armory-owner-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(125, 175, 255, 0.16);
    background:
        radial-gradient(ellipse at 16% 0%, rgba(74, 163, 255, 0.10) 0%, transparent 42%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.62), rgba(7, 12, 22, 0.52));
    color: #d7e6ff;
}

.armory-private-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: #7bb4ff;
    background: rgba(74, 163, 255, 0.12);
    border: 1px solid rgba(125, 175, 255, 0.18);
    font-size: 1.35rem;
}

.armory-private-card h2 {
    margin: 0 0 5px;
    color: #f4f8ff;
    font-size: 1.2rem;
    font-weight: 900;
}

.armory-private-card p {
    margin: 0;
    color: #9fb3d1;
    line-height: 1.55;
}

.armory-owner-notice {
    color: #bfdbfe;
    font-weight: 900;
    margin-bottom: 18px;
}

.armory-detail-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(125, 175, 255, 0.14);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(74, 163, 255, 0.08) 0%, transparent 42%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.56), rgba(7, 12, 22, 0.48));
    box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

.armory-detail-card .armory-section-title {
    margin-bottom: 14px;
}

.armory-detail-card.full {
    grid-column: 1 / -1;
}

.armory-pill-list,
.armory-achievement-list {
    display: grid;
    gap: 10px;
}

.armory-data-pill,
.armory-achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 12px;
    color: #d7e6ff;
    background: rgba(8, 14, 25, 0.62);
    border: 1px solid rgba(125, 175, 255, 0.13);
    font-weight: 800;
}

.armory-achievement-item {
    justify-content: space-between;
}

.armory-achievement-item i {
    color: #fbbf24;
    flex: 0 0 auto;
}

.armory-achievement-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.armory-achievement-item small {
    color: #bdd0ed;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(125, 175, 255, 0.08);
    white-space: nowrap;
    font-weight: 900;
}

.armory-achievements-card {
    overflow: visible;
}

.armory-achievements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.armory-achievement-points {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.08);
    color: #c8d7ee;
    font-weight: 900;
}

.armory-achievement-points strong {
    color: #fbbf24;
    font-size: 1.12rem;
}

.armory-achievement-nav {
    display: grid;
    gap: 12px;
    padding: 16px 0 18px;
    border-top: 1px solid rgba(125, 175, 255, 0.12);
    border-bottom: 1px solid rgba(125, 175, 255, 0.12);
    margin-bottom: 20px;
}

.armory-achievement-main-nav,
.armory-achievement-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.armory-achievement-main-nav {
    justify-content: center;
}

.armory-achievement-subnav {
    justify-content: center;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(125, 175, 255, 0.12);
    background: rgba(8, 14, 25, 0.34);
}

.armory-achievement-subnav[hidden] {
    display: none;
}

.armory-achievement-nav button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid rgba(125, 175, 255, 0.2);
    background: rgba(8, 14, 25, 0.68);
    color: #c8d7ee;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.armory-achievement-nav button.sub {
    min-height: 34px;
    padding-inline: 12px;
    border-radius: 10px;
    color: #aebfda;
    background: rgba(8, 14, 25, 0.52);
}

.armory-achievement-nav button span {
    color: #7db7ff;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(74, 163, 255, 0.12);
}

.armory-achievement-nav button:hover,
.armory-achievement-nav button.active {
    color: #ffffff;
    border-color: rgba(74, 163, 255, 0.62);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(74, 163, 255, 0.24));
}

.armory-achievement-summary {
    display: grid;
    gap: 22px;
}

.armory-achievement-progress h3,
.armory-achievement-recent h3,
.armory-achievement-list-heading h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    color: #f7fbff;
    font-size: 1.08rem;
}

.armory-achievement-progress h3 i,
.armory-achievement-recent h3 i {
    color: #7db7ff;
}

.armory-achievement-progress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.armory-progress-row {
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(125, 175, 255, 0.14);
    background: rgba(8, 14, 25, 0.62);
}

.armory-progress-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: #dceaff;
    font-weight: 900;
}

.armory-progress-row span {
    color: #9fb3d1;
}

.armory-progress-track {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(125, 175, 255, 0.12);
}

.armory-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4aa3ff, #34d399);
}

.armory-achievement-recent-grid,
.armory-achievement-list.detailed {
    display: grid;
    gap: 12px;
}

.armory-achievement-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 15px;
    border: 1px solid rgba(125, 175, 255, 0.14);
    background: rgba(8, 14, 25, 0.66);
}

.armory-achievement-card.locked img {
    filter: grayscale(1);
}

.armory-achievement-card.locked .armory-achievement-icon-link,
.armory-achievement-card.locked > div,
.armory-achievement-card.locked .armory-achievement-reward {
    opacity: 0.58;
}

.armory-achievement-icon-link {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(125, 175, 255, 0.28);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.34);
}

.armory-achievement-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.armory-achievement-title {
    display: inline-block;
    max-width: 100%;
    color: #f7fbff;
    font-weight: 950;
    text-decoration: none;
}

.armory-achievement-title:hover {
    color: #7db7ff;
}

.armory-achievement-card p {
    margin: 4px 0 0;
    color: #c2d2ec;
    line-height: 1.45;
}

.armory-achievement-reward {
    min-width: 82px;
    text-align: right;
}

.armory-achievement-reward strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.armory-achievement-reward small {
    display: block;
    margin-top: 5px;
    color: #9fb3d1;
    font-weight: 900;
    white-space: nowrap;
}

.armory-achievement-tooltip {
    position: absolute;
    left: 74px;
    bottom: calc(100% - 6px);
    z-index: 30;
    display: none;
    width: min(360px, calc(100vw - 40px));
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(125, 175, 255, 0.36);
    background: rgba(7, 12, 22, 0.98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
    color: #d7e6ff;
    font-weight: 800;
    pointer-events: none;
}

.armory-achievement-card:hover .armory-achievement-tooltip,
.armory-achievement-card:focus-within .armory-achievement-tooltip {
    display: grid;
    gap: 8px;
}

.armory-achievement-tooltip strong {
    color: #fbbf24;
}

.armory-achievement-tooltip small {
    color: #7db7ff;
}

.armory-achievement-category-list[hidden],
.armory-achievement-summary[hidden],
.armory-achievement-card[hidden] {
    display: none;
}

.armory-achievement-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.armory-achievement-list-heading span {
    color: #9fb3d1;
    font-weight: 900;
}

.armory-empty-detail,
.armory-cache-note {
    color: #8fa5c4;
    font-weight: 800;
}

.armory-cache-note {
    width: max-content;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 175, 255, 0.16);
    background: rgba(8, 14, 25, 0.68);
    color: #d7e6ff;
    text-align: center;
    font-size: 0.82rem;
}

.armory-equipment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.armory-section-title {
    margin: 0;
    color: #f4f8ff;
    font-size: 1.22rem;
    font-weight: 900;
}

.armory-section-title i {
    color: #7bb4ff;
}

.armory-equipped-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #9fb2ce;
    font-size: 0.84rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.armory-equipped-count i {
    color: #7bb4ff;
}

.armory-paperdoll {
    max-width: 760px;
    grid-template-columns: 92px minmax(180px, 1fr) 92px;
    gap: 28px;
    padding: 8px 0 2px;
}

.armory-gear-column {
    gap: 20px;
}

.armory-gear-column.center {
    min-height: 520px;
    border: 1px solid rgba(125, 175, 255, 0.10);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(74, 163, 255, 0.13), transparent 46%),
        radial-gradient(ellipse at 50% 76%, rgba(255, 255, 255, 0.055), transparent 50%),
        rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.armory-slot {
    width: 72px;
    height: 72px;
    margin-bottom: 7px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(0,0,0,0.18)),
        rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.armory-slot:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 26px rgba(74, 163, 255, 0.20), inset 0 1px 0 rgba(255,255,255,0.08);
}

.armory-slot.empty {
    border-color: rgba(125, 175, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    opacity: 0.78;
}

.armory-slot.empty i {
    color: rgba(215, 230, 255, 0.28);
}

.armory-slot-label {
    color: rgba(215, 230, 255, 0.42);
    font-size: 0.58rem;
    font-weight: 800;
}

.armory-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.armory-char-avatar img {
    width: 110px;
    height: 110px;
    border: 1px solid rgba(125, 175, 255, 0.24);
    box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}

.armory-char-name-mini {
    color: #d7e6ff;
    font-size: 0.95rem;
    font-weight: 900;
}

.armory-char-avatar .armory-char-name-mini {
    display: none;
}

.armory-model-shell {
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
}

.armory-model-viewer {
    width: 100%;
    min-height: 390px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 28%, rgba(74, 163, 255, 0.18), transparent 48%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.045), transparent 42%),
        rgba(5, 13, 24, 0.42);
}

.armory-model-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 390px;
    position: relative;
    z-index: 2;
}

.armory-model-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.armory-model-ready .armory-model-fallback {
    opacity: 0;
    visibility: hidden;
}

.armory-model-fallback img {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 1px solid rgba(125, 175, 255, 0.24);
    box-shadow: 0 18px 34px rgba(0,0,0,0.28);
    background: rgba(0,0,0,0.22);
}

.armory-viewer-status {
    min-height: 18px;
    color: #8fa5c4;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.armory-viewer-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 2px;
}

.armory-viewer-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid rgba(125, 175, 255, 0.2);
    background: linear-gradient(180deg, rgba(32, 62, 91, 0.82), rgba(11, 23, 39, 0.88));
    color: #d9e8ff;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.18);
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.armory-viewer-controls input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.armory-viewer-controls label::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid rgba(180, 210, 255, 0.52);
    background: rgba(3, 10, 18, 0.55);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18);
}

.armory-viewer-controls label:hover {
    border-color: rgba(125, 175, 255, 0.48);
    transform: translateY(-1px);
}

.armory-viewer-controls label:has(input:checked) {
    border-color: rgba(49, 211, 142, 0.56);
    background: linear-gradient(180deg, rgba(21, 105, 82, 0.9), rgba(8, 42, 38, 0.9));
    color: #f1fff8;
}

.armory-viewer-controls label:has(input:checked)::before {
    border-color: #31d38e;
    background: #31d38e;
    box-shadow: inset 0 0 0 3px rgba(5, 25, 20, 0.55);
}

.armory-item-slot-name {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    color: #7f95b5;
    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.armory-slot.has-item:hover .armory-item-slot-name {
    opacity: 1;
}

.armory-glyph-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.armory-glyph-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(125, 175, 255, 0.13);
    background:
        radial-gradient(ellipse at 12% 0%, rgba(74, 163, 255, 0.10) 0%, transparent 45%),
        rgba(8, 14, 25, 0.62);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.armory-glyph-card:hover {
    border-color: rgba(74, 163, 255, 0.42);
    background:
        radial-gradient(ellipse at 12% 0%, rgba(74, 163, 255, 0.16) 0%, transparent 45%),
        rgba(14, 32, 54, 0.78);
    transform: translateY(-1px);
}

.armory-glyph-body {
    min-width: 0;
}

.armory-glyph-title-row {
    display: block;
    min-width: 0;
}

.armory-glyph-title-row span {
    display: block;
    color: #dcecff;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.armory-glyph-card:hover .armory-glyph-title-row span {
    color: #7bb4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.armory-glyph-tooltip {
    position: absolute;
    right: 10px;
    bottom: calc(100% + 10px);
    z-index: 35;
    width: max-content;
    max-width: 230px;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(125, 175, 255, 0.42);
    background: rgba(4, 10, 22, 0.96);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
    color: #d8e7ff;
    font-size: 0.78rem;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.armory-glyph-tooltip::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 100%;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(125, 175, 255, 0.42);
    border-bottom: 1px solid rgba(125, 175, 255, 0.42);
    background: rgba(4, 10, 22, 0.96);
    transform: translateY(-5px) rotate(45deg);
}

.armory-glyph-card:hover .armory-glyph-tooltip,
.armory-glyph-card:focus-visible .armory-glyph-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.armory-glyph-tooltip strong,
.armory-glyph-tooltip small {
    display: block;
}

.armory-glyph-tooltip strong {
    color: #fff;
    font-size: 0.86rem;
}

.armory-glyph-tooltip small {
    margin-top: 4px;
    color: #9fb3cf;
    font-weight: 700;
}

.armory-glyph-body p {
    margin: 5px 0 0;
    color: #9fb3d1;
    font-size: 0.82rem;
    line-height: 1.35;
}

.armory-glyph-grid.compact {
    grid-template-columns: 1fr;
}

.armory-talents-card {
    overflow: visible;
}

.armory-talents-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.armory-talents-header .armory-section-title {
    margin-bottom: 0;
}

.armory-spec-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.armory-spec-switch button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(125, 175, 255, 0.18);
    background: rgba(8, 14, 25, 0.62);
    color: #bdd0ed;
    font-weight: 900;
    cursor: pointer;
}

.armory-spec-switch button.active {
    color: #fff;
    border-color: rgba(74, 163, 255, 0.55);
    background: linear-gradient(135deg, rgba(74, 163, 255, 0.28), rgba(45, 109, 246, 0.22));
}

.armory-spec-switch span {
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7bb4ff;
    background: rgba(74, 163, 255, 0.12);
}

.armory-spec-panel[hidden] {
    display: none;
}

.armory-talents-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 18px;
    align-items: start;
    overflow: visible;
    scrollbar-width: none;
}

.armory-talent-trees {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    scrollbar-width: none;
}

.armory-talents-layout::-webkit-scrollbar,
.armory-talent-trees::-webkit-scrollbar {
    display: none;
}

.armory-talent-tree {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(125, 175, 255, 0.13);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(74, 163, 255, 0.10) 0%, transparent 48%),
        rgba(8, 14, 25, 0.58);
}

.armory-talent-tree-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #f4f8ff;
    font-weight: 900;
}

.armory-tree-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    border: 1px solid rgba(125, 175, 255, 0.22);
    background:
        linear-gradient(rgba(5, 13, 24, 0.1), rgba(5, 13, 24, 0.1)),
        var(--armory-icon) center / cover no-repeat,
        rgba(5, 13, 24, 0.78);
}

.armory-talent-tree-header strong {
    color: #7bb4ff;
}

.armory-talent-grid {
    display: grid;
    grid-template-columns: repeat(4, 38px);
    grid-auto-rows: 38px;
    justify-content: center;
    gap: 10px;
}

.armory-talent-node {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid rgba(125, 175, 255, 0.20);
    background: rgba(5, 13, 24, 0.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    text-decoration: none;
}

.armory-talent-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 30;
    width: max-content;
    max-width: 260px;
    min-width: 210px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(125, 175, 255, 0.42);
    background: rgba(4, 10, 22, 0.96);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
    color: #d8e7ff;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.armory-talent-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(125, 175, 255, 0.42);
    border-bottom: 1px solid rgba(125, 175, 255, 0.42);
    background: rgba(4, 10, 22, 0.96);
    transform: translate(-50%, -5px) rotate(45deg);
}

.armory-talent-node:hover .armory-talent-tooltip,
.armory-talent-node:focus-visible .armory-talent-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.armory-talent-tooltip-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #fff;
    font-size: 0.86rem;
}

.armory-talent-tooltip-title small {
    flex: 0 0 auto;
    color: #7bb4ff;
    font-size: 0.74rem;
    font-weight: 800;
}

.armory-talent-icon {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 8px;
    background:
        linear-gradient(rgba(5, 13, 24, 0.08), rgba(5, 13, 24, 0.08)),
        var(--armory-icon) center / cover no-repeat,
        rgba(5, 13, 24, 0.78);
}

.armory-talent-node.empty .armory-talent-icon {
    filter: grayscale(1);
    opacity: 0.34;
}

.armory-talent-node.partial {
    border-color: #34d399;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.22);
}

.armory-talent-node.full {
    border-color: #facc15;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.22);
}

.armory-talent-rank {
    position: absolute;
    right: -5px;
    bottom: -5px;
    min-width: 25px;
    padding: 2px 4px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.88);
    color: #facc15;
    border: 1px solid currentColor;
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
}

.armory-talent-node.partial .armory-talent-rank {
    color: #34d399;
}

.armory-talent-glyphs {
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(125, 175, 255, 0.13);
    background: rgba(8, 14, 25, 0.58);
    overflow: visible;
}

.armory-talent-glyphs h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #f4f8ff;
    font-size: 1.05rem;
    font-weight: 900;
}

.armory-data-pill {
    justify-content: space-between;
}

.armory-data-pill i {
    color: #7bb4ff;
    flex: 0 0 auto;
}

.armory-data-pill span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.armory-data-pill small {
    color: #8fa5c4;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.armory-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.armory-stat-grid div {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(125, 175, 255, 0.13);
    background: rgba(8, 14, 25, 0.62);
}

.armory-stat-grid span,
.armory-stat-grid strong {
    display: block;
}

.armory-stat-grid span {
    color: #8fa5c4;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.armory-stat-grid strong {
    color: #f4f8ff;
    font-size: 1.2rem;
    font-weight: 900;
}

#armory-tooltip {
    border-color: rgba(125, 175, 255, 0.24);
    border-radius: 14px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.72), 0 0 24px rgba(74, 163, 255, 0.12);
}

@media (max-width: 800px) {
    .armory-character-card,
    .armory-equipment-card {
        padding: 22px;
    }

    .armory-name {
        font-size: 1.85rem;
    }

    .armory-money-display,
    .armory-played-display {
        align-self: auto;
    }

    .armory-card-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .armory-character-meta {
        width: 100%;
    }

    .armory-subnav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .armory-subnav button {
        flex: 0 0 auto;
    }

    .armory-equipment-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .armory-details-grid {
        grid-template-columns: 1fr;
    }

    .armory-glyph-grid {
        grid-template-columns: 1fr;
    }

    .armory-talents-layout {
        grid-template-columns: 1fr;
    }

    .armory-talent-trees {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }

    .armory-paperdoll {
        grid-template-columns: 66px minmax(120px, 1fr) 66px;
        gap: 14px;
    }

    .armory-gear-column.center {
        min-height: 450px;
    }

    .armory-directory-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .armory-directory-filters {
        grid-template-columns: 1fr 1fr;
    }

    .armory-directory-actions {
        grid-column: 1 / -1;
    }

    .armory-directory-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .armory-achievements-header,
    .armory-achievement-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .armory-achievement-progress-grid {
        grid-template-columns: 1fr;
    }

    .armory-achievement-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .armory-achievement-reward {
        grid-column: 2;
        text-align: left;
    }

    .armory-directory-meta,
    .armory-directory-status,
    .armory-directory-row > .bi-arrow-right-short {
        display: none;
    }
}

@media (max-width: 560px) {
    .armory-page {
        padding: 26px 12px 46px;
    }

    .armory-paperdoll {
        grid-template-columns: 60px minmax(92px, 1fr) 60px;
        gap: 10px;
    }

    .armory-slot {
        width: 58px;
        height: 58px;
    }

    .armory-item-icon {
        width: 48px;
        height: 48px;
    }

    .armory-char-avatar img {
        width: 82px;
        height: 82px;
    }

    .armory-gear-bottom {
        gap: 10px;
    }

    .armory-talents-header,
    .armory-spec-switch,
    .armory-spec-switch button {
        width: 100%;
    }

    .armory-spec-switch button {
        justify-content: space-between;
    }

    .armory-directory-filters {
        grid-template-columns: 1fr;
    }

    .armory-directory-actions {
        flex-direction: column;
    }

    .armory-achievement-nav {
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .armory-achievement-main-nav,
    .armory-achievement-subnav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .armory-achievement-nav button {
        flex: 0 0 auto;
    }

    .armory-achievement-tooltip {
        left: 0;
    }
}
