/* =====================================================================
   RAVIX 2027 — Spatial Obsidian & Luminous Gold Design System
   Preserves all DOM IDs & JS hooks while delivering a 2027 bento/glass UI.
   ===================================================================== */

:root {
    --bg-void: #050609;
    --surface-0: #0a0c12;
    --surface-1: #0f121b;
    --surface-2: #151925;
    --surface-3: #1c2233;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --gold: #f5b942;
    --gold-bright: #fde68a;
    --gold-soft: rgba(245, 185, 66, 0.12);
    --gold-line: rgba(245, 185, 66, 0.38);
    --indigo-soft: rgba(99, 102, 241, 0.10);
    --cyan-soft: rgba(34, 211, 238, 0.08);
    --text-1: #f4f6fb;
    --text-2: #b4bdd0;
    --text-3: #717c94;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 13px;
    --radius-sm: 9px;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 32px rgba(0, 0, 0, 0.42);
    --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 24px 64px rgba(0, 0, 0, 0.65);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

    /* Legacy token mapping */
    --bg-card: var(--surface-1);
    --bg-card-hover: var(--surface-2);
    --bg-input: var(--surface-0);
    --border-neon: var(--line-strong);
    --border-neon-hover: var(--gold-line);
    --text-silver: var(--text-1);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --cyan-accent: var(--gold);
}

