.armory-app {
    --bg: #0d1016;
    --card: rgba(24, 28, 37, 0.92);
    --card-hover: rgba(34, 39, 51, 0.95);
    --card-border: rgba(255, 255, 255, 0.07);
    --input: #161a23;
    --text: #e8e8e8;
    --muted: #8d95a3;
    --border: #2a303c;
    --accent: #f8b700;
    --accent-hover: #ffc933;
    --link: #6cb4ff;
    --alliance: #3a7bfd;
    --horde: #d8352a;
    --radius: 8px;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.armory-app * {
    box-sizing: border-box;
}

.armory-app [hidden] {
    display: none !important;
}

.armory-app {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.92)) fixed,
        url('/assets/images/bg.jpg') center / cover no-repeat fixed,
        radial-gradient(ellipse at top, #1d2433 0%, var(--bg) 60%) fixed;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.armory-app a {
    color: var(--link);
    text-decoration: none;
}

.armory-app a:hover {
    filter: brightness(1.25);
}

.armory-app input,
.armory-app select,
.armory-app button {
    font: inherit;
    color: var(--text);
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.armory-app button {
    cursor: pointer;
}

.armory-app button:disabled {
    opacity: 0.4;
    cursor: default;
}

.armory-app .class-1 { color: #c69b6d; }
.armory-app .class-2 { color: #f48cba; }
.armory-app .class-3 { color: #aad372; }
.armory-app .class-4 { color: #fff468; }
.armory-app .class-5 { color: #ffffff; }
.armory-app .class-6 { color: #c41e3a; }
.armory-app .class-7 { color: #0070dd; }
.armory-app .class-8 { color: #3fc7eb; }
.armory-app .class-9 { color: #8788ee; }
.armory-app .class-11 { color: #ff7c0a; }

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

.armory-app .header,
.armory-app .tabs,
.armory-app .content {
    width: 100%;
    max-width: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.armory-app h1 {
    margin: 10px 0;
}

.tabs {
    display: flex;
    gap: 4px;
    margin: 5px 0 15px;
    border-bottom: 2px solid var(--border);
}

.tab {
    padding: 10px 16px;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: bold;
}

.toolbar {
    margin-bottom: 10px;
}

.muted {
    color: var(--muted);
}

.status {
    color: var(--muted);
    min-height: 1.2em;
}

.status.error {
    color: var(--horde);
}

.search-form {
    margin: 10px 0 20px;
}

.search-row {
    display: flex;
}

.search-row input {
    flex: 1;
    padding: 11px 12px;
    font-size: 16px;
    border-radius: var(--radius) 0 0 var(--radius);
}

.search-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-row button {
    padding: 10px 20px;
    border: none;
    background: var(--accent);
    color: #1a1a1a;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.search-row button:hover {
    background: var(--accent-hover);
}

.inline-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
}

.inline-label select {
    padding: 5px;
}

.filters {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.filters summary {
    cursor: pointer;
    color: var(--accent);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 10px;
}

.filters-grid label,
.level-range {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}

.filters-grid select,
.level-range input {
    padding: 6px;
}

.level-range div {
    display: flex;
    gap: 6px;
}

.level-range input {
    width: 50%;
}

.filters-grid .checkbox {
    flex-direction: row;
    align-items: center;
    color: var(--text);
}

.reset-filters,
.back-button,
.pagination button {
    padding: 6px 14px;
}

.back-button {
    margin-bottom: 10px;
}

.character-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.character {
    margin: 8px 0;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.character-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: inherit;
}

.character-item:hover,
.character-item:focus-visible {
    background: var(--card-hover);
    filter: none;
}

.faction-alliance {
    border-left-color: var(--alliance);
}

.faction-horde {
    border-left-color: var(--horde);
}

.character-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.character-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.character-name {
    flex-shrink: 0;
}

.row-rank {
    flex-shrink: 0;
    align-self: center;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: #ffeb80;
    background: rgba(255, 235, 128, 0.1);
    border: 1px solid rgba(255, 235, 128, 0.35);
    border-radius: 999px;
}

.character-name {
    font-weight: bold;
}

.character-meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gear-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.gear-icon {
    width: 20px;
    height: 20px;
    background: #2a2f3a center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.gear-icon.empty {
    opacity: 0.35;
}

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

.row-seen {
    font-size: 11px;
    text-align: right;
    color: var(--muted);
    white-space: nowrap;
}

.row-seen.is-online {
    color: #86efac;
}

.character-level {
    min-width: 52px;
    text-align: right;
    white-space: nowrap;
}

.row-side,
.row-level__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.row-level {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.row-level__main {
    gap: 8px;
}

.character-extra {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.rank {
    min-width: 32px;
    color: var(--accent);
    font-weight: bold;
}

.icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555c69;
}

.online-dot.is-online {
    background: #2ecc40;
    box-shadow: 0 0 6px #2ecc40;
}

.badge-ilvl {
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.guild-card {
    padding: 15px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
}

.guild-card h2 {
    margin: 0;
}

.guild-card .stats {
    margin: 10px 0 0;
}

.team {
    margin: 10px 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.team-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.team-rating {
    font-weight: bold;
    color: var(--accent);
}

.member-list {
    margin-top: 6px;
}

.arena {
    list-style: none;
    padding: 0;
}

.arena li {
    margin: 6px 0;
}

.bar-label {
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 3px;
}

.bar {
    position: relative;
    height: 20px;
    background: #222833;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
}

.bar-text {
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 20px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.bar-health .bar-fill { background: #2e9e2e; }
.bar-mana .bar-fill { background: #1f5fd1; }
.bar-rage .bar-fill { background: #c41e1e; }
.bar-energy .bar-fill { background: #d4b200; }
.bar-runic_power .bar-fill { background: #00a8d6; }
.bar-xp .bar-fill { background: #8a3fd1; }
.bar-profession .bar-fill { background: #8c6d3f; }

.stats {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 15px;
    margin: 20px 0;
}

.stats dt {
    color: var(--muted);
}

.stats dd {
    margin: 0;
}

.equipment {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.equipment li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.equipment li div {
    display: flex;
    flex-direction: column;
}

.equipment .muted {
    font-size: 12px;
}

.item-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

body.armory-layout {
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .72), rgba(15, 23, 42, .94)),
        url('/assets/images/bg.jpg') center / cover no-repeat fixed,
        linear-gradient(135deg, #0f172a, #1f2937) fixed;
}

body.armory-layout .armory-app {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 28px 0 36px;
    background: none;
}

.armory-app.armory-character-page {
    display: block;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    background: none;
}

.topbar {
    background: transparent;
    border: 0;
}

.topbar__inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color .18s ease;
}

.back-link:hover {
    color: var(--accent-hover);
    filter: none;
}

.site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    background: #ffeb80;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 235, 128, 0.25);
}

.site-link:hover {
    color: #111;
    background: #fff3b0;
    filter: none;
}

.armory-hero {
    min-height: calc(100vh - 50px);
}

.armory {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 24px;
    display: flex;
    flex-direction: column;
}

.armory-status {
    text-align: center;
    padding: 60px 0;
}

.character-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.character-info .info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.faction {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 20px 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    flex-shrink: 0;
}

.faction img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.faction:has(img) i {
    visibility: hidden;
}

.faction-alliance.faction { color: #3a7bfd; }
.faction-horde.faction { color: #c8102e; }

.name-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.name-meta-row .name {
    margin-right: 10px;
    font-size: 35px;
    font-weight: 700;
    line-height: 46px;
    color: #ffd700;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.meta-pill {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.meta-pill i {
    margin-right: 3px;
    color: #ffeb80;
}

.extra {
    font-size: 22px;
}

.extra > * {
    margin: 0 3px;
}

.extra > *:first-child {
    margin-left: 0;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 12px;
    font-size: 15px;
    font-weight: 700;
    vertical-align: middle;
    color: #ffeb80;
    background: rgba(255, 235, 128, 0.1);
    border: 1px solid rgba(255, 235, 128, 0.35);
    border-radius: 999px;
}

.name-meta-row .rank-badge {
    margin-right: 10px;
}

.rank-badge.is-empty,
.row-rank.is-empty {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.3);
}

.extra-small {
    font-size: 15px;
}

.color-gold {
    color: #ffd700;
}

.bold {
    font-weight: 700;
}

.char-social {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.character-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12.6px;
    font-weight: 600;
    color: #fefefe;
    background: transparent;
    border: 1px solid rgba(248, 249, 250, 0.6);
    border-radius: 6px;
}

.character-action-btn:hover {
    color: #111;
    background: #f8f9fa;
    text-decoration: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.status-badge.is-online {
    color: #86efac;
    border-color: rgba(46, 204, 64, 0.5);
}

.armory-tabs {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.armory-tabs ul {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.armory-tabs li {
    min-width: 110px;
    padding: 8px 18px;
    font-size: 14px;
    text-align: center;
    color: #e6e9ef;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.armory-tabs li:hover {
    background: rgba(255, 255, 255, 0.14);
}

.armory-tabs li.active {
    font-weight: 700;
    color: #111;
    background: #ffeb80;
    box-shadow: 0 8px 18px rgba(255, 235, 128, 0.35);
}

.last-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 6px;
    margin: 6px auto 14px;
    font-size: 12px;
    color: #a7a7a7;
}

.last-updated__sep {
    opacity: .6;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #f8b700;
    font-size: 13px;
    cursor: pointer;
}

.refresh-button:hover {
    background: rgba(248, 183, 0, .12);
}

.refresh-button:disabled {
    cursor: default;
}

.refresh-button.is-loading i {
    animation: refresh-spin .8s linear infinite;
}

@keyframes refresh-spin {
    to { transform: rotate(360deg); }
}

.inventory-vertical {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.inventory-left,
.inventory-right {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inventory-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inventory-weapons {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inventory-slot {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.inventory-slot.data-left {
    flex-direction: row-reverse;
    text-align: right;
}

.item-icon-link {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.item-icon {
    display: block;
    width: 48px;
    height: 48px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

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

.item-ilvl-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 2px 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #ffeb80;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.item-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    margin-left: 12px;
    font-size: 15px;
    color: #e3e7ef;
}

.inventory-slot.data-left .item-data {
    margin-left: 0;
    margin-right: 12px;
}

.item-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.item-name:hover {
    text-decoration: none;
    filter: brightness(1.2);
}

.item-info {
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-enchant {
    font-size: 12px;
    color: #9ee6b9;
}

.item-slot-name {
    font-size: 12px;
    color: #94a3b8;
}

.inventory-slot.empty {
    opacity: 0.5;
}

.inventory-slot.empty .item-name {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.portrait {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.portrait__race {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35) center / cover no-repeat;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portrait.faction-alliance .portrait__race {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

.portrait.faction-horde .portrait__race {
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.35);
}

.portrait__class {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0f172a center / cover no-repeat;
    border: 3px solid currentColor;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.portrait__caption {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.sections {
    padding: 30px 20px;
    background: rgba(12, 16, 24, 0.42);
    border-radius: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.stat-pane {
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.stat-pane--wide {
    margin-top: 16px;
}

.stat-pane--wide .bar-label {
    margin-top: 0;
}

.stat-pane__title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffeb80;
}

.stat-pane__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stat-pane__list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-pane__list li:last-child {
    border-bottom: none;
}

.stat-pane__list li span:first-child {
    color: #94a3b8;
}

.stat-pane__list li span:last-child {
    font-weight: 600;
}

.stats-note {
    margin: 16px 0 0;
    text-align: center;
}

.pvp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.pvp-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.pvp-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #facc15;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.pvp-card__icon img {
    width: 100%;
    height: 100%;
}

.pvp-card__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.pvp-card__value {
    margin: 2px 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.pvp-card__value small {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
}

.pvp-card__meta {
    font-size: 12px;
    color: #a7a7a7;
}

.profession-card__body {
    flex: 1;
    min-width: 0;
}

.profession-bar {
    height: 6px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.profession-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #facc15, #ffeb80);
}

@media (max-width: 1100px) {
    .inventory-vertical {
        flex-wrap: wrap;
    }

    .inventory-left,
    .inventory-right {
        width: auto;
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .inventory-center {
        order: 3;
        flex-basis: 100%;
    }

    .portrait {
        display: none;
    }

    .inventory-weapons {
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .inventory-weapons .inventory-slot {
        flex: 1 1 260px;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .armory-app {
        padding: 12px;
    }

    .armory-app h1 {
        font-size: 24px;
    }

    .header {
        flex-wrap: nowrap;
    }

    .site-link {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 13px;
    }

    .tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab {
        flex-shrink: 0;
        padding: 10px 12px;
    }

    .inline-label {
        display: flex;
    }

    .inline-label select {
        flex: 1;
        min-width: 0;
    }

    .row-seen,
    .gear-strip {
        display: none;
    }

    .character-item {
        gap: 8px;
        padding: 10px;
    }

    .character-item .icon {
        width: 24px;
        height: 24px;
    }

    .rank {
        min-width: 0;
    }

    .character-line {
        flex-wrap: wrap;
        row-gap: 3px;
    }

    .character-name {
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .character-meta {
        flex-basis: 100%;
    }

    .row-side {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .row-level__main {
        gap: 6px;
    }

    .character-level {
        min-width: 0;
    }

    .character-extra {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
    }

    .pagination {
        gap: 8px;
        font-size: 14px;
    }

    .armory {
        padding-top: 20px;
    }

    .inventory-vertical {
        flex-direction: column;
        gap: 8px;
    }

    .inventory-weapons {
        gap: 8px;
    }

    .inventory-left,
    .inventory-right {
        flex: none;
    }

    .inventory-slot.data-left {
        flex-direction: row;
        text-align: left;
    }

    .inventory-slot.data-left .item-data {
        margin-left: 12px;
        margin-right: 0;
    }

    .topbar__inner {
        padding: 10px 12px;
    }

    .armory {
        padding-left: 12px;
        padding-right: 12px;
    }

    .character-info .info {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .faction {
        width: 34px;
        height: 34px;
        margin: 6px 12px 0 0;
        font-size: 28px;
    }

    .character-info .details {
        min-width: 0;
    }

    .character-info .actions {
        display: none;
    }

    .name-meta-row .name {
        font-size: 26px;
        line-height: 38px;
        overflow-wrap: anywhere;
    }

    .name-meta-row .rank-badge {
        font-size: 13px;
    }

    .pill-row {
        width: 100%;
    }

    .extra {
        font-size: 17px;
    }

    .extra-small {
        font-size: 14px;
    }

    .armory-tabs ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .armory-tabs li {
        min-width: 0;
        padding: 8px 6px;
        font-size: 13px;
    }

    .inventory-slot {
        min-height: 58px;
    }

    .item-name {
        font-size: 15px;
    }

    .sections {
        padding: 14px 10px;
        border-radius: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pvp-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pvp-card {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        min-width: 0;
    }

    .pvp-card__icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 10px;
    }

    .pvp-card > div:last-child {
        min-width: 0;
        width: 100%;
    }

    .pvp-card__label {
        font-size: 11px;
    }

    .pvp-card__value {
        font-size: 19px;
    }
}
