:root {
    color-scheme: dark;
    --app-bg: #0b1020;
    --app-surface: #121a2d;
    --app-surface-2: #18233b;
    --app-border: rgba(255, 255, 255, .08);
    --app-text: #edf2ff;
    --app-muted: #96a2bd;
    --app-primary: #7c5cff;
    --app-primary-2: #4b8dff;
    --app-success: #36c98f;
    --app-warning: #ffba4a;
    --app-danger: #ff667a;
}

html, body { min-height: 100%; }
body {
    background:
        radial-gradient(circle at 10% 0%, rgba(124, 92, 255, .17), transparent 28rem),
        radial-gradient(circle at 100% 20%, rgba(75, 141, 255, .12), transparent 32rem),
        var(--app-bg);
    color: var(--app-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
.text-muted { color: var(--app-muted) !important; }

.app-shell { min-height: 100vh; }
.sidebar {
    width: 270px;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 22px 16px;
    background: rgba(12, 17, 32, .93);
    border-right: 1px solid var(--app-border);
    backdrop-filter: blur(18px);
    z-index: 1040;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 10px 22px;
    text-decoration: none;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2));
    box-shadow: 0 10px 28px rgba(92, 86, 255, .35);
}
.brand-copy strong { display: block; font-size: .98rem; }
.brand-copy span { color: var(--app-muted); font-size: .76rem; }
.sidebar-label {
    padding: 18px 12px 8px;
    color: #64718e;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    margin: 3px 0;
    border-radius: 11px;
    color: #aeb9d2;
    font-weight: 650;
    font-size: .9rem;
}
.sidebar .nav-link i { font-size: 1.05rem; }
.sidebar .nav-link:hover { color: white; background: rgba(255,255,255,.055); }
.sidebar .nav-link.active {
    color: white;
    background: linear-gradient(100deg, rgba(124,92,255,.27), rgba(75,141,255,.12));
    box-shadow: inset 3px 0 var(--app-primary);
}
.sidebar-footer { margin-top: 28px; padding: 12px; border-top: 1px solid var(--app-border); }