/* ---------- Base & Ambient 2027 Mesh ---------- */
body,
body.ravix-theme {
    background-color: var(--bg-void) !important;
    background-image:
        radial-gradient(960px 540px at 88% -8%, rgba(245, 185, 66, 0.11), transparent 62%),
        radial-gradient(820px 500px at -8% 102%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(640px 420px at 50% 40%, rgba(34, 211, 238, 0.035), transparent 72%) !important;
    background-attachment: fixed !important;
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 1;
}

::selection { background: rgba(245, 185, 66, 0.32); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    border: 2px solid var(--bg-void);
}
::-webkit-scrollbar-thumb:hover { background: rgba(245, 185, 66, 0.45); }

main { max-width: 1360px; margin-inline: auto; width: 100%; }

/* ---------- Floating Spatial Header ---------- */
header {
    background: rgba(7, 9, 14, 0.78) !important;
    backdrop-filter: saturate(170%) blur(24px) !important;
    -webkit-backdrop-filter: saturate(170%) blur(24px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
    padding: 0.62rem 1.35rem !important;
    gap: 0.65rem 0.9rem !important;
    flex-wrap: nowrap !important;
    max-width: 100vw;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1200 !important;
}

.logo-img-wrapper {
    width: 40px;
    height: 40px;
    padding: 2px;
    border-radius: 13px !important;
    box-shadow: 0 0 0 1px var(--gold-line), 0 8px 22px rgba(245, 185, 66, 0.22) !important;
}

.brand-text h1 {
    text-shadow: none !important;
    letter-spacing: 3px;
    font-size: 1.24rem;
    background: linear-gradient(135deg, #ffffff 10%, #fde68a 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-text p { color: var(--text-3) !important; font-weight: 700; letter-spacing: 1.6px; font-size: 0.6rem; }

.nav-tabs {
    order: 2;
    background: rgba(15, 18, 27, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 14px !important;
    padding: 4px !important;
    gap: 4px !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
    max-width: 100%;
    flex-wrap: nowrap !important;
    align-items: center;
    overflow: visible !important;
}

.nav-tab-btn {
    color: var(--text-2) !important;
    border-radius: 10px !important;
    padding: 0.46rem 0.85rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    border: 1px solid transparent !important;
    transition: all 0.2s var(--ease-spring) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
}
.nav-tab-btn:hover {
    color: var(--text-1) !important;
    background: rgba(255, 255, 255, 0.055) !important;
}
.nav-tab-btn.active,
.nav-dropdown.has-active > .nav-dropdown-toggle {
    background: linear-gradient(180deg, rgba(245, 185, 66, 0.22) 0%, rgba(245, 185, 66, 0.09) 100%) !important;
    color: var(--gold-bright) !important;
    border-color: rgba(245, 185, 66, 0.42) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 20px rgba(245, 185, 66, 0.16) !important;
}

/* Grouped Navigation Dropdowns */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-chevron {
    font-size: 0.68rem;
    opacity: 0.72;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-inline-start: 2px;
}
.nav-dropdown.open > .nav-dropdown-toggle {
    color: var(--text-1) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
.nav-dropdown.has-active.open > .nav-dropdown-toggle {
    color: var(--gold-bright) !important;
    border-color: rgba(245, 185, 66, 0.5) !important;
}
.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 9px);
    inset-inline-start: 0;
    min-width: 224px;
    background: rgba(11, 14, 23, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(245, 185, 66, 0.28);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1500;
}
.nav-dropdown.open > .nav-dropdown-menu {
    display: flex;
    animation: ravixNavDropIn 0.16s ease-out;
}
@keyframes ravixNavDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-item {
    width: 100%;
    justify-content: flex-start !important;
    text-align: start;
    padding: 0.56rem 0.85rem !important;
    font-size: 0.84rem !important;
    border-radius: 10px !important;
}
.nav-pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f59e0b;
    color: #0b0d14;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.mobile-nav-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(18, 22, 33, 0.9);
    border: 1px solid var(--line-strong);
    color: var(--text-1);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mobile-nav-toggle-btn:hover {
    border-color: var(--gold-line);
    color: var(--gold-bright);
}
.mobile-nav-toggle-btn.is-open {
    border-color: rgba(245, 185, 66, 0.55);
    color: var(--gold-bright);
    background: rgba(245, 185, 66, 0.12);
}

.header-actions {
    order: 3;
    gap: 0.45rem !important;
    min-width: 0;
    flex-shrink: 0;
    align-items: center;
}

.lang-toggle-btn, .refresh-btn, .bot-connect-btn {
    background: rgba(18, 22, 33, 0.85) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--text-2) !important;
    border-radius: 11px !important;
    padding: 0.44rem 0.78rem !important;
    font-size: 0.8rem !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
    transition: all 0.2s var(--ease-spring) !important;
    white-space: nowrap;
}
.lang-toggle-btn:hover, .refresh-btn:hover, .bot-connect-btn:hover {
    color: var(--text-1) !important;
    border-color: var(--gold-line) !important;
    background: var(--surface-3) !important;
    transform: translateY(-1px);
}

#discordUserProfile {
    background: rgba(15, 18, 27, 0.9) !important;
    border: 1px solid rgba(245, 185, 66, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    padding: 0.28rem 0.68rem !important;
    gap: 0.48rem !important;
    max-width: 210px;
}
#userNameText {
    color: var(--gold-bright) !important;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#btnLoginDiscord {
    box-shadow: 0 8px 22px rgba(88, 101, 242, 0.32) !important;
    border-radius: 11px !important;
    padding: 0.44rem 0.82rem !important;
    font-size: 0.78rem !important;
}

@media (min-width: 961px) {
    header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .header-top-bar { display: contents !important; }
    .nav-tabs {
        display: flex !important;
        width: auto !important;
        flex-direction: row !important;
    }
    .nav-tab-btn { flex: 0 0 auto !important; }
}

@media (max-width: 1280px) {
    .brand-text p { display: none !important; }
    header { padding: 0.58rem 1rem !important; gap: 0.55rem !important; }
    .nav-tab-btn { padding: 0.44rem 0.72rem !important; font-size: 0.8rem !important; }
    #btnRefreshText { display: none; }
}

@media (max-width: 1100px) {
    #langText { display: none; }
    .lang-toggle-btn, .refresh-btn { padding: 0.44rem 0.64rem !important; }
    #btnMyAlbionLink { max-width: 132px; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 960px) {
    header {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        padding: 0.55rem 0.85rem !important;
        gap: 0.5rem !important;
    }
    .header-top-bar {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap !important;
        gap: 0.45rem;
    }
    .mobile-nav-toggle-btn { display: inline-flex !important; }
    .nav-tabs {
        display: none !important;
        order: 3;
        width: 100% !important;
        margin: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.55rem !important;
        gap: 0.35rem !important;
        overflow: visible !important;
        max-height: calc(100vh - 84px);
        overflow-y: auto !important;
    }
    .nav-tabs.mobile-open {
        display: flex !important;
        animation: ravixNavDropIn 0.18s ease-out;
    }
    .nav-tabs.mobile-open > .nav-tab-btn {
        width: 100%;
        justify-content: flex-start !important;
    }
    .nav-dropdown {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .nav-dropdown-toggle {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .nav-dropdown-chevron {
        margin-inline-start: auto !important;
    }
    .nav-dropdown-menu {
        position: static !important;
        min-width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: none !important;
        border-inline-start: 2px solid rgba(245, 185, 66, 0.38) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        margin-top: 0.25rem;
        margin-inline-start: 0.65rem;
        padding: 0.25rem 0.35rem !important;
        border-radius: 0 10px 10px 0 !important;
    }
    html[dir="rtl"] .nav-dropdown-menu {
        border-radius: 10px 0 0 10px !important;
    }
    .nav-dropdown-item {
        padding: 0.5rem 0.72rem !important;
        font-size: 0.82rem !important;
    }
    .header-actions {
        flex-wrap: nowrap !important;
        justify-content: flex-end;
    }
}

@media (max-width: 580px) {
    header { padding: 0.5rem 0.65rem !important; }
    .header-top-bar { gap: 0.35rem; }
    .header-actions { gap: 0.32rem !important; }
    .brand-text { display: none !important; }
    .logo-img-wrapper { width: 34px; height: 34px; }
    #discordUserWrapper { gap: 0.28rem !important; min-width: 0; }
    #btnMyAlbionLink {
        padding: 0.34rem 0.48rem !important;
        font-size: 0.72rem !important;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #btnLoginDiscordText { display: none !important; }
    #btnLoginDiscord { padding: 0.4rem 0.56rem !important; }
    #discordUserProfile {
        padding: 0.22rem 0.44rem !important;
        gap: 0.3rem !important;
        max-width: 126px;
    }
    #userAvatarImg { width: 24px !important; height: 24px !important; }
    #userRoleBadge { display: none !important; }
    #userNameText { max-width: 56px; font-size: 0.72rem !important; }
    .lang-toggle-btn, .refresh-btn, .mobile-nav-toggle-btn {
        width: 32px;
        height: 32px;
        padding: 0 !important;
        justify-content: center;
    }
}

/* ---------- 2027 Compact Hero Banner ---------- */
.ravix-hero-banner {
    background:
        radial-gradient(ellipse 65% 80% at 50% 0%, rgba(245, 185, 66, 0.10), transparent 70%),
        linear-gradient(180deg, rgba(20, 24, 36, 0.85) 0%, rgba(11, 14, 21, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-1) !important;
    padding: 1.5rem 2rem !important;
    position: relative;
    overflow: hidden;
}
.ravix-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
    opacity: 0.45;
    pointer-events: none;
}
.ravix-hero-glow { opacity: 0.42 !important; }
.ravix-main-title {
    text-shadow: 0 6px 26px rgba(245, 185, 66, 0.25) !important;
    letter-spacing: 6px !important;
}

/* ---------- Bento Metric & Panel Cards ---------- */
.metric-card,
.panel-card,
.glass-card {
    background: linear-gradient(180deg, rgba(19, 23, 34, 0.86) 0%, rgba(11, 14, 21, 0.94) 100%) !important;
    backdrop-filter: blur(20px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 22px !important;
    box-shadow: var(--shadow-1) !important;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 185, 66, 0.30) !important;
}
.metric-icon {
    background: var(--gold-soft) !important;
    border: 1px solid var(--gold-line) !important;
    color: var(--gold) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
}
.metric-info h3 { color: var(--text-3) !important; font-weight: 700 !important; letter-spacing: 0.3px; }
.metric-info .value { color: var(--text-1) !important; text-shadow: none !important; }

.panel-header { border-bottom: 1px solid var(--line) !important; padding-bottom: 1rem !important; }
.panel-title { color: var(--text-1) !important; font-weight: 800 !important; letter-spacing: 0.2px; }
.panel-title i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.18), rgba(245, 185, 66, 0.06));
    border: 1px solid var(--gold-line);
    border-radius: 11px;
    color: var(--gold) !important;
    font-size: 0.92rem !important;
    text-shadow: none !important;
}

/* ---------- Modern Inputs & Primary Buttons ---------- */
.form-group label { color: var(--text-2) !important; font-weight: 700 !important; font-size: 0.84rem !important; }
.form-group label i { color: var(--gold) !important; opacity: 0.9; }

.form-control,
select.form-control,
input.form-control,
textarea.form-control {
    background: rgba(8, 10, 15, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 12px !important;
    color: var(--text-1) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:hover { border-color: rgba(255, 255, 255, 0.22) !important; }
.form-control:focus {
    border-color: rgba(245, 185, 66, 0.72) !important;
    box-shadow: 0 0 0 3.5px rgba(245, 185, 66, 0.15) !important;
    background: rgba(12, 15, 23, 0.98) !important;
    outline: none !important;
}
select.form-control option { background: #10141f; color: var(--text-1); }

.btn-submit,
.btn-primary {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 52%, #d97706 100%) !important;
    color: #0b0d13 !important;
    border: 1px solid rgba(254, 240, 138, 0.55) !important;
    border-radius: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 26px rgba(245, 158, 11, 0.26) !important;
    text-shadow: none !important;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, filter 0.2s ease !important;
}
.btn-submit:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 32px rgba(245, 158, 11, 0.36) !important;
}
.btn-submit:active:not(:disabled),
.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.97);
}

#totalSeatsBadge {
    background: var(--gold-soft) !important;
    border: 1px solid var(--gold-line) !important;
    box-shadow: none !important;
}

/* ---------- Role Seat & Weapon Build Cards ---------- */
.special-role-card, .role-build-card {
    background: rgba(11, 14, 21, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
    align-self: start !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.special-role-card:hover, .role-build-card:hover {
    border-color: var(--gold-line) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42) !important;
}

.role-special-panel {
    max-height: 440px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--gold-line) transparent !important;
}
.role-special-panel::-webkit-scrollbar { width: 6px; }
.role-special-panel::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 4px; }

.btn-step-dec, .btn-step-inc {
    background: var(--surface-2) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--text-1) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}
.btn-step-inc:hover { border-color: var(--gold-line) !important; color: var(--gold) !important; background: var(--surface-3) !important; }
.btn-step-dec:hover { border-color: rgba(239, 68, 68, 0.5) !important; color: #f87171 !important; background: rgba(239, 68, 68, 0.10) !important; }

/* ---------- Event Cards ---------- */
.event-card {
    background: linear-gradient(180deg, rgba(18, 22, 33, 0.92) 0%, rgba(10, 13, 20, 0.97) 100%) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    padding: 1.2rem 1.25rem !important;
    box-shadow: var(--shadow-1) !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.event-card:hover {
    border-color: rgba(245, 185, 66, 0.42) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 20px 44px rgba(0, 0, 0, 0.58), 0 0 24px rgba(245, 185, 66, 0.08) !important;
}
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0 !important;
}
.event-card-title-wrap {
    min-width: 0;
    flex: 1;
}
.event-card-title {
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    color: var(--text-1) !important;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.event-type-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.14);
    border: 1px solid rgba(245, 185, 66, 0.32);
    color: var(--gold-bright);
}
.event-card-channel {
    font-family: 'Outfit', monospace;
    font-size: 0.74rem;
    color: var(--text-3);
    margin-top: 0.2rem;
    unicode-bidi: isolate;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-card-creator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    font-size: 0.76rem;
    color: var(--text-3);
}
.event-card-creator img {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold-line);
}
.event-card-creator b { color: var(--gold-bright); }

