@font-face {
    font-family: 'Fontin SmallCaps';
    src: url('../fonts/Fontin-SmallCaps.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body.swap-ii .main-slot {
    display: none !important
}

body.swap-ii .swap-slot {
    display: flex !important
}

body.swap-ii .swap-btn:first-child {
    color: var(--text-dim);
    background: var(--bg-card);
    border-color: var(--border)
}

body.swap-ii .swap-btn:last-child {
    color: #fff;
    background: var(--bg-slot-hover);
    border-color: var(--text)
}

:root {
    --bg-page: #1a1b1b;
    --bg-panel: #121418;
    --bg-card: #181c22;
    --bg-slot: #1c212e;
    --bg-slot-hover: #2a3245;
    --border: #353b46;
    --border-active: #e29f30;
    --border-dim: rgba(226, 159, 48, 0.3);
    --unique: #af6025;
    --border-light: #353b46;
    --text: #c8ccd4;
    --text-dim: #6b7280;
    --text-bright: #e5e7eb;
    --gold: #c49c50;
    --gold-dim: rgba(196, 156, 80, 0.3);
    --unique: #af6025;
    --rare: #ffd700;
    --magic: #8888ff;
    --normal: #c8c8c8;
    --gem: #1ba29b;
    --strength: #c8483b;
    --dexterity: #7ed321;
    --intelligence: #4a9cdc;
    --fire: #c8483b;
    --cold: #4a9cdc;
    --lightning: #ffdf3b;
    --chaos: #d789d7;
    --crafted: #b4b4ff;
    --fractured: #a29162;
    --font: 'Fontin SmallCaps', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif
}

.featured-item-highlight {
    box-shadow: 0 0 10px 2px rgba(255, 140, 0, .4) !important;
    border-color: #f90 !important;
    border-width: 2px !important;
    z-index: 20;
    animation: slow-pulse-glow 3s ease-in-out infinite
}

@keyframes slow-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px 1px rgba(255, 140, 0, .3);
        border-color: rgba(255, 153, 0, .7)
    }

    50% {
        box-shadow: 0 0 15px 4px rgba(255, 140, 0, .5);
        border-color: #f90
    }
}

body {
    background: #141515;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    min-height: 100vh
}

.boxed-container {
    background: linear-gradient(180deg, #1a1b1b 0, #1a1b1b 500px, #141515 1200px)
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
    background: #0a0a0a !important
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4743c 0, #b85a2a 100%) !important;
    border-radius: 6px !important;
    border: 1px solid #000 !important;
}

body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e88a50 0, #d4743c 100%) !important
}

body,
html {
    scrollbar-color: #d4743c #0a0a0a !important
}

.site-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    text-decoration: none
}

.site-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain
}

.site-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .5px;
    font-family: 'Fontin SmallCaps', sans-serif
}

.pob-banner {
    width: auto;
    margin-right: 342px;
    line-height: 0;
    padding-top: 0;
    background: #1a1b1b;
    position: relative
}

@media (min-width:2500px) {

    .main-content,
    .paste-section {
        margin-left: 100px !important
    }
}

@media (min-width:1700px) and (max-width:2499px) {

    .main-content,
    .paste-section {
        margin-left: 20px !important
    }
}

.pob-banner::after {
    content: '';
    display: block;
    height: 30px;
    background: #1a1b1b
}

.pob-banner a {
    display: block
}

.pob-banner img {
    width: 100%;
    height: auto;
    display: block
}

.pob-header {
    background: 0 0;
    border: none;
    padding: 20px 24px;
    margin-right: 370px;
    box-sizing: border-box
}

.header-inner {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    box-sizing: border-box
}

.char-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel);
    border: none;
    border-radius: 12px;
    padding: 20px 36px
}

.char-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .5px;
    text-align: center;
    font-family: 'Fontin SmallCaps', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px
}

.header-skill-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 4px;
    border: none
}

.header-asc-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    margin-left: 4px
}

#treeSidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: rgba(10, 12, 16, .93);
    border-right: 1px solid #2a2e38;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    padding: 6px 6px 16px;
    scrollbar-width: thin;
    scrollbar-color: #2a2e38 transparent
}

#treeSidebar::-webkit-scrollbar {
    width: 4px
}

#treeSidebar::-webkit-scrollbar-thumb {
    background: #2a2e38;
    border-radius: 2px
}

#treeSidebar .section-title {
    font-size: 10px;
    padding-top: 6px;
    margin-bottom: 4px
}

#treeSidebar .section-grid {
    padding: 0 2px 4px;
    justify-content: center;
    max-width: 100%;
    gap: 5px
}

.ts-navigable {
    cursor: pointer
}

.ts-navigable:hover::after {
    content: '🎯';
    position: absolute;
    bottom: 1px;
    right: 1px;
    font-size: 9px;
    line-height: 1
}

@media (max-width: 991px) {
    #treeSidebar {
        display: none !important
    }

    #treeSearchWrap {
        left: 8px !important;
        top: 12px !important;
    }
}

#treeSearchWrap {
    position: absolute;
    top: 8px;
    left: 268px;
    z-index: 12
}

#treeSearchInput {
    width: 200px;
    height: 30px;
    background: rgba(10, 12, 16, .92);
    border: 1px solid #353b46;
    border-radius: 4px;
    color: #ccc;
    font-size: 12px;
    padding: 0 8px 0 28px;
    outline: 0;
    font-family: inherit
}

#treeSearchInput::placeholder {
    color: #555
}

#treeSearchInput:focus {
    border-color: #4db8d8
}

#treeSearchWrap svg {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .4
}

#treeSearchCount {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #777;
    pointer-events: none
}

#treeTooltip {
    background: #0d0f14 !important;
    border: 1px solid #2e2010 !important;
    border-top: 2px solid #c87020 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .75), inset 0 0 50px rgba(160, 70, 0, .04);
    max-width: 360px !important;
    overflow: hidden;
    white-space: normal !important
}

.tree-tip-name {
    padding: 10px 16px 7px;
    font-family: 'Fontin SmallCaps', serif;
    letter-spacing: .05em;
    line-height: 1.3
}

.tree-tip-name.tree-tip-keystone {
    font-size: 18px;
    color: #f0a830;
    text-shadow: 0 0 14px rgba(230, 130, 0, .45);
    letter-spacing: .08em
}

.tree-tip-name.tree-tip-notable {
    font-size: 16px;
    color: #d4922a
}

.tree-tip-name.tree-tip-mastery,
.tree-tip-name.tree-tip-small {
    font-size: 15px;
    color: #b88840
}

.tree-tip-divider {
    height: 1px;
    margin: 2px 12px 5px;
    background: linear-gradient(to right, transparent, rgba(210, 130, 30, .4), transparent)
}

.tree-tip-stat {
    padding: 3px 16px;
    font-size: 14px;
    color: #a09880;
    line-height: 1.6
}

.tree-tip-stat:last-child {
    padding-bottom: 10px
}

.char-details {
    font-size: 14px;
    color: var(--text-dim);
    text-align: center;
    font-family: 'Fontin SmallCaps', sans-serif
}

.asc-name {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px
}

.header-actions {
    display: flex;
    gap: 12px;
    transform: translatey(15px);
    justify-content: center;
    width: 100%
}

.header-actions .btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    border: none;
    background: var(--bg-panel);
    color: var(--text);
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .2s ease
}

.header-actions .btn:hover {
    background: #1e2230;
    color: var(--gold);
    transform: translateY(-1px)
}

.header-actions #openPobBtn {
    background: rgba(140, 50, 50, .35) !important;
    border: none !important;
    color: #e8a0a0
}

.header-actions #openPobBtn:hover {
    background: rgba(160, 60, 60, .5) !important;
    color: #ffbdbd
}

.main-content {
    padding: 40px 24px 200px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: none;
    margin: 0;
    margin-right: 370px;
    box-sizing: border-box;
    min-height: calc(100vh - 100px)
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    width: 100%;
    align-items: start
}

.skill-groups {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.col-equip {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center
}

.col-stats {
    width: 100%;
    min-width: 0
}

.col-skills {
    width: 100%;
    min-width: 0
}

.gem-entry {
    display: grid;
    grid-template-columns: 70px 1fr 100px;
    align-items: center;
    gap: 0;
    padding: 4px 0;
    width: 100%;
    position: relative
}

.gem-entry.gem-enabled::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: #5a6672;
    z-index: 1
}

.active-entry.gem-enabled::after {
    left: 50px;
    width: 16px;
    transform: translateX(-100%)
}