.main-wrap { margin-left: 270px; min-height: 100vh; }
.topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(11, 16, 32, .72);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.page-content { padding: 28px 30px 50px; }
.user-avatar { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; background: var(--app-surface-2); }
.avatar-placeholder { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--app-surface-2); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #68718a; }
.status-dot.online { background: #3bd394; box-shadow: 0 0 0 4px rgba(59,211,148,.12); }

.page-title { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; }
.page-subtitle { color: var(--app-muted); margin: 4px 0 0; }

.panel, .card {
    background: linear-gradient(180deg, rgba(25,35,59,.94), rgba(18,26,45,.96));
    border: 1px solid var(--app-border);
    border-radius: 17px;
    color: var(--app-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}
.panel { padding: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-title { margin: 0; font-size: 1rem; font-weight: 800; }

.stat-card { padding: 20px; height: 100%; overflow: hidden; position: relative; }
.stat-card::after {
    content: "";
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    right: -38px;
    bottom: -52px;
    background: rgba(255,255,255,.055);
}
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; font-size: 1.2rem; }
.stat-value { margin-top: 18px; font-size: 1.75rem; font-weight: 850; letter-spacing: -.035em; }
.stat-label { color: var(--app-muted); font-size: .82rem; }
.icon-purple { background: rgba(124,92,255,.16); color: #ae9cff; }
.icon-blue { background: rgba(75,141,255,.15); color: #75a9ff; }
.icon-green { background: rgba(54,201,143,.14); color: #59dca7; }
.icon-orange { background: rgba(255,186,74,.14); color: #ffc96d; }
.icon-red { background: rgba(255,102,122,.14); color: #ff8b9b; }

.table { --bs-table-bg: transparent; --bs-table-color: #dce4f7; --bs-table-border-color: var(--app-border); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .85rem .75rem; vertical-align: middle; }
.table thead th { color: #8491ad; font-size: .7rem; text-transform: uppercase; letter-spacing: .075em; font-weight: 800; border-bottom-width: 1px; }
.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: rgba(255,255,255,.025); color: white; }
.table-responsive { border-radius: 13px; }

.form-control, .form-select {
    color: var(--app-text) !important;
    -webkit-text-fill-color: var(--app-text);
    background-color: #0d1628 !important;
    border-color: rgba(255,255,255,.13);
    border-radius: 10px;
    font-weight: 650;
}
.form-control:focus, .form-select:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    background-color: #101b31 !important;
    border-color: #8b73ff;
    box-shadow: 0 0 0 .2rem rgba(124,92,255,.18);
}
.form-control::placeholder { color: #8390aa; -webkit-text-fill-color: #8390aa; }

/* Нативные списки Chrome/Edge/Firefox в Windows наследуют системные цвета
   не всегда одинаково, поэтому задаём фон и текст явно на всех уровнях. */
select.form-select {
    color-scheme: dark;
    color: #f5f7ff !important;
    -webkit-text-fill-color: #f5f7ff !important;
    background-color: #0d1628 !important;
    border-color: rgba(158,143,255,.34);
}
select.form-select:hover {
    border-color: rgba(158,143,255,.62);
    background-color: #101b31 !important;
}
select.form-select option,
select.form-select optgroup,
.form-select option,
.form-select optgroup {
    color: #f5f7ff !important;
    -webkit-text-fill-color: #f5f7ff !important;
    background-color: #111c31 !important;
    font-weight: 600;
}
select.form-select option:checked,
select.form-select option[selected],
.form-select option:checked {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #6657e8 !important;
    background: #6657e8 linear-gradient(135deg, #765fff, #397ee8) !important;
}
select.form-select option:hover,
select.form-select option:focus,
select.form-select option:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #293a60 !important;
}
select.form-select option:disabled,
.form-select option[value=""] {
    color: #aeb8cc !important;
    -webkit-text-fill-color: #aeb8cc !important;
}
.form-select:disabled,
.form-control:disabled {
    background-color: #0a1221 !important;
    color: #7f8da8 !important;
    -webkit-text-fill-color: #7f8da8 !important;
    border-color: rgba(255,255,255,.08);
    opacity: 1;
}
.modal-content .form-select,
.modal-content .form-control {
    color: #f5f7ff !important;
    -webkit-text-fill-color: #f5f7ff !important;
    background-color: #0b1426 !important;
}
.modal-content select.form-select option,
.modal-content select.form-select optgroup {
    color: #f7f9ff !important;
    -webkit-text-fill-color: #f7f9ff !important;
    background-color: #111c31 !important;
}
.form-label { font-size: .78rem; color: #b4c0d8; font-weight: 700; }
.form-text { color: #7d8aa6; }

.btn { border-radius: 10px; font-weight: 720; }
.btn-primary { background: linear-gradient(135deg, var(--app-primary), var(--app-primary-2)); border: 0; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-soft { color: #dbe4ff; background: rgba(255,255,255,.06); border: 1px solid var(--app-border); }
.btn-soft:hover { color: white; background: rgba(255,255,255,.1); }
.btn-danger-soft { color: #ff95a3; background: rgba(255,102,122,.1); border: 1px solid rgba(255,102,122,.2); }
.btn-danger-soft:hover { color: white; background: rgba(255,102,122,.2); }

.badge-soft { border-radius: 999px; padding: .42em .7em; font-size: .7rem; font-weight: 800; }
.badge-ap { color: #c6b9ff; background: rgba(124,92,255,.14); }
.badge-gp { color: #75e8bb; background: rgba(54,201,143,.13); }
.badge-negative { color: #ff9aab; background: rgba(255,91,118,.16); border: 1px solid rgba(255,91,118,.28); }
.badge-qp { color: #8fbdff; background: rgba(75,141,255,.14); }
.badge-admin { color: #ffcd75; background: rgba(255,186,74,.13); }

.alert { border-radius: 13px; border-width: 1px; }
.alert-success { color: #a4f0d0; background: rgba(54,201,143,.12); border-color: rgba(54,201,143,.23); }
.alert-danger { color: #ffafbb; background: rgba(255,102,122,.11); border-color: rgba(255,102,122,.23); }
.alert-warning { color: #ffe0a7; background: rgba(255,186,74,.11); border-color: rgba(255,186,74,.22); }
.alert-info { color: #a9caff; background: rgba(75,141,255,.11); border-color: rgba(75,141,255,.22); }

.modal-content, .dropdown-menu {
    color: var(--app-text);
    background: #151f35;
    border: 1px solid var(--app-border);
    border-radius: 16px;
}
.modal-header, .modal-footer { border-color: var(--app-border); }
.btn-close { filter: invert(1) grayscale(1); }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 470px); padding: 32px; }
.auth-logo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 24px; font-size: 1.45rem; background: linear-gradient(135deg, #5865f2, #8b5cf6); box-shadow: 0 15px 40px rgba(88,101,242,.32); }
.discord-button { background: #5865f2; border-color: #5865f2; }
.discord-button:hover { background: #4752c4; border-color: #4752c4; }

.empty-state { text-align: center; padding: 45px 20px; color: var(--app-muted); }
.empty-state i { display: block; font-size: 2rem; margin-bottom: 10px; color: #596681; }
.code-box { background: #09101e; border: 1px solid var(--app-border); border-radius: 12px; padding: 14px; color: #b7c5e6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; white-space: pre-wrap; }
.role-color { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }

.mobile-toggle { display: none; }
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-wrap { margin-left: 0; }
    .mobile-toggle { display: inline-flex; }
    .topbar { padding: 12px 18px; }
    .page-content { padding: 22px 16px 40px; }
}
@media (max-width: 575.98px) {
    .page-title { font-size: 1.35rem; }
    .panel { padding: 15px; }
    .topbar-user-copy { display: none; }
}

/* ==================== DISCORD PROFILE ==================== */
.topbar-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    padding: 4px 7px;
    border-radius: 12px;
    transition: background .18s ease;
}
.topbar-profile-link:hover { color: white; background: rgba(255,255,255,.055); }
.topbar-avatar-wrap { position: relative; width: 38px; height: 38px; flex: 0 0 38px; }
.topbar-avatar-decoration {
    position: absolute;
    inset: -6px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    pointer-events: none;
}

.profile-hero-panel { padding: 0; overflow: hidden; }
.profile-banner {
    min-height: 245px;
    background-position: center;
    background-size: cover;
    position: relative;
}
.profile-banner-fallback {
    --profile-accent: #6657e8;
    background:
        radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--profile-accent), white 16%) 0, transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--profile-accent), #0b1020 35%), #101a32 72%);
}
.profile-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,13,26,.06), rgba(8,13,26,.72));
}
.profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 30px 30px;
    margin-top: -58px;
    position: relative;
    z-index: 2;
}
.profile-avatar-wrap {
    width: 132px;
    height: 132px;
    position: relative;
    flex: 0 0 132px;
}
.profile-avatar {
    width: 132px;
    height: 132px;
    border-radius: 34px;
    object-fit: cover;
    background: #111a2d;
    border: 6px solid #131d32;
    box-shadow: 0 16px 36px rgba(0,0,0,.34);
}
.profile-avatar-decoration {
    position: absolute;
    inset: -17px;
    width: 166px;
    height: 166px;
    object-fit: contain;
    pointer-events: none;
}
.profile-name-block { padding-bottom: 7px; min-width: 0; }
.profile-display-name {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}
.discord-styled-name {
    color: transparent;
    background: linear-gradient(100deg, var(--name-c1, #fff), var(--name-c2, #9f8cff));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 13px color-mix(in srgb, var(--name-c2, #9f8cff), transparent 68%));
}
.profile-account-name { color: #9aa7c1; margin-top: 5px; font-weight: 650; }
.profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.discord-badge,
.discord-guild-tag {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(8,14,27,.68);
    color: #e7edff;
    font-size: .72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.discord-badge i { font-size: .9rem; }
.discord-guild-tag img { width: 18px; height: 18px; object-fit: contain; }
.discord-badge-staff, .discord-badge-partner { color: #9aa7ff; }
.discord-badge-bravery { color: #a58aff; }
.discord-badge-brilliance { color: #ff7fbb; }
.discord-badge-balance { color: #62e0c4; }
.discord-badge-early-supporter { color: #ffcb70; }
.discord-badge-bug-hunter, .discord-badge-bug-hunter-2 { color: #70e5a5; }
.discord-badge-verified-developer, .discord-badge-moderator { color: #85b4ff; }

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.profile-detail-card {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    background: rgba(8,14,27,.38);
}
.profile-detail-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ae9cff;
    background: rgba(124,92,255,.13);
}
.profile-detail-card span { display: block; color: #8190ac; font-size: .7rem; font-weight: 750; margin-bottom: 3px; }
.profile-detail-card strong { display: block; color: #eef3ff; font-size: .86rem; overflow-wrap: anywhere; }
.profile-detail-card small { display: block; color: #74829e; font-size: .68rem; margin-top: 3px; }
.profile-color-dot { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.profile-cosmetic-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.discord-nameplate {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    color: white;
    background:
        radial-gradient(circle at 85% 0, rgba(255,255,255,.22), transparent 32%),
        linear-gradient(105deg, var(--plate-c1), var(--plate-c2));
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.18);
}
.discord-nameplate strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-nameplate span { margin-left: auto; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .78; }
.empty-cosmetic {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 12px;
    color: #8d9ab4;
    background: rgba(8,14,27,.28);
    font-size: .78rem;
}
.empty-cosmetic.warning { color: #d9bd83; border-color: rgba(255,186,74,.2); background: rgba(255,186,74,.055); }
.role-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: rgba(255,255,255,.045);
    color: #dce5f8;
    font-size: .76rem;
    font-weight: 720;
}
.profile-meta-list { margin: 0; }
.profile-meta-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--app-border); }
.profile-meta-list > div:last-child { border-bottom: 0; }
.profile-meta-list dt { color: #7f8ca7; font-size: .75rem; font-weight: 700; }
.profile-meta-list dd { margin: 0; color: #e9efff; font-size: .78rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.member-identity { display: flex; align-items: center; gap: 12px; min-width: 215px; }
.member-avatar-wrap { width: 42px; height: 42px; flex: 0 0 42px; position: relative; }
.member-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    object-fit: cover;
    background: #101a2e;
    border: 1px solid rgba(255,255,255,.08);
}
.member-avatar-placeholder { color: #72809c; }
.member-avatar-decoration {
    position: absolute;
    inset: -6px;
    width: 54px;
    height: 54px;
    object-fit: contain;
    pointer-events: none;
}
.member-profile-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.member-profile-badge {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    color: #b8c6e5;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    font-size: .72rem;
}
.member-guild-tag {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 7px;
    color: #dfe6ff;
    background: rgba(124,92,255,.11);
    border: 1px solid rgba(124,92,255,.22);
    font-size: .62rem;
    font-weight: 850;
}
.member-guild-tag img { width: 14px; height: 14px; object-fit: contain; }
.min-w-0 { min-width: 0; }

@media (max-width: 767.98px) {
    .profile-banner { min-height: 190px; }
    .profile-identity { align-items: center; flex-direction: column; text-align: center; padding: 0 18px 24px; margin-top: -54px; gap: 12px; }
    .profile-badges { justify-content: center; }
    .profile-detail-grid, .profile-cosmetic-row { grid-template-columns: 1fr; }
}

/* Queue management */
/* Queue two-column cards */
.queue-grid { align-items: stretch; }
.queue-card-col { display: flex; }
.queue-card-col > .queue-panel { width: 100%; display: flex; flex-direction: column; }
.queue-card-col .panel-header { gap: 10px; }
.queue-card-col .panel-header > div:last-child { justify-content: flex-end; }
.queue-card-col .queue-table-wrap { margin-left: -4px; margin-right: -4px; }
.queue-card-col .queue-table { min-width: 610px; }
.queue-card-col .queue-table > :not(caption) > * > * { padding: .72rem .42rem; }
.queue-card-col .queue-table thead th { font-size: .64rem; letter-spacing: .055em; }
.queue-card-col .queue-table td { font-size: .82rem; }
.queue-card-col .queue-table th:first-child,
.queue-card-col .queue-table td:first-child { width: 40px; }
.queue-card-col .queue-table th:nth-child(2),
.queue-card-col .queue-table td:nth-child(2) { min-width: 120px; }
.queue-card-col .queue-table th:nth-child(3),
.queue-card-col .queue-table td:nth-child(3) { width: 72px; }
.queue-card-col .queue-table th:nth-child(4),
.queue-card-col .queue-table td:nth-child(4) { width: 92px; }
.queue-card-col .queue-table th:last-child,
.queue-card-col .queue-table td:last-child { min-width: 220px; }
.queue-card-col .queue-table .btn-sm { padding: .32rem .45rem; font-size: .7rem; }
.queue-card-col .queue-table .d-flex { gap: 4px !important; }
.queue-card-col .queue-position-number { width: 28px; height: 28px; flex-basis: 28px; }
.queue-footer-actions { margin-top: auto !important; padding-top: 14px; }

@media (min-width: 1200px) and (max-width: 1450px) {
    .queue-card-col .queue-table { min-width: 580px; }
    .queue-card-col .queue-table th:last-child,
    .queue-card-col .queue-table td:last-child { min-width: 205px; }
    .queue-card-col .queue-table .btn-sm { padding: .3rem .38rem; font-size: .66rem; }
}

@media (max-width: 1199.98px) {
    .queue-card-col .queue-table { min-width: 760px; }
}

.queue-panel { overflow: visible; }
.queue-own-request {
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: rgba(8, 14, 27, .32);
}
.queue-table { min-width: 760px; }
.queue-position-column { width: 126px; }
.queue-management-column { min-width: 280px; }
.queue-position-cell { display: flex; align-items: center; gap: 10px; }
.queue-position-number {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 10px;
    color: #dfe6ff;
    background: rgba(124, 92, 255, .13);
    border: 1px solid rgba(124, 92, 255, .24);
    font-weight: 850;
}
.queue-position-controls,
.queue-actions { display: flex; align-items: center; gap: 6px; }
.queue-position-controls form,
.queue-actions form { margin: 0; }
.btn-icon { width: 31px; height: 31px; padding: 0; display: inline-grid; place-items: center; }
.btn-success-soft {
    color: #86f4c2;
    border-color: rgba(55, 211, 153, .25);
    background: rgba(55, 211, 153, .10);
}
.btn-success-soft:hover {
    color: #b9ffe0;
    border-color: rgba(55, 211, 153, .42);
    background: rgba(55, 211, 153, .18);
}
.issue-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.issue-summary > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: rgba(8, 14, 27, .38);
}
.issue-summary span { display: block; color: #8190ac; font-size: .7rem; font-weight: 750; margin-bottom: 3px; }
.issue-summary strong { display: block; color: #eef3ff; font-size: .84rem; overflow-wrap: anywhere; }
.issue-summary strong span { display: inline; color: inherit; font-size: inherit; margin: 0; }
@media (max-width: 575.98px) {
    .issue-summary { grid-template-columns: 1fr; }
}

/* Multi-guild v4 */
.guild-switch-card { display:flex; align-items:center; gap:10px; margin:12px 12px 18px; padding:11px; border-radius:13px; color:var(--app-text); background:rgba(255,255,255,.045); border:1px solid var(--app-border); text-decoration:none; }
.guild-switch-card:hover { color:white; background:rgba(255,255,255,.075); }
.guild-switch-card img,.guild-switch-icon { width:36px; height:36px; border-radius:11px; object-fit:cover; display:grid; place-items:center; background:linear-gradient(135deg,#5865f2,#7c5cff); }
.guild-switch-card strong,.guild-switch-card small { display:block; max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.guild-switch-card small { color:var(--app-muted); font-size:.68rem; margin-top:2px; }
.standalone-shell { min-height:100vh; }
.standalone-topbar { min-height:72px; padding:12px clamp(18px,4vw,54px); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--app-border); background:rgba(9,16,30,.88); backdrop-filter:blur(16px); }
.standalone-content { width:min(1320px,calc(100% - 32px)); margin:0 auto; padding:42px 0 70px; }
.selector-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.guild-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; }
.guild-card { display:block; text-decoration:none; color:var(--app-text); transition:transform .18s ease,border-color .18s ease; }
.guild-card:hover { color:white; transform:translateY(-3px); border-color:rgba(124,92,255,.55); }
.guild-card-head { display:flex; align-items:center; gap:14px; }
.guild-card-head img,.guild-card-head>span { width:52px;height:52px;border-radius:16px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#5865f2,#7c5cff);font-size:1.3rem; }
.guild-card h2 { font-size:1rem; margin:0 0 3px; }
.guild-card small { color:var(--app-muted); }
.guild-card-meta { display:flex;align-items:center;justify-content:space-between;margin-top:22px;color:var(--app-muted);font-size:.8rem; }
.guild-card-open { display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:15px;border-top:1px solid var(--app-border);font-weight:750;font-size:.85rem;color:#b9adff; }
@media (max-width:700px){.selector-heading{align-items:stretch;flex-direction:column}.selector-heading .btn{width:100%}.standalone-content{padding-top:26px}}

/* v5.0.1 interface fixes */
.bg-body-tertiary,
.bg-body-secondary,
.bg-light,
.surface-block {
    color: var(--app-text) !important;
    background: rgba(8, 14, 27, .38) !important;
    border: 1px solid var(--app-border);
}
.surface-block { padding: 14px 16px; border-radius: 13px; }
.input-group-text {
    color: var(--app-muted);
    background: #0d1628;
    border-color: rgba(255,255,255,.13);
}
.multi-select { min-height: 150px; }
.multi-select option { padding: 7px 9px; border-radius: 7px; }
.notification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.notification-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: rgba(8,14,27,.32);
    cursor: pointer;
}
.notification-option .form-check-input { flex: 0 0 auto; margin-top: 3px; }
.notification-option strong,
.notification-option small { display: block; }
.notification-option strong { color: var(--app-text); font-size: .83rem; }
.notification-option small { margin-top: 3px; color: var(--app-muted); font-size: .72rem; line-height: 1.35; }
.operations-table { min-width: 1120px; }
.operations-table td:nth-child(3),
.operations-table td:nth-child(4),
.operations-table td:nth-child(5) { min-width: 155px; }
.discord-options-loading { opacity: .65; pointer-events: none; }
@media (max-width: 767.98px) {
    .notification-grid { grid-template-columns: 1fr; }
}

/* v5.0.2 report channel picker */
.channel-picker {
    position: relative;
}
.channel-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding-right: 12px;
    text-align: left;
    cursor: pointer;
}
.channel-picker-toggle::after {
    display: none;
}
.channel-picker-count {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    color: #c8d4ee;
    background: rgba(124, 92, 255, .16);
    border: 1px solid rgba(158, 143, 255, .25);
    font-size: .69rem;
    font-weight: 800;
}
.channel-picker.open .channel-picker-toggle {
    border-color: #8b73ff;
    box-shadow: 0 0 0 .2rem rgba(124,92,255,.18);
}
.channel-picker-menu {
    position: absolute;
    z-index: 1085;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 330px;
    padding: 10px;
    color: var(--app-text);
    background: #111b30;
    border: 1px solid rgba(158,143,255,.28);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(0,0,0,.42);
}
.channel-picker-menu[hidden] {
    display: none !important;
}
.channel-picker-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 9px;
    color: #b8c5de;
    font-size: .74rem;
    font-weight: 800;
}
.channel-picker-menu-head .btn-link {
    padding: 0;
    color: #a99bff;
    text-decoration: none;
    font-size: .72rem;
}
.channel-picker-options {
    max-height: 290px;
    overflow-y: auto;
    padding-right: 3px;
}
.channel-picker-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 54px;
    padding: 9px 10px;
    margin-bottom: 5px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.channel-picker-option:hover {
    background: rgba(255,255,255,.065);
    border-color: rgba(255,255,255,.09);
}
.channel-picker-option.selected {
    background: rgba(124,92,255,.13);
    border-color: rgba(158,143,255,.34);
}
.channel-picker-option:has(input:disabled:not(:checked)) {
    opacity: .43;
    cursor: not-allowed;
}
.channel-picker-option .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: inherit;
}
.channel-picker-option-copy {
    min-width: 0;
}
.channel-picker-option-copy strong,
.channel-picker-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.channel-picker-option-copy strong {
    color: #eef3ff;
    font-size: .82rem;
}
.channel-picker-option-copy small {
    margin-top: 2px;
    color: #7f8eaa;
    font-size: .68rem;
}
.channel-picker-check {
    color: #7ce5b8;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}
.channel-picker-option.selected .channel-picker-check {
    opacity: 1;
    transform: scale(1);
}
.channel-picker-limit {
    margin-top: 8px;
    padding: 8px 10px;
    color: #ffe0a7;
    background: rgba(255,186,74,.10);
    border: 1px solid rgba(255,186,74,.18);
    border-radius: 9px;
    font-size: .7rem;
}
.channel-picker-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    margin-top: 8px;
}
.channel-picker-selected:empty {
    display: none;
}
.channel-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    color: #dfe7fb;
    background: rgba(54,201,143,.10);
    border: 1px solid rgba(54,201,143,.20);
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.channel-picker-chip i {
    color: #6be1b1;
}
.channel-picker-empty {
    padding: 22px 12px;
    text-align: center;
    color: var(--app-muted);
    font-size: .77rem;
}
@media (max-width: 575.98px) {
    .channel-picker-menu {
        position: fixed;
        z-index: 1100;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        min-width: 0;
        max-height: min(72vh, 520px);
    }
    .channel-picker-options {
        max-height: calc(min(72vh, 520px) - 78px);
    }
}

/* v5.0.3: dynamic member search and sorting */
.members-toolbar {
    gap: 16px;
}
.members-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 520px;
}
.members-search-wrap {
    min-width: 240px;
    max-width: 360px;
}
.members-search-wrap .input-group-text {
    color: var(--app-muted);
    background: #0d1629;
    border-color: var(--app-border);
}
.members-sort-select {
    width: 170px;
    flex: 0 0 170px;
}
.members-sort-direction {
    width: 42px;
    min-width: 42px;
}
.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}
.table-sort-button:hover,
.table-sort-button.active {
    color: #91a8ff;
}
.table-sort-button i {
    font-size: .74rem;
    opacity: .65;
}
.operations-search-status {
    min-height: 1.25rem;
}
@media (max-width: 767.98px) {
    .members-controls {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }
    .members-search-wrap {
        max-width: none;
        flex: 1 1 100%;
    }
    .members-sort-select {
        flex: 1 1 auto;
        width: auto;
    }
}

/* v6.0 product onboarding, public pages and safety previews */
.nav-notice-dot{display:inline-block;width:7px;height:7px;margin-left:auto;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.12)}
.eyebrow{display:inline-block;margin-bottom:.65rem;color:#91a8ff;font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.public-shell{min-height:100vh;background:radial-gradient(circle at 10% 0%,rgba(88,101,242,.18),transparent 30%),radial-gradient(circle at 90% 20%,rgba(20,184,166,.12),transparent 28%),#070d19;color:var(--app-text)}
.public-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px clamp(20px,5vw,72px);border-bottom:1px solid rgba(148,163,184,.12);background:rgba(7,13,25,.88);backdrop-filter:blur(18px)}
.public-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.public-brand strong{font-size:1.05rem}
.public-nav{display:flex;align-items:center;gap:24px}.public-nav a,.public-footer a{color:var(--app-muted);text-decoration:none}.public-nav a:hover,.public-footer a:hover{color:#fff}
.public-main{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:72px 0 96px}
.public-footer{display:flex;justify-content:space-between;gap:24px;padding:28px clamp(20px,5vw,72px);border-top:1px solid rgba(148,163,184,.12);color:var(--app-muted);font-size:.88rem}.public-footer nav{display:flex;gap:18px}
.public-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);align-items:center;gap:56px;min-height:560px}.public-hero h1,.public-page-head h1{font-size:clamp(2.35rem,5.5vw,4.6rem);line-height:1.02;letter-spacing:-.055em}.public-hero p,.public-page-head p{max-width:720px;color:var(--app-muted);font-size:1.1rem;line-height:1.75}
.hero-dashboard{padding:28px;transform:rotate(1.5deg);box-shadow:0 30px 90px rgba(0,0,0,.38)}.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.metric-grid div{padding:18px;border:1px solid var(--app-border);border-radius:16px;background:rgba(15,23,42,.62)}.metric-grid small{display:block;color:var(--app-muted)}.metric-grid strong{display:block;margin-top:8px;font-size:1.45rem}.hero-flow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:20px;padding:16px;border-radius:14px;background:rgba(88,101,242,.1);font-size:.83rem;font-weight:700}.hero-flow i{color:#7187ff}
.public-section{padding-top:84px}.section-heading{max-width:760px;margin-bottom:30px}.section-heading h2{font-size:clamp(1.8rem,3vw,3rem);letter-spacing:-.035em}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{padding:26px}.feature-card>i{display:grid;width:46px;height:46px;place-items:center;margin-bottom:18px;border-radius:14px;background:rgba(88,101,242,.15);color:#91a8ff;font-size:1.25rem}.feature-card h3{font-size:1.08rem}.feature-card p{margin:0;color:var(--app-muted);line-height:1.65}
.public-cta{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:84px;padding:34px}.public-cta h2{margin-bottom:.45rem}.public-cta p{margin:0;color:var(--app-muted)}
.public-page-head{max-width:850px;margin-bottom:42px}.feature-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.feature-detail{padding:26px}.feature-detail h2{font-size:1.15rem}.feature-detail ul{display:grid;gap:12px;padding:0;margin:18px 0 0;list-style:none}.feature-detail li{display:flex;gap:10px;color:var(--app-muted)}.feature-detail li i{color:#34d399}
.timeline-cards,.faq-list{display:grid;gap:16px}.timeline-card{display:flex;gap:20px;padding:24px}.timeline-card>span{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border-radius:14px;background:rgba(88,101,242,.16);color:#9dacff;font-weight:800}.timeline-card h2{font-size:1.15rem}.timeline-card p{margin:0;color:var(--app-muted)}
.faq-list details{padding:22px}.faq-list summary{cursor:pointer;font-weight:750}.faq-list p{margin:16px 0 0;color:var(--app-muted);line-height:1.7}.legal-page{max-width:900px;margin:auto;padding:clamp(24px,5vw,54px)}.legal-page h1{font-size:2.4rem}.legal-page h2{margin-top:32px;font-size:1.15rem}.legal-page p{color:var(--app-muted);line-height:1.8}
.status-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;font-size:.86rem;font-weight:750}.status-pill.ok{background:rgba(52,211,153,.12);color:#6ee7b7}.status-pill.bad{background:rgba(248,113,113,.12);color:#fca5a5}.status-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.status-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px}.status-card small{display:block;margin-top:5px;color:var(--app-muted)}
.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.guide-step{display:flex;gap:18px;padding:24px}.guide-step>span{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:13px;background:rgba(88,101,242,.14);color:#9dacff;font-weight:800}.guide-step h2{font-size:1.08rem}.guide-step p{margin:0;color:var(--app-muted);line-height:1.65}.code-preview{max-height:340px;padding:16px;overflow:auto;border:1px solid var(--app-border);border-radius:12px;background:#080f1d;color:#c9d5ef;font-size:.8rem}.notification-templates summary{cursor:pointer;color:#cbd5e1;font-weight:700}
@media(max-width:991.98px){.public-nav{display:none}.public-hero{grid-template-columns:1fr;min-height:auto}.hero-dashboard{transform:none}.feature-grid{grid-template-columns:repeat(2,1fr)}.public-main{padding-top:48px}.guide-grid{grid-template-columns:1fr}}
@media(max-width:767.98px){.public-header{padding:14px 16px}.public-header .btn-soft{display:none}.public-main{width:min(100% - 24px,1180px)}.public-hero h1,.public-page-head h1{font-size:2.35rem}.feature-grid,.feature-detail-grid,.status-grid{grid-template-columns:1fr}.public-cta,.public-footer{align-items:flex-start;flex-direction:column}.public-footer nav{flex-wrap:wrap}.metric-grid{grid-template-columns:1fr 1fr}.hero-flow{flex-wrap:wrap;justify-content:flex-start}.hero-flow i{transform:rotate(90deg)}}

/* ==================== Guild Manager v6.1 UX ==================== */
.app-breadcrumbs { display:flex; align-items:center; gap:7px; margin-bottom:14px; color:#7f8ca6; font-size:.76rem; font-weight:700; }
.app-breadcrumbs a { color:#9eabca; text-decoration:none; }
.app-breadcrumbs a:hover { color:#fff; }
.app-breadcrumbs i { font-size:.62rem; }
.topbar-search { flex: 0 1 420px; min-width: 240px; display:flex; align-items:center; gap:9px; padding:8px 13px; border:1px solid var(--app-border); border-radius:12px; background:rgba(8,14,27,.58); }
.topbar-search:focus-within { border-color:#8b73ff; box-shadow:0 0 0 .2rem rgba(124,92,255,.13); }
.topbar-search i { color:#7f8ca6; }
.topbar-search input { width:100%; border:0; outline:0; color:#f5f7ff; background:transparent; font-size:.86rem; font-weight:650; }
.topbar-search input::placeholder { color:#77849d; }
.stat-value-compact { font-size:clamp(1.1rem,2vw,1.65rem); }
.chart-shell { position:relative; width:100%; min-height:280px; }
.chart-shell canvas { display:block; width:100%; height:280px; }
.chart-legend { display:flex; flex-wrap:wrap; gap:18px; color:#8996af; font-size:.75rem; font-weight:700; }
.legend-dot { display:inline-block; width:9px; height:9px; margin-right:6px; border-radius:50%; }
.legend-primary { background:var(--app-primary); }
.legend-secondary { background:var(--app-primary-2); }
.global-search-page { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; }
.global-search-page > i { color:#8290aa; font-size:1.15rem; }
.search-summary { color:#8e9bb5; font-size:.86rem; }
.search-result { display:flex; align-items:center; gap:12px; min-width:0; padding:11px; margin-bottom:7px; color:#e8edff; text-decoration:none; border:1px solid transparent; border-radius:12px; background:rgba(8,14,27,.34); }
.search-result:hover { color:#fff; border-color:rgba(124,92,255,.28); background:rgba(124,92,255,.08); }
.search-result-icon { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:10px; color:#b9adff; background:rgba(124,92,255,.13); }
.search-result span:last-child { min-width:0; }
.search-result strong,.search-result small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-result small { margin-top:3px; color:#8290aa; font-size:.73rem; }

@media (max-width: 1199.98px) { .topbar-search { flex-basis:320px; } }
@media (max-width: 767.98px) {
    .topbar-search { display:none; }
    .global-search-page { grid-template-columns:auto 1fr; }
    .global-search-page .btn { grid-column:1 / -1; }
    .table-responsive-stack { overflow:visible; }
    .table-responsive-stack table,.table-responsive-stack thead,.table-responsive-stack tbody,.table-responsive-stack tr,.table-responsive-stack td { display:block; width:100%; }
    .table-responsive-stack thead { display:none; }
    .table-responsive-stack tbody { display:grid; gap:12px; }
    .table-responsive-stack tr { padding:12px 14px; border:1px solid var(--app-border); border-radius:14px; background:rgba(14,23,40,.76); }
    .table-responsive-stack tr[hidden] { display:none !important; }
    .table-responsive-stack td { min-height:32px; display:grid; grid-template-columns:minmax(105px,38%) 1fr; gap:12px; align-items:center; padding:7px 0 !important; border:0 !important; text-align:right; white-space:normal !important; }
    .table-responsive-stack td::before { content:attr(data-label); color:#7f8ca6; font-size:.7rem; font-weight:800; text-align:left; text-transform:uppercase; letter-spacing:.035em; }
    .table-responsive-stack td[colspan] { display:block; text-align:center; }
    .table-responsive-stack td[colspan]::before { display:none; }
    .table-responsive-stack td > form,.table-responsive-stack td > .d-flex { justify-content:flex-end; }
    .chart-shell,.chart-shell canvas { min-height:240px; height:240px; }
}

/* Guild Manager v6.1 public demo and release timeline */
.language-switch{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:34px;padding:0 .55rem;border:1px solid var(--app-border);border-radius:10px;color:var(--app-muted);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-decoration:none;background:rgba(255,255,255,.03)}
.language-switch:hover{color:var(--app-text);border-color:rgba(124,92,255,.45)}
.demo-label{display:inline-flex;align-items:center;gap:.45rem;width:max-content;padding:.35rem .6rem;border:1px solid rgba(124,92,255,.32);border-radius:999px;background:rgba(124,92,255,.1);color:#c9bcff;font-size:.68rem;font-weight:800;letter-spacing:.09em}
.demo-app{padding:0;overflow:hidden}.demo-app-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;border-bottom:1px solid var(--app-border);background:rgba(255,255,255,.015)}.demo-app-head>div{display:flex;align-items:center;gap:.8rem}.demo-app-head span span{display:block}.demo-app-head small{display:block;color:var(--app-muted)}.demo-avatar{display:grid!important;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#5865f2,#7c5cff);color:white;font-size:1.2rem}
.demo-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;padding:1.25rem}.demo-metrics article,.demo-surface{border:1px solid var(--app-border);border-radius:16px;background:rgba(255,255,255,.025);padding:1rem}.demo-metrics small{display:block;color:var(--app-muted)}.demo-metrics strong{display:block;margin:.25rem 0;font-size:1.55rem}.demo-metrics span{color:#7ee2a8;font-size:.78rem}.demo-app>.row{padding:0 1.25rem 1.25rem}.demo-surface{height:100%}.demo-bars{height:210px;display:flex;align-items:flex-end;gap:8px;padding:1rem 0 .4rem;border-bottom:1px solid var(--app-border)}.demo-bars span{flex:1;height:100%;display:flex;align-items:flex-end}.demo-bars i{display:block;width:100%;height:var(--demo-height);min-height:4px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#7c5cff,#37b6ff);opacity:.9}.demo-axis{display:flex;justify-content:space-between;margin-top:.5rem;color:var(--app-muted);font-size:.72rem}.demo-member,.demo-operation{display:flex;align-items:center;gap:.7rem;padding:.7rem 0;border-bottom:1px solid var(--app-border)}.demo-member:last-child,.demo-operation:last-child{border-bottom:0}.demo-member>span:nth-child(2),.demo-operation>span{min-width:0;flex:1}.demo-member strong,.demo-member small,.demo-operation strong,.demo-operation small{display:block}.demo-member small,.demo-operation small,.demo-operation time{color:var(--app-muted);font-size:.75rem}.demo-member b{color:#9be6bd}.demo-operation>i{font-size:1.05rem;color:#8f7dff}.demo-flow-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:90px}.demo-flow-row span{display:flex;align-items:center;gap:.45rem;text-align:center}.timeline-list{display:grid;gap:1rem}.timeline-entry>div{display:flex;align-items:center;justify-content:space-between;gap:1rem}.timeline-entry h2{font-size:1.25rem;margin:.8rem 0}.timeline-entry li{margin:.45rem 0;color:var(--app-muted)}
@media(max-width:900px){.demo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.public-nav{display:none}}
@media(max-width:600px){.demo-app-head{align-items:flex-start}.demo-metrics{grid-template-columns:1fr}.demo-flow-row{align-items:flex-start;flex-direction:column}.demo-flow-row>i{transform:rotate(90deg);align-self:center}.public-header .btn-primary{display:none}.language-switch{min-width:34px}}
.security-posture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.security-posture-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.65rem;padding:.75rem .85rem;border:1px solid var(--app-border);border-radius:12px;background:rgba(255,255,255,.025)}.security-posture-item strong{font-size:.75rem}@media(max-width:700px){.security-posture-grid{grid-template-columns:1fr}}

/* CommanderLink integration */
.voice-eyebrow { color: #73809d; font-size: .67rem; font-weight: 850; letter-spacing: .13em; }
.voice-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.voice-metric-grid > div { padding: 12px; border: 1px solid var(--app-border); background: rgba(8,14,28,.58); border-radius: 12px; }
.voice-metric-grid span { display: block; color: var(--app-muted); font-size: .72rem; }
.voice-metric-grid strong { display: block; margin-top: 5px; font-size: 1.15rem; }
.voice-role-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #c3b8ff; background: rgba(124,92,255,.15); font-size: 1.1rem; }
.voice-step { display: flex; gap: 11px; padding: 9px 0; }
.voice-step > span { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 8px; color: #c9c0ff; background: rgba(124,92,255,.15); font-weight: 850; }
.voice-step strong, .voice-step small { display: block; }.voice-step small { color: var(--app-muted); margin-top: 2px; line-height: 1.35; }
.voice-code-line { min-height: 42px; padding: 10px 12px; border: 1px solid var(--app-border); border-radius: 10px; background: #0a1324; overflow: auto; }
.voice-code-line code { color: #cad4ff; white-space: nowrap; font-size: .76rem; }
.voice-mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice-mode-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 13px; border: 1px solid var(--app-border); background: rgba(8,14,28,.45); cursor: pointer; transition: .15s ease; }
.voice-mode-option:hover { border-color: rgba(124,92,255,.42); }.voice-mode-option.selected { border-color: #7c5cff; background: rgba(124,92,255,.12); box-shadow: inset 0 0 0 1px rgba(124,92,255,.14); }
.voice-mode-option > input { margin-top: 4px; }.voice-mode-option > i { color: #9e8cff; font-size: 1.15rem; }
.voice-mode-option strong, .voice-mode-option small { display: block; }.voice-mode-option small { color: var(--app-muted); margin-top: 3px; line-height: 1.35; }
.voice-live-list { display: grid; gap: 8px; }.voice-live-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 11px; border: 1px solid var(--app-border); background: rgba(8,14,28,.45); }
.voice-live-row small { display: block; color: var(--app-muted); margin-top: 2px; }
.voice-channel-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.voice-channel { padding: 10px 11px; border-radius: 11px; border: 1px solid var(--app-border); background: rgba(8,14,28,.45); }.voice-channel small, .voice-channel strong { display: block; }.voice-channel small { color: var(--app-muted); margin-bottom: 4px; font-size: .68rem; }
.empty-state.compact { min-height: 140px; display: grid; place-items: center; text-align: center; gap: 5px; padding: 20px; border: 1px dashed rgba(255,255,255,.12); border-radius: 13px; color: var(--app-muted); }.empty-state.compact i { font-size: 1.5rem; color: #8f80ff; }.empty-state.compact strong { color: var(--app-text); }
@media (max-width: 767px) { .voice-mode-picker, .voice-channel-grid, .voice-metric-grid { grid-template-columns: 1fr; } }

/* ==================== GUILD BANK LAYOUT v6.1.3 UI1 ==================== */
.bank-actions-row > [class*="col-"] {
    display: flex;
}
.bank-action-block {
    width: 100%;
    min-width: 0;
    height: 100%;
}
.bank-action-block .form-select,
.bank-action-block .form-control,
.bank-action-block .input-group {
    min-width: 0;
}
.bank-history-section {
    min-width: 0;
}
.bank-history-scroll {
    max-height: 460px;
    overflow: auto;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 165, 196, .42) transparent;
}
.bank-history-scroll .table {
    min-width: 760px;
}
.bank-history-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151f35;
    box-shadow: inset 0 -1px var(--app-border);
}
.bank-history-scroll::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}
.bank-history-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.bank-history-scroll::-webkit-scrollbar-thumb {
    background: rgba(151, 165, 196, .32);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
.bank-history-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(151, 165, 196, .5);
    border: 2px solid transparent;
    background-clip: padding-box;
}
@media (max-width: 1199.98px) {
    .bank-actions-row { row-gap: 1.5rem !important; }
}
@media (max-width: 767.98px) {
    .bank-history-scroll { max-height: 380px; }
    .bank-history-section > .d-flex { align-items: flex-start !important; flex-direction: column; gap: .35rem !important; }
}


/* v6.2.3: bulk member balance management */
.members-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin: -2px 0 14px;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    background: rgba(88,101,242,.07);
}
.members-bulk-summary,
.members-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.members-bulk-count {
    color: #dfe5ff;
    font-weight: 700;
}
.members-select-column {
    width: 42px;
    min-width: 42px;
    text-align: center;
}
[data-member-row].member-selected > * {
    background: rgba(88,101,242,.055);
}
.bulk-preview-scroll {
    max-height: min(55vh, 470px);
    overflow: auto;
    border: 1px solid var(--app-border);
    border-radius: 12px;
}
.bulk-preview-scroll .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151f35;
}
@media (max-width: 991.98px) {
    .members-bulk-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .members-bulk-actions {
        width: 100%;
    }
}


/* ==================== MEMBER DKP BACKPACK v6.2.4 ==================== */
.member-name-link { color: inherit; text-decoration: none; }
.member-name-link:hover { color: #a99cff; }
.backpack-profile-avatar { width: 46px; height: 46px; flex: 0 0 46px; }
.backpack-profile-avatar .member-avatar { width: 46px; height: 46px; }
.backpack-profile-avatar .member-avatar-decoration { inset: -7px; width: 60px; height: 60px; }
.backpack-summary-table { max-height: 520px; overflow-y: auto; }
.backpack-history-scroll { max-height: 660px; overflow-y: auto; padding-right: 4px; }
.backpack-history-scroll .table thead th { position: sticky; top: 0; z-index: 2; background: #151f35; }
.backpack-row-reversed { opacity: .55; }
.backpack-row-reversed td { text-decoration-color: rgba(255,255,255,.25); }
.backpack-reason { min-width: 190px; max-width: 340px; white-space: normal; }
.backpack-history-scroll::-webkit-scrollbar, .backpack-summary-table::-webkit-scrollbar { width: 8px; height: 8px; }
.backpack-history-scroll::-webkit-scrollbar-thumb, .backpack-summary-table::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; }
@media (max-width: 767.98px) { .backpack-reason { min-width: 150px; } }

/* ==================== ASCARON ITEM ICONS v6.2.6 ==================== */
.item-ref {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    vertical-align: middle;
}
.item-ref-name { min-width: 0; }
.item-icon-shell {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(158,143,255,.22);
    background: linear-gradient(145deg, rgba(124,92,255,.10), rgba(9,16,30,.72));
    box-shadow: inset 0 0 14px rgba(124,92,255,.06), 0 4px 14px rgba(0,0,0,.12);
}
.item-icon-shell img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.item-icon-md { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.item-icon-md img { width: 30px; height: 30px; }
.queue-item-title .item-ref { font-size: inherit; }
.search-result-item-icon img { width: 28px; height: 28px; object-fit: contain; }
.item-select-with-preview { position: relative; }
.item-select-with-preview .form-select { padding-left: 46px; }
.item-select-preview {
    position: absolute;
    z-index: 4;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: rgba(124,92,255,.08);
    border: 1px solid rgba(158,143,255,.18);
}
.item-select-preview[hidden] { display: none; }
.item-select-preview img { width: 24px; height: 24px; object-fit: contain; display: block; }
@media (max-width: 575.98px) {
    .item-icon-shell { width: 26px; height: 26px; flex-basis: 26px; }
    .item-icon-shell img { width: 22px; height: 22px; }
}

/* ==================== MEMBER PROFILE v6.2.7 ==================== */
.profile-page-head { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.member-profile-page-avatar { width:58px; height:58px; flex:0 0 58px; }
.member-profile-page-avatar .member-avatar { width:58px; height:58px; }
.member-profile-page-avatar .member-avatar-decoration { inset:-8px; width:74px; height:74px; }
.profile-section-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:2px; }
.profile-balance-card { display:flex; align-items:center; gap:16px; min-height:104px; }
.profile-balance-card .stat-icon { flex:0 0 44px; }
.profile-balance-value { font-size:1.55rem; line-height:1.05; font-weight:850; letter-spacing:-.025em; }
.profile-queue-list,.profile-report-list { display:grid; gap:8px; }
.profile-queue-row { display:grid; grid-template-columns:minmax(170px,1fr) auto auto auto 18px; align-items:center; gap:14px; padding:12px 13px; border:1px solid var(--app-border); border-radius:12px; background:rgba(255,255,255,.025); color:inherit; text-decoration:none; }
.profile-queue-row:hover { color:#fff; background:rgba(255,255,255,.05); border-color:rgba(139,115,255,.38); }
.profile-queue-row > span:not(.profile-queue-item) { text-align:right; }
.profile-queue-row small,.profile-report-row small { display:block; color:var(--app-muted); font-size:.69rem; }
.profile-queue-row strong { display:block; margin-top:2px; font-size:.83rem; }
.profile-report-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 13px; border:1px solid var(--app-border); border-radius:12px; background:rgba(255,255,255,.025); }
.profile-report-main { display:flex; align-items:center; gap:10px; min-width:0; }
.profile-report-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-report-reward { text-align:right; flex:0 0 auto; }
.profile-report-reward strong { color:#bcaeff; font-size:.82rem; }
.profile-backpack-header { align-items:flex-start; }
.profile-backpack-filter { padding:14px; border:1px solid var(--app-border); border-radius:13px; background:rgba(255,255,255,.018); }
.profile-history-details { border-top:1px solid var(--app-border); padding-top:13px; }
.profile-history-details summary { cursor:pointer; color:#dfe7fa; font-weight:800; list-style:none; }
.profile-history-details summary::-webkit-details-marker { display:none; }
.profile-empty { padding:28px 14px; }
@media (max-width: 1399.98px) { .profile-queue-row { grid-template-columns:minmax(150px,1fr) auto auto 18px; } .profile-queue-row > span:nth-of-type(4) { display:none; } }
@media (max-width: 767.98px) { .profile-queue-row { grid-template-columns:1fr auto 18px; } .profile-queue-row > span:nth-of-type(3),.profile-queue-row > span:nth-of-type(4) { display:none; } .profile-report-row { align-items:flex-start; } .profile-report-main { align-items:flex-start; } .profile-backpack-header { flex-direction:column; } }

/* ==================== QUEUE PRIORITIES / MEMBER PROFILE v6.2.9 ==================== */
.queue-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid transparent;
}
.queue-priority-1 { color:#ffd98a; background:rgba(255,186,74,.13); border-color:rgba(255,186,74,.26); }
.queue-priority-2 { color:#b9c8ff; background:rgba(95,126,255,.12); border-color:rgba(95,126,255,.24); }
.queue-priority-3 { color:#9fe6d0; background:rgba(54,201,143,.10); border-color:rgba(54,201,143,.22); }
.profile-salary-card { background:linear-gradient(180deg, rgba(45,39,65,.94), rgba(22,28,45,.96)); }
.profile-queue-row-actions {
    grid-template-columns:minmax(180px,1fr) auto auto auto auto auto;
}
.profile-queue-issue { text-align:right; }
.profile-queue-link { color:var(--app-muted); text-decoration:none; }
.profile-queue-link:hover { color:#fff; }
@media (max-width: 1399.98px) {
    .profile-queue-row-actions { grid-template-columns:minmax(160px,1fr) auto auto auto auto; }
    .profile-queue-row-actions > span:nth-of-type(5) { display:none; }
}
@media (max-width: 991.98px) {
    .profile-queue-row-actions { grid-template-columns:minmax(160px,1fr) auto auto auto; }
    .profile-queue-row-actions > span:nth-of-type(4) { display:none; }
}
@media (max-width: 767.98px) {
    .profile-queue-row-actions { grid-template-columns:1fr auto auto; }
    .profile-queue-row-actions > span:nth-of-type(3),
    .profile-queue-row-actions > span:nth-of-type(4),
    .profile-queue-row-actions > span:nth-of-type(5) { display:none; }
}

/* ==================== COMPACT MEMBER QUEUE CARDS v6.2.10 ==================== */
.profile-queue-row.profile-queue-row-compact {
    grid-template-columns: minmax(135px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 8px 10px;
}
.profile-queue-row-compact .profile-queue-item {
    min-width: 0;
    display: flex;
    align-items: center;
}
.profile-queue-row-compact .profile-queue-item .item-ref {
    gap: .45rem;
    min-width: 0;
}
.profile-queue-row-compact .profile-queue-item .item-ref-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-queue-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 74px));
    align-items: center;
    gap: 8px;
}
.profile-queue-metric {
    min-width: 0;
    text-align: right;
}
.profile-queue-metric small {
    display: block;
    margin: 0 0 1px;
    color: var(--app-muted);
    font-size: .60rem;
    line-height: 1.05;
    white-space: nowrap;
}
.profile-queue-metric strong {
    display: block;
    margin: 0;
    font-size: .79rem;
    line-height: 1.15;
    white-space: nowrap;
}
.profile-queue-row-compact .queue-priority-badge {
    padding: .16rem .34rem;
    font-size: .66rem;
}
.profile-queue-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 64px;
}
.profile-queue-issue-btn {
    min-width: 62px;
    padding: .32rem .56rem;
    font-size: .70rem;
    line-height: 1.15;
}
.profile-queue-open {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
}

@media (max-width: 1399.98px) {
    .profile-queue-row.profile-queue-row-compact {
        grid-template-columns: minmax(130px, 1fr) auto;
        grid-template-areas:
            "item action"
            "metrics metrics";
        row-gap: 7px;
    }
    .profile-queue-row-compact .profile-queue-item { grid-area: item; }
    .profile-queue-row-compact .profile-queue-metrics { grid-area: metrics; }
    .profile-queue-row-compact .profile-queue-actions,
    .profile-queue-row-compact .profile-queue-open { grid-area: action; justify-self: end; }
    .profile-queue-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid rgba(255,255,255,.055);
    }
    .profile-queue-metric { text-align: left; }
}

@media (max-width: 575.98px) {
    .profile-queue-row.profile-queue-row-compact {
        padding: 8px 9px;
    }
    .profile-queue-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 12px;
    }
    .profile-queue-metric:nth-child(even) { text-align: right; }
    .profile-queue-metric small { font-size: .58rem; }
    .profile-queue-metric strong { font-size: .76rem; }
}

/* MEMBER EQUIPMENT LOADOUT v6.2.14 */
.member-equipment-panel{overflow:hidden}.member-equipment-header{align-items:flex-start}.equipment-character-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,240px) 120px auto;gap:12px;align-items:end;padding:14px 16px;border:1px solid var(--border-color,#2a3957);border-radius:14px;background:rgba(7,16,35,.28)}.equipment-character-name{display:flex;flex-direction:column;gap:4px;align-self:center}.equipment-character-name strong{font-size:1.05rem}.equipment-character-save{display:flex;align-items:end}.member-equipment-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.75fr);gap:16px}.member-equipment-layout-readonly{grid-template-columns:1fr}.equipment-board{position:relative;display:grid;grid-template-columns:minmax(150px,220px) minmax(170px,1fr) minmax(150px,220px);grid-template-rows:auto minmax(350px,1fr) auto;gap:14px;padding:16px;border:1px solid var(--border-color,#2a3957);border-radius:16px;background:linear-gradient(180deg,rgba(17,30,56,.76),rgba(10,20,39,.78));min-height:540px}.equipment-board-topline{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding-bottom:10px;border-bottom:1px solid rgba(121,143,184,.2)}.equipment-board-topline>div{display:flex;flex-direction:column}.equipment-board-topline small{color:var(--text-muted,#91a5c9)}.equipment-board-badge{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(111,90,255,.13);color:#8e7bff;font-size:1.15rem}.equipment-side{display:flex;flex-direction:column;gap:10px;justify-content:center}.equipment-side-left{grid-column:1;grid-row:2}.equipment-side-right{grid-column:3;grid-row:2}.equipment-character-stage{grid-column:2;grid-row:2;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:330px;border-radius:18px;background:radial-gradient(circle at 50% 38%,rgba(90,104,255,.19),rgba(15,27,50,.18) 48%,transparent 72%);overflow:hidden}.equipment-character-aura{position:absolute;width:170px;height:270px;border-radius:50%;background:radial-gradient(circle,rgba(94,117,255,.13),transparent 70%);filter:blur(5px)}.equipment-character-silhouette{font-size:9rem;line-height:1;color:rgba(180,196,230,.25);filter:drop-shadow(0 0 24px rgba(96,113,255,.15));z-index:1}.equipment-character-stage strong,.equipment-character-stage span,.equipment-character-stage small{position:relative;z-index:2}.equipment-character-stage strong{margin-top:10px;font-size:1.08rem}.equipment-character-stage span{color:#aebfe0}.equipment-character-stage small{color:#8197bd}.equipment-bottom-slots{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.equipment-slot{position:relative;width:100%;min-height:72px;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;padding:9px 10px;text-align:left;color:inherit;background:rgba(13,25,48,.78);border:1px solid rgba(103,126,169,.25);border-radius:13px;transition:border-color .15s ease,background .15s ease,transform .15s ease}.equipment-slot:not(:disabled){cursor:pointer}.equipment-slot:not(:disabled):hover,.equipment-slot.is-active{border-color:#7868ff;background:rgba(67,62,143,.24)}.equipment-slot.is-active{box-shadow:0 0 0 1px rgba(120,104,255,.24) inset}.equipment-slot:disabled{opacity:1}.equipment-slot-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:11px;border:1px solid rgba(116,103,255,.32);background:rgba(76,65,154,.16);font-size:1.2rem;color:#9587ff;overflow:hidden}.equipment-slot-icon img{width:38px;height:38px;object-fit:contain;image-rendering:auto}.equipment-slot-text{min-width:0;display:flex;flex-direction:column}.equipment-slot-text strong{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.equipment-slot-text small{color:#91a4c7;font-size:.72rem}.equipment-slot-gems{grid-column:1/-1;display:flex;gap:4px;margin-top:-3px;padding-left:58px}.equipment-slot-gems span{position:relative;display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#0d1930;border:1px solid rgba(121,143,184,.25)}.equipment-slot-gems img{width:18px;height:18px;object-fit:contain}.equipment-slot-gems b{position:absolute;right:-3px;bottom:-5px;font-size:.58rem;background:#27375b;color:#fff;border-radius:5px;padding:0 3px}.equipment-editor{padding:16px;border:1px solid var(--border-color,#2a3957);border-radius:16px;background:rgba(12,23,44,.72);align-self:start;position:sticky;top:84px}.equipment-editor-head{display:flex;gap:10px;align-items:center;padding-bottom:13px;margin-bottom:14px;border-bottom:1px solid rgba(121,143,184,.22)}.equipment-editor-head>div{display:flex;flex-direction:column}.equipment-editor-head small{color:#8fa5ca}.equipment-editor-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:rgba(112,87,255,.18);color:#967fff}.equipment-gems-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0 8px}.equipment-gems-head span{font-size:.75rem;color:#93a8cc}.equipment-gem-row{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:8px;padding:8px 0;border-bottom:1px solid rgba(121,143,184,.12)}.equipment-gem-row .form-label{font-size:.78rem;margin-bottom:4px}.equipment-editor-note{display:flex;gap:8px;align-items:flex-start;margin-top:12px;color:#8fa5ca;font-size:.78rem}.equipment-editor-empty{min-height:280px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.equipment-editor-empty i{font-size:2rem;margin-bottom:8px}.equipment-slot .bi-bootstrap{transform:rotate(-8deg)}
@media(max-width:1280px){.member-equipment-layout{grid-template-columns:1fr}.equipment-editor{position:static}.equipment-board{min-height:500px}}
@media(max-width:900px){.equipment-character-form{grid-template-columns:1fr 1fr}.equipment-character-name,.equipment-character-save{grid-column:1/-1}.equipment-board{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto;min-height:0}.equipment-board-topline{grid-column:1/-1}.equipment-character-stage{grid-column:1/-1;grid-row:2;min-height:240px}.equipment-character-silhouette{font-size:7rem}.equipment-side-left{grid-column:1;grid-row:3}.equipment-side-right{grid-column:2;grid-row:3}.equipment-bottom-slots{grid-column:1/-1;grid-row:4;grid-template-columns:1fr 1fr}.equipment-slot{min-height:66px}}
@media(max-width:575px){.equipment-character-form{grid-template-columns:1fr}.equipment-character-name,.equipment-character-save{grid-column:auto}.equipment-character-save .btn{width:100%}.equipment-board{grid-template-columns:1fr;padding:12px}.equipment-character-stage{grid-column:1;grid-row:2}.equipment-side-left{grid-column:1;grid-row:3}.equipment-side-right{grid-column:1;grid-row:4}.equipment-bottom-slots{grid-column:1;grid-row:5;grid-template-columns:1fr}.equipment-slot{grid-template-columns:44px 1fr}.equipment-editor{padding:13px}}

/* MEMBER EQUIPMENT LOCALIZATION + AUTO FORGE v6.2.15 */
.equipment-forge-derived{display:flex;align-items:center;min-height:38px;padding:.45rem .75rem;border:1px solid rgba(121,143,184,.28);border-radius:.55rem;background:rgba(13,25,48,.76);font-weight:800;color:#f6c85f;font-variant-numeric:tabular-nums}
.equipment-forge-derived+.form-text{margin-top:.3rem;font-size:.7rem;color:#879bc1}
.equipment-select-with-icon{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center}.equipment-select-preview{display:grid;place-items:center;width:42px;height:38px;border:1px solid rgba(121,143,184,.28);border-radius:.55rem;background:rgba(13,25,48,.76);overflow:hidden}.equipment-select-preview img{width:32px;height:32px;object-fit:contain}.equipment-gem-preview{width:38px}.equipment-gem-row .equipment-select-with-icon{grid-template-columns:38px minmax(0,1fr)}
/* v6.2.20 — Gaming hall */
.casino-live-pill{display:flex;align-items:center;gap:.55rem;padding:.55rem .85rem;border:1px solid var(--app-border);border-radius:999px;background:rgba(15,23,42,.68);font-size:.82rem}
.casino-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.casino-stats article{padding:16px 18px;border:1px solid var(--app-border);border-radius:16px;background:linear-gradient(145deg,rgba(34,47,78,.9),rgba(15,24,45,.92));display:flex;flex-direction:column;gap:5px}
.casino-stats span{font-size:.76rem;color:var(--app-muted);text-transform:uppercase;letter-spacing:.05em}.casino-stats strong{font-size:1.35rem;color:#fff}
.casino-banker summary{cursor:pointer;list-style:none}.casino-banker summary::-webkit-details-marker{display:none}.casino-banker[open] summary{border-bottom:1px solid var(--app-border)}
.casino-tabs{gap:8px}.casino-tabs .nav-link{color:#c8d4ef;background:rgba(24,36,62,.7);border:1px solid var(--app-border);border-radius:12px}.casino-tabs .nav-link.active{background:linear-gradient(135deg,#7257ff,#4e7cff);border-color:transparent}
.casino-game{overflow:hidden}.casino-start-form{display:flex;gap:10px;max-width:420px}.casino-start-form .form-control{max-width:180px}
.casino-table{min-height:330px;padding:24px;border:1px solid rgba(123,148,205,.25);border-radius:22px;background:radial-gradient(circle at 50% 15%,rgba(51,89,130,.34),transparent 42%),linear-gradient(145deg,#10223b,#091527);position:relative}
.blackjack-zone{text-align:center}.blackjack-player{display:flex;justify-content:center;gap:20px;margin:45px 0 24px}.blackjack-hand{padding:12px;border:1px solid transparent;border-radius:14px;text-align:center}.blackjack-hand.active{border-color:#7d70ff;background:rgba(113,86,255,.1)}
.card-row,.mini-cards{display:flex;justify-content:center;gap:6px;min-height:72px;margin:10px 0}.playing-card{width:48px;height:68px;background:#f7f8fc;color:#172039;border-radius:8px;box-shadow:0 5px 12px rgba(0,0,0,.28);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;font-style:normal;line-height:1}.playing-card b{font-size:1.12rem}.playing-card i{font-style:normal;font-size:1.35rem}.playing-card.red{color:#d12443}.playing-card.card-back{color:#dad5ff;background:repeating-linear-gradient(45deg,#382b7b,#382b7b 5px,#5948ac 5px,#5948ac 10px);border:2px solid #cbc5ff}
.blackjack-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.casino-result-banner{text-align:center;padding:12px;border-radius:12px;background:rgba(42,201,145,.12);color:#9ff2cf}.fairness{margin-top:18px;color:var(--app-muted);font-size:.72rem}.fairness code{display:block;overflow-wrap:anywhere;color:#aebbe0}.casino-empty{min-height:280px;display:grid;place-items:center;align-content:center;gap:10px;color:var(--app-muted)}.casino-empty i{font-size:3rem}

/* v6.2.21 — motion for Blackjack and European roulette */
.card-deal-in{opacity:0;animation:casino-card-deal .58s cubic-bezier(.18,.82,.24,1.12) forwards;animation-delay:var(--card-delay,0ms);transform-origin:50% 100%}
.card-reveal{animation:casino-card-reveal .68s cubic-bezier(.2,.72,.2,1) both;animation-delay:var(--card-delay,0ms);transform-origin:50% 50%}
.hand-split-in{animation:casino-hand-split .55s cubic-bezier(.16,.8,.2,1) both}.result-pop{animation:casino-result-pop .62s cubic-bezier(.18,.9,.28,1.2) both}
@keyframes casino-card-deal{0%{opacity:0;transform:translate(95px,-115px) rotate(14deg) scale(.72)}65%{opacity:1;transform:translate(-3px,3px) rotate(-2deg) scale(1.035)}100%{opacity:1;transform:none}}
@keyframes casino-card-reveal{0%{transform:perspective(500px) rotateY(0)}48%{transform:perspective(500px) rotateY(90deg) scale(.92)}52%{transform:perspective(500px) rotateY(-90deg) scale(.92)}100%{transform:perspective(500px) rotateY(0)}}
@keyframes casino-hand-split{0%{opacity:.25;transform:translateX(-36px) scale(.9)}100%{opacity:1;transform:none}}
@keyframes casino-result-pop{0%{opacity:0;transform:scale(.72)}62%{opacity:1;transform:scale(1.08)}100%{transform:scale(1)}}

.roulette-arena{display:grid;grid-template-columns:minmax(290px,360px) minmax(260px,1fr);align-items:center;gap:28px;padding:24px;border:1px solid var(--app-border);border-radius:22px;background:radial-gradient(circle at 20% 45%,rgba(121,83,255,.16),transparent 28rem),rgba(8,17,32,.52);overflow:hidden}
.roulette-stage{position:relative;width:320px;height:320px;margin:auto;filter:drop-shadow(0 24px 26px rgba(0,0,0,.42))}.roulette-stage::after{content:"";position:absolute;inset:42%;z-index:5;border-radius:50%;box-shadow:0 0 35px rgba(255,211,102,.18);pointer-events:none}.roulette-stage.has-result::after{animation:roulette-win-glow .85s ease-out}
.roulette-pointer{position:absolute;z-index:8;left:50%;top:-7px;transform:translateX(-50%);width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:28px solid #f7d77a;filter:drop-shadow(0 3px 4px rgba(0,0,0,.55))}
.roulette-wheel-disk{position:absolute;inset:12px;border-radius:50%;will-change:transform;background:radial-gradient(circle,#231c3c 0 16%,#c9a95e 16.5% 18%,#173044 18.5% 46%,transparent 46.5%),repeating-conic-gradient(from -4.865deg,#8e1831 0 4.865deg,#111722 4.865deg 9.73deg);border:10px solid #9b783d;box-shadow:inset 0 0 0 5px #e2c477,inset 0 0 26px rgba(0,0,0,.75),0 0 0 3px #342718}
.roulette-wheel-disk::before{content:"";position:absolute;inset:52px;border:2px solid rgba(255,224,145,.52);border-radius:50%}.roulette-hub{position:absolute;inset:39%;display:grid;place-items:center;border-radius:50%;z-index:3;color:#f8de94;font-size:1.55rem;background:radial-gradient(circle at 35% 30%,#fff0b8,#a8782c 48%,#473015 75%);border:2px solid #f2d98d;box-shadow:0 4px 12px rgba(0,0,0,.45)}
.roulette-pockets{position:absolute;inset:0;border-radius:50%}.roulette-pocket{--slice:9.72973deg;position:absolute;z-index:2;left:50%;top:50%;width:21px;height:29px;margin:-14.5px 0 0 -10.5px;display:grid;place-items:center;border-radius:5px;font-size:.61rem;font-weight:850;color:#fff;border:1px solid rgba(255,255,255,.2);box-shadow:0 2px 4px rgba(0,0,0,.45);transform:rotate(calc(var(--slot) * var(--slice))) translateY(-122px) rotate(calc(var(--slot) * var(--slice) * -1))}.roulette-pocket.red{background:#a41d38}.roulette-pocket.black{background:#121722}.roulette-pocket.green{background:#0a8a58}
.roulette-ball-track{position:absolute;z-index:7;inset:24px;border-radius:50%;pointer-events:none;will-change:transform}.roulette-orbit-ball{position:absolute;left:50%;top:-1px;width:13px;height:13px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#e6e9f1 42%,#8b93a6 78%);box-shadow:0 2px 6px rgba(0,0,0,.7)}.roulette-stage.is-spinning .roulette-orbit-ball{animation:roulette-ball-bounce .42s ease-in-out infinite alternate}
.roulette-result{min-height:116px;display:flex;align-items:center;gap:16px;padding:20px;border-radius:17px;background:rgba(11,21,39,.72);border:1px solid var(--app-border)}.roulette-result div{min-width:0;display:flex;flex-direction:column;gap:5px}.roulette-result small{color:var(--app-muted);overflow-wrap:anywhere}.roulette-number{flex:0 0 66px;width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:#20283a;border:5px solid #e4e8f1;color:#fff;font-size:1.35rem;font-weight:850;box-shadow:0 7px 18px rgba(0,0,0,.38)}.roulette-number.red{background:#b6203d}.roulette-number.black{background:#111722}.roulette-number.green{background:#078b59}.roulette-number.spinning{font-size:1.7rem;animation:roulette-result-wait .8s ease-in-out infinite alternate}
@keyframes roulette-ball-bounce{from{transform:translateX(-50%) translateY(0) scale(1)}to{transform:translateX(-50%) translateY(5px) scale(.86)}}
@keyframes roulette-result-wait{from{opacity:.48;transform:scale(.88)}to{opacity:1;transform:scale(1.04)}}
@keyframes roulette-win-glow{0%{box-shadow:0 0 0 rgba(255,211,102,0)}40%{box-shadow:0 0 58px rgba(255,211,102,.72)}100%{box-shadow:0 0 0 rgba(255,211,102,0)}}

/* v6.2.23 — AVIAMASTERS flight */
.aviamasters-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.aviamasters-form>div{width:180px}.aviamasters-form .btn{height:38px}
.aviamasters-stage{position:relative;isolation:isolate;overflow:hidden;min-height:430px;border:1px solid #2f7197;border-radius:24px;background:linear-gradient(180deg,#071832 0,#104a71 48%,#61bad0 76%,#0c6684 76%,#073f60 100%);box-shadow:inset 0 -30px 55px rgba(0,24,51,.4),0 18px 32px rgba(0,0,0,.22)}
.aviamasters-stars{position:absolute;z-index:-1;inset:0 0 24%;opacity:.5;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.5px),radial-gradient(circle,#8edcff 0 1px,transparent 1.5px);background-position:0 0,24px 18px;background-size:58px 53px,71px 67px}.aviamasters-stars::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 78% 16%,rgba(255,247,191,.35),transparent 23%),linear-gradient(115deg,transparent 42%,rgba(113,210,255,.12) 58%,transparent 72%)}
.aviamasters-hud{position:absolute;z-index:8;left:18px;right:18px;top:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.aviamasters-hud span{padding:9px 12px;border:1px solid rgba(132,216,255,.28);border-radius:12px;background:rgba(4,16,34,.7);color:#a8c8df;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.aviamasters-hud strong{display:block;color:#fff;font-size:1.05rem;font-variant-numeric:tabular-nums}
.aviamasters-plane{position:absolute;z-index:7;left:4%;bottom:66px;width:54px;height:54px;display:grid;place-items:center;color:#fff;font-size:2.9rem;line-height:1;filter:drop-shadow(0 8px 5px rgba(0,20,43,.5));will-change:transform;transform-origin:50% 50%}.aviamasters-stage.is-flying .aviamasters-plane{animation:aviamasters-engine .18s ease-in-out infinite alternate}.aviamasters-plane::after{content:"";position:absolute;right:43px;width:28px;height:4px;border-radius:50%;background:linear-gradient(90deg,transparent,#75ddff);filter:blur(1px);opacity:0}.aviamasters-stage.is-flying .aviamasters-plane::after{opacity:.9}
.aviamasters-route{position:absolute;z-index:5;inset:0}.aviamasters-event{position:absolute;display:grid;place-items:center;width:54px;height:54px;margin:-27px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:radial-gradient(circle,#fff5ae,#f4a72c 64%,#934b13);color:#2f1a07;box-shadow:0 5px 15px rgba(0,0,0,.28);transform:scale(.85);transition:.25s ease}.aviamasters-event b{font-size:1.25rem;line-height:1}.aviamasters-event em{font-size:.69rem;font-weight:900;font-style:normal}.aviamasters-event.rocket{background:radial-gradient(circle,#ffd1b8,#e54128 62%,#6d0f17);color:#fff}.aviamasters-event.hit{transform:scale(1.22);box-shadow:0 0 0 8px rgba(255,237,125,.18),0 0 28px rgba(255,230,104,.65);animation:aviamasters-pickup .52s ease-out}
.aviamasters-carrier{position:absolute;z-index:4;right:2.5%;bottom:45px;width:150px;height:32px;padding:4px 13px;border-radius:55% 10px 8px 16px;background:linear-gradient(#9ba8b3,#4c5c6c);color:#e9f4fa;box-shadow:0 9px 0 #20394c,0 13px 15px rgba(0,0,0,.38);transform:skewX(-9deg)}.aviamasters-carrier span{font-size:.72rem;letter-spacing:.25em}.aviamasters-carrier small{position:absolute;right:12px;top:-18px;color:#f9dc70;font-weight:900;transform:skewX(9deg)}
.aviamasters-water{position:absolute;z-index:3;left:0;right:0;bottom:0;height:68px;background:repeating-radial-gradient(ellipse at 50% 0,#1b91af 0 10px,#0a607f 11px 22px);opacity:.9}.aviamasters-stage.is-crashed .aviamasters-water::after{content:"💦";position:absolute;right:13%;top:-28px;font-size:3rem;animation:aviamasters-splash .72s ease-out}
.aviamasters-result{position:absolute;z-index:9;left:50%;bottom:82px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;min-width:min(520px,82%);padding:11px 18px;border:1px solid rgba(150,221,255,.28);border-radius:13px;background:rgba(3,17,34,.78);text-align:center;backdrop-filter:blur(5px)}.aviamasters-result strong{color:#fff4a8}.aviamasters-result span{color:#b2c9da;font-size:.76rem}.aviamasters-stage.is-landed .aviamasters-result{box-shadow:0 0 38px rgba(111,255,178,.32);border-color:rgba(111,255,178,.5)}.aviamasters-stage.is-crashed .aviamasters-result strong{color:#ffb4a3}
@keyframes aviamasters-engine{from{margin-bottom:-1px}to{margin-bottom:1px}}
@keyframes aviamasters-pickup{0%{opacity:.5;transform:scale(.72)}60%{opacity:1;transform:scale(1.35)}100%{transform:scale(1.22)}}
@keyframes aviamasters-splash{0%{opacity:0;transform:translateY(30px) scale(.5)}55%{opacity:1;transform:translateY(-10px) scale(1.2)}100%{opacity:0;transform:translateY(-22px)}}

/* v6.2.22 — Pirate slots */
.pirate-slots-shell{position:relative;isolation:isolate;overflow:hidden;padding:26px 24px 24px;border:1px solid #886a32;border-radius:24px;background:linear-gradient(#07182e 0 56%,#07364d 56% 72%,#082f45 72%);box-shadow:inset 0 0 55px rgba(0,0,0,.58),0 18px 36px rgba(0,0,0,.24)}
.pirate-slots-sky{position:absolute;z-index:-1;inset:0 0 36%;overflow:hidden;background:radial-gradient(circle at 80% 18%,rgba(255,229,151,.15),transparent 18%),linear-gradient(180deg,#071126,#123354)}.pirate-slots-sky::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.5px);background-size:47px 43px;opacity:.26}
.pirate-moon{position:absolute;right:8%;top:12%;width:70px;height:70px;border-radius:50%;background:#ffe7a2;box-shadow:0 0 38px rgba(255,230,158,.38)}.pirate-cloud{position:absolute;width:150px;height:20px;border-radius:50%;background:rgba(190,213,227,.12);filter:blur(4px)}.cloud-a{left:8%;top:24%}.cloud-b{right:25%;top:45%;transform:scale(.7)}
.pirate-slots-title{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;gap:13px;margin-bottom:16px;color:#ffd66e;text-align:center;letter-spacing:.12em;text-shadow:0 3px 0 #5c3212,0 0 18px rgba(255,200,79,.35)}.pirate-slots-title strong{font-family:Georgia,serif;font-size:clamp(1.05rem,2.7vw,1.65rem)}.pirate-slots-title span{font-size:1.45rem}
.pirate-slot-reels{position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,minmax(72px,1fr));gap:7px;max-width:760px;margin:auto;padding:12px;border:7px solid #a87931;border-radius:18px;background:linear-gradient(145deg,#d3a84e,#6f431b 56%,#d6b15f);box-shadow:inset 0 0 0 3px #3c2513,0 13px 30px rgba(0,0,0,.46)}
.pirate-slot-reel{height:276px;overflow:hidden;border:2px solid #3a2a21;border-radius:10px;background:#f1dfb5;box-shadow:inset 0 0 18px rgba(59,37,17,.42)}.pirate-slot-strip{will-change:transform}.pirate-slot-cell{height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-bottom:1px solid rgba(71,43,18,.26);background:radial-gradient(circle,#fff8dc 0,#ead6a6 78%);color:#39220e;text-align:center}.pirate-slot-cell b{font-size:2.15rem;line-height:1;filter:drop-shadow(0 3px 2px rgba(69,37,9,.2))}.pirate-slot-cell small{font-size:.62rem;font-weight:900;letter-spacing:.03em;text-transform:uppercase}.pirate-slot-cell[data-symbol="wild"]{background:radial-gradient(circle,#ffe386,#b94528);color:#fff7d8}.pirate-slot-cell[data-symbol="scatter"]{background:radial-gradient(circle,#fff1a2,#2f8a7d);color:#fff}
.pirate-slot-cell.winning{position:relative;z-index:2;animation:pirate-slot-win .72s ease-in-out infinite alternate;box-shadow:inset 0 0 0 4px #ffe066,inset 0 0 24px #fff0a6}.pirate-slots-shell.is-spinning .pirate-slot-reel{box-shadow:inset 0 18px 24px rgba(31,18,7,.4),inset 0 -18px 24px rgba(31,18,7,.4)}.pirate-slots-shell.is-spinning .pirate-slot-cell{filter:blur(1.3px)}
.pirate-ocean{position:relative;z-index:1;height:52px;max-width:820px;margin:-5px auto 0;overflow:hidden;background:repeating-radial-gradient(ellipse at 50% 100%,#14718a 0 9px,#0b4d69 10px 19px);clip-path:polygon(0 28%,7% 10%,14% 32%,22% 9%,30% 30%,39% 8%,48% 31%,58% 7%,68% 31%,78% 8%,88% 30%,100% 11%,100% 100%,0 100%)}.pirate-ship{position:absolute;right:8%;bottom:3px;font-size:2.55rem;filter:drop-shadow(0 5px 3px rgba(0,0,0,.5));animation:pirate-ship-rock 2.6s ease-in-out infinite alternate}
.pirate-slot-result{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:78px;max-width:760px;margin:12px auto 0;padding:12px 18px;border:1px solid rgba(255,213,111,.34);border-radius:14px;background:rgba(5,17,31,.82);text-align:center}.pirate-slot-result strong{color:#ffe08a;font-size:1.1rem}.pirate-slot-result span{color:#adbed2;font-size:.78rem}.pirate-slots-shell.is-winning{animation:pirate-machine-win .7s ease-out}.pirate-slots-shell.is-losing .pirate-slot-result strong{color:#c6d0df}
.pirate-paytable summary{cursor:pointer;color:#d7e0f2}.pirate-paytable-grid{display:flex;flex-wrap:wrap;gap:7px}.pirate-paytable-grid span{padding:6px 9px;border:1px solid var(--app-border);border-radius:9px;background:rgba(17,28,49,.72);font-size:.75rem;color:#c9d5ea}
@keyframes pirate-slot-win{from{transform:scale(.96);filter:brightness(1)}to{transform:scale(1.04);filter:brightness(1.28)}}
@keyframes pirate-machine-win{0%{box-shadow:inset 0 0 55px rgba(0,0,0,.58),0 0 0 rgba(255,211,86,0)}45%{box-shadow:inset 0 0 35px rgba(255,198,49,.14),0 0 48px rgba(255,211,86,.45)}100%{box-shadow:inset 0 0 55px rgba(0,0,0,.58),0 18px 36px rgba(0,0,0,.24)}}
@keyframes pirate-ship-rock{from{transform:translateY(1px) rotate(-3deg)}to{transform:translateY(-3px) rotate(4deg)}}
.poker-table{height:510px;max-width:900px;margin:auto;position:relative}.poker-felt{position:absolute;inset:95px 150px;border:10px solid #3a2944;border-radius:48%;background:radial-gradient(circle,#176d62,#0d493f);box-shadow:inset 0 0 30px rgba(0,0,0,.45),0 12px 28px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;justify-content:center}.poker-felt .playing-card{width:42px;height:59px}.poker-seat{position:absolute;width:170px;min-height:92px;padding:10px;border-radius:14px;background:#15223d;border:1px solid #334367;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 8px 18px rgba(0,0,0,.3)}.poker-seat strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.poker-seat span,.poker-seat small{font-size:.72rem;color:var(--muted)}.poker-seat em{font-size:.68rem;color:#ffd777;font-style:normal}.poker-seat.acting{border-color:#ffd75d;box-shadow:0 0 0 3px rgba(255,215,93,.18),0 8px 18px rgba(0,0,0,.3)}.poker-seat.folded,.poker-seat.leaving{opacity:.55}.poker-seat.empty{border-style:dashed;color:var(--muted);justify-content:center}.poker-seat .mini-cards{min-height:35px;margin:5px}.poker-seat .playing-card{width:26px;height:36px;border-radius:4px}.poker-seat .playing-card b{font-size:.7rem}.poker-seat .playing-card i{font-size:.75rem}.seat-1{left:50%;top:0;transform:translateX(-50%)}.seat-2{right:0;top:95px}.seat-3{right:0;bottom:60px}.seat-4{left:50%;bottom:0;transform:translateX(-50%)}.seat-5{left:0;bottom:60px}.seat-6{left:0;top:95px}
.poker-controls,.poker-actions{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.poker-controls form .form-control,.poker-controls form .form-select{width:145px}.poker-actions .form-control{width:145px}.poker-log{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.poker-log span{font-size:.72rem;padding:4px 7px;border-radius:7px;background:rgba(62,77,111,.4);color:var(--muted)}
.casino-statistics-panel .table{min-width:780px}.casino-statistics-panel th small{color:var(--app-muted);font-weight:500}.casino-rank{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:6px;border:1px solid var(--app-border);border-radius:50%;background:rgba(88,107,154,.18);color:var(--app-muted);font-size:.7rem}.casino-net{display:inline-block;min-width:92px;padding:5px 9px;border-radius:9px;text-align:center;font-variant-numeric:tabular-nums}.casino-net-win{background:rgba(38,185,123,.14);color:#70e1ac}.casino-net-loss{background:rgba(235,83,111,.14);color:#ff899f}.casino-net-even{background:rgba(129,145,181,.14);color:var(--app-muted)}
@media(max-width:900px){.casino-stats{grid-template-columns:repeat(2,1fr)}.roulette-arena{grid-template-columns:1fr}.poker-table{height:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.poker-felt,.poker-seat{position:relative;inset:auto;transform:none;left:auto;right:auto;top:auto;bottom:auto;width:auto}.poker-felt{grid-column:1/-1;grid-row:1;height:230px;border-radius:80px}.poker-seat{min-height:110px}}
@media(max-width:520px){.casino-stats{grid-template-columns:1fr 1fr}.casino-stats article{padding:12px}.casino-stats strong{font-size:1rem}.casino-start-form{flex-direction:column}.casino-start-form .form-control{max-width:none}.playing-card{width:40px;height:57px}.roulette-arena{padding:16px 8px}.roulette-stage{width:280px;height:280px;transform:scale(.94)}.roulette-pocket{transform:rotate(calc(var(--slot) * var(--slice))) translateY(-105px) rotate(calc(var(--slot) * var(--slice) * -1));font-size:.55rem;width:19px;height:26px;margin:-13px 0 0 -9.5px}.roulette-result{margin:0 8px;padding:14px}.aviamasters-form{display:grid;grid-template-columns:1fr 1fr}.aviamasters-form>div{width:auto}.aviamasters-form .btn{grid-column:1/-1}.aviamasters-stage{min-height:390px}.aviamasters-hud{left:8px;right:8px;top:8px;gap:3px}.aviamasters-hud span{padding:7px 5px;font-size:.55rem}.aviamasters-hud strong{font-size:.8rem}.aviamasters-plane{font-size:2.2rem;width:42px;height:42px}.aviamasters-event{width:42px;height:42px;margin:-21px}.aviamasters-event b{font-size:1rem}.aviamasters-event em{font-size:.57rem}.aviamasters-carrier{width:105px}.aviamasters-result{bottom:76px;padding:9px;min-width:90%}.pirate-slots-shell{padding:18px 7px}.pirate-slot-reels{gap:3px;padding:6px;border-width:5px}.pirate-slot-reel{height:210px}.pirate-slot-cell{height:70px}.pirate-slot-cell b{font-size:1.55rem}.pirate-slot-cell small{font-size:.46rem}.pirate-moon{width:48px;height:48px}.poker-table{grid-template-columns:1fr 1fr}.poker-felt{height:190px}.poker-seat{font-size:.78rem}.blackjack-player{flex-direction:column;margin-top:28px}.casino-table{padding:14px}}
@media(prefers-reduced-motion:reduce){.card-deal-in,.card-reveal,.hand-split-in,.result-pop,.roulette-stage.has-result::after,.roulette-stage.is-spinning .roulette-orbit-ball,.roulette-number.spinning,.aviamasters-stage.is-flying .aviamasters-plane,.aviamasters-event.hit,.aviamasters-stage.is-crashed .aviamasters-water::after,.pirate-slot-cell.winning,.pirate-slots-shell.is-winning,.pirate-ship{animation:none!important}.roulette-wheel-disk,.roulette-ball-track,.pirate-slot-strip,.aviamasters-event{transition:none!important}}

/* Compact queue rows with native keyboard-accessible disclosure. */
.queue-grid-collapsible { align-items: flex-start; }
.queue-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}
.queue-summary::-webkit-details-marker { display: none; }
.queue-summary > div:first-child { flex: 1; min-width: 0; }
.queue-summary .queue-item-title { display: block; }
.queue-summary .item-ref-name { overflow-wrap: anywhere; }
.queue-summary:focus-visible { outline: 2px solid #8d86ff; outline-offset: 6px; border-radius: 6px; }
.queue-toggle-icon { flex-shrink: 0; }
.queue-details[open] .queue-toggle-icon { transform: rotate(90deg); }
.queue-details-body { margin-top: 20px; border-top: 1px solid var(--border, #29344b); padding-top: 20px; }
@media (max-width: 575.98px) {
    .queue-summary { flex-wrap: wrap; gap: 10px; }
    .queue-summary > div:first-child { flex-basis: calc(100% - 32px); }
    .queue-summary > div:nth-child(2) { order: 3; width: 100%; }
}