.event-card-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.58rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-2);
    font-size: 0.79rem;
    line-height: 1.55;
    word-break: break-word;
}
.event-card-note i {
    color: var(--gold);
    margin-top: 0.22rem;
    flex-shrink: 0;
}
.event-card-note strong { color: var(--text-1); font-weight: 800; }
.event-note-code {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    margin: 0 0.12rem;
    border-radius: 6px;
    background: rgba(245, 185, 66, 0.12);
    border: 1px solid rgba(245, 185, 66, 0.28);
    color: #fde68a;
    font-family: 'Outfit', monospace;
    font-size: 0.74rem;
    font-weight: 700;
}

.event-roles-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0 !important;
}
.event-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--rc, var(--text-2));
    background: color-mix(in srgb, var(--rc, #94a3b8) 10%, rgba(15, 18, 27, 0.9));
    border: 1px solid color-mix(in srgb, var(--rc, #94a3b8) 28%, transparent);
    white-space: nowrap;
}
.event-role-chip img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
}
.event-role-chip b {
    color: var(--text-1);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.event-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.event-card-actions .btn-action-small {
    height: 38px;
    padding: 0 0.75rem !important;
    font-size: 0.79rem !important;
    white-space: nowrap;
    gap: 0.4rem !important;
}
.ev-btn-details {
    background: rgba(59, 130, 246, 0.14) !important;
    border-color: rgba(59, 130, 246, 0.42) !important;
    color: #93c5fd !important;
}
.ev-btn-details:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: #60a5fa !important;
    color: #dbeafe !important;
}
.ev-btn-edit {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(16, 185, 129, 0.42) !important;
    color: #6ee7b7 !important;
}
.ev-btn-edit:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #34d399 !important;
    color: #d1fae5 !important;
}
.ev-btn-mass {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(245, 158, 11, 0.42) !important;
    color: #fbbf24 !important;
}
.ev-btn-mass:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: #fbbf24 !important;
    color: #fef3c7 !important;
}
.ev-btn-demass {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.42) !important;
    color: #fca5a5 !important;
}
.ev-btn-demass:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.ev-btn-locked {
    background: rgba(148, 163, 184, 0.1) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #64748b !important;
    cursor: not-allowed;
    opacity: 0.72;
}