.support-entry.gem-enabled::after {
    left: 50px;
    width: 7px;
    transform: translateX(-100%)
}

.gem-entry.gem-enabled::before {
    content: '';
    position: absolute;
    left: 48px;
    top: -5px;
    height: calc(100% + 10px);
    width: 2px;
    background: #5a6672;
    z-index: 1
}

.gem-entry.gem-first-linked::before {
    top: 50%;
    height: calc(50% + 5px);
    margin-top: -1px
}

.gem-entry.gem-last-linked::before {
    top: -5px;
    height: calc(50% + 6px)
}

.gem-entry.gem-first-linked.gem-last-linked::before {
    display: none
}

.gem-entry.gem-disabled {
    opacity: .5
}

.gem-icon {
    grid-column: 1;
    justify-self: start;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2
}

.active-entry .gem-icon {
    margin-left: 0
}

.support-entry .gem-icon {
    margin-left: 9px
}

.gem-entry .gem-name {
    grid-column: 2;
    text-align: center;
    padding: 0 10px;
    padding-left: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #afc1d4;
    font-size: 14px;
    pointer-events: none
}

.support-entry .gem-name {
    padding-left: 10px
}

.gem-level {
    grid-column: 3;
    text-align: right;
    white-space: nowrap;
    color: #b8b8b8;
    font-size: 13px;
    font-family: 'Fontin SmallCaps', sans-serif;
    justify-self: end;
    font-weight: 500;
    background: rgba(0, 0, 0, .3);
    padding: 2px 6px;
    border-radius: 3px
}

.gem-level-text,
.gem-quality-text {
    color: #b8b8b8
}

.gem-level-desktop {
    display: inline
}

.gem-level-mobile {
    display: none
}

@media (max-width:768px) {
    .pob-header {
        padding: 12px 16px
    }

    .char-info {
        padding: 12px 16px;
        gap: 4px
    }

    .char-name {
        font-size: 22px;
        gap: 8px
    }

    .header-skill-icon {
        width: 32px;
        height: 32px
    }

    .header-asc-icon {
        width: 28px;
        height: 28px
    }

    .header-actions {
        transform: translateY(8px) !important;
        gap: 8px
    }

    .paste-section {
        padding: 12px 12px 0
    }

    .paste-row {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch
    }

    .paste-input {
        width: 100%;
        font-size: 13px;
        margin-bottom: 0
    }

    .paste-row-buttons {
        display: flex;
        gap: 8px;
        justify-content: center;
        width: 100%
    }

    .gem-entry {
        grid-template-columns: 30px minmax(100px, 1fr) 85px;
        padding: 3px 0
    }

    .gem-icon {
        width: 25px !important;
        height: 25px !important
    }

    .gem-entry.gem-enabled::before {
        left: 42px
    }

    .gem-entry.gem-first-linked::before {
        height: calc(50% + 5px)
    }

    .support-entry .gem-icon {
        margin-left: 10px
    }

    .gem-entry.gem-enabled::after {
        left: 44px
    }

    .active-entry.gem-enabled::after {
        width: 16px;
        transform: translateX(-100%)
    }

    .support-entry.gem-enabled::after {
        width: 12px;
        transform: translateX(-100%)
    }

    .gem-entry .gem-name {
        white-space: normal;
        line-height: 1.1;
        font-size: 11px !important;
        padding: 0 40px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-left: -11px
    }

    .gem-level {
        font-size: 9px !important
    }

    .gem-level-desktop {
        display: none
    }

    .gem-level-mobile {
        display: inline
    }

    .gem-quality-text {
        color: #f93
    }
}

@media (min-width:1101px) and (max-width:1800px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px
    }

    .col-skills {
        grid-column: span 2;
        width: 100%;
        max-width: 100%;
        margin-top: 0
    }

    .skill-groups {
        display: grid;
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:1100px) {

    .main-content,
    .paste-section,
    .pob-header {
        margin-right: 0 !important
    }

    .main-grid {
        grid-template-columns: 1fr;
        justify-items: center
    }

    .col-stats {
        width: 100%;
        max-width: 500px;
        min-width: 0
    }

    .col-skills {
        width: 100%;
        max-width: 100%;
        min-width: 0
    }

    .skill-groups {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .col-equip {
        width: 100%;
        max-width: 500px
    }
}

.jewels-mini-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text);
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none
}

.btn:hover {
    background: var(--bg-slot-hover);
    border-color: var(--gold-dim);
    color: var(--gold)
}

.btn-primary {
    background: rgba(196, 156, 80, .15);
    border-color: var(--gold-dim);
    color: var(--gold)
}

.btn-primary:hover {
    background: rgba(196, 156, 80, .25)
}

.btn-copied {
    background: rgba(196, 156, 80, .15) !important;
    border-color: rgba(196, 156, 80, .4) !important;
    color: #c49c50 !important
}

.paste-section {
    max-width: none;
    margin: 0;
    margin-right: 370px;
    padding: 24px 24px 0;
    box-sizing: border-box
}

.paste-row {
    display: flex;
    gap: 10px;
    background: #232528;
    border-radius: 10px;
    padding: 14px 16px;
    align-items: center
}

.paste-row-buttons {
    display: flex;
    gap: 10px;
    align-items: center
}

#shareLinkBtn {
    white-space: nowrap
}

.paste-row .btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    border: none;
    background: #1a1e28;
    color: var(--text);
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .2s ease
}

.paste-row .btn:hover {
    background: #1e2230;
    color: var(--gold);
    transform: translateY(-1px)
}

.paste-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    background: #0d0e0f;
    color: var(--text);
    font-family: monospace;
    font-size: 13px;
    outline: 0
}

.paste-input:focus {
    box-shadow: 0 0 0 1px var(--gold)
}

.paste-input::placeholder {
    color: var(--text-dim)
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px
}

.panel-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .02)
}

.equip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 8px;
    padding: 16px;
    justify-items: center
}

.equip-slot {
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3)
}

.jewel-slot-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 12px 0;
    flex-wrap: wrap
}

.jewel-slot {
    width: 64px;
    height: 64px;
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 44px 6px rgba(0, 0, 0, .3)
}

.jewel-slot:hover {
    border-color: var(--gold);
    background: var(--bg-slot-hover)
}

.jewel-icon {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain
}

.equip-slot.corrupted-slot {
    box-shadow: inset 0 0 10px rgba(210, 0, 0, .6), 0 4px 6px rgba(0, 0, 0, .3)
}

.equip-grid {
    position: relative;
    display: grid;
    grid-template-areas: "w1 helm w2" "w1 body w2" "g body b" "r1 belt r2" "amu . .";
    grid-template-columns: 80px 120px 80px;
    grid-template-rows: repeat(auto-fill, 60px);
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
    width: fit-content
}

.swap-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100
}

.swap-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 700;
    padding: 4px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

.swap-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-slot-hover)
}

.swap-btn.active {
    color: #fff;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(196, 156, 80, .4)
}

.default-setup-disclaimer {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-style: italic;
    opacity: .75
}

@media (min-width:1101px) {
    .default-setup-disclaimer {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        height: 47px;
        padding: 0;
        margin-bottom: 10px
    }
}

.itemset-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border)
}

.itemset-toggle label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap
}

.itemset-select {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-muted, #9ca3af);
    font-size: 12px;
    font-family: 'Fontin SmallCaps', sans-serif;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    outline: 0;
    max-width: 260px;
    transition: border-color .2s
}

.itemset-select:focus,
.itemset-select:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.equip-grid {
    display: grid;
    grid-template-columns: 80px 120px 80px;
    grid-template-rows: repeat(10, 20px);
    gap: 10px;
    width: fit-content;
    margin: 0 auto
}

@media (hover:hover) {
    .equip-slot:hover {
        background: var(--bg-slot-hover);
        border-color: var(--border-active);
        box-shadow: 0 0 12px rgba(226, 159, 48, .4);
        z-index: 10
    }
}

.equip-slot.empty {
    border: 1px dashed var(--border-light);
    background: rgba(0, 0, 0, .2);
    opacity: .5
}

.slot-item-base,
.slot-item-name,
.slot-label {
    display: none
}

.slot-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-dim);
    margin-bottom: 4px
}

.slot-item-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word
}

.slot-item-base {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px
}

.rarity-unique .slot-item-name {
    color: var(--unique)
}

.rarity-rare .slot-item-name {
    color: var(--rare)
}

.rarity-magic .slot-item-name {
    color: var(--magic);
    position: relative;
    top: 10px
}

