/* Guild Rosters Page Styles */

.rosters-container {
    flex: 1;
    padding: 2rem;
}

.rosters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.rosters-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}



/* ── Overview — séparateur de rôle ── */
.roster-role-separator td {
    background: transparent;
    border: none !important;
    padding: 1.6rem 1.5rem 0.5rem;
}

.roster-role-separator:first-child td {
    padding-top: 0.8rem;
}

.roster-role-sep-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.roster-role-sep-inner::before,
.roster-role-sep-inner::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        color-mix(in srgb, var(--role-color) 45%, transparent),
        transparent
    );
}

.roster-role-sep-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px 1px color-mix(in srgb, var(--role-color) 50%, transparent);
}

.roster-role-sep-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--role-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.roster-role-sep-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--role-color);
    background: color-mix(in srgb, var(--role-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--role-color) 30%, transparent);
    padding: 1px 8px;
    border-radius: 10px;
}

/* ── Hover avec border-left coloré ── */
.roster-char-item {
    border-left: 3px solid transparent;
    transition: border-left-color 0.15s ease, background 0.15s ease;
}

.roster-char-item:hover {
    border-left-color: var(--row-role-color, var(--color-primary));
}

/* Difficulty tabs (top level) */
.difficulty-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-primary);
}

.difficulty-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-input-faint);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.difficulty-tab:hover {
    background: var(--bg-input);
    border-color: var(--border-primary);
    transform: translateY(-2px);
}

.difficulty-tab.active {
    background: var(--bg-primary-subtle);
    border-color: var(--color-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 12px var(--shadow-primary-focus);
}

.difficulty-tab .split-mode-badge {
    margin: 0;
    font-size: 0.85rem;
    padding: 4px 10px;
}

.roster-tabs {
    margin-bottom: 1.5rem;
}

.split-mode-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.split-mode-raid-normal {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
}

.split-mode-raid-heroic {
    background: rgba(128, 113, 91, 0.2);
    color: var(--color-role-ranged);
}

.split-mode-raid-mythic {
    background: rgba(156, 39, 176, 0.2);
    color: var(--color-warning);
}

/* Shared header portraits for raid bosses and M+ dungeons in roster tabs */
.roster-tab-content .roster-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid var(--border-primary-strong);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.roster-currency-col {
    min-width: 96px;
    white-space: normal;
}

.roster-currency-col__icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    display: block;
    margin: 0 auto 0.25rem;
}

.roster-currency-col__label {
    display: block;
    font-size: 0.72rem;
    line-height: 1.15;
}

.roster-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roster-tab.active {
    background: linear-gradient(135deg, var(--color-tab), var(--color-tab-light));
    color: var(--text-white);
    border-bottom: 3px solid var(--color-tab);
}

.roster-tab-badge {
    background: var(--bg-input-hover);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.bench-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bench-toggle-btn:hover {
    opacity: 1;
    border-color: var(--border-primary);
    color: var(--text-primary);
    background: var(--bg-input-faint);
}

.roster-content-wrapper {
    display: flex;
    gap: 2rem;
}

.roster-main-area {
    flex: 3;
}

.roster-main-area--full {
    flex: 1;
}

.roster-panel {
    display: none;
}

.roster-panel.active {
    display: block;
}

.roster-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.roster-panel-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.roster-table-container {
    flex: 65;
}

/* Keep custom select menus visible in split tables (last rows). */
.rosters-container .roster-table-container.app-table-container {
    overflow: visible;
}

.roster-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.roster-empty-state p {
    margin: 0.5rem 0;
}

/* Empty state for no splits/rosters */
.characters-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    border: 2px dashed var(--border-primary);
    border-radius: 16px;
    min-height: 400px;
}

.characters-empty-text {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.characters-empty::before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, var(--bg-primary-muted), var(--bg-primary-ghost));
    border-radius: 50%;
    border: 3px solid var(--border-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='%237850ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px 60px;
}