.event-badge { border-radius: 999px !important; font-weight: 700 !important; letter-spacing: 0.3px; }
.badge-role-tank    { background: rgba(59, 130, 246, 0.14) !important; color: #93c5fd !important; border: 1px solid rgba(59, 130, 246, 0.38) !important; }
.badge-role-healer  { background: rgba(16, 185, 129, 0.14) !important; color: #6ee7b7 !important; border: 1px solid rgba(16, 185, 129, 0.38) !important; }
.badge-role-dps     { background: rgba(239, 68, 68, 0.14) !important; color: #fca5a5 !important; border: 1px solid rgba(239, 68, 68, 0.38) !important; }
.badge-role-support { background: rgba(168, 85, 247, 0.14) !important; color: #d8b4fe !important; border: 1px solid rgba(168, 85, 247, 0.38) !important; }

/* ---------- Quick Tier & Enchantment Picker (Equipped Weapon) ---------- */
.weapon-te-picker {
    margin-top: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 13px;
    background: rgba(15, 18, 28, 0.88);
    border: 1px solid rgba(245, 185, 66, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.weapon-te-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: var(--text-2);
}
.weapon-te-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    color: var(--gold-bright);
}
.weapon-te-name img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
}
.weapon-te-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.weapon-te-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-3);
    min-width: 56px;
}
.weapon-te-pills {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.te-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}
.te-pill-btn:hover {
    border-color: rgba(245, 185, 66, 0.45);
    color: var(--text-1);
}
.te-pill-btn.active {
    background: rgba(245, 185, 66, 0.18);
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(245, 185, 66, 0.2);
}
.te-ench-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.te-ench-0 { background: #94a3b8; }
.te-ench-1 { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.6); }
.te-ench-2 { background: #38bdf8; box-shadow: 0 0 6px rgba(56,189,248,0.6); }
.te-ench-3 { background: #c084fc; box-shadow: 0 0 6px rgba(192,132,252,0.6); }
.te-ench-4 { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.7); }

/* ---------- Build Builder (Spatial Paperdoll) ---------- */
.loadout-container {
    background:
        radial-gradient(circle at 50% 38%, rgba(245, 185, 66, 0.08), transparent 62%),
        linear-gradient(180deg, rgba(13, 16, 24, 0.94), rgba(8, 10, 15, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 22px !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
}

.slot-card {
    background: linear-gradient(180deg, rgba(24, 29, 41, 0.92), rgba(13, 16, 24, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 15px !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 20px rgba(0, 0, 0, 0.38) !important;
    transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.slot-card:hover:not(.disabled-2h) {
    border-color: rgba(245, 185, 66, 0.55) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.10), 0 12px 26px rgba(0, 0, 0, 0.5) !important;
}
.slot-card.filled {
    border-color: rgba(245, 185, 66, 0.50) !important;
    background: radial-gradient(circle at 50% 35%, rgba(245, 185, 66, 0.13), transparent 70%), #10141e !important;
}
.slot-label-badge {
    background: rgba(28, 34, 51, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-2) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: none !important;
}
.slot-placeholder-text { color: var(--text-3) !important; }
.btn-remove-slot { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important; }

/* ---------- Item Picker Modal & Cards ---------- */
.modal-overlay {
    background: rgba(3, 4, 8, 0.78) !important;
    backdrop-filter: blur(12px) saturate(130%) !important;
}
.modal-content {
    background: linear-gradient(180deg, rgba(19, 23, 34, 0.95) 0%, rgba(11, 14, 21, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 24px !important;
    max-width: 980px !important;
    box-shadow: var(--shadow-2) !important;
}
.modal-header { border-bottom: 1px solid var(--line) !important; padding: 1.15rem 1.5rem !important; }
.modal-title { color: var(--text-1) !important; font-weight: 800 !important; }
.modal-title i { color: var(--gold); }
.modal-close {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 1.05rem !important;
    background: var(--surface-2) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--text-2) !important;
    border-radius: 10px !important;
}
.modal-close:hover {
    color: #fff !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    background: rgba(239, 68, 68, 0.14) !important;
}
#modalSearchInput { padding-inline-start: 1rem !important; }

#tierFilterBar, #enchantFilterBar {
    background: rgba(9, 11, 17, 0.9) !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 0.7rem 1.5rem !important;
}
.tier-filter-btn, .enchant-filter-btn {
    background: var(--surface-2) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--text-2) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    min-width: 46px;
    justify-content: center;
    box-shadow: none !important;
    transition: all 0.16s var(--ease-spring) !important;
}
.tier-filter-btn:hover, .enchant-filter-btn:hover {
    color: var(--text-1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}
.tier-filter-btn.active, .enchant-filter-btn.active {
    background: var(--gold-soft) !important;
    border-color: var(--gold) !important;
    color: var(--gold-bright) !important;
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12) !important;
}
.enchant-filter-btn.enchant-1.active { background: rgba(34, 197, 94, 0.14) !important; border-color: #22c55e !important; color: #86efac !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important; }
.enchant-filter-btn.enchant-2.active { background: rgba(59, 130, 246, 0.14) !important; border-color: #3b82f6 !important; color: #93c5fd !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important; }
.enchant-filter-btn.enchant-3.active { background: rgba(168, 85, 247, 0.14) !important; border-color: #a855f7 !important; color: #d8b4fe !important; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12) !important; }
.enchant-filter-btn.enchant-4.active { background: rgba(245, 158, 11, 0.16) !important; border-color: #f59e0b !important; color: #fde68a !important; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14) !important; }

.modal-body { background: transparent; }
.item-grid,
.items-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)) !important;
    gap: 0.85rem !important;
    align-content: start !important;
    grid-auto-rows: max-content !important;
}

.item-picker-card {
    --q: rgba(255, 255, 255, 0.10);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.25rem;
    min-height: 162px !important;
    height: auto !important;
    background: linear-gradient(180deg, rgba(22, 27, 38, 0.94), rgba(14, 17, 25, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 15px !important;
    padding: 1.7rem 0.65rem 0.85rem !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.item-picker-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2.5px;
    background: var(--q);
}
.item-picker-card.q-1 { --q: #22c55e; }
.item-picker-card.q-2 { --q: #3b82f6; }
.item-picker-card.q-3 { --q: #a855f7; }
.item-picker-card.q-4 { --q: #f59e0b; }
.item-picker-card:hover {
    border-color: var(--gold-line) !important;
    background: radial-gradient(circle at 50% 30%, rgba(245, 185, 66, 0.12), transparent 72%), #151a26 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5) !important;
}
.item-picker-img {
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    object-fit: contain;
    margin-bottom: 0.25rem !important;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.22s var(--ease-spring);
}
.item-picker-card:hover .item-picker-img { transform: scale(1.07); }
.item-picker-name {
    color: var(--text-1) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    line-height: 1.3;
    margin-top: 0.2rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.item-picker-type {
    color: var(--text-3) !important;
    font-size: 0.7rem !important;
    line-height: 1.25;
    word-break: break-word;
}

.ip-badge,
.item-picker-badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 2px 7px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    z-index: 2;
}

/* ---------- Saved Builds Bento Gallery ---------- */
.builds-gallery { grid-template-columns: repeat(auto-fill, minmax(328px, 1fr)) !important; gap: 1.35rem !important; align-items: start !important; }
.build-preview-card {
    background: linear-gradient(180deg, rgba(19, 23, 34, 0.92), rgba(11, 14, 21, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-1) !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.build-preview-card:hover {
    border-color: rgba(245, 185, 66, 0.45) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58), 0 0 26px rgba(245, 185, 66, 0.08) !important;
}
.bp-media { position: relative; background: #080a0f; border-bottom: 1px solid var(--line); overflow: hidden; }
.build-card-image {
    height: 215px !important;
    border-bottom: none !important;
    background: #080a0f !important;
    transition: transform 0.38s var(--ease-spring);
}
.build-preview-card:hover .build-card-image { transform: scale(1.03); }
.bp-role-pill { position: static !important; inset: auto !important; backdrop-filter: blur(8px); }
.build-card-body { padding: 1.05rem 1.15rem 1.15rem !important; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.build-card-header { margin: 0 !important; }
.build-card-title { color: var(--text-1) !important; font-weight: 800 !important; font-size: 1.04rem !important; }
.bp-notes { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-strip img {
    width: 34px;
    height: 34px;
    background: var(--surface-0);
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    padding: 2px;
}
.bp-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-3); }
.bp-meta .bp-ip { color: var(--gold); font-weight: 800; font-family: 'Outfit', sans-serif; direction: ltr; }
.build-card-actions { margin-top: auto !important; display: grid !important; grid-template-columns: 1fr 1fr auto; gap: 0.5rem !important; }

.btn-action-small {
    background: rgba(24, 29, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    color: var(--text-2) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    justify-content: center;
    box-shadow: none !important;
    transition: all 0.18s var(--ease-spring) !important;
}
.btn-action-small:hover {
    color: var(--text-1) !important;
    border-color: var(--gold-line) !important;
    background: var(--surface-3) !important;
    transform: translateY(-1px);
}
.btn-action-delete { color: #f87171 !important; }
.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}

.empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.12) !important;
    background: rgba(10, 12, 18, 0.75) !important;
    border-radius: 20px !important;
    color: var(--text-3) !important;
    padding: 3rem 1rem !important;
}
.empty-state i { color: var(--gold) !important; opacity: 0.75; text-shadow: none !important; }

/* ---------- Toasts & Preloader ---------- */
.toast {
    background: rgba(21, 25, 37, 0.94) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-2) !important;
    color: var(--text-1) !important;
}

.preloader-overlay { background: var(--bg-void) !important; }
.preloader-progress-track { background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: 999px !important; }
.preloader-progress-bar { background: linear-gradient(90deg, #e0a030, #fde68a) !important; box-shadow: 0 0 18px rgba(245, 185, 66, 0.45) !important; }

/* ---------- Confirm Dialog ---------- */
.confirm-modal-card {
    animation: confirmModalScale 0.22s var(--ease-spring) !important;
}
@keyframes confirmModalScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
#confirmDialogCancelBtn:hover {
    background: var(--surface-3) !important;
    border-color: var(--line) !important;
    color: var(--text-1) !important;
}
#confirmDialogConfirmBtn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* ---------- Settings Studio (Obsidian & Gold) ---------- */
.settings-hero-card {
    background: linear-gradient(135deg, rgba(22, 26, 36, 0.96), rgba(13, 16, 24, 0.98));
    border: 1px solid var(--gold-line);
    border-radius: 22px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.35rem;
}
.settings-card {
    background: linear-gradient(180deg, rgba(19, 23, 34, 0.94) 0%, rgba(12, 15, 22, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-1);
}
.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-card-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-1);
}
.settings-card-title i {
    color: var(--gold);
    font-size: 1.1rem;
}
.settings-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}
.settings-field-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.settings-field-hint {
    font-size: 0.74rem;
    color: var(--text-3);
}
.settings-role-pair {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}
.settings-chips-box {
    max-height: 225px;
    overflow-y: auto;
    padding: 0.65rem;
    border-radius: 14px;
    background: rgba(8, 10, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.settings-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.16s var(--ease-spring);
    user-select: none;
}
.settings-chip:hover {
    border-color: rgba(245, 185, 66, 0.5);
    color: var(--text-1);
    transform: translateY(-1px);
}
.settings-chip.selected {
    background: rgba(245, 185, 66, 0.18);
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.12);
}
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.ravix-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.ravix-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.ravix-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.22s;
    border-radius: 999px;
}
.ravix-switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #e2e8f0;
    transition: 0.22s;
    border-radius: 50%;
}
.ravix-switch input:checked + .ravix-switch-slider {
    background: rgba(245, 185, 66, 0.35);
    border-color: var(--gold);
}
.ravix-switch input:checked + .ravix-switch-slider::before {
    transform: translateX(22px);
    background: var(--gold-bright);
    box-shadow: 0 0 10px rgba(245, 185, 66, 0.65);
}
.settings-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(245, 185, 66, 0.14);
    border: 1px solid rgba(245, 185, 66, 0.38);
    color: #fde68a;
}

/* ---------- Weapon Skills Selector (Q • W • E • Passive) ---------- */
.weapon-skills-section {
    margin-top: 1.15rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(245, 185, 66, 0.3);
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.weapon-skills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.weapon-skills-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.weapon-skills-hint {
    font-size: 0.77rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.weapon-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}
.skills-pieces-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (max-width: 900px) {
    .skills-pieces-list {
        grid-template-columns: 1fr;
    }
}
.skill-piece-group {
    background: rgba(9, 12, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.skill-piece-group-full {
    grid-column: 1 / -1;
}
.skill-piece-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fde68a;
}
.skill-piece-head img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.85);
}
.skill-piece-sub {
    color: var(--text-3);
    font-weight: 600;
    font-size: 0.72rem;
    margin-inline-start: auto;
}
.skill-piece-slots-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
}
@media (max-width: 820px) {
    .weapon-skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .weapon-skills-grid {
        grid-template-columns: 1fr;
    }
}
.skill-slot-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, background 0.2s, box-shadow 0.2s;
    text-align: start;
}
.skill-slot-card:hover {
    border-color: rgba(245, 185, 66, 0.55);
    background: rgba(20, 25, 38, 0.95);
    transform: translateY(-1px);
}
.skill-slot-card.active-picker {
    border-color: #f5b942;
    background: rgba(245, 185, 66, 0.1);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.2);
}
.skill-slot-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #0b0e16;
    border: 1px solid rgba(245, 185, 66, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.skill-slot-icon-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}
.skill-key-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f5b942, #d97706);
    color: #090b10;
    font-size: 0.68rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.skill-slot-info {
    min-width: 0;
    flex: 1;
}
.skill-slot-type {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.skill-slot-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
}
.skill-picker-drawer {
    margin-top: 0.85rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(8, 10, 16, 0.92);
    border: 1px solid rgba(245, 185, 66, 0.32);
}
.skill-picker-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fde68a;
}
.skill-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 0.55rem;
}
.skill-option-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: rgba(20, 25, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.16s ease;
    text-align: start;
}
.skill-option-card:hover {
    border-color: rgba(245, 185, 66, 0.6);
    background: rgba(30, 38, 55, 0.95);
}
.skill-option-card.selected {
    border-color: #f5b942;
    background: rgba(245, 185, 66, 0.18);
    box-shadow: 0 0 12px rgba(245, 185, 66, 0.18);
}
.skill-option-card img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: contain;
    flex-shrink: 0;
}
.skill-option-card span {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}
.bp-skills-strip {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(245, 185, 66, 0.22);
}
.bp-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.16rem 0.42rem 0.16rem 0.22rem;
    border-radius: 7px;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
}
.bp-skill-chip img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}
.bp-skill-chip b {
    color: #fbbf24;
    font-size: 0.66rem;
}

