/* Character armory — immersive glass profile */
.armory-profile-view {
    --armory-gold: #e7c784;
    --armory-gold-light: #f5dfa9;
    --armory-text: #f0eee8;
    --armory-muted: #aaa99f;
    --armory-border: rgba(255,255,255,.09);
    --armory-panel: rgba(15,16,14,.88);
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 112px 24px 96px;
    overflow: hidden;
    background: #090a09;
    color: var(--armory-text);
}
.armory-profile-backdrop {
    position: absolute;
    inset: 0 0 auto;
    z-index: -2;
    height: min(880px,78vh);
    background-position: center top;
    background-size: cover;
    filter: blur(3px) saturate(.72);
    transform: scale(1.02);
}
.armory-profile-view::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg,rgba(7,8,7,.42),rgba(7,8,7,.7) 42%,#090a09 78%),linear-gradient(90deg,rgba(7,8,7,.32),transparent 50%,rgba(7,8,7,.32));
}
.armory-profile-container { width: min(1500px,100%); margin: 0 auto; }
.armory-profile-view :is(a,button,input) { font: inherit; }
.armory-profile-view :is(a,button):focus-visible { outline: 2px solid var(--armory-gold); outline-offset: 3px; }
.armory-profile-view svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.armory-profile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 8px 10px 8px 18px;
    border: 1px solid var(--armory-border);
    border-radius: 15px;
    background: rgba(13,14,12,.84);
    box-shadow: 0 16px 50px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(20px);
}
.armory-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: #d9d6cc;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}
.armory-back-link:hover { color: var(--armory-gold-light); }
.armory-back-link svg { width: 18px; height: 18px; }
.armory-profile-search {
    display: flex;
    align-items: center;
    width: min(390px,100%);
    min-height: 46px;
    padding-left: 13px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}
