/* Refined Inventory Header */
.panel-main-header-refined {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(212, 175, 55, 0.05) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    box-sizing: border-box;
    gap: 15px;
}

.panel-main-header-refined .export-btn {
    justify-self: start;
}

.panel-main-header-refined .import-btn {
    justify-self: end;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
}

@media (max-width: 480px) {
    .panel-main-header-refined {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title title"
            "export import";
        gap: 12px 10px;
        padding: 15px 12px;
    }

    .panel-main-header-refined .header-center {
        grid-area: title;
        margin-bottom: 4px;
        justify-self: center;
    }

    .panel-main-header-refined .export-btn {
        grid-area: export;
        justify-self: stretch;
        width: 100%;
    }

    .panel-main-header-refined .import-btn {
        grid-area: import;
        justify-self: stretch;
        width: 100%;
    }
}

.header-center #txt-inv-title {
    color: #fff;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 0.95em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.orokin-clear-btn {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #c9a050;
    /* Base Orokin Gold */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inventory-total-header {
    background: linear-gradient(180deg, rgba(20, 22, 26, 0.95), #0a0b0d);
    padding: 15px;
    border-bottom: 2px solid var(--wf-gold-text);
    margin-bottom: 10px;
    text-align: center;
}

.total-label {
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.total-value {
    color: var(--wf-gold-text);
    font-size: 1.6rem;
    font-weight: 900;
    font-family: monospace;
}

.price-badge-small {
    font-family: "Segoe UI", MONOSPACE, sans-serif;
    font-weight: 800;
    color: var(--wf-blue);
    background: rgba(0, 229, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 0.85em;
    min-width: 55px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
}

.qty-number {
    min-width: 28px;
    text-align: center;
    font-weight: 900;
    color: var(--wf-gold-text);
    font-family: monospace;
    font-size: 1.1em;
}

.loading-blink {
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

.inv-set-group {
    margin: 4px 10px;
    background: rgba(25, 30, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.set-title {
    color: var(--wf-gold-text);
    font-weight: 800;
    font-size: 0.85em;
    text-transform: uppercase;
    line-height: 1.2;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.set-count-badge {
    background: rgba(0, 229, 255, 0.1) !important;
    color: var(--wf-blue) !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    font-size: 0.6em !important;
    font-weight: 800 !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    margin-bottom: 2px;
    white-space: nowrap;
}

.set-total-price {
    color: #fff;
    font-family: MONOSPACE, sans-serif;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
}

.inv-set-header {
    display: flex;
    background: rgba(25, 30, 40, 0.7);
    padding: 6px 12px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.inv-set-header .header-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.inv-set-header .header-main {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.inv-set-header .header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
}

.inv-set-header:hover {
    background: rgba(35, 45, 60, 0.8);
}