/* ---------- Build Card Lightbox Viewer & Hover Affordance ---------- */
.bp-media {
    cursor: zoom-in;
}
.bp-zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(8, 10, 16, 0.84);
    border: 1px solid rgba(245, 185, 66, 0.45);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    opacity: 0;
    transform: translateY(4px) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(6px);
}
.build-preview-card:hover .bp-zoom-hint {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.build-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 7, 12, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    animation: ravixViewerFadeIn 0.18s ease-out;
}
@keyframes ravixViewerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.build-viewer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: rgba(16, 20, 30, 0.88);
    border: 1px solid rgba(245, 185, 66, 0.28);
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}
.build-viewer-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.build-viewer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}
.build-viewer-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 185, 66, 0.12);
    border: 1px solid rgba(245, 185, 66, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}
.build-viewer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.build-viewer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.78rem;
    border-radius: 10px;
    background: rgba(24, 30, 44, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.build-viewer-btn:hover {
    border-color: rgba(245, 185, 66, 0.6);
    color: #ffffff;
    background: rgba(36, 44, 62, 0.95);
}
.build-viewer-btn-gold {
    background: rgba(245, 185, 66, 0.16);
    border-color: rgba(245, 185, 66, 0.45);
    color: #fde68a;
}
.build-viewer-btn-gold:hover {
    background: rgba(245, 185, 66, 0.28);
    border-color: #f5b942;
}
.build-viewer-btn-close:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(239, 68, 68, 0.65);
    color: #fca5a5;
}
.build-viewer-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 0.35rem;
}
.build-viewer-img {
    max-width: min(96vw, 1520px);
    max-height: calc(100vh - 115px);
    width: auto;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(245, 185, 66, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
    cursor: zoom-in;
    transition: transform 0.22s ease;
    animation: ravixViewerImgIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.build-viewer-img.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    cursor: zoom-out;
}
@keyframes ravixViewerImgIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- Maintenance Mode UI ---------- */
.settings-card-maintenance {
    grid-column: 1 / -1;
    border-color: rgba(245, 185, 66, 0.28) !important;
    background: linear-gradient(145deg, rgba(22, 26, 36, 0.96), rgba(14, 16, 23, 0.98)) !important;
}
.maint-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.78rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.maint-status-off {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.maint-status-on {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.48);
    color: #fbbf24;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.18);
}

.maint-admin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.48);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.12);
    color: #fef08a;
}
.maint-admin-banner-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 800;
}
.maint-admin-banner-timer {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(11, 13, 18, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    font-family: "Outfit", monospace;
    font-size: 0.8rem;
    font-weight: 800;
}
.maint-admin-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    background: #fbbf24;
    color: #0b0d12;
    font-weight: 800;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease;
}
.maint-admin-banner-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.maint-blocker-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(circle at 50% 20%, rgba(245, 185, 66, 0.14), transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(245, 158, 11, 0.08), transparent 45%),
        rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}