.armory-profile-search > svg { flex: 0 0 auto; width: 17px; height: 17px; color: #8f9088; }
.armory-profile-search input {
    min-width: 0;
    flex: 1;
    height: 44px;
    padding: 0 11px;
    border: 0;
    outline: 0;
    color: var(--armory-text);
    background: transparent;
    font-size: 13px;
}
.armory-profile-search input::placeholder { color: #85867f; }
.armory-profile-search:focus-within { border-color: rgba(231,199,132,.58); box-shadow: 0 0 0 3px rgba(231,199,132,.08); }
.armory-profile-search button {
    align-self: stretch;
    min-width: 70px;
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    color: #181712;
    background: var(--armory-gold);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease;
}
.armory-profile-search button:hover { background: var(--armory-gold-light); }

.armory-profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 28px;
    border: 1px solid var(--armory-border);
    border-radius: 18px;
    background: linear-gradient(105deg,rgba(20,20,17,.94),rgba(14,15,13,.79));
    box-shadow: 0 18px 60px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.03);
    backdrop-filter: blur(22px);
}
.armory-profile-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.armory-profile-class-icon {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border: 2px solid rgba(231,199,132,.48);
    border-radius: 13px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(0,0,0,.4),0 0 24px rgba(231,199,132,.07);
}
.armory-profile-nameblock { min-width: 0; }
.armory-profile-title { margin-bottom: 4px; color: var(--armory-gold); font-size: 12px; }
.armory-profile-name-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.armory-profile-name-line h1 { margin: 0; font-size: clamp(27px,2.3vw,38px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.armory-profile-guild { color: #d8c59c; font-size: 13px; font-weight: 650; text-decoration: none; }
a.armory-profile-guild:hover { color: var(--armory-gold-light); }
.armory-profile-subline { margin: 8px 0 0; color: #b5b3aa; font-size: 13px; line-height: 1.5; }
.armory-profile-subline > span { margin: 0 4px; color: #676960; }
.armory-profile-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.armory-profile-kpi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 8px;
    color: #d8d5ca;
    background: rgba(255,255,255,.025);
    font-size: 12px;
}
.armory-profile-kpi small { color: #94958d; font-size: 11px; }
.armory-profile-kpi strong { color: var(--armory-gold-light); font-size: 13px; }
.armory-profile-kpi--spec { color: #e8ddc5; }
.armory-profile-kpi--spec img { width: 20px; height: 20px; border-radius: 4px; }
.armory-profile-times { display: flex; flex: 0 0 auto; gap: 34px; }
.armory-profile-times > div { display: grid; gap: 6px; text-align: right; }
.armory-profile-times span { color: #91928a; font-size: 11px; }
.armory-profile-times strong { color: #e4e0d5; font-size: 14px; font-weight: 650; white-space: nowrap; }

.armory-profile-tabs { display: flex; gap: 8px; margin: 18px 0 20px; }
.armory-profile-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #a7a79f;
    background: transparent;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: color .2s ease,background .2s ease,border-color .2s ease;
}
.armory-profile-tab svg { width: 18px; height: 18px; }
.armory-profile-tab:hover { color: #e7e3d8; background: rgba(255,255,255,.035); }
.armory-profile-tab.is-active { color: var(--armory-gold-light); border-color: rgba(231,199,132,.16); background: rgba(231,199,132,.07); }
.armory-profile-tabpanel { animation: armory-panel-in .18s ease-out; }
.armory-profile-tabpanel[hidden] { display: none; }
@keyframes armory-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.armory-overview-grid { display: grid; grid-template-columns: minmax(350px,.74fr) minmax(0,1.72fr); gap: 20px; align-items: start; }
.armory-overview-main { display: grid; gap: 20px; min-width: 0; }
.armory-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--armory-border);
    border-radius: 18px;
    background: var(--armory-panel);
    box-shadow: 0 20px 60px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(20px);
}
.armory-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.armory-panel-heading h2 { margin: 3px 0 0; color: #ece9e0; font-size: 18px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.armory-panel-eyebrow { display: block; color: #94948b; font-size: 10px; line-height: 1.4; }
.armory-panel-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(231,199,132,.12); border-radius: 8px; color: #aaa99f; background: rgba(231,199,132,.045); font-size: 10px; white-space: nowrap; }
.armory-panel-badge strong { color: var(--armory-gold-light); font-size: 15px; }
.armory-panel-link {
    min-height: 44px;
    padding: 0 4px 0 12px;
    border: 0;
    color: var(--armory-gold);
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    transition: color .2s ease;
}
.armory-panel-link:hover { color: var(--armory-gold-light); }
.armory-panel-link span { margin-left: 5px; }

.armory-equipment-panel .armory-gear-wrap {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    gap: 12px;
    align-items: start;
    max-width: none;
    margin: 0;
}
.armory-equipment-panel .armory-gear-col { display: flex; flex: none; flex-direction: column; gap: 6px; width: auto; min-width: 0; max-width: none; }
.armory-equipment-panel .armory-gear-center { width: auto; min-width: 0; padding: 1px 0 0; text-align: left; }
.armory-equipment-panel .armory-item-row { min-height: 48px; padding: 0; }
.armory-equipment-panel .armory-item-text,
.armory-equipment-panel .armory-weapons-row .armory-item-text { display: none !important; }
.armory-equipment-panel .armory-item-iconbox,
.armory-equipment-panel .armory-weapons-row .armory-item-iconbox {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-width: 1px;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    transition: filter .2s ease,transform .2s ease;
}
.armory-equipment-panel a.armory-item-iconbox:hover { filter: brightness(1.18); transform: translateY(-1px); }
.armory-equipment-panel .armory-weapons-row { display: flex; justify-content: space-between; gap: 12px; max-width: 184px; margin: 12px auto 0; padding: 0; }
.armory-equipment-panel .armory-weapons-row .armory-item-row { min-height: 44px; }
.armory-gear-stat-title { margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.07); color: #d6d2c7; font-size: 12px; font-weight: 650; }
.armory-gear-stat-list { display: grid; gap: 7px; }
.armory-gear-stat-list > div { display: flex; justify-content: space-between; gap: 10px; color: #9d9e95; font-size: 11px; }
.armory-gear-stat-list strong { color: #dedbd1; font-weight: 600; text-align: right; }
.armory-gear-paragon { padding: 12px; border: 1px solid rgba(231,199,132,.1); border-radius: 11px; background: rgba(231,199,132,.035); }
.armory-gear-stat-list + .armory-gear-paragon { margin-top: 14px; }
.armory-gear-paragon-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: #d8d4c8; font-size: 12px; }
.armory-gear-paragon-head strong { color: var(--armory-gold-light); font-size: 24px; line-height: 1; }
.armory-gear-paragon-row + .armory-gear-paragon-row { margin-top: 11px; }
.armory-gear-paragon-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #aaa99f; font-size: 11px; }
.armory-gear-paragon-row strong { color: #e4d6b7; font-weight: 650; }
.armory-gear-paragon-track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.065); }
.armory-gear-paragon-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9d7f48,var(--armory-gold-light)); }
.armory-gear-paragon-free { margin-top: 12px; color: var(--armory-gold); font-size: 10px; text-align: right; }
.armory-equipment-panel .armory-class-big { width: 84px; height: 84px; border-color: rgba(231,199,132,.28); border-radius: 14px; }
.armory-equipment-level { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(231,199,132,.12); border-radius: 10px; color: #b3ad9d; background: rgba(231,199,132,.04); font-size: 11px; }
.armory-equipment-level strong { color: var(--armory-gold-light); font-size: 20px; }

.armory-talent-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.armory-talent-card {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background-position: center;
    background-size: cover;
}
.armory-talent-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg,rgba(10,11,10,.93),rgba(10,11,10,.56)),linear-gradient(0deg,rgba(10,11,10,.7),transparent); }
.armory-talent-card.is-active { border-color: rgba(231,199,132,.38); box-shadow: inset 0 0 30px rgba(231,199,132,.045); }
.armory-talent-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; min-height: 146px; padding: 15px; }
.armory-talent-card-name { display: flex; align-items: center; gap: 10px; color: #e3dfd4; font-size: 12px; font-weight: 650; }
.armory-talent-card-name img { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; object-fit: cover; }
.armory-talent-card-points { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.armory-talent-card-points strong { color: #f2eee4; font-size: 28px; line-height: 1; }
.armory-talent-card-points span { color: #9c9c93; font-size: 11px; }
.armory-talent-card-line { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.armory-talent-card-line > span { display: block; height: 100%; border-radius: inherit; background: var(--armory-gold); }
.armory-talent-empty { display: grid; gap: 8px; width: 100%; min-height: 110px; padding: 20px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; color: #b4b2a8; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.armory-talent-empty strong { color: var(--armory-gold-light); font-size: 16px; }

.armory-glyphs-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.armory-glyph-overview-group h3 { margin: 0 0 10px; color: #999a91; font-size: 11px; font-weight: 550; }
.armory-glyph-overview-group .armory-glyph-slot {
    display: flex;
    gap: 10px;
    min-height: 52px;
    margin: 0 0 7px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 9px;
    background: rgba(255,255,255,.018);
}
.armory-glyph-overview-group .armory-glyph-slot:last-child { margin-bottom: 0; }
.armory-glyph-overview-group .armory-glyph-icon-wrap { flex-basis: 38px; width: 38px; height: 38px; }
.armory-glyph-overview-group .armory-glyph-icon { width: 38px; height: 38px; border-radius: 6px; }
.armory-glyph-overview-group .armory-glyph-name { color: #d1cec4; font-size: 12px; line-height: 1.4; }
.armory-glyph-overview-group .armory-glyph-slot--empty .armory-glyph-name { color: #74766d; }

.armory-pvp-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.armory-pvp-overview > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.055); border-radius: 10px; background: rgba(255,255,255,.02); }
.armory-pvp-overview span { color: #a2a299; font-size: 12px; }
.armory-pvp-overview strong { color: var(--armory-gold-light); font-size: 22px; }
.armory-arena-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.armory-arena-card { display: grid; gap: 5px; min-height: 88px; padding: 13px; border: 1px solid rgba(255,255,255,.05); border-radius: 10px; background: rgba(0,0,0,.12); }
.armory-arena-card > span { color: #9b9c93; font-size: 11px; }
.armory-arena-card > strong { color: #e6e2d7; font-size: 21px; }
.armory-arena-card > small { color: #777970; font-size: 10px; line-height: 1.4; }

.armory-talent-detail .wt-wrap { padding: 14px; border: 1px solid rgba(255,255,255,.065); border-radius: 13px; background: rgba(0,0,0,.19); }
.armory-talent-detail .wt-header { margin-bottom: 14px; }
.armory-talent-detail .wt-hdr-tree { color: #8f9188; }
.armory-talent-detail .wt-hdr-tree--has { color: #d0cdc2; }
.armory-talent-detail .wt-hdr-tree strong,
.armory-talent-detail .wt-tree-pts { color: var(--armory-gold-light); }
.armory-talent-detail .wt-tree { overflow: hidden; border-color: rgba(255,255,255,.075); border-radius: 8px; }
.armory-empty-message { margin: 0; color: var(--armory-muted); }

@media (max-width: 1180px) {
    .armory-overview-grid { grid-template-columns: minmax(330px,.8fr) minmax(0,1.35fr); }
    .armory-talent-summary-grid { grid-template-columns: 1fr; }
    .armory-talent-card,
    .armory-talent-card-content { min-height: 112px; }
    .armory-arena-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .armory-glyphs-overview { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .armory-profile-view { padding: 102px 18px 74px; }
    .armory-profile-summary { align-items: flex-start; flex-direction: column; }
    .armory-profile-times { width: 100%; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.065); }
    .armory-profile-times > div { flex: 1; text-align: left; }
    .armory-overview-grid { grid-template-columns: 1fr; }
    .armory-talent-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .armory-glyphs-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .armory-profile-view { padding: 90px 12px 60px; }
    .armory-profile-toolbar { gap: 8px; min-height: 54px; padding: 6px 7px 6px 11px; border-radius: 13px; }
    .armory-back-link { gap: 4px; font-size: 12px; }
    .armory-back-link svg { width: 16px; }
    .armory-profile-search { width: auto; flex: 1; min-width: 0; }
    .armory-profile-search button { min-width: 54px; padding: 0 10px; }
    .armory-profile-summary { gap: 20px; padding: 18px; border-radius: 15px; }
    .armory-profile-identity { align-items: flex-start; gap: 13px; }
    .armory-profile-class-icon { flex-basis: 58px; width: 58px; height: 58px; border-radius: 10px; }
    .armory-profile-name-line { gap: 5px 9px; }
    .armory-profile-name-line h1 { font-size: 27px; }
    .armory-profile-guild { font-size: 11px; }
    .armory-profile-subline { font-size: 12px; }
    .armory-profile-kpis { gap: 6px; margin-top: 10px; }
    .armory-profile-kpi { gap: 5px; padding: 4px 7px; font-size: 11px; }
    .armory-profile-kpi small { font-size: 10px; }
    .armory-profile-times { gap: 16px; }
    .armory-profile-times strong { font-size: 12px; white-space: normal; }
    .armory-profile-tabs { margin: 12px 0 14px; }
    .armory-profile-tab { flex: 1; min-height: 46px; padding: 0 12px; }
    .armory-panel { padding: 16px; border-radius: 15px; }
    .armory-panel-heading { gap: 10px; margin-bottom: 16px; }
    .armory-panel-heading h2 { font-size: 17px; }
    .armory-panel-badge { padding: 6px 8px; }
    .armory-panel-badge { font-size: 0; }
    .armory-panel-badge::before { content: 'ilvl'; font-size: 10px; }
    .armory-equipment-panel .armory-gear-wrap { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
    .armory-equipment-panel .armory-item-iconbox,
    .armory-equipment-panel .armory-weapons-row .armory-item-iconbox { flex-basis: 42px; width: 42px; height: 42px; }
    .armory-equipment-panel .armory-item-row { min-height: 46px; }
    .armory-gear-paragon { padding: 9px; }
    .armory-gear-paragon-head strong { font-size: 21px; }
    .armory-talent-summary-grid { grid-template-columns: 1fr; }
    .armory-talent-card,
    .armory-talent-card-content { min-height: 112px; }
    .armory-glyphs-overview { grid-template-columns: 1fr; gap: 18px; }
    .armory-pvp-overview { grid-template-columns: 1fr; }
    .armory-arena-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .armory-pvp-overview > div { min-height: 54px; }
    .armory-talent-detail { padding: 10px; }
}
@media (max-width: 380px) {
    .armory-back-link span { display: none; }
    .armory-back-link { width: 40px; justify-content: center; }
    .armory-profile-class-icon { flex-basis: 50px; width: 50px; height: 50px; }
    .armory-profile-name-line h1 { font-size: 24px; }
    .armory-equipment-panel .armory-gear-wrap { grid-template-columns: 42px minmax(0,1fr) 42px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .armory-profile-tabpanel { animation: none; }
    .armory-profile-view *, .armory-profile-view *::before, .armory-profile-view *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
    .armory-profile-toolbar, .armory-profile-summary, .armory-panel { background: #11120f; backdrop-filter: none; }
}