.roster-sidebar {
    flex: 1;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.roster-sidebar-header {
    margin-bottom: 1rem;
}

.roster-sidebar-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.roster-sidebar-content {
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.user-chars-group {
    margin-bottom: 1.5rem;
}

.user-chars-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-primary-faint);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.user-chars-username {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-chars-count {
    background: var(--bg-primary-muted);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-chars-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.available-char {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-input);
    border-radius: 6px;
    cursor: grab;
    transition: all 0.2s ease;
}

.available-char:hover {
    background: var(--bg-primary-faint);
    transform: translateX(4px);
}

.available-char.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.char-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.char-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.char-name-small {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-badge {
    background: var(--bg-primary-muted);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.char-class-small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.roster-content-box {
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.roster-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.roster-content-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.roster-content-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.roster-badge-main {
    background: var(--bg-primary-muted);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.roster-badge-alt {
    background: rgba(255, 193, 7, 0.15);
    color: var(--color-warning-alt);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.roster-content-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.roster-char-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}


.roster-chars-list {
    min-height: 400px;
}

/* roster-table — base styles from app-table.css, overrides below */



.roster-table th.sortable:hover {
    background: var(--bg-primary-faint);
}

.roster-table tbody tr {
    cursor: pointer;
}


/* Role separators */
.roster-table tbody tr.role-separator {
    cursor: default;
}

.roster-table tbody tr.role-separator:hover {
    background: transparent;
}

.roster-table tbody tr.role-separator td {
    user-select: none;
}

/* Splits role separators: match roster tab role separator design */
.roster-table tbody tr.role-separator.roster-role-separator td {
    background: transparent;
    border: none !important;
    padding: 1.1rem 1.5rem 0.45rem;
}

.roster-table tbody tr.role-separator.roster-role-separator:first-child td {
    padding-top: 0.8rem;
}

.roster-table tbody tr.non-admin {
    cursor: default;
}

.roster-table tbody tr.non-admin:hover {
    background: transparent;
}

.roster-table tbody.drag-over {
    background: var(--bg-primary-faint);
    outline: 2px dashed var(--color-primary);
    outline-offset: -2px;
}



.split-chars-list.drag-over {
    background: var(--bg-primary-faint);
    outline: 2px dashed var(--color-primary);
    outline-offset: -2px;
}



.roster-table .char-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roster-table .char-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.roster-table .char-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.roster-table .player-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.roster-table .class-name {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.roster-table .ilvl-value {
    text-align: center;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.roster-table .last-update-value {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.roster-table .socket-value {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Role select styling */
.role-select {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.role-select:hover {
    background: var(--bg-input-hover);
    border-color: var(--border-primary);
}

.role-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--shadow-primary-focus);
}

.role-select option {
    background: var(--bg-surface-1);
    padding: 0.5rem;
}

/* Custom select skin for splits page */
.rosters-container .filter-custom-select {
    width: 100%;
}

.rosters-container .filter-custom-select__trigger {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    min-height: auto;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

.rosters-container .filter-custom-select__trigger:hover {
    background: var(--bg-input-hover);
    border-color: var(--border-primary);
}

.rosters-container .filter-custom-select.is-open .filter-custom-select__trigger,
.rosters-container .filter-custom-select__trigger:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--shadow-primary-focus);
}

.rosters-container .filter-custom-select--role-select {
    width: auto;
    min-width: 90px;
}

.rosters-container .filter-custom-select--role-select .filter-custom-select__trigger {
    min-width: 90px;
}

/* Available Characters Sidebar */
.available-chars-sidebar {
    flex: 1;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.available-chars-box {
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.available-chars-title {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.available-user-group {
    margin-bottom: 1rem;
}

.available-user-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary-faint);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.available-user-header:hover {
    background: var(--bg-primary-subtle);
}

.available-user-header .toggle-icon {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.available-user-group.expanded .toggle-icon {
    transform: rotate(180deg);
}

.available-user-icon {
    width: 16px;
    height: 16px;
}

.available-chars-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.available-char {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input-faint);
    border-radius: 6px;
    border: 1px solid var(--border-faint);
    cursor: pointer;
    transition: all 0.2s ease;
}

.available-char[draggable="true"] {
    cursor: grab;
}

.available-char[draggable="true"]:active {
    cursor: grabbing;
}

.available-char.dragging {
    opacity: 0.5;
}

.available-char:hover {
    background: var(--bg-primary-faint);
    border-color: var(--border-primary);
}

.available-char.non-admin {
    cursor: default;
}

.available-char.non-admin:hover {
    background: var(--bg-input-faint);
    border-color: var(--border-faint);
}

.available-char-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.available-char-name {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-star {
    color: var(--color-gold);
    font-size: 0.75rem;
}

.available-char-class {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.available-char-ilvl {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: linear-gradient(135deg, var(--bg-surface-1) 0%, var(--bg-surface-2) 100%);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-title {
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Split content wrapper */
.split-content-wrapper {
    display: flex;
    gap: 1.5rem;
}

/* Split composition sidebar */
.split-composition-sidebar {
    flex: 35;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-sidebar-section {
    background: linear-gradient(145deg, var(--bg-surface-1), var(--bg-surface-2));
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem;
}

.split-sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.split-roles-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.split-role-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.role-count-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.role-count-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
    text-align: right;
}

.split-classes-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.split-class-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.class-count-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.class-count-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
    text-align: right;
}

/* Composition counters (mains / alts / helpers) */
.split-composition-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.split-compo-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compo-count-icon {
    width: 24px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.split-compo-count[data-compo="main"] .compo-count-icon { color: #f0c040; }
.split-compo-count[data-compo="alt"]  .compo-count-icon { color: #7eb8d4; }
.split-compo-count[data-compo="helper"] .compo-count-icon { color: #4caf50; }
.split-compo-count[data-compo="total"] .compo-count-icon { color: var(--text-muted); }

.compo-count-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.compo-count-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
    text-align: right;
}

.split-compo-total {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.split-compo-total .compo-count-label,
.split-compo-total .compo-count-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* Duplicate character warning */
.roster-char-item.duplicate-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid var(--color-warning);
}

.roster-char-item.duplicate-warning:hover {
    background: rgba(255, 152, 0, 0.15);
}

.duplicate-warning-icon {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.duplicate-warning-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.duplicate-warning-icon:hover::after {
    opacity: 1;
}

.split-tokens {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.token-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.token-count-value {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 24px;
    text-align: right;
}

.token-classes {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-placeholder);
    font-weight: 400;
}

.split-buffs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.buff-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: transform 0.2s ease;
}

.buff-icon:hover {
    transform: scale(1.15);
    z-index: 10;
}

.buff-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.buff-icon-missing {
    opacity: 0.3;
    filter: grayscale(100%);
    border-color: var(--border-subtle);
}

.buff-icon-missing:hover {
    opacity: 0.5;
}

.buffs-count-value {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}


.wow-item-icon {
    width: 28px; height: 28px; border-radius: 50%;
}

.enchant-missing {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 10px;
    line-height: 1;
    color: #f59e0b;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Gear tab — compact slot columns */
.gear-col-slot {
    min-width: 36px;
    max-width: 36px;
    text-align: center;
    padding: 0.25rem 0.1rem !important;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0;
    white-space: nowrap;
}

.gear-col-slot td {
    padding: 0.25rem 0.1rem !important;
    text-align: center;
}

/* Stat columns (ilvl, issues) */
.gear-col-stat {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    text-align: center;
    padding: 0.25rem 0.25rem !important;
    white-space: nowrap;
}

.gear-ilvl-value {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.gear-issues-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    padding: 1px 5px;
    min-width: 20px;
    text-align: center;
}

.gear-issues-badge--warn {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.gear-issues-badge--ok {
    background: rgba(30, 255, 0, 0.1);
    color: #1eff00;
    border: 1px solid rgba(30, 255, 0, 0.3);
}

/* Gear cell centering */
.gear-cell-item {
    margin: 0 auto;
}

/* Row highlight when gear issues exist */
tr.gear-has-issues {
    background: rgba(220, 50, 50, 0.07) !important;
}

tr.gear-has-issues:hover {
    background: rgba(220, 50, 50, 0.13) !important;
}

/* Tab loader */

/* Professions */
.profession-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.profession-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.profession-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.profession-name {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.profession-info .mode-progress-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.profession-info .mode-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.profession-info .mode-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.profession-info .mode-progress-fill--normal {
    background: linear-gradient(90deg, var(--color-normal), var(--color-normal-alt));
}


.kill-success {
    color: var(--color-success) !important;
    font-weight: 600;
}



/* WarcraftLogs rank percent badge */
.wcl-pct {
    font-weight: 700;
    font-size: 0.85rem;
}

.wcl-pct--none {
    color: var(--text-muted);
    font-weight: 400;
}


/* ── Vault progress bar ─────────────────────────────────────────── */
.vault-bar {
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding: 0.1rem 0.25rem;
}

/* Connecteur entre les slots */
.vault-bar__line {
    flex: 1;
    height: 2px;
    min-width: 1rem;
    background: var(--border-subtle);
    border-radius: 2px;
    margin-bottom: 14px;
    position: relative;
    transition: background 0.3s;
}

.vault-bar__line--filled { background: var(--vault-tier-color, var(--text-subtle)); }

.vault-bar__line-progress {
    position: absolute;
    left: 50%;
    top: -13px;
    transform: translateX(-50%);
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--color-warning-alt);
    background: color-mix(in srgb, var(--bg-surface-1) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-warning-alt) 40%, transparent);
    border-radius: 9px;
    padding: 1px 5px;
    line-height: 1;
    white-space: nowrap;
}

/* Point = label + carte */
.vault-bar__point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    z-index: 1;
}

/* Label au-dessus de la carte */
.vault-bar__label {
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
    white-space: nowrap;
    line-height: 1;
    transition: color 0.2s;
}

.vault-bar__point--unlocked .vault-bar__label {
    color: var(--vault-tier-color, var(--text-muted));
}

/* Carte */
.vault-bar__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 24px;
    border-radius: 5px;
    background: var(--bg-input-faint);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* Slot débloqué */
.vault-bar__point--unlocked .vault-bar__slot {
    background: color-mix(in srgb, var(--vault-tier-color, #22c55e) 10%, transparent);
    border-color: color-mix(in srgb, var(--vault-tier-color, #22c55e) 60%, transparent);
}

/* Ilvl */
.vault-bar__ilvl {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-subtle);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.vault-bar__point--unlocked .vault-bar__ilvl {
    color: var(--vault-tier-color, var(--text-primary));
}

/* Label progression (X/threshold) */
.vault-bar__progress-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-warning-alt);
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Tiers de couleur — définis sur le .point pour héritage */
.vault-bar__point.vault-tier--blue,
.vault-bar__point.vault-tier--blue .vault-bar__slot   { --vault-tier-color: var(--color-info,   #0070dd); }
.vault-bar__point.vault-tier--purple,
.vault-bar__point.vault-tier--purple .vault-bar__slot { --vault-tier-color: var(--color-heroic, #a335ee); }
.vault-bar__point.vault-tier--orange,
.vault-bar__point.vault-tier--orange .vault-bar__slot { --vault-tier-color: var(--color-mythic, #ff8000); }