.maint-blocker-card {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(160deg, rgba(20, 24, 33, 0.98), rgba(11, 14, 20, 0.99));
    border: 1px solid rgba(245, 185, 66, 0.34);
    border-radius: 26px;
    padding: 2.3rem 2rem;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 185, 66, 0.08);
    animation: ravixViewerImgIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.maint-blocker-emblem {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem;
}
.maint-blocker-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid rgba(245, 185, 66, 0.45);
    background: rgba(15, 18, 25, 0.9);
    padding: 8px;
    box-shadow: 0 0 28px rgba(245, 185, 66, 0.22);
}
.maint-blocker-wrench {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #0b0d12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid #0e1117;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.maint-blocker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.9rem;
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.12);
    border: 1px solid rgba(245, 185, 66, 0.36);
    color: #fbbf24;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.maint-blocker-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 900;
    color: #f8fafc;
}
.maint-blocker-desc {
    margin: 0 auto 1.35rem;
    max-width: 45ch;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.7;
}
.maint-blocker-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.35rem;
    border-radius: 14px;
    background: rgba(245, 185, 66, 0.08);
    border: 1px solid rgba(245, 185, 66, 0.25);
    color: #fde68a;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.55;
}
.maint-blocker-timer-box {
    background: rgba(8, 10, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.05rem 1.25rem;
    margin-bottom: 1.5rem;
}
.maint-blocker-timer-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.maint-blocker-countdown {
    font-family: "Outfit", "Cairo", monospace;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #fbbf24;
    text-shadow: 0 0 22px rgba(245, 185, 66, 0.3);
}
.maint-blocker-countdown.indefinite {
    font-family: "Cairo", "Outfit", sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0;
    color: #e2e8f0;
    text-shadow: none;
}
.maint-blocker-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.maint-blocker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.68rem 1.25rem;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}
.maint-blocker-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.maint-blocker-btn-gold {
    background: rgba(245, 185, 66, 0.16);
    border-color: rgba(245, 185, 66, 0.45);
    color: #fbbf24;
}
.maint-blocker-btn-discord {
    background: #5865F2;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ---------- Skill Explain Button & Modal ---------- */
.skill-drawer-close-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.16s ease;
}
.skill-drawer-close-btn:hover {
    border-color: rgba(248, 113, 113, 0.6);
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}
.skill-info-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.26rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}
.skill-info-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #e0f2fe;
    transform: translateY(-1px);
}
.skill-option-card .skill-info-btn {
    margin-inline-start: auto;
}
.skill-info-header-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(245, 185, 66, 0.25);
    margin-bottom: 0.9rem;
}
.skill-info-header-card img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    border: 1px solid rgba(245, 185, 66, 0.45);
    background: #080a10;
    object-fit: contain;
    flex-shrink: 0;
}
.skill-info-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
}
.skill-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
}
.skill-stat-pill b {
    color: #fbbf24;
    direction: ltr;
}
.skill-desc-box {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(10, 14, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.75rem;
}
.skill-desc-box-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.skill-desc-text {
    font-size: 0.86rem;
    line-height: 1.65;
    color: #f1f5f9;
    white-space: pre-line;
}
.ao-tag { font-weight: 800; }
.ao-tag-dmg { color: #f87171; }
.ao-tag-heal { color: #4ade80; }
.ao-tag-buff { color: #fbbf24; }
.ao-tag-debuff { color: #fb923c; }
.ao-tag-cc { color: #c084fc; }
.ao-tag-mobility { color: #38bdf8; }
.ao-tag-other { color: #fde68a; }
.bp-skill-chip[onclick] { cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.bp-skill-chip[onclick]:hover { border-color: rgba(56, 189, 248, 0.55); transform: translateY(-1px); }
.bp-skill-e { border-color: rgba(245, 185, 66, 0.4) !important; background: rgba(245, 185, 66, 0.08) !important; }
.bp-skill-e b { color: #fbbf24 !important; }
.bp-strip img[onclick] { cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.bp-strip img[onclick]:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65); }

/* Multi-Swap Build Builder (Up to 3 Swaps per Category + Swap Skills) */
.swaps-multi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 0.7rem;
}
.swap-cat-group {
    background: rgba(9, 13, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.swap-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: #e2e8f0;
}
.swap-cat-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    color: #fff;
    letter-spacing: 0.03em;
}
.swap-cat-count {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.swap-cat-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.42rem;
}
.swap-mini-slot {
    position: relative;
    height: 76px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.16s ease;
    overflow: hidden;
}
.swap-mini-slot:hover {
    border-color: rgba(245, 158, 11, 0.7);
    background: rgba(30, 41, 59, 0.9);
}
.swap-mini-slot.filled {
    border-style: solid;
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(15, 23, 42, 0.95);
}
.swap-mini-slot.locked {
    opacity: 0.42;
    cursor: not-allowed;
    border-color: rgba(239, 68, 68, 0.45);
}
.swap-mini-slot img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}
.swap-mini-num {
    position: absolute;
    top: 3px;
    left: 4px;
    font-size: 0.58rem;
    font-weight: 900;
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.8);
    padding: 0 4px;
    border-radius: 4px;
    line-height: 1.3;
}
.swap-mini-slot.filled .swap-mini-num {
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.swap-mini-info-btn {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: rgba(12, 74, 110, 0.88);
    color: #7dd3fc;
    font-size: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    padding: 0;
}
.swap-mini-info-btn:hover { background: #0284c7; color: #fff; }
.swap-mini-del-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.55);
    background: rgba(153, 27, 27, 0.9);
    color: #fecaca;
    font-size: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    padding: 0;
}
.swap-mini-del-btn:hover { background: #dc2626; color: #fff; }
.bp-swaps-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 7px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px dashed rgba(245, 158, 11, 0.25);
    align-items: center;
}
.bp-swaps-strip-lbl {
    font-size: 0.66rem;
    font-weight: 800;
    color: #fbbf24;
    margin-inline-end: 3px;
}
.bp-swap-mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 4px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.bp-swap-mini-chip:hover { border-color: #38bdf8; transform: translateY(-1px); }
.bp-swap-mini-chip img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.swap-skills-section { border-color: rgba(245, 158, 11, 0.35) !important; }

.picker-info-pill {
    margin-top: auto;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.11);
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.16s ease;
}
.picker-info-pill:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    color: #e0f2fe;
}
.item-info-sig-box {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.1), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(245, 185, 66, 0.35);
    margin-top: 0.75rem;
}
.item-info-sig-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.item-info-sig-head img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(245, 185, 66, 0.45);
    background: #080a10;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-info-slot {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.7);
    background: rgba(14, 116, 144, 0.92);
    color: #e0f2fe;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn-info-slot:hover {
    transform: scale(1.1);
    background: #0284c7;
    color: #fff;
}

.item-info-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.4rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.item-info-tab-btn {
    flex: 1 1 auto;
    min-width: 78px;
    padding: 0.48rem 0.72rem;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.55);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.16s ease;
}
.item-info-tab-btn:hover {
    border-color: rgba(245, 185, 66, 0.55);
    color: #fef3c7;
    background: rgba(245, 185, 66, 0.12);
}
.item-info-tab-btn.active {
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.26), rgba(217, 119, 6, 0.18));
    border-color: #f5b942;
    color: #fde68a;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}
.item-info-tab-cnt {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #94a3b8;
}
.item-info-tab-btn.active .item-info-tab-cnt {
    background: rgba(245, 185, 66, 0.25);
    color: #fef08a;
}
.item-info-tab-pane {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.item-info-tab-pane.active {
    display: flex;
}
.item-info-spell-entry {
    padding: 0.85rem 0.95rem;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.item-info-spell-entry.is-sig {
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.09), rgba(15, 23, 42, 0.88));
    border-color: rgba(245, 185, 66, 0.35);
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Dispatch Presets & Event Clone ---------- */
.dispatch-presets-bar {
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.08), rgba(15, 23, 42, 0.72));
    border: 1px solid rgba(245, 185, 66, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.dispatch-presets-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.dispatch-presets-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dispatch-presets-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.dispatch-presets-count {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 185, 66, 0.16);
    border: 1px solid rgba(245, 185, 66, 0.35);
    color: #fef08a;
}
.dispatch-presets-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.preset-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
    font-family: inherit;
}
.preset-action-btn:hover {
    transform: translateY(-1px);
}
.preset-save-btn {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.48);
    color: #fde68a;
}
.preset-save-btn:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: #fbbf24;
}
.preset-reset-btn {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}
.preset-reset-btn:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.42);
    color: #fca5a5;
}
.dispatch-presets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.dispatch-preset-empty {
    font-size: 0.77rem;
    color: #94a3b8;
    font-style: italic;
}
.dispatch-preset-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.42rem 0.72rem;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.16s ease;
    font-size: 0.79rem;
    font-weight: 700;
}
.dispatch-preset-pill:hover {
    border-color: rgba(245, 185, 66, 0.65);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 185, 66, 0.14);
}
.dispatch-preset-meta {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
}
.preset-pill-del {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.14s ease;
}
.preset-pill-del:hover {
    background: #ef4444;
    color: #fff;
    border-color: #f87171;
}
.ev-btn-clone {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #c4b5fd !important;
}
.ev-btn-clone:hover {
    background: rgba(139, 92, 246, 0.28) !important;
    border-color: #a78bfa !important;
    color: #ede9fe !important;
}
@keyframes dispatchFlashGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.55); }
    100% { box-shadow: 0 0 0 18px rgba(245, 185, 66, 0); }
}
.dispatch-form-flash {
    animation: dispatchFlashGlow 0.75s ease-out;
}