.rarity-normal .slot-item-name {
    color: var(--normal)
}

.equip-slot.rarity-unique,
.flask-slot.rarity-unique {
    background: linear-gradient(180deg, rgba(175, 96, 37, .2) 0, rgba(175, 96, 37, .05) 100%);
    box-shadow: inset 0 0 20px rgba(175, 96, 37, .1)
}

.equip-slot.rarity-rare,
.flask-slot.rarity-rare {
    background: linear-gradient(180deg, rgba(255, 215, 0, .15) 0, rgba(255, 215, 0, .02) 100%);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, .05)
}

.equip-slot.rarity-magic,
.flask-slot.rarity-magic {
    background: linear-gradient(180deg, rgba(136, 136, 255, .2) 0, rgba(136, 136, 255, .05) 100%);
    box-shadow: inset 0 0 20px rgba(136, 136, 255, .1)
}

.equip-slot.rarity-relic,
.flask-slot.rarity-relic,
.jewel-slot.rarity-relic {
    background: linear-gradient(180deg, rgba(130, 197, 116, .2) 0, rgba(130, 197, 116, .05) 100%);
    box-shadow: inset 0 0 20px rgba(130, 197, 116, .1)
}

.flask-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 20px 0
}

.flask-slot {
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 60px;
    height: 120px;
    padding: 4px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.flask-slot:hover {
    border-color: var(--border-active);
    box-shadow: 0 0 12px rgba(226, 159, 48, .4)
}

.flask-slot.empty {
    opacity: .3;
    cursor: default
}

.flask-name {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3
}

.item-tooltip-overlay {
    display: none;
    position: fixed;
    z-index: 5000;
    pointer-events: none;
    animation: fadeIn .1s;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .5))
}

.item-tooltip-overlay.active {
    display: flex
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.item-tooltip {
    background: rgba(0, 0, 0, .85);
    border: 1px solid #333;
    border-radius: 7px;
    padding: 15px;
    max-width: 600px;
    min-width: 320px;
    width: max-content;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 25px rgba(0, 0, 0, .8);
    font-family: 'Fontin SmallCaps', var(--font);
    color: #c8c8c8
}

.item-tooltip.featured-item-highlight {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url('https://i.ibb.co/20LYSncc/embers.gif') center center;
    background-size: cover
}

.tooltip-header {
    display: block;
    font-weight: 400;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0;
    font-size: 18px;
    text-align: center;
    position: relative;
    line-height: 1;
    background: 0 0 !important
}

.tooltip-header span:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-left.png?v=1739989653429&key=7fOI1NQk5oFidrmivWNAqw') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-right.png?v=1739989653429&key=0DQ30sqHO9eanQuL1NTpNQ') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-middle.png?v=1739989653429&key=Hzon14Iy53cgwlmBET_yqw') center top repeat-x;
    background-size: auto 200%, auto 200%, auto 200% !important;
    margin-top: 1px;
    padding: 0 40px;
    padding-bottom: 4px;
    height: 29px;
    white-space: nowrap;
    align-items: flex-end;
    margin-bottom: 0
}

.tooltip-header span:last-of-type {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-left.png?v=1739989653429&key=7fOI1NQk5oFidrmivWNAqw') left bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-right.png?v=1739989653429&key=0DQ30sqHO9eanQuL1NTpNQ') right bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-middle.png?v=1739989653429&key=Hzon14Iy53cgwlmBET_yqw') center bottom repeat-x;
    background-size: auto 200%, auto 200%, auto 200% !important;
    padding: 0 40px;
    padding-top: 4px;
    height: 29px;
    margin-top: -1px;
    margin-bottom: -8px;
    white-space: nowrap
}

.tooltip-header br {
    display: none
}

.header-rare span:first-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-left.png?v=1739989653429&key=7fOI1NQk5oFidrmivWNAqw') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-right.png?v=1739989653429&key=0DQ30sqHO9eanQuL1NTpNQ') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-middle.png?v=1739989653429&key=Hzon14Iy53cgwlmBET_yqw') center top repeat-x;
    background-size: auto 200%, auto 200%, auto 200% !important
}

.header-rare span:last-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-left.png?v=1739989653429&key=7fOI1NQk5oFidrmivWNAqw') left bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-right.png?v=1739989653429&key=0DQ30sqHO9eanQuL1NTpNQ') right bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-rare-middle.png?v=1739989653429&key=Hzon14Iy53cgwlmBET_yqw') center bottom repeat-x;
    background-size: auto 200%, auto 200%, auto 200% !important
}

.header-magic span:first-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-magic-left.png?v=1709582916256&key=70xZDYjvxOk-Dy0ubVnmDQ') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-magic-right.png?v=1709582916256&key=Ns5zBHC-Iiy7UlkZJ8Mqug') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-magic-middle.png?v=1709582916256&key=FFR-bQYccIWgM7HdwCnSDw') center top repeat-x;
    height: 31px;
    line-height: 29px;
    background-size: auto 101% !important;
    background-position: left -2px, right -2px, center -2px;
    display: block;
    text-align: center;
    padding: 0 40px;
    white-space: nowrap
}

.header-magic span:nth-of-type(2) {
    display: none
}

.header-unique span:first-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-unique-left.png?v=1709582916256&key=wWot3i-c3fi9mITi48Vl9g') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-unique-right.png?v=1709582916256&key=-dfCEOleavUZZdgllVgSsQ') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-unique-middle.png?v=1709582916256&key=eZIr40k4fczlgGEz5heqLA') center top repeat-x;
    background-size: auto 200%, auto 200%, auto 200% !important
}

.header-unique span:last-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-unique-left.png?v=1709582916256&key=wWot3i-c3fi9mITi48Vl9g') left bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-unique-right.png?v=1709582916256&key=-dfCEOleavUZZdgllVgSsQ') right bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-unique-middle.png?v=1709582916256&key=eZIr40k4fczlgGEz5heqLA') center bottom repeat-x;
    background-size: auto 200%, auto 200%, auto 200% !important
}

.header-normal span:first-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-normal-left.png') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-normal-right.png') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-normal-middle.png') center top repeat-x
}

.header-normal span:last-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-normal-left.png') left bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-normal-right.png') right bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-normal-middle.png') center bottom repeat-x
}

.header-normal-single {
    position: relative;
    top: 5px
}

.header-normal-single span:first-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-normal-left.png?v=1709582916256&key=LCTuNK-HvMIA0Nuij8tZow') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-normal-right.png?v=1709582916256&key=DwLfH4yfGrGtAnoUBj4eSQ') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-normal-middle.png?v=1709582916256&key=mwhrNsoM49XtomPe-u3dmw') center top repeat-x;
    height: 30px;
    line-height: 29px;
    background-size: auto 101% !important;
    background-position: left 2px, right 2px, center 2px;
    display: flex;
    align-items: flex-end;
    text-align: center;
    padding: 0 40px;
    white-space: nowrap
}

.header-normal-single span:nth-of-type(2) {
    display: none
}

.header-normal-single span {
    color: #c8c8c8 !important;
    position: relative;
    top: -5px
}

.header-magic span {
    color: #88f !important;
    position: relative;
    top: -1px
}

.header-rare span {
    color: #ff7 !important
}

.header-unique span {
    color: #af6025 !important
}

.header-relic span:first-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-relic-left.png?v=1709582916256&key=PUK6IFm3hE8Z44O7MkywBA') left top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-relic-right.png?v=1709582916256&key=lJOFpLwcJrs3gMMSEN1JMA') right top no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-relic-middle.png?v=1709582916256&key=TEtSZ05l67LhIlkLpl6NkQ') center top repeat-x
}

.header-relic span:last-of-type {
    background: url('https://web.poecdn.com/protected/image/item/popup/header-double-relic-left.png?v=1709582916256&key=PUK6IFm3hE8Z44O7MkywBA') left bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-relic-right.png?v=1709582916256&key=lJOFpLwcJrs3gMMSEN1JMA') right bottom no-repeat, url('https://web.poecdn.com/protected/image/item/popup/header-double-relic-middle.png?v=1709582916256&key=TEtSZ05l67LhIlkLpl6NkQ') center bottom repeat-x
}

.header-relic span {
    color: #82c574 !important
}

.header-normal span {
    color: #c8c8c8 !important
}

.tooltip-separator {
    height: 2px;
    max-width: 300px;
    left: 0;
    background: linear-gradient(to right, transparent 0, #cb9645 50%, transparent 100%);
    margin: 2px auto
}

.tooltip-mod {
    font-size: 16px;
    margin: 0;
    padding: 0
}

.tooltip-mod.mod-explicit,
.tooltip-mod.mod-implicit {
    color: #88f
}

.tooltip-mod.mod-crafted,
.tooltip-mod.mod-enchant {
    color: #b4b4ff
}

.tooltip-mod.mod-fractured {
    color: #a29160
}

.tooltip-mod.mod-foulborn {
    color: #cd2285
}

.tooltip-mod.mod-crucible {
    color: #ff9800
}

.tooltip-mirror-fee {
    text-align: center;
    font-size: 18px;
    color: #d4af37;
    margin-top: 7px;
    font-family: 'Fontin SmallCaps', sans-serif
}

.tooltip-mirror-copy {
    text-align: center;
    font-size: 14px;
    color: #8b8b8b;
    margin-top: 2px;
    font-family: 'Fontin SmallCaps', sans-serif
}

.tooltip-currency-icon {
    width: 26px;
    height: 26px;
    vertical-align: middle;
    margin: 0 2px
}

@media (max-width:768px) {
    .tooltip-mirror-fee {
        font-size: 15px
    }

    .tooltip-mirror-copy {
        font-size: 12px
    }

    .tooltip-currency-icon {
        width: 22px;
        height: 22px
    }
}

.tooltip-fee-plus {
    display: inline;
    margin: 0 3px;
    font-weight: 700;
    color: #d4af37;
    position: relative;
    left: -1px
}

.mod-corrupted {
    color: #d20000;
    font-weight: 700;
    margin-top: 5px
}

.tooltip-props {
    color: #8f8f8f;
    font-size: 16px;
    margin: 0
}

.coloraugmented {
    color: #88f
}

.colorWhite {
    color: #fff
}

.tooltip-header+.tooltip-separator {
    display: none
}

.tooltip-header:not(.header-magic)+.tooltip-mod,
.tooltip-header:not(.header-magic)+.tooltip-props,
.tooltip-header:not(.header-magic)+.tooltip-separator {
    margin-top: 8.5px
}

.tooltip-header.header-magic+.tooltip-mod,
.tooltip-header.header-magic+.tooltip-props,
.tooltip-header.header-magic+.tooltip-separator {
    margin-top: 3px
}

.tooltip-header:not(.header-magic)+.tooltip-separator+* {
    margin-top: 8.5px
}

.tooltip-header.header-magic+.tooltip-separator+* {
    margin-top: 3px
}

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: 0 0;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer
}

.equip-slot {
    position: relative
}

.item-sockets-container {
    position: absolute;
    inset: 3px;
    display: grid;
    padding: 3px;
    pointer-events: none;
    z-index: 5;
    gap: 3px;
    opacity: 0;
    transition: opacity .15s ease-in-out
}

@media (min-width:769px) {
    .equip-slot:hover .item-sockets-container {
        opacity: 1;
        pointer-events: auto
    }

    .gem-icon {
        width: 34px !important;
        height: 34px !important
    }

    .support-entry .gem-icon {
        width: 30px !important;
        height: 30px !important;
        margin-left: 12px !important
    }

    .gem-entry.gem-enabled::after {
        height: 3px !important;
        margin-top: -1.5px !important
    }

    .gem-entry.gem-enabled::before {
        width: 3px !important
    }

    .gem-entry .gem-name {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical
    }
}

.mobile-sockets-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 0
}

.mobile-sockets-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 33, 36, .6);
    border: 1px solid rgba(196, 156, 80, .3);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
    width: fit-content
}

.mobile-sockets-toggle-btn:active {
    transform: scale(.98);
    background: rgba(196, 156, 80, .1)
}

.toggle-text {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-family: 'Fontin SmallCaps', sans-serif
}

.toggle-switch {
    position: relative;
    width: 38px;
    height: 20px;
    background: #1a1b1e;
    border-radius: 10px;
    transition: background .2s, border-color .2s;
    border: 1px solid rgba(255, 255, 255, .1)
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: #666;
    border-radius: 50%;
    transition: all .25s cubic-bezier(.175, .885, .32, 1.275)
}

.sockets-enabled .sockets-toggle-btn .toggle-switch {
    background: rgba(196, 156, 80, .15);
    border-color: rgba(196, 156, 80, .4)
}

.sockets-enabled .sockets-toggle-btn .toggle-switch::after {
    left: 20px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(196, 156, 80, .5)
}

@media (max-width:768px) {
    .item-sockets-container {
        display: none !important
    }

    .sockets-enabled .item-sockets-container {
        display: grid !important;
        opacity: 1;
        pointer-events: auto
    }

    .sockets-enabled .socket-gem {
        pointer-events: auto
    }
}

@media (min-width:769px) {
    .sockets-enabled .item-sockets-container {
        opacity: 1;
        pointer-events: auto
    }
}

[data-slot-name="Body Armour"] .item-sockets-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr)
}

[data-slot-name=Boots] .item-sockets-container,
[data-slot-name=Gloves] .item-sockets-container,
[data-slot-name=Helmet] .item-sockets-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr)
}

[data-slot-name=Belt] .item-sockets-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    align-items: center;
    justify-content: center;
    height: fit-content
}

[data-slot-name=Belt] .item-sockets-container:has(.socket-gem:only-child) {
    justify-content: flex-start;
    left: calc(50% - 13px);
    right: auto
}

[data-slot-name=Belt] .item-sockets-container:not(:has(.socket-gem:only-child)) {
    gap: 0
}

[data-slot-name=Belt] .socket-gem {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0
}

[data-slot-name=Belt] .item-sockets-container[data-socket-count="1"] .socket-gem.abyssal,
[data-slot-name=Belt] .item-sockets-container[data-socket-count="1"] .socket-gem.abyssal-empty {
    width: 85% !important;
    height: 85% !important
}

[data-slot-name=Belt] .item-sockets-container[data-socket-count="1"] .socket-gem.abyssal img,
[data-slot-name=Belt] .item-sockets-container[data-socket-count="1"] .socket-gem.abyssal-empty img {
    width: 85% !important;
    height: 85% !important;
    object-fit: contain
}

[data-slot-name=Belt] .item-sockets-container:not([data-socket-count="1"]) .socket-gem.abyssal,
[data-slot-name=Belt] .item-sockets-container:not([data-socket-count="1"]) .socket-gem.abyssal-empty {
    width: 55% !important;
    height: 55% !important
}

[data-slot-name=Belt] .item-sockets-container:not([data-socket-count="1"]) .socket-gem.abyssal img,
[data-slot-name=Belt] .item-sockets-container:not([data-socket-count="1"]) .socket-gem.abyssal-empty img {
    width: 60% !important;
    height: 60% !important;
    object-fit: contain
}

.socket-gem {
    width: 85%;
    height: 85%;
    position: relative;
    cursor: pointer;
    transition: all .12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    z-index: 2;
    pointer-events: none
}

.socket-gem img {
    pointer-events: auto
}

.socket-gem:hover img {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6))
}

.socket-gem.empty {
    pointer-events: none
}

.socket-gem.empty:not(:has(img)) {
    opacity: 0
}

.socket-gem.empty img {
    opacity: 1;
    width: 75% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    object-fit: contain
}

.socket-gem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all .12s ease
}

.socket-link {
    position: absolute;
    background: linear-gradient(to bottom, #400000 0, #ff4500 25%, #ff8c00 50%, #ff4500 75%, #400000 100%);
    box-shadow: 0 0 10px #ff4500, 0 0 5px #ff8c00;
    z-index: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    animation: lava-glow 2s infinite alternate ease-in-out
}

@keyframes lava-glow {
    from {
        box-shadow: 0 0 8px #ff4500, 0 0 4px #ff8c00;
        filter: brightness(1)
    }

    to {
        box-shadow: 0 0 15px #ff4500, 0 0 8px #ff8c00;
        filter: brightness(1.3)
    }
}

.socket-link.horizontal {
    height: 12px
}

.socket-link.vertical {
    height: 12px;
    transform: translate(-50%, -50%) rotate(90deg)
}

.socket-gem.abyssal-empty {
    width: 78%;
    height: 78%;
    opacity: .9;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center
}

.socket-gem.abyssal-empty img {
    width: 78%;
    height: 78%;
    object-fit: contain
}

.socket-gem.abyssal img {
    filter: drop-shadow(0 0 8px rgba(30, 255, 120, .8))
}

.stats-panel {
    padding: 0
}

.stat-group {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border)
}