/* ── Attendance & Guild Leaderboard Showcase ─────────────────────────── */
.lb-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#lbMainContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.lb-guide-strip {
    background: rgba(17, 20, 26, 0.85);
    border: 1px solid rgba(242, 181, 68, 0.24);
    border-radius: 14px;
    padding: 0.78rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.lb-guide-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.lb-guide-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.lb-guide-chip {
    font-size: 0.75rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 9px;
    padding: 0.3rem 0.68rem;
}
.lb-guide-chip strong {
    color: #f8fafc;
}
.lb-auth-notice {
    text-align: center;
    padding: 2.75rem 1.5rem;
    max-width: 560px;
    margin: 1.5rem auto;
}
.lb-auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(242, 181, 68, 0.14);
    color: var(--gold, #f2b544);
    border: 1px solid rgba(242, 181, 68, 0.4);
}
.lb-login-cta {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
}

/* Personal Spotlight Banner */
.lb-my-spotlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(125deg, rgba(242, 181, 68, 0.14) 0%, rgba(17, 20, 26, 0.92) 60%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(242, 181, 68, 0.38);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.lb-spot-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.lb-spot-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #f2b544;
    object-fit: cover;
    background: #161a22;
}
.lb-spot-rank {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(242, 181, 68, 0.16);
    border: 1px solid rgba(242, 181, 68, 0.4);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.lb-spot-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}
.lb-spot-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.lb-spot-stat-box {
    background: rgba(11, 14, 20, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 11px;
    padding: 0.45rem 0.85rem;
    text-align: center;
    min-width: 78px;
}
.lb-spot-stat-box span {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 600;
}
.lb-spot-stat-box strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fbbf24;
}

/* KPI Grid */
.lb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}
.lb-kpi-card {
    background: var(--surface-1, #11141a);
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    padding: 0.95rem 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.lb-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 181, 68, 0.32);
}
.lb-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.lb-kpi-icon.gold { background: rgba(242, 181, 68, 0.14); color: #fbbf24; border: 1px solid rgba(242, 181, 68, 0.3); }
.lb-kpi-icon.emerald { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.lb-kpi-icon.cyan { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.lb-kpi-icon.amber { background: rgba(249, 115, 22, 0.14); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.lb-kpi-meta {
    min-width: 0;
}
.lb-kpi-meta span {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
}
.lb-kpi-meta strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-kpi-meta small {
    display: block;
    font-size: 0.69rem;
    color: #64748b;
    margin-top: 0.1rem;
}

/* Guild Role Composition Bar */
.lb-compo-panel {
    padding: 0.9rem 1.15rem !important;
}
.lb-compo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.55rem;
}
.lb-compo-avg {
    font-size: 0.76rem;
    color: #fbbf24;
    font-weight: 700;
}
.lb-compo-bar {
    height: 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
    display: flex;
}
.lb-compo-seg {
    height: 100%;
    transition: width 0.35s ease;
}
.lb-seg-Tank { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.lb-seg-Healer { background: linear-gradient(90deg, #10b981, #34d399); }
.lb-seg-DPS { background: linear-gradient(90deg, #ef4444, #f87171); }
.lb-seg-Support { background: linear-gradient(90deg, #a855f7, #c084fc); }
.lb-seg-Scout { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.lb-compo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.55rem;
    font-size: 0.75rem;
    color: #94a3b8;
}
.lb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
}
.lb-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

/* Controls Bar */
.lb-controls-card {
    padding: 0.95rem 1.15rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lb-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.lb-period-pills, .lb-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.lb-pill-btn, .lb-role-chip {
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.68);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
    font-family: inherit;
}
.lb-pill-btn:hover, .lb-role-chip:hover {
    border-color: rgba(242, 181, 68, 0.45);
    color: #fff;
}
.lb-pill-btn.active, .lb-role-chip.active {
    background: linear-gradient(135deg, rgba(242, 181, 68, 0.24), rgba(217, 119, 6, 0.2));
    border-color: #f2b544;
    color: #fde68a;
}
.lb-input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
}
.lb-search-wrap {
    position: relative;
    min-width: 195px;
    flex: 1;
    max-width: 280px;
}
.lb-search-wrap i {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.82rem;
    pointer-events: none;
}
.lb-search-wrap input {
    padding-inline-start: 2.15rem !important;
    font-size: 0.82rem !important;
}
.lb-select {
    width: auto !important;
    min-width: 165px;
    font-size: 0.82rem !important;
}
.lb-actions-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.lb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.16s ease;
}
.lb-action-btn:hover {
    border-color: rgba(242, 181, 68, 0.5);
    color: #fde68a;
}
.lb-action-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
    border-color: rgba(245, 158, 11, 0.55);
    color: #fbbf24;
}

/* Olympic Podium (adaptive for 1, 2, or 3+ players) */
.lb-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    margin-top: 0.5rem;
}
.lb-podium-grid[data-count="1"] {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
}
.lb-podium-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
}
.lb-podium-grid[data-count="2"] .lb-podium-card.rank-1 {
    order: 1;
}
.lb-podium-grid[data-count="2"] .lb-podium-card.rank-2 {
    order: 2;
}
.lb-podium-card {
    position: relative;
    border-radius: 18px;
    padding: 1.35rem 1rem 1.15rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(22, 26, 34, 0.95) 0%, rgba(12, 15, 22, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.48rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lb-podium-card:hover {
    transform: translateY(-4px);
}
.lb-podium-card.rank-1 {
    order: 2;
    padding-top: 1.85rem;
    border-color: rgba(250, 204, 21, 0.6);
    background: radial-gradient(circle at top, rgba(250, 204, 21, 0.18), rgba(15, 19, 28, 0.98) 70%);
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.16);
}
.lb-podium-card.rank-2 {
    order: 1;
    border-color: rgba(203, 213, 225, 0.42);
    background: radial-gradient(circle at top, rgba(203, 213, 225, 0.12), rgba(15, 19, 28, 0.98) 70%);
}
.lb-podium-card.rank-3 {
    order: 3;
    border-color: rgba(217, 119, 6, 0.45);
    background: radial-gradient(circle at top, rgba(217, 119, 6, 0.12), rgba(15, 19, 28, 0.98) 70%);
}
.lb-podium-medal {
    position: absolute;
    top: -13px;
    padding: 0.2rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.rank-1 .lb-podium-medal { background: linear-gradient(135deg, #fde047, #d97706); color: #090b10; }
.rank-2 .lb-podium-medal { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #0f172a; }
.rank-3 .lb-podium-medal { background: linear-gradient(135deg, #fdba74, #b45309); color: #0f172a; }
.lb-podium-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 3px solid rgba(148, 163, 184, 0.4);
}
.rank-1 .lb-podium-avatar {
    width: 82px;
    height: 82px;
    border-color: #facc15;
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.35);
}
.rank-2 .lb-podium-avatar { border-color: #cbd5e1; }
.rank-3 .lb-podium-avatar { border-color: #d97706; }
.lb-podium-name {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-podium-tier {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}
.lb-podium-tier.tier-legend { background: rgba(250, 204, 21, 0.18); color: #fde047; border: 1px solid rgba(250, 204, 21, 0.35); }
.lb-podium-tier.tier-commander { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.35); }
.lb-podium-tier.tier-sentinel { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.32); }
.lb-podium-metrics {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.25rem;
}
.lb-metric-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}
.lb-podium-weapon {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Standings Table Rows */
.lb-count-badge {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(242, 181, 68, 0.14);
    border: 1px solid rgba(242, 181, 68, 0.32);
    color: #fbbf24;
}
.lb-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lb-table-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1.2fr) 125px 135px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.lb-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1.2fr) 125px 135px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.95rem;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: border-color 0.16s ease, background 0.16s ease;
}
.lb-row:hover {
    border-color: rgba(242, 181, 68, 0.36);
    background: rgba(24, 32, 48, 0.82);
}
.lb-row.is-me {
    border-color: rgba(242, 181, 68, 0.65);
    background: linear-gradient(90deg, rgba(242, 181, 68, 0.11), rgba(15, 23, 42, 0.78));
}
.lb-row-rank {
    font-size: 0.95rem;
    font-weight: 800;
    color: #94a3b8;
    text-align: center;
}
.lb-row-player {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    min-width: 0;
}
.lb-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(242, 181, 68, 0.35);
    flex-shrink: 0;
}
.lb-row-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-row-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.lb-row-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}
.lb-role-mini {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.14rem 0.45rem;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}
.lb-row-progress-wrap {
    min-width: 110px;
}
.lb-row-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.lb-row-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.lb-row-score {
    text-align: end;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fbbf24;
    white-space: nowrap;
}

/* Recent Runs */
.lb-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 0.75rem;
}
.lb-run-card {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 13px;
    padding: 0.82rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.16s ease;
}
.lb-run-card:hover {
    border-color: rgba(242, 181, 68, 0.45);
    transform: translateY(-2px);
}
.lb-run-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.lb-run-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8fafc;
}
.lb-run-kind {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}
.lb-run-kind.is-manual {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.lb-run-meta {
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}
.lb-manual-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    min-height: 44px;
    padding: 0.6rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px dashed rgba(148, 163, 184, 0.25);
}
.lb-manual-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(242, 181, 68, 0.35);
    font-size: 0.76rem;
    font-weight: 700;
    color: #f1f5f9;
}
.lb-manual-chip button {
    border: none;
    background: transparent;
    color: #f87171;
    cursor: pointer;
    font-weight: 800;
    padding: 0;
}

@media (max-width: 960px) {
    .lb-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lb-podium-grid { grid-template-columns: 1fr; }
    .lb-podium-card.rank-1, .lb-podium-card.rank-2, .lb-podium-card.rank-3 { order: initial; }
    .lb-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
    .lb-row-roles, .lb-row-progress-wrap { display: none; }
}
@media (max-width: 560px) {
    .lb-kpi-grid { grid-template-columns: 1fr; }
}

/* ═══ Feature #1, #6, #4 Styles: Loot Split, Albion Profile, VC Badges ═══ */
.albion-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.44rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(15, 23, 42, 0.85);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.albion-header-pill:hover {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.16);
}
.albion-header-pill.is-verified {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
}
.albion-ign-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}
.albion-ign-badge.in-guild {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.38);
    color: #6ee7b7;
}
.albion-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    max-height: 290px;
    overflow-y: auto;
}
.albion-search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.85rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.profile-fame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.profile-fame-box {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
}
.profile-fame-box span {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}
.profile-fame-box strong {
    font-size: 1.02rem;
    font-weight: 800;
    color: #f8fafc;
}
.lb-row.is-clickable, .lb-podium-card.is-clickable {
    cursor: pointer;
}
.lb-row.is-clickable:hover {
    border-color: rgba(242, 181, 68, 0.45);
    background: rgba(30, 41, 59, 0.72);
}