.stat-group:last-child {
    border-bottom: none
}

.stat-group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 14px
}

.stat-label {
    color: var(--text)
}

.stat-value {
    font-weight: 600;
    color: var(--text-bright);
    font-variant-numeric: tabular-nums
}

.stat-value.fire {
    color: var(--fire)
}

.stat-value.cold {
    color: var(--cold)
}

.stat-value.lightning {
    color: var(--lightning)
}

.stat-value.chaos {
    color: var(--chaos)
}

.stat-value.life {
    color: #e05050
}

.stat-value-unreserved.life {
    color: #ff6b6b
}

.stat-value-unreserved.mana {
    color: #6ab0e8
}

.stat-value-dim {
    opacity: .7;
    font-size: .9em
}

.item-tooltip:has(.gem-tooltip-content) {
    padding: 0 !important;
    background: 0 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-width: auto !important;
    max-width: none !important
}

.gem-tooltip-content {
    padding: 16px 28px;
    width: fit-content;
    min-width: 200px;
    max-width: min(400px, 90vw);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, .94);
    border: 1px solid rgba(136, 136, 136, .3);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .8)
}

.gem-tooltip-content.support-gem {
    border-color: rgba(136, 136, 255, .5)
}

.gem-tooltip-content.active-gem {
    border-color: rgba(200, 100, 50, .5)
}

.gem-tooltip-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px
}

.gem-tooltip-content .gem-name {
    color: #ffc555;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    display: block;
    margin: 0;
    letter-spacing: .5px;
    text-align: center !important;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    padding: 0 !important;
    position: static !important;
    grid-column: auto !important
}

.gem-tooltip-content .gem-name.support {
    color: #88f
}

.gem-tooltip-content .gem-support {
    color: #aaa;
    font-size: 10px;
    display: block;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.3
}

.gem-tooltip-content .gem-level {
    color: #aaa;
    font-size: 14px;
    display: block;
    margin: 0;
    line-height: 1.4;
    font-variant-numeric: tabular-nums
}

.socket-gem.abyssal {
    width: 78%;
    height: 78%
}

.stat-value.es {
    color: #7090d0
}

.stat-value.mana {
    color: #6ab0e8
}

.stat-value.strength {
    color: var(--strength)
}

.stat-value.dexterity {
    color: var(--dexterity)
}

.stat-value.intelligence {
    color: var(--intelligence)
}

.stat-value.augmented {
    color: #88f !important
}

.resistances-row {
    display: flex;
    gap: 4px;
    font-weight: 600;
    font-size: 15px
}

.resistances-row .sep {
    color: var(--text-dim)
}

.resistances-row .fire {
    color: var(--fire)
}

.resistances-row .cold {
    color: var(--cold)
}

.resistances-row .lightning {
    color: var(--lightning)
}

.skills-section {
    grid-column: 1/-1
}

.skill-groups {
    padding: 16px;
    gap: 20px
}

.skill-group {
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px
}

.skill-group.main-skill {
    border-color: var(--gold-dim);
    background: rgba(196, 156, 80, .05)
}

.skill-group-slot {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-dim);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px
}

.skill-group-slot .main-badge {
    background: var(--gold);
    color: #000;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700
}

.gem-name {
    color: #afc1d4
}

.gem-name.support {
    color: #ffc555
}

.gem-red,
.gem-red-support {
    color: #c8483b !important
}

.gem-green,
.gem-green-support {
    color: #7ed321 !important
}

.gem-blue,
.gem-blue-support {
    color: #4a9cdc !important
}

.gem-white {
    color: #d6ccbe !important
}

.gem-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px
}

.equip-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px
}

.slot-img-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 4px 0
}

.equip-slot img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5));
    display: block;
    margin: 0 auto
}

.equip-slot[data-slot-name*=Weapon]:has(img[src*=energy-blade]) {
    width: 103.6px !important;
    min-width: 103.6px !important;
    max-width: 103.6px !important
}

.equip-slot[data-slot-name*=Weapon]:has(img[src*=cane-of-kulemak]) {
    width: 103.6px !important;
    min-width: 103.6px !important;
    max-width: 103.6px !important
}

.equip-slot[data-slot-name*=Weapon]:has(img[src*=cane-of-kulemak]) .item-sockets-container {
    height: 69% !important
}

.flask-slot img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto
}

.tft-item-slot {
    box-shadow: 0 0 20px rgba(255, 140, 0, .6), inset 0 0 15px rgba(255, 140, 0, .3) !important;
    border-color: #ff8c00 !important;
    animation: tft-pulse 2s ease-in-out infinite
}

@keyframes tft-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 140, 0, .6), inset 0 0 15px rgba(255, 140, 0, .3)
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 140, 0, .8), inset 0 0 20px rgba(255, 140, 0, .4)
    }
}

.corrupted-item-glow {
    box-shadow: 0 0 12px rgba(210, 0, 0, .4), inset 0 0 8px rgba(210, 0, 0, .2) !important;
    animation: corrupted-pulse 2.5s ease-in-out infinite
}

@keyframes corrupted-pulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(210, 0, 0, .4), inset 0 0 8px rgba(210, 0, 0, .2)
    }

    50% {
        box-shadow: 0 0 16px rgba(210, 0, 0, .5), inset 0 0 10px rgba(210, 0, 0, .25)
    }
}

.gem-level {
    color: var(--text-dim);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    padding-right: 5px
}

.jewels-section {
    grid-column: 1/-1
}

.jewels-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px
}

.jewel-entry {
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s
}

.jewel-entry:hover {
    background: var(--bg-slot-hover)
}

.jewel-name {
    font-weight: 500
}

.jewel-base {
    font-size: 11px;
    color: var(--text-dim)
}

.empty-state {
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--text-dim)
}

.empty-state h2 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px
}

.empty-state h2 img {
    width: 48px;
    height: 48px;
    object-fit: contain
}

.empty-state p {
    font-size: 22px;
    margin: 0;
    opacity: .7;
    text-align: center;
    width: 100%
}

.config-panel {
    margin-top: 10px
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.config-item:last-child {
    border-bottom: none
}

.config-label {
    color: var(--text-dim)
}

.config-value {
    font-weight: 300
}

.stat-value.theme-lightning,
.theme-lightning .config-icon,
.theme-lightning .config-value {
    color: var(--lightning)
}

.stat-value.theme-fire,
.theme-fire .config-icon,
.theme-fire .config-value {
    color: var(--fire)
}

.stat-value.theme-cold,
.theme-cold .config-icon,
.theme-cold .config-value {
    color: var(--cold)
}

.stat-value.theme-chaos,
.theme-chaos .config-icon,
.theme-chaos .config-value {
    color: var(--chaos)
}

.stat-value.theme-phys,
.theme-phys .config-icon,
.theme-phys .config-value {
    color: #e0bc68
}

.stat-value.theme-neutral,
.theme-neutral .config-icon,
.theme-neutral .config-value {
    color: var(--text-bright)
}

.stat-value.theme-life,
.theme-life .config-value {
    color: #e05050
}

.stat-value.theme-mana,
.theme-mana .config-value {
    color: #5090d0
}

.stat-value.theme-es,
.theme-es .config-value {
    color: #7090d0
}

.stat-value.theme-green,
.theme-green .config-value {
    color: #4f4
}

.stat-value.theme-unique,
.theme-unique .config-value {
    color: var(--gold)
}

.status-msg {
    text-align: center;
    padding: 40px 24px;
    grid-column: 1/-1;
    font-size: 14px
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: 100vh
}

.hovercraft {
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
    height: 100%;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #191e27;
    border-left: 1px solid rgba(57, 60, 67, .7);
    z-index: 1000;
    zoom: 0.9;
    line-height: 1.6
}

.hovercraft::-webkit-scrollbar,
.sidebar-inner::-webkit-scrollbar,
aside.hovercraft::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important
}

.hovercraft::-webkit-scrollbar-track,
.sidebar-inner::-webkit-scrollbar-track,
aside.hovercraft::-webkit-scrollbar-track {
    background: 0 0 !important
}

.hovercraft,
.sidebar-inner {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: #191e27
}

.sidebar-widgets {
    padding: 15px 20px 5px 20px;
    border-bottom: 1px solid rgba(57, 60, 67, .7)
}

.widget_polylang ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(57, 60, 67, .7);
    justify-content: center;
    flex-wrap: wrap
}

.widget_polylang ul li {
    display: inline
}

.widget_polylang ul li a {
    color: #888;
    text-decoration: none;
    font-size: .75rem;
    padding: 4px 8px;
    transition: color .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center
}

.widget_polylang ul li a.active,
.widget_polylang ul li a:hover {
    color: #c49c50
}

.custom-header-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px
}

.custom-header-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fb3;
    font-family: 'Fontin SmallCaps', sans-serif;
    font-size: 17px;
    transition: all .2s ease;
    padding: 3px 40px 3px 60px;
    border-radius: 5px;
    position: relative;
    height: 32px;
    line-height: 1.2;
    font-weight: 700
}

.custom-header-link:hover {
    color: #ffd27f
}

.extension-icons a img {
    transition: transform .2s ease, filter .2s ease
}

.extension-icons a:hover img {
    transform: scale(1.25);
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, .5));
    z-index: 10
}

.custom-header-link:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 5%, #333 50%, transparent 95%)
}

.custom-icon {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain
}

.question-mark-icon {
    width: 30px;
    height: 19px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain
}

.custom-header-links .custom-header-link:first-child>span:not(.popup),
.custom-header-links .custom-header-link:nth-child(2)>span:not(.popup) {
    color: #e07e22
}

.extension-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important
}

.extension-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important
}

.extension-icons {
    position: absolute !important;
    left: 100% !important;
    margin-left: 8px !important;
    display: flex !important;
    gap: 6px;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    line-height: 1 !important
}

.extension-text {
    color: #fb3;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1 !important;
    position: relative !important;
    top: -1px !important
}

.extension-icons a {
    display: flex !important;
    align-items: center !important
}

.browser-icon {
    width: 20px;
    height: 20px;
    object-fit: contain
}

.popup {
    display: none;
    position: absolute;
    background-color: #222;
    color: #fb3;
    padding: 12px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(0, 0, 0, .9);
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 2px solid #fb3;
    max-width: 280px;
    min-width: 250px;
    line-height: 1.6
}

.custom-header-link:hover .popup {
    display: block
}

.popup .red-text {
    color: #f44;
    font-weight: 700
}

.shop-status-box {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fb3;
    font-size: 20px;
    padding: 3px 10px;
    background: linear-gradient(to right, #11131a, #0a0e17);
    border-top: 1px solid rgba(57, 60, 67, .7);
    border-bottom: 1px solid rgba(57, 60, 67, .7)
}

.shop-status-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff6000, transparent)
}

.shop-status-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff6000, transparent)
}

.status-text {
    color: #fb3;
    padding-left: 0
}

.status-icon {
    position: absolute;
    left: 33px;
    transform: translateX(1px) !important;
    width: 20px;
    height: 20px;
    border-radius: 50%
}