/* VC & Waitlist Badges */
.ev-vc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}
.ev-vc-pill.all-in {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.ev-vc-pill.missing {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.ev-wl-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.38);
    color: #d8b4fe;
}
.vc-member-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    width: fit-content;
    margin-top: 0.15rem;
}
.vc-member-tag.in {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.vc-member-tag.out {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* Loot Split Studio */
.loot-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}
.loot-import-bar {
    padding: 0.8rem 0.95rem;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(242, 181, 68, 0.24);
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}
.loot-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.loot-fields-grid label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.32rem;
}
.loot-hero-payout {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 16px;
    padding: 1.15rem 1rem;
    text-align: center;
}
.loot-hero-payout span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fde68a;
    margin-bottom: 0.3rem;
}
.loot-hero-payout strong {
    font-size: 1.85rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.02em;
}
.loot-breakdown-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.85rem;
}
.loot-stat-box {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}
.loot-stat-box span {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}
.loot-stat-box b {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}
.loot-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}
@media (max-width: 960px) {
    .loot-studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .loot-fields-grid { grid-template-columns: 1fr; }
}

/* ── Detailed Albion Profile Breakdowns & Killboard ─────────────────────── */
.albion-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.albion-detail-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
}
.albion-detail-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #93c5fd;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.albion-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}
.albion-mini-stat {
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 0.42rem 0.55rem;
    text-align: center;
}
.albion-mini-stat span {
    display: block;
    font-size: 0.66rem;
    color: #94a3b8;
    font-weight: 600;
}
.albion-mini-stat b {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f1f5f9;
}
.albion-kb-tabs {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.85rem;
    margin-bottom: 0.5rem;
}
.albion-kb-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 230px;
    overflow-y: auto;
}
.albion-kb-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.5rem 0.7rem;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.14);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.albion-kb-item:hover {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(30, 41, 59, 0.8);
}
.albion-kb-weapon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(8, 12, 22, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    flex-shrink: 0;
}
.albion-kb-badge-kill {
    color: #4ade80;
    font-weight: 800;
    font-size: 0.82rem;
}
.albion-kb-badge-death {
    color: #f87171;
    font-weight: 800;
    font-size: 0.82rem;
}

/* ── Admin Albion Linked Accounts Directory ─────────────────────────────── */
.albion-admin-links-list {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.albion-admin-link-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.3fr) minmax(170px, 1.1fr) minmax(180px, 1.2fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: border-color 0.2s, transform 0.15s;
}
.albion-admin-link-row:hover {
    border-color: rgba(245, 158, 11, 0.4);
}
.albion-admin-user-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.albion-admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(245, 158, 11, 0.45);
    flex-shrink: 0;
}
.albion-admin-avatar-fallback {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 1px solid rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}
.albion-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
.albion-status-pill.is-verified {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.albion-status-pill.is-other {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.38);
}
.albion-status-pill.is-none {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.albion-admin-stats-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.76rem;
}
.albion-admin-actions-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 960px) {
    .albion-admin-link-row {
        grid-template-columns: 1fr;
    }
    .albion-admin-actions-cell {
        justify-content: flex-start;
    }
    .albion-detail-grid {
        grid-template-columns: 1fr;
    }
}

.albion-kd-vs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.albion-kd-fighter {
    padding: 0.9rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.albion-kd-fighter.is-killer {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(160deg, rgba(20, 83, 45, 0.22), rgba(15, 23, 42, 0.78));
}
.albion-kd-fighter.is-victim {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(160deg, rgba(127, 29, 29, 0.22), rgba(15, 23, 42, 0.78));
}
.albion-kd-gear-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.42rem;
    margin-top: 0.65rem;
}
.albion-kd-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.albion-kd-slot img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}
.albion-kd-slot-empty {
    font-size: 0.62rem;
    color: #475569;
    font-weight: 700;
}
.albion-kd-qty {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.85);
    padding: 0 4px;
    border-radius: 4px;
}
.albion-kd-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 0.4rem;
    margin-top: 0.5rem;
}
@media (max-width: 720px) {
    .albion-kd-vs-grid {
        grid-template-columns: 1fr;
    }
}