.status-icon.online {
    background: radial-gradient(circle, #ff6000 20%, #fb3 80%);
    animation: flame-flicker 1.5s infinite
}

.status-icon.offline {
    background: radial-gradient(circle, #5a4a3a 20%, #6a5a4a 80%);
    box-shadow: none;
    opacity: .6
}

@keyframes flame-flicker {

    0%,
    100% {
        box-shadow: 0 0 3px 1px rgba(255, 96, 0, .5), 0 0 6px 2px rgba(255, 187, 51, .2);
        transform: translateY(-50%) scale(1)
    }

    50% {
        box-shadow: 0 0 5px 2px rgba(255, 96, 0, .6), 0 0 8px 3px rgba(255, 187, 51, .3);
        transform: translateY(-50%) scale(1.05)
    }
}

.tft-notification-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer
}

.notification-badge {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer
}

.notification-badge::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    background-image: url('../images/bell.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .8
}

.notification-badge[data-count]:not([data-count="0"])::before {
    filter: grayscale(1) brightness(2) sepia(1) hue-rotate(-10deg) saturate(5) drop-shadow(0 0 8px #ff6000);
    opacity: 1;
    animation: bell-pulse 2s infinite
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    line-height: 18px;
    background: radial-gradient(circle, rgba(255, 120, 0, .4) 20%, rgba(255, 96, 0, .25) 80%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.notification-badge[data-count="0"]::after {
    display: none
}

.notification-badge[data-count]:not([data-count="0"])::after {
    background: radial-gradient(circle, #ff4500 20%, #ff6b35 80%);
    box-shadow: 0 0 4px 1px rgba(255, 69, 0, .6), 0 0 8px 2px rgba(255, 107, 53, .4);
    animation: number-pulse 2s infinite
}

@keyframes bell-pulse {

    0%,
    100% {
        filter: grayscale(1) brightness(2) sepia(1) hue-rotate(-10deg) saturate(5) drop-shadow(0 0 4px rgba(255, 107, 53, .6))
    }

    50% {
        filter: grayscale(1) brightness(2.2) sepia(1) hue-rotate(-10deg) saturate(6) drop-shadow(0 0 8px rgba(255, 107, 53, .8))
    }
}

@keyframes number-pulse {

    0%,
    100% {
        box-shadow: 0 0 4px 1px rgba(255, 69, 0, .6), 0 0 8px 2px rgba(255, 107, 53, .4);
        transform: scale(1)
    }

    50% {
        box-shadow: 0 0 6px 2px rgba(255, 69, 0, .8), 0 0 12px 3px rgba(255, 107, 53, .6);
        transform: scale(1.05)
    }
}

.main-navigation {
    padding: 16px 20px 5px 20px;
    border-top: 1px solid rgba(57, 60, 67, .7);
    background-color: #191e27;
    flex: 1
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.main-navigation .menu-item a {
    font-size: 17px;
    position: relative;
    padding: 8px 40px 8px 60px;
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(to right, transparent 5%, #333 50%, transparent 95%) bottom/100% 1px no-repeat;
    transition: all .2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .9);
    font-weight: 700
}

.main-navigation .menu-item:first-child a {
    background: linear-gradient(to right, transparent 5%, #333 50%, transparent 95%) bottom/100% 1px no-repeat, linear-gradient(to right, transparent 5%, rgba(51, 51, 51, 0) 50%, transparent 95%) top/100% 1px no-repeat
}

.main-navigation .menu-item:last-child a {
    background: linear-gradient(to right, transparent 5%, rgba(51, 51, 51, 0) 50%, transparent 95%) bottom/100% 1px no-repeat
}

.main-navigation .menu-item a::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%)
}

.main-navigation .menu-item-poe2 a {
    color: #ea683e
}

.main-navigation .menu-item-poe2 a::before {
    background-image: url('../images/poe2icon.png')
}

.main-navigation .menu-item-poe2 a:hover {
    outline: 2px solid #ea683e
}

.main-navigation .menu-item-mirror a {
    color: #ffc555
}

.main-navigation .menu-item-mirror a::before {
    background-image: url('../images/tfticon.png')
}

.main-navigation .menu-item-mirror a:hover {
    outline: 2px solid #ffc555
}

.main-navigation .menu-item-poe1 a {
    color: #ffc555
}

.main-navigation .menu-item-poe1 a::before {
    background-image: url('../images/poeicon.png')
}

.main-navigation .menu-item-poe1 a:hover {
    outline: 2px solid #ffc555
}

.main-navigation .menu-item-keepers a {
    color: #e67e22
}

.main-navigation .menu-item-keepers a::before {
    background-image: url('../images/poeicon.png')
}

.main-navigation .menu-item-keepers a:hover {
    outline: 2px solid #e67e22
}

.main-navigation .menu-item-phrecia a {
    color: #ffbd82 !important
}

.main-navigation .menu-item-phrecia a::before {
    background-image: url('../images/poeicon.png')
}

.main-navigation .menu-item-phrecia a:hover {
    outline: 2px solid #cf711d
}

.main-navigation .menu-item a:hover {
    background: linear-gradient(to bottom, rgba(40, 45, 55, .9), rgba(30, 35, 45, .7));
    outline-offset: 2px;
    border-radius: 4px;
    z-index: 50
}

.main-navigation .current-menu-item>a {
    background: linear-gradient(to bottom, rgba(80, 20, 5, .5), rgba(210, 50, 20, .5)) !important;
    border-radius: 5px;
    position: relative
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false
}

@keyframes rotate-border {
    0% {
        --angle: 0deg
    }

    100% {
        --angle: 360deg
    }
}

.main-navigation .current-menu-item>a::after {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 0deg, transparent 20deg, #f60 345deg, #f80 350deg, #fa0 355deg, #f80 357deg, #f60 360deg, transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
    animation: rotate-border 1.5s linear infinite;
    pointer-events: none;
    z-index: 10
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    font-size: 11px;
    color: #666;
    background-color: #191e27;
    border-top: 1px solid rgba(57, 60, 67, .7);
    margin-top: auto
}

.sidebar-footer p {
    margin: 5px 0;
    line-height: 1.4
}

.site-footer {
    text-align: center !important;
    color: #666;
    background-color: #0e0e0e !important;
    border-top: 1px solid #302e2e;
    font-size: 15px;
    margin-top: auto;
    margin-right: 380px;
    zoom: 0.9
}

@media (max-width:991px) {
    .page-wrapper {
        flex-direction: column !important
    }

    .main-content {
        margin-right: 0 !important
    }

    .header-inner {
        margin-right: 0 !important
    }

    .pob-header {
        margin-right: 0 !important;
        margin-left: 0 !important
    }

    .paste-section {
        margin-right: 0 !important
    }

    .pob-banner {
        margin-right: 0 !important
    }

    .site-footer {
        margin-right: 0 !important
    }

    .hovercraft {
        position: relative !important;
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        order: -1 !important
    }

    .popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        max-width: 350px;
        min-width: unset;
        z-index: 99999;
        white-space: normal !important;
        text-align: center
    }
}

@media (max-width:768px) {
    .hovercraft {
        padding-bottom: 20px !important;
        border-bottom: 3px solid #ff6000 !important;
        box-shadow: 0 3px 10px rgba(255, 96, 0, .3) !important;
        zoom: 1 !important
    }

    .main-navigation .menu-item a {
        font-size: 14px !important;
        padding: 8px 50px 8px 50px !important;
        white-space: nowrap !important
    }

    .custom-header-link {
        font-size: 14px !important;
        padding: 3px 50px 3px 50px !important;
        white-space: nowrap !important
    }

    .extension-text {
        font-size: 14px !important;
        line-height: 1 !important;
        position: relative !important;
        top: -1px !important
    }

    .extension-inner {
        line-height: 1 !important
    }

    .extension-content {
        position: relative;
        left: 0
    }

    .extension-icons {
        line-height: 1 !important
    }

    .status-text {
        font-size: 17px !important
    }

    .main-content {
        padding: 15px 10px !important
    }

    .paste-section {
        padding: 12px 10px 0 !important;
        background: #1a1b1b !important
    }

    .pob-banner {
        background: #1a1b1b !important;
        margin-top: 20px !important
    }

    .pob-banner::after {
        background: #1a1b1b !important
    }

    .pob-header {
        padding: 12px 10px !important;
        gap: 8px !important;
        background: 0 0 !important
    }

    .char-name {
        font-size: 20px !important
    }

    .char-details {
        font-size: 11px !important;
        gap: 6px !important
    }

    .char-details span {
        padding: 4px 8px !important
    }

    .char-details #charClass {
        padding: 0 !important
    }

    .panel {
        border-radius: 6px;
        margin-bottom: 12px !important
    }

    .panel-title {
        font-size: 11px !important;
        padding: 8px 10px !important
    }

    .stat-group {
        padding: 8px 10px !important;
        gap: 4px !important
    }

    .stat-row {
        font-size: 11px !important;
        line-height: 1.4 !important
    }

    .stat-label {
        font-size: 11px !important
    }

    .stat-value {
        font-size: 11px !important
    }

    .skill-groups {
        padding: 10px !important;
        gap: 8px !important;
        grid-template-columns: 1fr !important
    }

    .skill-group {
        padding: 8px !important;
        gap: 6px !important
    }

    .skill-group-slot {
        font-size: 9px !important;
        gap: 4px !important
    }

    .gem-row {
        gap: 6px !important
    }

    .gem-icon {
        width: 28px !important;
        height: 28px !important
    }

    .gem-name {
        font-size: 11px !important;
        position: relative !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        grid-column: 2 !important;
        text-align: center !important;
        word-break: break-word !important;
        padding: 0 0 0 40px !important
    }

    .jewels-grid {
        padding: 10px !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important
    }

    .jewel-card {
        font-size: 11px !important;
        padding: 6px 8px !important;
        line-height: 1.4 !important
    }

    .jewel-name {
        font-size: 11px !important;
        margin-bottom: 3px !important
    }

    .btn {
        padding: 6px 10px !important;
        font-size: 11px !important
    }

    #pasteInput {
        font-size: 12px !important;
        padding: 8px !important
    }

    .empty-state {
        padding: 30px 10px !important
    }

    .empty-state h2 {
        font-size: 18px !important
    }

    .empty-state p {
        font-size: 12px !important
    }

    .site-footer {
        font-size: 12px !important;
        padding: 8px !important
    }

    .content-grid {
        gap: 12px !important
    }

    .tooltip {
        max-width: 90vw !important;
        font-size: 11px !important
    }

    #treeTooltip {
        width: 90% !important;
        box-sizing: border-box !important;
        pointer-events: none !important;
    }

    .item-tooltip-overlay {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, .7) !important;
        pointer-events: auto !important;
        display: none;
        justify-content: center !important;
        align-items: center !important
    }

    .item-tooltip-overlay.active {
        display: flex !important
    }

    .item-tooltip {
        max-width: calc(100vw - 4px) !important;
        min-width: 0 !important;
        padding: 40px 10px 10px 10px !important;
        font-size: 12px !important;
        position: relative;
        max-height: 90vh !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important
    }

    .item-tooltip::-webkit-scrollbar {
        width: 8px
    }

    .item-tooltip::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, .4);
        border-radius: 4px
    }

    .item-tooltip::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #ff8c00, #f60);
        border-radius: 4px;
        box-shadow: 0 0 6px rgba(255, 140, 0, .6)
    }

    .item-tooltip::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, orange, #f70);
        box-shadow: 0 0 10px rgba(255, 140, 0, .8)
    }

    .tooltip-close-btn {
        position: absolute;
        top: 4px;
        left: 4px;
        width: 36px;
        height: 36px;
        background: 0 0;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100;
        font-size: 32px;
        color: #f44;
        opacity: .8;
        user-select: none;
        transition: transform .2s;
        font-weight: 700
    }

    .tooltip-close-btn:active {
        transform: scale(.85)
    }

    .item-tooltip img[src*="bases/"],
    .item-tooltip img[src*="items/"] {
        max-width: 112px !important;
        max-height: 112px !important
    }

    .tooltip-header {
        font-size: 14px !important
    }

    .tooltip-header span:first-of-type {
        padding-bottom: 5px !important
    }

    .header-normal-single span:first-of-type {
        padding-bottom: 0 !important
    }

    .tooltip-header span:last-of-type {
        padding-top: 5px !important
    }

    .tooltip-header img {
        width: 22.4px !important;
        height: 22.4px !important;
        left: 9px !important
    }

    .tooltip-header img:last-of-type {
        left: auto !important;
        right: 9px !important
    }

    .header-magic span:first-of-type {
        white-space: normal !important;
        height: auto !important;
        min-height: 31px !important;
        align-items: center !important;
        line-height: 1.2 !important;
        padding-top: 2px !important;
        padding-bottom: 6px !important;
        position: relative !important;
        top: -3px !important
    }

    .tooltip-mod,
    .tooltip-props {
        font-size: 12px !important
    }

    .page-wrapper {
        overflow-x: hidden !important
    }

    .main-content {
        overflow-x: hidden !important;
        width: 100% !important
    }

    .main-grid {
        gap: 16px !important;
        width: 100% !important
    }

    .col-skills,
    .col-stats {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important
    }

    .col-equip {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        order: 1
    }

    .col-stats {
        order: 2
    }

    .col-skills {
        order: 3
    }

    .gem-level {
        font-size: 10px !important
    }
}

@media (min-width:992px) {
    .custom-icon {
        width: 35px;
        height: 35px
    }

    .main-navigation .menu-item a::before {
        width: 35px;
        height: 35px
    }

    .status-icon {
        left: 36px
    }

    .question-mark-icon {
        width: 35px;
        height: 26px;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        object-fit: contain
    }

    .tft-notification-badge {
        transform: translateY(-50%) translateX(-5px)
    }
}

.section-title {
    text-align: center;
    border: none !important;
    margin-bottom: 8px;
    padding-top: 12px;
    background: 0 0 !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim)
}

.pob-notes-section {
    padding: 0 8px 16px 8px;
    width: 100%;
    margin: 0 auto
}

.notes-enabled .toggle-switch {
    background: rgba(196, 156, 80, .15);
    border-color: rgba(196, 156, 80, .4)
}

.notes-enabled .toggle-switch::after {
    left: 20px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(196, 156, 80, .5)
}

.pob-notes-content {
    padding: 12px;
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 0, 0, .4);
    border-radius: 6px;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease
}

.pob-notes-content.collapsed {
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0
}

.section-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px 16px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto
}

.kt-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px 16px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto
}

.kt-icon-slot {
    width: 48px;
    height: 48px;
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
    position: relative;
    padding: 2px
}

.kt-icon-slot:hover {
    border-color: var(--gold);
    background: var(--bg-slot-hover);
    transform: translateY(-1px)
}

.kt-icon-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.kt-mastery-sprite {
    background-repeat: no-repeat;
    flex-shrink: 0
}

.equip-slot .kt-count-badge,
.kt-icon-slot .kt-count-badge {
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: rgba(0, 0, 0, .85);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 10
}

.kt-tooltip-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 4px;
    max-width: 350px;
    text-align: left
}

.kt-tooltip-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-slot);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.kt-tooltip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.kt-tooltip-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.kt-tooltip-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-bright);
    font-family: 'Fontin SmallCaps', sans-serif
}

.kt-tooltip-stats {
    font-size: 14px;
    color: #88f;
    line-height: 1.4
}

@media (min-width:992px) and (max-width:1100px) {
    .main-content {
        padding: 24px 16px 200px 16px
    }

    .paste-section {
        padding: 16px 16px 0
    }

    .pob-banner {
        margin-right: 342px
    }

    .col-skills,
    .col-stats {
        width: 100%;
        min-width: 0
    }

    .col-equip {
        width: 100%;
        max-width: 500px
    }

    .char-name {
        font-size: 24px
    }

    .stat-row {
        font-size: 13px
    }

    .stat-label,
    .stat-value {
        font-size: 13px
    }

    .header-inner {
        padding: 0 16px
    }
}

@media (min-width:1101px) and (max-width:1440px) {
    .main-content {
        padding: 30px 20px 200px 20px
    }

    .paste-section {
        padding: 20px 20px 0
    }

    .char-name {
        font-size: 26px
    }

    .pob-header {
        padding: 16px 20px
    }

    .stat-group {
        padding: 10px 14px
    }

    .stat-row {
        font-size: 13.5px
    }

    .skill-groups {
        padding: 14px;
        gap: 16px
    }

    .skill-group {
        padding: 10px
    }

    .gem-entry .gem-name {
        font-size: 13px
    }
}

@media (min-width:1441px) and (max-width:1800px) {
    .main-content {
        padding: 36px 24px 200px 24px
    }

    .char-name {
        font-size: 28px
    }

    .stat-row {
        font-size: 14px
    }
}

@media (min-width:1801px) and (max-width:1920px) {
    .main-content {
        padding: 40px 24px 200px 24px
    }

    .main-grid {
        gap: 28px
    }

    .char-name {
        font-size: 30px
    }

    .stat-row {
        font-size: 14.5px;
        padding: 3px 0
    }

    .stat-group {
        padding: 14px 18px
    }

    .gem-entry .gem-name {
        font-size: 14px
    }

    .skill-group {
        padding: 14px
    }

    .jewels-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
    }
}

@media (min-width:1921px) and (max-width:2499px) {
    .main-grid {
        gap: 32px
    }

    .char-name {
        font-size: 32px
    }

    .char-details {
        font-size: 15px
    }

    .pob-header {
        padding: 24px 28px
    }

    .stat-row {
        font-size: 15px;
        padding: 3px 0
    }

    .stat-group {
        padding: 14px 20px
    }

    .stat-group-title {
        font-size: 13px;
        margin-bottom: 10px
    }

    .panel-title {
        padding: 14px 18px;
        font-size: 14px
    }

    .gem-entry .gem-name {
        font-size: 15px
    }

    .skill-group {
        padding: 14px 16px
    }

    .skill-group-slot {
        font-size: 12px
    }

    .jewels-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 10px
    }

    .jewel-entry {
        padding: 10px 14px;
        font-size: 14px
    }

    .flask-slot {
        width: 64px;
        height: 128px
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px
    }

    .paste-input {
        padding: 12px 16px;
        font-size: 14px
    }
}

@media (min-width:2500px) {
    .main-grid {
        gap: 36px
    }

    .col-stats {
        width: 480px
    }

    .col-skills {
        min-width: 480px;
        max-width: 600px
    }

    .char-name {
        font-size: 34px
    }

    .char-details {
        font-size: 16px
    }

    .pob-header {
        padding: 28px 32px
    }

    .stat-row {
        font-size: 16px;
        padding: 4px 0
    }

    .stat-group {
        padding: 16px 22px
    }

    .stat-group-title {
        font-size: 14px;
        margin-bottom: 12px
    }

    .panel-title {
        padding: 16px 20px;
        font-size: 15px
    }

    .gem-entry .gem-name {
        font-size: 16px
    }

    .skill-groups {
        padding: 20px;
        gap: 24px
    }

    .skill-group {
        padding: 16px 18px
    }

    .skill-group-slot {
        font-size: 13px;
        margin-bottom: 10px
    }

    .jewels-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
        padding: 20px
    }

    .jewel-entry {
        padding: 12px 16px;
        font-size: 15px
    }

    .flask-slot {
        width: 68px;
        height: 136px
    }

    .flask-row {
        gap: 18px;
        padding: 24px 0
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px
    }

    .paste-input {
        padding: 14px 18px;
        font-size: 15px
    }

    .pob-banner::after {
        height: 40px
    }

    .equip-grid {
        grid-template-columns: 90px 136px 90px;
        gap: 12px
    }

    .jewel-slot {
        width: 72px;
        height: 72px
    }

    .jewel-icon {
        max-width: 62px;
        max-height: 62px
    }

    .kt-icon-slot {
        width: 54px;
        height: 54px
    }

    .kt-flex-container,
    .section-grid {
        max-width: 560px;
        gap: 10px
    }

    .pob-notes-content {
        font-size: 14px;
        padding: 16px
    }

    .empty-state h2 {
        font-size: 28px
    }

    .empty-state p {
        font-size: 24px
    }
}

@media (min-width:992px) {
    .main-grid {
        max-width: 100%
    }

    .jewels-section,
    .pob-notes-section,
    .skills-section {
        max-width: 100%
    }
}

@media (min-width:992px) and (max-width:2499px) {
    .main-content {
        padding-left: clamp(16px, 2vw, 24px);
        padding-right: clamp(16px, 2vw, 24px)
    }

    .header-inner {
        padding-left: clamp(16px, 2vw, 24px);
        padding-right: clamp(16px, 2vw, 24px)
    }
}

/* ── PoE-style passive tree tooltip ── */
#treeTooltip {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 360px !important;
    white-space: normal !important;
    line-height: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .75))
}

.tree-tip-poe {
    min-width: 200px;
    max-width: 360px;
    text-align: center
}

.tree-tip-poe-body {
    text-align: left
}

.tree-tip-poe-header {
    display: flex;
    align-items: stretch
}

.tree-tip-hdr-l,
.tree-tip-hdr-r {
    display: block;
    flex-shrink: 0;
    height: auto;
    max-height: 60px
}

.tree-tip-hdr-m {
    flex: 1;
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px
}

.tree-tip-poe .tree-tip-name {
    color: #f9e6ca !important;
    font-family: 'Fontin SmallCaps', serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
    padding: 2px 10px;
    display: block
}

.tree-tip-poe-body {
    background: rgba(12, 10, 8, .8);
    padding: 8px 0 10px
}

.tree-tip-poe .tree-tip-stat {
    color: #7d7dea !important;
    font-size: 15px;
    line-height: 1.55;
    padding: 2px 10px
}

.tree-tip-poe .tree-tip-stat:last-child {
    padding-bottom: 0
}

/* MF Stat Breakdown Tooltip */
.mf-stat-row {
    position: relative
}

.mf-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #999;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    line-height: 1;
    transition: background .15s, color .15s
}

.mf-info-icon:hover {
    background: rgba(196, 156, 80, .3);
    color: var(--gold)
}

.mf-tip {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 1000;
    background: rgba(10, 10, 12, .96);
    border: 1px solid rgba(196, 156, 80, .4);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #ccc;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .7);
    pointer-events: none
}

.mf-tip.visible {
    display: block
}

.mf-tip div {
    padding: 1px 0
}

@media (max-width: 768px) {
    .mf-tip {
        white-space: normal;
        min-width: 200px;
        max-width: 280px;
        pointer-events: auto
    }
}