.no-user-select,.no-user-select *{-webkit-user-select:none!important;user-select:none!important;}
:root {
    --bs-body-color: #eef3fa;
    --bs-secondary-color: #c7d1dc;
    --bs-body-color-rgb: 238,243,250;
    --bs-secondary-color-rgb: 199,209,220;
    --bg: #091321;
    --bg-soft: #102033;
    --card: rgba(19, 33, 52, .95);
    --card-2: rgba(17, 31, 49, .96);
    --line: rgba(255,255,255,.08);
    --text: #eef3fa;
    --muted: #c7d1dc;
    --muted-soft: #d8e0e8;
    --gold: #d9aa59;
    --gold-2: #f0ca86;
    --success: #31c178;
    --danger: #ff7373;
    --info: #67b7ff;
    --surface: #2f3c4b;
    --surface-2: #3a4a5d;

    /* Whiteout Survival Wiki inspired theme */
    --wos-blue: #0d2c56;
    --wos-blue-2: #143a70;
    --wos-blue-3: #0a2344;
    --wos-ice: #d7e6ff;
}

/* ------------------------------------------------------------
   Login / Signup (v1.3) – tweaks
------------------------------------------------------------ */

/* Make all labels clickable (especially switch side labels) */
label:hover { cursor: pointer !important; }

/* WOS ID helper */
.player-id-tip-wrap{
  position: relative;
  pointer-events: auto;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.player-id-tip-image{
  position: absolute;
  top: calc(100% + 12px);
  left: -40px;
  transform: translateX(-50%);
  width: 220px;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 1080;
}
.player-id-tip-wrap:hover .player-id-tip-image,
.player-id-tip-wrap:focus-within .player-id-tip-image{
  opacity: 1;
  visibility: visible;
}
@media (max-width: 575.98px){
  .player-id-tip-image{
    width: min(220px, 78vw);
    max-width: min(220px, 78vw);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: rgba(255,255,255,.1);
    /* Whiteout Survival Wiki-like fixed background */
    background: transparent;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Lovable refresh (more modern, keep WOS wiki spirit)                         */
/* -------------------------------------------------------------------------- */

:root{
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 46px rgba(0,0,0,.20);
    --shadow-soft-2: 0 10px 28px rgba(0,0,0,.18);
}

/* Center content like the wiki (without breaking navbar) */
.app-shell > .container-fluid,
.app-shell main.container-fluid{
    max-width: none;
    width: 100%;
}

/* Typography */
h1, .h1{ font-size: clamp(1.4rem, 1.2rem + 1vw, 2.1rem); }
h2, .h2{ font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); }
.h3{ font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }

/* Cards/panels: slightly lighter + consistent */
.hero-panel, .metric-card, .app-card, .sub-card, .chart-card, .ranking-card, .accordion-item, .login-panel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.metric-card{ box-shadow: var(--shadow-soft-2); }

/* Buttons */
.btn{ font-weight: 650; letter-spacing: .01em; }
.btn, .form-control, .form-select, .input-group-text{ border-radius: var(--radius-md); }

/* Inputs: consistent sizing */
.form-control, .form-select{ min-height: 42px; }
.form-select{ padding-top: .35rem; padding-bottom: .35rem; }

/* Tables: cleaner header */
.app-table thead th{
    color: rgba(255,255,255,.92);
    font-weight: 700;
    letter-spacing: .01em;
    border-bottom-color: rgba(255,255,255,.14) !important;
}
.app-table tbody td{ border-top-color: rgba(255,255,255,.06) !important; }

/* Navbar: improve mobile layout (language left, links left) */
@media (max-width: 991.98px){
    .navbar .navbar-collapse{ padding-top: .75rem; }
    .navbar-nav{ align-items: stretch !important; gap: .15rem !important; }
    .navbar-nav .nav-link{ text-align: left; padding-left: .75rem; padding-right: .75rem; }
    .lang-dropdown{ margin-top: .35rem; }
    .lang-dropdown .lang-dropdown-toggle{ width: 100%; text-align: left; }
}

/* Dropdown menus: more modern */
.app-dropdown, .app-lang-menu{
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

/* Reduce visual noise on borders */
.accordion-button{ border-radius: var(--radius-lg); }
.accordion-item{ overflow: clip; }

/* Smoother hover */
.metric-card, .app-card, .sub-card, .ranking-card{
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.metric-card:hover, .app-card:hover, .sub-card:hover, .ranking-card:hover{
    box-shadow: 0 22px 54px rgba(0,0,0,.26);
    border-color: rgba(255,255,255,.16);
    /* Ensure no hover lift anywhere (requested). */
    transform: none !important;
}

/* Fixed background image + overlay (wiki-like) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("../img/bg-wos.jpg") center top / cover no-repeat fixed;
    filter: saturate(1.02) contrast(1.02);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 0%, rgba(20,58,112,.35), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(13,44,86,.35), transparent 45%),
        linear-gradient(180deg, rgba(7, 15, 28, .78) 0%, rgba(7, 15, 28, .88) 100%);
}
a { color: #fff; text-decoration: none; }
a:hover { color: var(--gold-2); }
.text-secondary, .text-muted, .small.text-secondary { color: var(--muted) !important; }
.app-shell { min-height: 0; flex: 1 0 auto; display:flex; flex-direction:column; }
.app-navbar {
    background: linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.94) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 1040;
}

/* Wiki-like nav dropdown */
.nav-color-blue {
    background: linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.98) 100%);
    
    border-radius: 14px;
}
.dropdown-menu.nav-color-blue {
    padding: .45rem;
    min-width: 14rem;
}
.dropdown-menu.nav-color-blue .dropdown-item {
    border-radius: 10px;
    padding: .55rem .7rem;
    font-weight: 600;
}
.dropdown-menu.nav-color-blue .dropdown-item:hover,
.dropdown-menu.nav-color-blue .dropdown-item:focus {
    background: rgba(255,255,255,.08);
}

/* Glassy translucent blocks like the wiki */
.hero-panel, .metric-card, .app-card, .sub-card, .chart-card, .ranking-card, .accordion-item, .login-panel {
    background: linear-gradient(180deg, rgba(22, 37, 58, .72) 0%, rgba(13, 24, 39, .78) 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 46px rgba(0,0,0,.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Slightly rounder controls like the wiki */
.btn, .form-control, .form-select, .input-group-text {
    border-radius: 14px;
}
.navbar-dark .navbar-nav .nav-link { color: var(--muted-soft); }
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #28476f 0%, #18293f 100%);
    color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.hero-panel, .metric-card, .app-card, .sub-card, .chart-card, .ranking-card, .accordion-item, .login-panel {
    /* keep consistent glass look */
    background: linear-gradient(180deg, rgba(22, 37, 58, .72) 0%, rgba(13, 24, 39, .78) 100%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

/* Make tables feel embedded (wiki-like) */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,.03);
    --bs-table-hover-bg: rgba(255,255,255,.05);
}
.hero-panel {
    padding: 1.35rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.eyebrow {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: rgba(217,170,89,.12);
    color: var(--gold-2);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .85rem;
}
.metric-card { padding: 1rem; min-height: 118px; }
.metric-card span { display:block; font-size:.86rem; color:var(--muted); margin-bottom:.4rem; }
.metric-card strong { font-size:1.55rem; line-height:1.05; display:block; }
.metric-card small { color:var(--muted); display:block; margin-top:.4rem; }
.metric-date { font-size: .95rem !important; }
.btn-gold {
    background: linear-gradient(135deg, #efcb85 0%, #b58134 100%);
    color: #151515;
    border: 0;
    font-weight: 700;
}
.btn-gold:hover { color:#111; filter:brightness(.98); }
.btn-outline-light { border-color: rgba(255,255,255,.22); color: #eef3fa; }
.btn-outline-light:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-card, .sub-card, .chart-card { padding: 1rem; }
.app-card-header {
    display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.app-accordion .accordion-item { overflow:hidden; margin-bottom:1rem; }
.app-accordion .accordion-button {
    background: transparent; color:#fff; font-weight:700; box-shadow:none;
    padding: 1rem 1.1rem 0;
}
.app-accordion .accordion-button:not(.collapsed) { background: rgba(255,255,255,.02); color: var(--gold-2); }
.app-accordion .accordion-button:focus { box-shadow: none; }
.app-accordion .accordion-button::after { filter: invert(1) brightness(180%); }
.app-accordion .accordion-html, body { height: 100%; }
body {
    --bs-body-color: var(--text);
    --bs-secondary-color: var(--muted);
    --bs-border-color: rgba(255,255,255,.1); }
.table-responsive { border-radius: 16px; overflow: hidden; }
.app-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-hover-bg: rgba(255,255,255,.035);
    --bs-table-border-color: rgba(255,255,255,.08);
    margin-bottom: 0;
}
.app-table th, .app-table td { vertical-align: middle; white-space: nowrap; }
.app-table th { color: #fff !important; font-weight: 700; }
.app-table td strong, .app-table td a, .ranking-name, .ranking-card-header h3 { color: #fff !important; }
.badge.bg-gold { background: rgba(217,170,89,.18); color: var(--gold-2); }
.ranking-card { padding: 1rem; }
.ranking-card-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.85rem; padding-bottom:.85rem; border-bottom:1px solid var(--line); }
.ranking-list { display:flex; flex-direction:column; gap:.15rem; }
.ranking-row {
    display:grid; grid-template-columns: 34px 1fr auto; gap:.75rem; align-items:center;
    padding: .58rem 0; border-bottom:1px solid rgba(255,255,255,.055);
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-position {
    width: 28px; height: 28px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
    background: rgba(217,170,89,.14); color: var(--gold-2); font-size:.82rem; font-weight:700;
}
.ranking-value { color: #fff; font-variant-numeric: tabular-nums; }
.load-more-wrap { margin-top: 1rem; }
.form-control, .form-select, .form-control:focus, .form-select:focus {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.14);
}
.form-control:disabled,
.form-control[disabled],
.form-select:disabled,
.form-select[disabled] {
    opacity: 1;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.86);
}
.form-select option, .dataTables_wrapper select option {
    color: #fff;
    background: var(--surface);
}
.form-control::placeholder { color: rgba(255,255,255,.62); }
.form-control:focus, .form-select:focus {
    border-color: rgba(217,170,89,.68);
    box-shadow: 0 0 0 .25rem rgba(217,170,89,.14);
}


/* Disabled alliance select state for join-by-request flows */
#requestAlliance:disabled,
#joinAllianceSelect:disabled,
#requestAlliance[disabled],
#joinAllianceSelect[disabled] {
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.42);
    cursor: not-allowed;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
#requestAlliance:disabled option,
#joinAllianceSelect:disabled option,
#requestAlliance[disabled] option,
#joinAllianceSelect[disabled] option {
    color: rgba(255,255,255,.42);
}
#requestAlliance:disabled,
#joinAllianceSelect:disabled {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.18) 50%), linear-gradient(135deg, rgba(255,255,255,.18) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.form-label { color:#fff; font-weight:600; }
.form-check-input { background-color: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.app-alert {
    background: rgba(17,31,49,.96); color:#fff; border:1px solid var(--line);
}
.app-alert-simple {
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(255,255,255,.08);
    color:#fff;
    border:1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding:.42rem .75rem;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate { color: var(--muted) !important; margin-top: .75rem; }
.dataTables_wrapper .page-link {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
    color: #eef3fa;
}
.dataTables_wrapper .page-item.active .page-link {
    background: var(--surface-2);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
.app-dropdown {
    background: var(--surface);
    border: 1px solid var(--line);
}

/* SweetAlert2 theme */
.swal2-popup {
    background: var(--surface) !important;
    color: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
}
.swal2-title,
.swal2-html-container {
    color: #fff !important;
}
.swal2-icon {
    border-color: rgba(255,255,255,.22) !important;
}
.swal2-actions .swal2-confirm {
    background: rgba(217,170,89,.22) !important;
    color: var(--gold-2) !important;
    border: 1px solid rgba(217,170,89,.38) !important;
}
.swal2-actions .swal2-cancel {
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
.swal2-styled:focus { box-shadow: 0 0 0 .25rem rgba(217,170,89,.14) !important; }

.swal2-container.swal2-bottom-end {
    padding: 1rem !important;
}
.swal2-app-toast {
    width: min(420px, calc(100vw - 2rem)) !important;
    margin: 0 !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.34) !important;
}
.swal2-app-toast .swal2-html-container {
    margin: .35rem 0 0 !important;
}
.app-dropdown .dropdown-item,
.app-dropdown .dropdown-item-text { color:#fff; }
.app-dropdown .dropdown-item:hover { background: rgba(255,255,255,.05); color: var(--gold-2); }
.delta-up { color: var(--success); font-weight: 700; }
.delta-down { color: var(--danger); font-weight: 700; }
.delta-flat { color: var(--muted); font-weight: 700; }
.kpi-inline { display:flex; flex-wrap:wrap; gap:.75rem; }
.kpi-pill {
    padding: .5rem .75rem; border-radius: 999px; background: rgba(255,255,255,.045); border:1px solid var(--line);
}
.chart-wrap { position: relative; min-height: 320px; }
.login-screen { min-height:100vh; display:grid; align-content:center; justify-items:center; gap:20px; padding:1rem; }
.login-panel { width:min(100%, 460px); padding:1.5rem; }
.card-stat-grid {
    display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.9rem;
}
.stat-chip {
    padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.035); border:1px solid var(--line);
}
.stat-chip span { display:block; font-size:.82rem; color:var(--muted); margin-bottom:.3rem; }
.stat-chip strong { font-size:1.15rem; }
.timeline-mini { display:flex; flex-direction:column; gap:.7rem; }
.timeline-row {
    display:grid; grid-template-columns: 120px 1fr; gap:.75rem; align-items:start;
    padding-bottom:.7rem; border-bottom:1px solid rgba(255,255,255,.05);
}
.timeline-row:last-child { border-bottom:0; padding-bottom:0; }
.action-stack { display:flex; gap:.5rem; flex-wrap:wrap; }
@media (max-width: 991.98px) {
    .hero-panel { flex-direction: column; align-items: stretch; }
    /* Player view hero: keep desktop intact, improve tablet/mobile only */
    .hero-panel-player-view .hero-actions { width: 100%; }
}
@media (max-width: 767.98px) {
    .hero-panel, .metric-card, .app-card, .sub-card, .chart-card, .ranking-card, .login-panel { padding: .95rem; border-radius: 18px; }
    .metric-card strong { font-size: 1.22rem; }
    .timeline-row { grid-template-columns: 1fr; }
    .card-stat-grid { grid-template-columns: 1fr; }

    /* Player view hero (mobile): keep avatar left + name/furnace right, full width */
    .hero-panel-player-view .hero-player {
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: .85rem;
    }
    .hero-panel-player-view .hero-player-avatar { width: 62px; height: 62px; }
    .hero-panel-player-view .hero-player > div { width: 100%; min-width: 0; }
    .hero-panel-player-view .hero-player h1 {
        margin-bottom: .25rem;
        font-size: 1.25rem;
        line-height: 1.2;
        word-break: break-word;
    }
    .hero-panel-player-view .hero-player-furnace { display:flex; justify-content:flex-start; }

    .hero-panel-player-view .kpi-inline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }
    .hero-panel-player-view .kpi-pill { width: 100%; text-align: center; padding: .55rem .7rem; }
    .hero-panel-player-view .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-panel-player-view .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


.form-select {
    background-color: rgba(255,255,255,.08) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.14) !important;
    background-image: linear-gradient(45deg, transparent 50%, #eef3fa 50%), linear-gradient(135deg, #eef3fa 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1.15em), calc(100% - 15px) calc(1.15em);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.form-select option { color: #eef3fa !important; background: #203247 !important; }
.dataTables_wrapper .dataTables_paginate .pagination,
.dataTables_wrapper .dt-paging { gap: .35rem; display:flex; flex-wrap:wrap; justify-content:flex-end; }
.dataTables_wrapper .dt-paging-button,
.dataTables_wrapper .paginate_button,
.dataTables_wrapper .page-link {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: #eef3fa !important;
    border-radius: 12px !important;
    padding: .45rem .75rem !important;
    min-width: 42px;
    text-align: center;
    box-shadow: none !important;
}
.dataTables_wrapper .dt-paging-button.current,
.dataTables_wrapper .paginate_button.current,
.dataTables_wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, #efcb85 0%, #b58134 100%) !important;
    color: #111 !important;
    border-color: rgba(239,203,133,.7) !important;
    font-weight: 700;
}
.dataTables_wrapper .dt-paging-button:hover,
.dataTables_wrapper .paginate_button:hover,
.dataTables_wrapper .page-link:hover {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}

html, body, .container-fluid, .accordion-body, .dropdown-menu, .dropdown-item, .dropdown-item-text,
.app-card, .sub-card, .chart-card, .metric-card, .hero-panel, .ranking-card, p, li, td, th, label, small {
    color: var(--text);
}
.btn-close { filter: invert(1) grayscale(1) brightness(200%); }
.chart-wrap-lg { min-height: 420px; }
.ranking-position { background: transparent; width: 34px; height: 34px; }
.ranking-cup, .ranking-digit {
    width: 32px; height: 32px; border-radius: 999px; display:inline-flex; align-items:center; justify-content:center;
    border: 1px solid rgba(255,255,255,.08); font-weight: 800;
}
.ranking-cup { font-size: 1rem; }
.ranking-cup-gold { background: rgba(217,170,89,.18); color: #f2cf8f; }
.ranking-cup-silver { background: rgba(190,198,209,.18); color: #dce4ee; }
.ranking-cup-bronze { background: rgba(180,122,78,.18); color: #dca071; }
.ranking-digit { background: rgba(255,255,255,.04); color: #eef3fa; font-size: .82rem; }
.podium-grid {
    display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.podium-card {
    padding: 1rem; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24,40,62,.98), rgba(13,24,39,.98));
    text-align: center;
}
.podium-card .podium-icon { margin-bottom: .6rem; }
.podium-card .podium-title { font-weight: 800; color: #fff; margin-bottom: .15rem; }
.podium-card .podium-meta { color: var(--muted); font-size: .82rem; margin-bottom: 0; }
.podium-card .podium-value { font-size: 1.35rem; font-weight: 800; color: #fff; }
.podium-rank-2, .podium-rank-3 { opacity: .97; }
.compare-meta { display:flex; gap:.75rem; flex-wrap:wrap; }
.dataTables_wrapper .dt-paging nav, .dataTables_wrapper .pagination { gap: .5rem; }
.dataTables_wrapper .page-item .page-link,
.dataTables_wrapper .dt-paging-button,
.dataTables_wrapper .paginate_button {
    display:inline-flex !important; align-items:center; justify-content:center;
    min-width: 42px; height: 42px; border-radius: 14px !important;
    background: rgba(255,255,255,.05) !important; color: #eef3fa !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}
.dataTables_wrapper .page-item.active .page-link,
.dataTables_wrapper .dt-paging-button.current,
.dataTables_wrapper .paginate_button.current {
    background: linear-gradient(135deg, #efcb85 0%, #b58134 100%) !important;
    color: #111 !important;
    border-color: rgba(239,203,133,.7) !important;
}
.dataTables_wrapper .page-item.disabled .page-link { opacity: .45; }
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dt-info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { color: var(--muted) !important; }
@media (max-width: 991.98px) {
    .podium-grid { grid-template-columns: 1fr; }
    .podium-rank-1 { transform: none; }
}


.app-lang-select{min-width:86px;background:rgba(255,255,255,.08)!important;color:#eef3fa!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px!important;padding:.45rem 2rem .45rem .9rem!important;}
.lang-switcher-form{margin:0;}
.upload-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:220px;padding:0 1rem;border-radius:22px;border:1px dashed rgba(239,203,133,.45);cursor:pointer;text-align:center;transition:.2s ease;}
.upload-dropzone.is-dragover{border-color:rgba(239,203,133,.8);background:linear-gradient(180deg,rgba(239,203,133,.09),rgba(255,255,255,.03));}
.upload-dropzone-icon{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;background:rgba(239,203,133,.12);border:1px solid rgba(239,203,133,.28);font-size:1.8rem;color:#efcb85;}
.upload-dropzone-title{font-weight:700;font-size:1rem;color:#fff;}
.upload-dropzone-subtitle{font-size:.88rem;color:#c9d3de;}
.upload-dropzone-action{padding:.55rem .9rem;border-radius:999px;background:linear-gradient(135deg,#efcb85 0%,#b58134 100%);color:#111;font-weight:700;margin-top:.15rem;}
.upload-dropzone-file{margin-top:.25rem;font-size:.9rem;color:#efcb85;font-weight:600;}
.dataTables_wrapper .dataTables_paginate{display:flex;justify-content:flex-end;align-items:center;}
.dataTables_wrapper .dataTables_paginate .pagination{padding:.35rem;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);}
.dataTables_wrapper .dataTables_paginate .page-item{margin:0 .15rem;}
.dataTables_wrapper .dataTables_paginate .page-link{height:42px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px!important;font-weight:700;background:transparent!important;border:1px solid transparent!important;color:#dfe7f1!important;}
.dataTables_wrapper .dataTables_paginate .page-link:hover{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important;color:#fff!important;}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link{background:linear-gradient(135deg,#efcb85 0%,#b58134 100%)!important;color:#111!important;border-color:rgba(239,203,133,.8)!important;box-shadow:0 8px 18px rgba(181,129,52,.22);}
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link{background:transparent!important;border-color:transparent!important;color:rgba(223,231,241,.35)!important;}



.player-link{display:flex;align-items:center;gap:.65rem;min-width:0;color:inherit;text-decoration:none;}
.player-link:hover{opacity:.92;text-decoration:none;}
.player-identity {
    display:flex;
    align-items:center;
    gap:.8rem;
    min-width: 0;
}
.player-avatar, .podium-avatar, .hero-player-avatar, .player-preview img {
    display:block;
    object-fit:cover;
    background: rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}
.player-avatar {
    width:42px;
    height:42px;
    border-radius:14px;
    flex:0 0 42px;
}
.player-identity-text { min-width:0; display:flex; flex-direction:column; }
.player-identity-text strong { color:#fff; font-size:.95rem; line-height:1.1; }
.player-identity-text small { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.furnace-badge {
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    margin-left:auto;
    padding:.36rem .58rem;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-size:.82rem;
    line-height:1;
}
.furnace-badge img { width:24px; height:24px; object-fit:contain; }
.furnace-badge-text { background:rgba(217,170,89,.14); color:var(--gold-2); }
.ranking-row .player-identity { gap:.65rem; }
.ranking-row .player-avatar { width:36px; height:36px; border-radius:12px; }
.podium-player { display:flex; align-items:center; justify-content:center; gap:.8rem; margin-bottom:.45rem; }
.podium-avatar { width:54px; height:54px; border-radius:18px; }
.podium-title { color:#fff; font-weight:700; }
.podium-stove .furnace-badge { margin-left:0; }
.hero-player { display:flex; align-items:center; gap:1rem; margin-bottom:.65rem; }
.hero-player-avatar { width:68px; height:68px; border-radius:22px; }
.hero-player-furnace .furnace-badge { margin-left:0; }
.player-preview-card {
    min-height: 132px;
    background: rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:1rem;
}
.player-preview-card-title { color:var(--muted); font-size:.85rem; margin-bottom:.75rem; }
.player-preview {
    min-height: 74px;
    display:flex;
    align-items:center;
    gap:.85rem;
}
.player-preview-furnace { margin-left:auto; display:flex; align-items:center; }
.player-preview-furnace .furnace-badge { padding:.22rem .42rem; gap:.3rem; border-radius:14px; }
.player-preview-furnace .furnace-badge img { width:22px; height:22px; }
.player-preview img { width:54px; height:54px; border-radius:18px; flex:0 0 54px; }
.player-preview-text { min-width: 0; }
.player-preview strong { display:block; color:#fff; }
.player-preview small { color:var(--muted); display:block; }
.upload-dropzone { cursor:pointer; }
.dataTables_wrapper .dt-container, .dataTables_wrapper .dt-layout-row { color: var(--muted) !important; }
.dataTables_wrapper .dt-layout-row:last-child { margin-top: 1rem; align-items:center; }
.dataTables_wrapper .dt-paging .pagination,
.dataTables_wrapper .dataTables_paginate .pagination {
    gap: .45rem;
    align-items: center;
    margin: 0;
}
.dataTables_wrapper .dt-paging .page-item .page-link,
.dataTables_wrapper .dataTables_paginate .page-item .page-link,
.dataTables_wrapper .dt-paging-button,
.dataTables_wrapper .paginate_button {
    min-width: 40px;
    height: 40px;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    padding: 0 .9rem !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(22, 37, 58, .96) 0%, rgba(13, 24, 39, .98) 100%) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #eef3fa !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.dataTables_wrapper .dt-paging .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dt-paging-button.current,
.dataTables_wrapper .paginate_button.current {
    background: linear-gradient(135deg, #efcb85 0%, #b58134 100%) !important;
    color: #111 !important;
    border-color: transparent !important;
    font-weight: 700;
}
.dataTables_wrapper .dt-paging .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dt-paging-button.disabled,
.dataTables_wrapper .paginate_button.disabled {
    opacity: .45;
    pointer-events: none;
}
.dataTables_wrapper .dt-paging .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-link:hover,
.dataTables_wrapper .dt-paging-button:hover,
.dataTables_wrapper .paginate_button:hover {
    color:#fff !important;
    border-color: rgba(217,170,89,.38) !important;
    background: rgba(255,255,255,.08) !important;
}
.dataTables_wrapper .dt-paging .page-item.active .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link:hover,
.dataTables_wrapper .dt-paging-button.current:hover,
.dataTables_wrapper .paginate_button.current:hover {
    color:#111 !important;
    background: linear-gradient(135deg, #efcb85 0%, #b58134 100%) !important;
}
@media (max-width: 767.98px) {
    .player-identity { align-items:flex-start; }
    .furnace-badge { margin-left:0; }
    .hero-player { align-items:flex-start; }
}

.site-footer {
    margin-top: 2rem;
    background: rgba(8, 16, 28, .88);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.site-footer-inner {
    min-height: 72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    color: var(--muted-soft);
    padding: 1rem 0;
}
@media (max-width: 767.98px) {
    .site-footer-inner {
        flex-direction:column;
        align-items:flex-start;
    }
}

.brand-logo-wrap{display:inline-flex;align-items:center;justify-content:center;min-width:132px}
.brand-logo{width:132px;height:auto;display:block;filter: drop-shadow(0 6px 20px rgba(0,0,0,.28));}
.brand-logo-wrap{position:relative;overflow:visible;}
.brand-logo-beta-badge{
  position:absolute;
  top:-8px;
  right:-10px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.22rem .5rem;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.01em;
  color:#111827;
  background:linear-gradient(135deg, #efcb85 0%, #b58134 100%);
  border:1px solid rgba(239,203,133,.78);
  box-shadow:0 8px 18px rgba(181,129,52,.24);
  pointer-events:none;
  white-space:nowrap;
}
@media (max-width: 767.98px){
  .brand-logo-beta-badge{top:-6px;right:-8px;font-size:.62rem;padding:.18rem .42rem;}
  .brand-title-beta-badge{font-size:.62rem;padding:.18rem .42rem;}
}

.app-lang-menu{background:var(--surface);border:1px solid var(--line);padding:.45rem;min-width:220px}
.app-lang-menu .dropdown-item{border-radius:12px;padding:.55rem .8rem;color:#eef3fa!important}
.app-lang-menu .dropdown-item:hover,.app-lang-menu .current-lang .dropdown-item{background:rgba(255,255,255,.08);color:#fff!important}
.lang-dropdown-toggle{min-width:110px;text-align:center}
.site-footer{background:rgba(8,16,28,.88);backdrop-filter:blur(10px);border-top:1px solid var(--line)}
@media (max-width: 767.98px){.brand-logo-wrap{min-width:98px}.brand-logo{width:98px}.navbar-brand strong{font-size:.98rem}}


/* v13 refinements */
.app-accordion .accordion-item { border-radius: 22px; }
.app-accordion .accordion-header { margin: 0; }
.app-accordion .accordion-button { border-radius: 22px 22px 0 0 !important; }
.app-accordion .accordion-button.collapsed { border-radius: 22px !important; }
.app-accordion .accordion-body { border-top: 1px solid rgba(255,255,255,.06); }
.all-left-table th,
.all-left-table td,
#membersTable_wrapper .dt-column-title,
#membersTable_wrapper tbody td,
#membersTable_wrapper thead th { text-align: left !important; }
#membersTable_wrapper .dt-layout-row { justify-content: space-between; }
.dataTables_wrapper .dt-paging,
.dataTables_wrapper .dataTables_paginate { display:flex; justify-content:flex-end; align-items:center; }
.dataTables_wrapper .dt-paging nav,
.dataTables_wrapper .dataTables_paginate .pagination {
    padding:.5rem;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(22, 37, 58, .96) 0%, rgba(13, 24, 39, .98) 100%) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 28px rgba(0,0,0,.18);
}
.dataTables_wrapper .dt-paging .page-item .page-link,
.dataTables_wrapper .dataTables_paginate .page-item .page-link,
.dataTables_wrapper .dt-paging-button,
.dataTables_wrapper .paginate_button {
    min-width:42px;
    height:42px;
    border-radius:999px !important;
    background:transparent !important;
    border:1px solid transparent !important;
    box-shadow:none;
}
.dataTables_wrapper .dt-paging .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dt-paging-button.current,
.dataTables_wrapper .paginate_button.current {
    background:linear-gradient(135deg, #efcb85 0%, #b58134 100%) !important;
    color:#111 !important;
    border-color:rgba(239,203,133,.78) !important;
    box-shadow:0 8px 18px rgba(181,129,52,.22);
}
.dataTables_wrapper .dt-paging .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-link:hover,
.dataTables_wrapper .dt-paging-button:hover,
.dataTables_wrapper .paginate_button:hover {
    background:rgba(255,255,255,.08) !important;
    border-color:rgba(255,255,255,.14) !important;
}

/* v14 refinements */
.site-footer {background: rgba(8,16,28,.88); backdrop-filter: blur(10px); border-top: 1px solid var(--line);}
.site-footer-inner {display:flex; flex-direction:column; justify-content:center; align-items:center; gap:.35rem; text-align:center; color:var(--muted-soft); padding:1rem 0;}
.login-brand-logo{max-width:180px; height:auto; display:block; margin-inline:auto;}
.login-brand-title{font-size:1.15rem; font-weight:800; color:#fff;}
.login-brand-subtitle{color:var(--gold-2); font-weight:700; letter-spacing:.04em; text-transform:uppercase; font-size:.82rem;}
.app-select, .form-select, .dataTables_wrapper .dataTables_length select {appearance:none; -webkit-appearance:none; background-color:rgba(255,255,255,.06)!important; border:1px solid rgba(255,255,255,.1)!important; color:#eef3fa!important; border-radius:14px!important; padding:.75rem 2.8rem .75rem 1rem!important; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); background-image: linear-gradient(45deg, transparent 50%, #eef3fa 50%), linear-gradient(135deg, #eef3fa 50%, transparent 50%)!important; background-position: calc(100% - 20px) calc(1.15em), calc(100% - 15px) calc(1.15em)!important; background-size: 5px 5px, 5px 5px!important; background-repeat:no-repeat!important;}
.app-select option, .form-select option, .dataTables_wrapper select option {background:#19304a!important; color:#eef3fa!important;}
.ranking-row{grid-template-columns:34px minmax(180px,1fr) 96px minmax(92px,auto); align-items:center; column-gap:.75rem;}
.ranking-name .player-identity{gap:.65rem;}
.ranking-furnace{justify-self:end; min-width:86px; display:inline-flex; justify-content:flex-end;}
.ranking-value{min-width:82px; text-align:right;}
.ranking-value{display:inline-flex; align-items:center; gap:.4rem; justify-content:flex-end;}
.score-variation{font-weight:700; font-size:.82em; opacity:.95;}
.podium-grid{display:grid; grid-template-columns:1fr; gap:1rem;}
.podium-card{display:grid; grid-template-columns:72px 68px 1fr; align-items:center; gap:1rem; padding:1rem 1.1rem;}
.podium-trophy .rank-badge, .podium-trophy .ranking-position{width:54px; height:54px; font-size:1.2rem;}
.podium-avatar{width:58px; height:58px; border-radius:18px; object-fit:cover;}
.podium-content{min-width:0;}
.podium-line{display:flex; align-items:center; gap:.65rem; flex-wrap:wrap;}
.podium-line-bottom{margin-top:.2rem;}
.podium-title{font-size:1rem; margin:0;}
.podium-meta{margin:0;}
.podium-value{font-size:1rem;}
.dataTables_wrapper .dt-layout-row:last-child, .dataTables_wrapper .dataTables_paginate{justify-content:flex-end;}
.dataTables_wrapper .dt-paging nav, .dataTables_wrapper .dataTables_paginate .pagination{padding:.35rem; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.08); border-radius:18px; box-shadow:inset 0 1px 0 rgba(255,255,255,.03);}
.dataTables_wrapper .dt-paging .page-item .page-link, .dataTables_wrapper .dataTables_paginate .page-item .page-link, .dataTables_wrapper .dt-paging-button, .dataTables_wrapper .paginate_button{height:42px; min-width:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px!important; font-weight:700; background:transparent!important; border:1px solid transparent!important; color:#dfe7f1!important; margin:0 .1rem;}
.dataTables_wrapper .dt-paging .page-item.active .page-link, .dataTables_wrapper .dataTables_paginate .page-item.active .page-link, .dataTables_wrapper .dt-paging-button.current, .dataTables_wrapper .paginate_button.current{background:linear-gradient(135deg,#efcb85 0%,#b58134 100%)!important; color:#111!important; border-color:rgba(239,203,133,.8)!important; box-shadow:0 8px 18px rgba(181,129,52,.22)!important;}
.dataTables_wrapper .dt-paging .page-link:hover, .dataTables_wrapper .dataTables_paginate .page-link:hover, .dataTables_wrapper .dt-paging-button:hover, .dataTables_wrapper .paginate_button:hover{background:rgba(255,255,255,.08)!important; border-color:rgba(255,255,255,.12)!important; color:#fff!important;}
@media (max-width: 767.98px){
  .podium-card{grid-template-columns:56px 56px 1fr; gap:.75rem;}
  .ranking-card{padding:.9rem;}
  .ranking-card-header{align-items:flex-start; gap:.45rem;}
  .ranking-card-header h3{font-size:.95rem; line-height:1.25;}
  .ranking-row{
    grid-template-columns:32px minmax(0,1fr) auto;
    grid-template-areas:
      'position name name'
      'position furnace value';
    align-items:start;
    row-gap:.38rem;
    column-gap:.65rem;
    padding:.72rem 0;
  }
  .ranking-position{grid-area:position; margin-top:.1rem;}
  .ranking-name{grid-area:name; min-width:0;}
  .ranking-name .player-identity{display:flex; align-items:center; gap:.55rem; min-width:0;}
  .ranking-name .player-link{display:flex; align-items:center; gap:.55rem; min-width:0; flex:1 1 auto;}
  .ranking-name .player-avatar{width:32px; height:32px; border-radius:10px; flex:0 0 32px;}
  .ranking-name .player-identity-main,
  .ranking-name .player-identity-text{min-width:0;}
  .ranking-name .player-identity-text strong{display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;}
  .ranking-name .player-identity-text small{display:block; font-size:.73rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .ranking-furnace{grid-area:furnace; grid-column:auto; justify-self:start; min-width:0; max-width:100%;}
  .ranking-furnace .furnace-badge{transform-origin:left center;}
  .ranking-value{grid-area:value; grid-column:auto; justify-self:end; min-width:0; text-align:right; white-space:nowrap; font-size:.94rem;}
  .ranking-value .score-variation{font-size:.78em;}
  .load-more-wrap .btn{min-height:38px;}
}


/* v16 refinements */
.podium-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:stretch;}
.podium-card{display:grid;grid-template-columns:92px 72px 1fr;align-items:center;gap:1rem;padding:1rem 1.1rem;min-height:112px;}
.podium-trophy .rank-badge,.podium-trophy .ranking-position,.podium-trophy .ranking-cup{width:86px;height:86px;font-size:2.15rem;}
.podium-trophy .ranking-digit{width:86px;height:86px;font-size:1.9rem;}
.podium-avatar{width:64px;height:64px;border-radius:18px;object-fit:cover;}
.podium-title{font-size:.98rem;font-weight:800;}
.podium-meta,.podium-value{font-size:.95rem;}
.podium-meta{margin-bottom:0 !important;}
.login-copyright{max-width:420px;margin-inline:auto;margin-top:20px;}
.ranking-name .player-identity-top{display:flex;align-items:center;gap:.5rem;}
.ranking-name .player-identity-furnace{margin-left:0;}
.ranking-name .player-identity-text{flex:1 1 auto;min-width:0;}
@media (max-width: 991.98px){.podium-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.podium-card{grid-template-columns:68px 58px 1fr;padding:.85rem;gap:.75rem;}.podium-trophy .rank-badge,.podium-trophy .ranking-position,.podium-trophy .ranking-cup,.podium-trophy .ranking-digit{width:58px;height:58px;font-size:1.45rem;}.podium-avatar{width:52px;height:52px;}.podium-line{gap:.35rem;}.podium-title,.podium-meta,.podium-value{font-size:.82rem;}}
@media (max-width: 991.98px){.ranking-row{grid-template-columns:32px minmax(140px,1fr) 82px minmax(84px,auto);column-gap:.6rem;}.ranking-name .player-avatar{width:34px;height:34px;border-radius:11px;}.ranking-card-header h3{font-size:1rem;}.ranking-value{margin-top:7px;}}
@media (max-width: 575.98px){.podium-card{grid-template-columns:52px 46px 1fr;padding:.7rem;gap:.5rem;min-height:96px;}.podium-trophy .rank-badge,.podium-trophy .ranking-position,.podium-trophy .ranking-cup,.podium-trophy .ranking-digit{width:46px;height:46px;font-size:1.12rem;}.podium-avatar{width:42px;height:42px;border-radius:14px;}.podium-title,.podium-meta,.podium-value{font-size:.72rem;}.podium-line{gap:.25rem;}}

/* Responsive fixes (tablet/mobile only)
   - prevent content cut in accordions
   - restore horizontal scroll for wide tables
   - ensure podium stays fully visible
*/
@media (max-width: 991.98px) {
    /* Accordion cards were clipping wide content (tables/podium) */
    .app-accordion .accordion-item { overflow: visible; }

    /* Tables: allow horizontal scrolling on small screens */
    .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    /* Keep header/columns readable by forcing a minimum width inside the scroll container */
    .table-responsive > .app-table { min-width: 720px; }

    /* Podium: never clip inside cards */
    .podium-grid { overflow: visible; }
    .podium-card { min-width: 0; }
}

@media (max-width: 575.98px) {
    /* Very small screens: stack podium to avoid any horizontal overflow */
    .podium-grid { grid-template-columns: 1fr !important; }
    .table-responsive > .app-table { min-width: 640px; }
}


/* DataTables pagination theming */
.dataTables_wrapper .pagination{gap:.35rem;}
.dataTables_wrapper .pagination .page-link{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#d9e0e8;
  border-radius:.65rem;
  padding:.35rem .65rem;
}
.dataTables_wrapper .pagination .page-link:hover{
  background:rgba(239,203,133,.12);
  border-color:rgba(239,203,133,.35);
  color:#fff;
}
.dataTables_wrapper .pagination .page-item.active .page-link{
  background:rgba(239,203,133,.22);
  border-color:rgba(239,203,133,.65);
  color:#fff;
}
.dataTables_wrapper .pagination .page-item.disabled .page-link{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.08);
  color:rgba(217,224,232,.45);
}


/* v2.0 refinements */
.login-screen{gap:0;}
.login-copyright{margin-top:20px!important; position:relative; top:0;}
.podium-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:stretch;}
.podium-card{height:100%;}
.podium-card .player-link{display:contents; color:inherit; text-decoration:none;}
.dataTables_wrapper .dataTables_paginate{display:flex!important;justify-content:flex-end!important;align-items:center!important;margin-top:1rem!important;}
.dataTables_wrapper .dataTables_paginate .pagination,
.dataTables_wrapper .dt-paging nav{background:#d6dbe2!important;border:0!important;border-radius:12px!important;padding:0!important;box-shadow:none!important;gap:0!important;overflow:hidden;}
.dataTables_wrapper .dataTables_paginate .page-item,
.dataTables_wrapper .dt-paging .page-item{margin:0!important;}
.dataTables_wrapper .dataTables_paginate .page-link,
.dataTables_wrapper .dt-paging .page-link,
.dataTables_wrapper .paginate_button,
.dataTables_wrapper .dt-paging-button{min-width:46px!important;height:38px!important;padding:0 12px!important;border-radius:0!important;border:0!important;background:#d6dbe2!important;color:#b8c0cb!important;font-weight:700!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;}
.dataTables_wrapper .dataTables_paginate .page-link:hover,
.dataTables_wrapper .dt-paging .page-link:hover,
.dataTables_wrapper .paginate_button:hover,
.dataTables_wrapper .dt-paging-button:hover{background:#c9cfd7!important;color:#7b8794!important;}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.dataTables_wrapper .dt-paging .page-item.active .page-link,
.dataTables_wrapper .paginate_button.current,
.dataTables_wrapper .dt-paging-button.current{background:#2f80ed!important;color:#fff!important;}
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link,
.dataTables_wrapper .dt-paging .page-item.disabled .page-link,
.dataTables_wrapper .paginate_button.disabled,
.dataTables_wrapper .dt-paging-button.disabled{background:#d6dbe2!important;color:#c7ced7!important;opacity:1!important;}
.snapshot-mode-switch{display:flex;align-items:center;justify-content:center;gap:.9rem;flex-wrap:wrap;text-align:center;}
.snapshot-mode-switch .mode-label{font-weight:700;color:#9fb0c4;transition:.2s ease;cursor:pointer;}
.snapshot-mode-switch .mode-label.active{color:#fff;}
.snapshot-mode-switch .form-check.form-switch{margin:0;display:flex;align-items:center;}

/* Bigger on/off switch used on signup */
.form-switch-lg{display:flex;align-items:center;gap:.65rem;}
.form-switch-lg .form-check-input{
  width: 3.25em;
  height: 1.75em;
  margin-top: 0;
  cursor: pointer;
}
.form-switch-lg .form-check-label{cursor:pointer;font-weight:600;}
.snapshot-mode-switch .form-check-input{width:3.4rem;height:1.8rem;cursor:pointer;background-color:rgba(255,255,255,.18);border-color:rgba(255,255,255,.18);}
.snapshot-mode-switch .form-check-input:checked{background-color:#efcb85;border-color:#efcb85;}
[data-entry-mode-target="manual"].app-card{margin-bottom:1.5rem!important;}
.screenshot-assistant-card{min-height:220px;display:flex;flex-direction:column;justify-content:center;padding-inline:1rem;}
.screenshot-assistant-card .btn{width:auto!important;min-width:220px;align-self:center;}


.form-control.form-control-lg, .form-select.form-select-lg {min-height: calc(1.5em + 1.5rem + 2px);}
.form-select.form-select-lg {padding-top: .75rem !important; padding-bottom: .75rem !important; line-height: 1.5;}


.dataTables_wrapper .dt-paging nav,
.dataTables_wrapper .dataTables_paginate nav,
.dataTables_wrapper .dt-paging .pagination,
.dataTables_wrapper .dataTables_paginate .pagination,
div.dt-container div.dt-paging ul.pagination {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.dataTables_wrapper .page-item.disabled .page-link,
.dataTables_wrapper .paginate_button.disabled,
.dataTables_wrapper .dt-paging-button.disabled {
    opacity: .45;
    color: #9fb0c4 !important;
    background: linear-gradient(180deg, rgba(22, 37, 58, .96) 0%, rgba(13, 24, 39, .98) 100%) !important;
}


/* DataTables dark pagination override */
div.dt-container div.dt-paging button.dt-paging-button,
div.dt-container .dt-paging .dt-paging-button,
div.dataTables_wrapper .dataTables_paginate .paginate_button,
div.dataTables_wrapper .dataTables_paginate .paginate_button a,
div.dataTables_wrapper .dataTables_paginate span .paginate_button {
    background: linear-gradient(180deg, rgba(22,37,58,.96) 0%, rgba(13,24,39,.98) 100%) !important;
    background-color: rgba(13,24,39,.98) !important;
    color: #eef3fa !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
div.dt-container div.dt-paging button.dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current,
div.dataTables_wrapper .dataTables_paginate .paginate_button.current,
div.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(180deg, rgba(59,130,246,.95) 0%, rgba(37,99,235,.98) 100%) !important;
    background-color: rgba(37,99,235,.98) !important;
    color: #fff !important;
    border-color: rgba(96,165,250,.85) !important;
}
div.dt-container div.dt-paging button.dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled,
div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: .45 !important;
    color: rgba(238,243,250,.65) !important;
}


/* v2.6 — player preview furnace/avatar scoped overrides */
#previewFurnace .furnace-badge img {
  width: 60px;
  height: 50px;
  object-fit: contain;
  display: block;
}

#previewFurnace .furnace-badge {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#playerPreviewCard .player-preview img,
#playerPreviewCard #previewAvatar img {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* v27 overrides */
:root{--bs-pagination-disabled-bg:transparent;--bs-pagination-active-bg:transparent;}
.dataTables_wrapper .dataTables_paginate .pagination,
.dataTables_wrapper .dt-paging .pagination,
div.dt-container div.dt-paging ul.pagination{background:rgba(255,255,255,.045)!important;}
.dataTables_wrapper .page-link,
.dataTables_wrapper .paginate_button,
.dataTables_wrapper .dt-paging-button{background:transparent!important;color:#dfe7f1!important;}
.dataTables_wrapper .page-item.disabled .page-link,
.dataTables_wrapper .paginate_button.disabled,
.dataTables_wrapper .dt-paging-button.disabled{background:transparent!important;opacity:.45;}
.footer-version-link{color:var(--gold-2);text-decoration:none;font-weight:700;}
.footer-version-link:hover{color:#fff;text-decoration:none;}
.version-history-list{margin:0;padding-left:1.25rem;display:grid;gap:.5rem;}
.upload-dropzone:hover{background:inherit!important;border-color:inherit!important;transform:none!important;box-shadow:none!important;}


/* v2.9 fixes */
:root{--bs-pagination-disabled-bg:transparent !important;--bs-pagination-active-bg:transparent !important;}
.form-control,
.form-select,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  min-height: 48px !important;
  height: 48px !important;
  padding-top: .75rem !important;
  padding-bottom: .75rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
.dataTables_wrapper .dataTables_length select{padding-right:2.8rem !important;}
.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dataTables_wrapper .page-item.disabled .page-link,
.page-item.disabled .page-link{background:transparent !important;}
.dataTables_wrapper .pagination .page-item.active .page-link,
.dataTables_wrapper .page-item.active .page-link,
.page-item.active .page-link{background:transparent !important;}
.footer-version-link{color:var(--gold-2); text-decoration:none; font-weight:700;}
.footer-version-link:hover{color:#fff; text-decoration:underline;}
.app-badge{
  display:inline-flex; align-items:center; gap:.35rem; padding:.42rem .7rem; border-radius:999px;
  background: rgba(217,170,89,.16); border:1px solid rgba(217,170,89,.32); color: var(--gold-2);
  font-size:.82rem; font-weight:700;
}
#previewFurnace .furnace-badge,
.player-preview-furnace .furnace-badge{
  display:inline-flex; align-items:center; gap:.55rem; padding:.35rem .6rem; border-radius:999px;
  background: rgba(217,170,89,.14); border:1px solid rgba(217,170,89,.3); color:#fff;
}
#previewFurnace .furnace-badge img,
.player-preview-furnace .furnace-badge img{
  width:60px !important; height:50px !important; object-fit:contain; display:block;
  border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important;
}
#previewFurnace .furnace-badge span,
.player-preview-furnace .furnace-badge span{font-size:1rem; line-height:1; color:#fff;}


/* v3.0 UI refinements */
.dataTables_wrapper .pagination,
.dataTables_wrapper .dataTables_paginate{
  --bs-pagination-disabled-bg: transparent !important;
  --bs-pagination-active-bg: transparent !important;
  --bs-pagination-active-border-color: transparent !important;
}
.dataTables_wrapper .page-link,
.page-link{
  background: transparent !important;
  border-color: transparent !important;
  color: #eef3fa !important;
  box-shadow: none !important;
}
.page-link:hover{
  background: rgba(255,255,255,.06) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.page-item.active .page-link,
.active > .page-link,
.page-link.active{
  background: transparent !important;
  border-color: transparent !important;
  color: var(--gold-2) !important;
}
.page-item.disabled .page-link,
.page-link.disabled{
  background: transparent !important;
  border-color: transparent !important;
  color: rgba(238,243,250,.42) !important;
}
.form-control,
.form-select,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input{
  min-height: 42px !important;
  height: 42px !important;
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
  font-size: .95rem !important;
}
textarea.form-control{
  min-height: 120px !important;
  height: auto !important;
}
.footer-version-link{
  position: relative;
  z-index: 4;
  pointer-events: auto;
}
.player-view-metric strong{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;}
.upload-dropzone:hover{background:inherit!important;border-color:inherit!important;transform:none!important;box-shadow:none!important;}


.form-select.form-select-lg{padding-top:.5rem !important;padding-bottom:.5rem !important;}
.input-group-lg > .btn{padding:.25rem 1rem !important;font-size:1rem !important;}
.page-link.active,.active > .page-link{border-color:transparent !important;}
.site-footer .footer-copyright-line,.site-footer .footer-madeby{display:flex;align-items:center;justify-content:center;gap:.4rem;flex-wrap:wrap;}
.footer-madeby .bi-heart-fill{color:#d96a7b;}


/* Footer aligned with header */
.site-footer {
    background: linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.94) 100%) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.site-footer-inner {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:.35rem;
    text-align:center;
    color:var(--muted-soft);
    padding:1rem 0;
}
.site-footer .footer-copyright-line,.site-footer .footer-madeby{display:flex;align-items:center;justify-content:center;gap:.4rem;flex-wrap:wrap;}
.footer-madeby .bi-heart-fill{color:#d96a7b;}

/* v1.1 refinements */
.upload-dropzone {
    padding: 1em !important;
    height: 100%;
}
.form-control,
.form-select,
.input-group-text,
.form-control-lg,
.form-select-lg,
.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .input-group-text {
    min-height: 44px;
    padding-top: .4rem !important;
    padding-bottom: .4rem !important;
    font-size: .95rem !important;
}

/* Buttons: slightly smaller + vertically centered text */
.btn,
.input-group-lg > .btn {
    min-height: 40px;
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
    font-size: .95rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
}
.form-select,
.form-select-lg {
    line-height: 1.4 !important;
    padding-right: 2.25rem !important;
}
.dataTables_wrapper .page-item.active .page-link,
.dataTables_wrapper .dt-paging-button.current,
.dataTables_wrapper .paginate_button.current,
.active > .page-link,
.page-link.active {
    border-color: transparent !important;
}
.site-footer {
    background: linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.94) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.site-footer .site-footer-inner {
    min-height: 72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-footer .footer-version-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-version-link:hover { color: var(--gold-2); }
.app-lang-menu { text-align: left; }
@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav {
        align-items: flex-start !important;
        text-align: left;
        width: 100%;
        padding-top: .75rem;
    }
    .navbar-collapse .nav-item,
    .navbar-collapse .dropdown,
    .navbar-collapse .lang-dropdown {
        width: 100%;
    }
    .navbar-collapse .nav-link,
    .navbar-collapse .dropdown-toggle {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    .lang-dropdown .dropdown-menu,
    .app-lang-menu {
        width: 100%;
        left: 0 !important;
        right: auto !important;
        text-align: left !important;
    }
    .site-footer .site-footer-inner {
        justify-content: center;
        text-align: center;
    }
}

#lookupPlayerBtn{min-height:40px !important;}

/* DataTables: mobile/tablet "row details" layout (desktop unchanged) */
@media (max-width: 1024px) {
    table.dataTable td.dt-control,
    table.dataTable th.dt-control-head {
        width: 38px;
        min-width: 38px;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    table.dataTable td.dt-control {
        cursor: pointer;
    }

    table.dataTable td.dt-control::before {
        content: "+";
        display: inline-flex;
        width: 22px;
        height: 22px;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-weight: 700;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.12);
        color: #eef3fa;
    }

    table.dataTable tr.shown td.dt-control::before {
        content: "–";
    }

    /* Hide columns on mobile/tablet but keep cells in the DOM so DataTables can
       still read them for child row details. */
    table.dataTable th.dt-mobile-hide,
    table.dataTable td.dt-mobile-hide {
        display: none;
    }

    .dt-details {
        padding: .75rem .5rem;
    }

    .dt-details__row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .35rem .75rem;
        padding: .4rem 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .dt-details__row:last-child { border-bottom: 0; }

    @media (max-width: 767.98px) {
        table.dataTable .dt-mobile-player-name {
            display: inline-block;
            max-width: clamp(96px, 34vw, 136px);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: bottom;
            cursor: help;
        }

        table.dataTable .player-identity-text .dt-mobile-player-name {
            max-width: clamp(90px, 30vw, 124px);
        }
    }

    .dt-details__label {
        opacity: .75;
        font-size: .9em;
    }

    .dt-details__value {
        text-align: right;
        font-weight: 600;
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   Public landing
   ========================================================= */
.public-navbar .navbar-brand small{font-size:.75rem}
.landing-hero{position:relative}
.landing-proof{display:flex;flex-wrap:wrap;gap:.5rem}
.proof-pill{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .7rem;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:.9rem}
.landing-mockup .mockup-card{border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 50px rgba(0,0,0,.35);overflow:hidden}
.mockup-top{display:flex;gap:.45rem;padding:.75rem 1rem;border-bottom:1px solid rgba(255,255,255,.06)}
.mockup-dot{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.18)}
.mockup-body{padding:1rem}
.mockup-kpi{padding:1rem;border-radius:16px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08)}
.mockup-kpi-title{font-weight:600}
.mockup-kpi-value{font-size:2rem;font-weight:800;line-height:1;margin-top:.25rem}
.mockup-kpi-sub{opacity:.75;margin-top:.25rem}
.mockup-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-top:1rem}
.mockup-skeleton{height:82px;border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.06)}
.landing-section.alt{background:rgba(255,255,255,.03);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.feature-icon{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:1.25rem}
.screenshot-placeholder{height:220px;border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px dashed rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55);font-weight:600}
.screenshot-placeholder.small{height:160px}
.landing-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.landing-list li{display:flex;gap:.6rem;align-items:flex-start}
.landing-list i{color:rgba(255,209,102,.95);margin-top:.15rem}
.stars{letter-spacing:.2rem;color:rgba(255,209,102,.95);margin-bottom:.5rem}
.landing-cta .cta-card{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;justify-content:space-between;padding:1.5rem 1.5rem;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}

/* Auth page */
@media (max-width: 991px){
  .landing-mockup{margin-top:1rem}
}


/* v1.3 module navigation */
.module-subnav{position:sticky;top:var(--app-navbar-height,84px);z-index:1050;margin-top:0;border-top:0;border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(10px)}
.module-subnav > .container-fluid{min-height:72px;margin-top:0;padding-top:0;padding-bottom:0}
.module-subnav-bst{background:linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.94) 100%)}
.module-subnav-admin{background:linear-gradient(180deg, rgba(86,24,24,.96) 0%, rgba(68,16,16,.94) 100%)}
.module-subnav-title{font-weight:700;color:#eef3fa;display:flex;align-items:center;min-height:44px}
.module-subnav-dropdown{display:flex;align-items:center}
.module-subnav-toggle{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;justify-content:flex-start;padding:.6rem .9rem;border-radius:14px;color:var(--muted-soft);text-decoration:none;background:transparent;border:1px solid transparent;font-weight:700;transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.module-subnav-toggle:hover,.module-subnav-toggle:focus{color:#fff;background:rgba(255,255,255,.06);border-color:transparent;box-shadow:none}
.module-subnav-toggle.active{color:#fff;background:linear-gradient(180deg, rgba(239,203,133,.15), rgba(239,203,133,.08));border-color:rgba(239,203,133,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.module-subnav-menu{min-width:250px;background:linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.98) 100%);border:1px solid rgba(255,255,255,.10);padding:.45rem;border-radius:16px;box-shadow:0 18px 40px rgba(0,0,0,.28)}
.module-subnav-admin .module-subnav-menu{background:linear-gradient(180deg, rgba(86,24,24,.96) 0%, rgba(68,16,16,.98) 100%);min-width:auto;border:0;box-shadow:none;border-radius:0;padding:0}
.module-subnav-menu .dropdown-item,.module-subnav-menu .nav-link{border-radius:14px;padding:.6rem .9rem;font-weight:700;color:var(--muted-soft)!important;background:transparent;border:1px solid transparent}
.module-subnav-menu .dropdown-item:hover,.module-subnav-menu .dropdown-item:focus,.module-subnav-menu .nav-link:hover,.module-subnav-menu .nav-link:focus{background:rgba(255,255,255,.06);color:#fff!important;border-color:transparent}
.module-subnav-menu .dropdown-item.active,.module-subnav-menu .dropdown-item:active,.module-subnav-menu .nav-link.active{background:linear-gradient(180deg, rgba(239,203,133,.15), rgba(239,203,133,.08));color:#fff!important;border-color:rgba(239,203,133,.2)}
.navbar .dropdown-menu,.public-navbar .dropdown-menu,.module-subnav .dropdown-menu{z-index:1055}

.form-label.required-label::after,.form-check-label.required-label::after{content:"*";color:var(--gold-2);font-weight:700;margin-left:.3rem;display:inline-block}
@media (max-width: 991.98px){.module-subnav{position:static;top:auto}.module-subnav>.container-fluid{min-height:66px;padding-top:.55rem;padding-bottom:.55rem}.module-subnav-title{width:100%;min-height:auto}.module-subnav-dropdown{width:100%}.module-subnav-toggle{width:100%;justify-content:space-between}.module-subnav-menu{width:100%}}

.public-navbar{margin-bottom:0!important}
.public-navbar + .module-subnav{margin-top:0!important}

.admin-action-menu{min-width:220px}
.admin-action-menu .dropdown-item form{margin:0}


/* v1.3.9 layout fixes */
.site-footer{margin-top:auto !important;}
.join-request-avatar{width:32px;height:32px;object-fit:cover;}


.nav-user-avatar{
  width: 1.7rem;
  height: 1.7rem;
  object-fit: cover;
  flex: 0 0 1.7rem;
  border: 1px solid rgba(255,255,255,.16);
}

body > .site-footer{
  margin-top: auto !important;
}

.join-request-avatar{
  width: auto;
  height: 50px;
  max-width: 50px;
  object-fit: cover;
}


/* v20 admin nav + tables refinements */
.module-subnav-admin > .container-fluid{min-height:64px;align-items:flex-start!important;padding-top:.6rem;padding-bottom:.6rem}
.module-subnav-admin .module-subnav-title{font-size:.98rem;line-height:1.2;white-space:nowrap;padding-top:.2rem}
.module-subnav-admin .module-subnav-toggle{min-width:auto;padding:.5rem .8rem;border-radius:10px;font-size:.95rem}
.module-subnav-admin .module-subnav-dropdown{min-width:0}
.module-subnav-admin .module-subnav-menu{min-width:220px}
.module-subnav-admin .badge{vertical-align:middle}
#adminAlliancesTable td, #adminUsersTable td, #adminJoinRequestsTable td, #adminMigrationsTable td, #adminNoAllianceUsersTable td{vertical-align:middle}
#adminAlliancesTable td strong, #adminUsersTable td strong, #adminJoinRequestsTable td strong, #adminMigrationsTable td strong{white-space:normal}
.dataTables_wrapper .table-responsive{overflow:visible}
@media (min-width: 992px){
  .module-subnav-admin .container-fluid > .d-flex{flex-wrap:wrap;justify-content:flex-end}
}
@media (max-width: 991.98px){
  .module-subnav-admin .module-subnav-toggle{width:100%;justify-content:space-between}
  .module-subnav-admin .module-subnav-menu{width:100%}
}

.no-alliance-page{
    width:100%;
    display:flex;
    flex:1 0 auto;
    flex-direction:column;
    min-height:calc(100vh - 220px);
}
.no-alliance-grid{flex:1 0 auto;align-items:stretch;}
#noAllianceJoinByCodeLabel,#noAllianceJoinByRequestLabel{cursor:pointer;transition:color .18s ease;}
#noAllianceJoinByCodeLabel.text-white,#noAllianceJoinByRequestLabel.text-white{color:#fff!important;}
#noAllianceJoinByCodeLabel.text-secondary,#noAllianceJoinByRequestLabel.text-secondary{color:var(--muted)!important;}


.profile-furnace-lg .furnace-badge img{width:72px;height:72px;object-fit:contain}
.profile-furnace-lg .furnace-badge{min-height:72px}


/* Premium chrome refresh */
.app-shell{
  background:
    radial-gradient(1200px 420px at 50% -80px, rgba(239,203,133,.14), transparent 55%),
    radial-gradient(900px 360px at 20% 0%, rgba(70,132,230,.12), transparent 50%),
    linear-gradient(180deg, #07111e 0%, #0b1626 28%, #0d1828 100%);
}
.public-navbar,
.app-navbar{
  position:sticky !important;
  top:0;
  z-index:1060;
  background:linear-gradient(135deg, rgba(10,21,38,.96) 0%, rgba(13,26,46,.93) 55%, rgba(18,35,60,.92) 100%);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 34px rgba(0,0,0,.24);
}
.public-navbar .container-fluid,
.app-navbar .container-fluid{
  min-height:84px;
}

.landing-page .public-navbar{
  position:sticky!important;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:1060;
}
.landing-page .landing{
  padding-top:0;
}
@media (min-width: 992px){
  .landing-page .module-subnav{
    position:sticky;
    top:var(--app-navbar-height,84px);
    z-index:1035;
  }
}
@media (max-width: 991.98px){
  .landing-page .public-navbar,
  .landing-page .app-navbar{
    position:sticky!important;
    top:0;
    z-index:1060;
  }
}
.brand-logo-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:116px;
  min-height:52px;
  padding:.35rem .7rem;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.18);
}
.brand-logo{width:108px;height:auto;filter:drop-shadow(0 4px 12px rgba(0,0,0,.28));}
.public-navbar .navbar-brand,
.app-navbar .navbar-brand{
  gap:.95rem!important;
}
.public-navbar .navbar-brand .brand-title,
.app-navbar .navbar-brand .brand-title{
  display:flex;
  flex-direction:column;
  gap:.18rem;
  min-width:0;
}
.brand-kicker{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  width:max-content;
  font-size:.72rem;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold-2);
  padding:.38rem .6rem;
  border-radius:999px;
  border:1px solid rgba(239,203,133,.24);
  background:rgba(239,203,133,.1);
}
.brand-mainline{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:wrap;
}
.brand-mainline strong,
.public-navbar .navbar-brand strong,
.app-navbar .navbar-brand strong{
  font-size:1.08rem;
  font-weight:800;
  color:#f5f8fd;
  letter-spacing:.01em;
}
.brand-subline{
  color:var(--muted-soft);
  font-size:.82rem;
}
.public-navbar .navbar-nav,
.app-navbar .navbar-nav{
  gap:.4rem!important;
}
.public-navbar .nav-link,
.app-navbar .nav-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:44px;
  padding:.6rem .9rem!important;
  border-radius:14px;
  color:var(--muted-soft)!important;
  font-weight:700;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus,
.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus{
  color:#fff!important;
  background:rgba(255,255,255,.06);
}
.public-navbar .nav-link.active,
.app-navbar .nav-link.active{
  color:#fff!important;
  background:linear-gradient(180deg, rgba(239,203,133,.15), rgba(239,203,133,.08));
  border:1px solid rgba(239,203,133,.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.public-navbar .btn-outline-light,
.public-navbar .btn-gold{
  min-height:42px;
  border-radius:14px;
  padding:.58rem 1rem;
  font-weight:800;
}
.nav-user-avatar{
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}
.app-dropdown,
.app-lang-menu,
.module-subnav-menu{
  border-radius:18px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  backdrop-filter:blur(14px);
  box-shadow:0 20px 40px rgba(0,0,0,.28)!important;
}
.module-subnav{
  top:var(--app-navbar-height,84px);
  border-bottom:1px solid rgba(255,255,255,.07);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.module-subnav-bst,
.module-subnav-admin{
  background:linear-gradient(135deg, rgba(9,20,35,.95) 0%, rgba(14,30,54,.93) 52%, rgba(18,38,64,.92) 100%);
}
.module-subnav-admin{
  background:linear-gradient(135deg, rgba(40,14,18,.95) 0%, rgba(63,18,22,.93) 52%, rgba(88,24,26,.9) 100%);
}
.module-subnav>.container-fluid{
  min-height:76px;
}
.module-subnav-title{
  position:relative;
  padding-left:1rem;
  color:#f0f4fb;
  font-size:1rem;
}
.module-subnav-title:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--gold-2), rgba(239,203,133,.25));
  box-shadow:0 0 18px rgba(239,203,133,.22);
}
.module-subnav-toggle{
  min-height:46px;
  padding:.65rem 1rem;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.module-subnav-toggle:hover,
.module-subnav-toggle:focus{
  background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
}
.module-subnav-toggle.active{
  background:linear-gradient(180deg, rgba(239,203,133,.18), rgba(239,203,133,.08));
  border-color:rgba(239,203,133,.28);
  color:#fff4d7!important;
}
.module-subnav-menu .dropdown-item{
  min-height:42px;
  display:flex;
  align-items:center;
  font-weight:700;
}
.site-footer{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(8,17,30,.96) 0%, rgba(12,25,44,.94) 55%, rgba(16,34,58,.92) 100%)!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 -10px 28px rgba(0,0,0,.18);
}
.site-footer:before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(640px 200px at 50% 0%, rgba(239,203,133,.12), transparent 58%);
  pointer-events:none;
}
.site-footer .container-fluid{position:relative;z-index:1;}
.site-footer .site-footer-inner{
  padding:1.15rem 0 1.25rem;
  gap:.55rem;
}
.site-footer .footer-copyright-line{
  font-weight:700;
  color:#e8eef7;
}
.site-footer .footer-madeby{
  color:var(--muted-soft);
  font-size:.92rem;
}
.site-footer .footer-madeby i{color:var(--gold-2);filter:drop-shadow(0 0 10px rgba(239,203,133,.24));}
@media (max-width: 991.98px){
  .public-navbar .container-fluid,
  .app-navbar .container-fluid{min-height:74px;}
  .module-subnav{top:var(--app-navbar-height,74px);}
  .brand-logo-wrap{min-width:100px;}
  .brand-logo{width:94px;}
  .brand-mainline strong{font-size:1rem;}
  .brand-subline{font-size:.78rem;}
}


/* -------------------------------------------------------------------------- */
/* Global premium system-wide refresh                                          */
/* -------------------------------------------------------------------------- */
:root{
    --premium-topbar: linear-gradient(180deg, rgba(15,32,54,.94) 0%, rgba(9,18,33,.92) 100%);
    --premium-subnav: linear-gradient(180deg, rgba(22, 41, 66, .88) 0%, rgba(12, 24, 40, .92) 100%);
    --premium-footer: linear-gradient(180deg, rgba(17,35,58,.92) 0%, rgba(10,20,34,.96) 100%);
    --premium-ring: rgba(240,202,134,.22);
}

body{
    background-color: #091321;
}

main.container-fluid,
.app-shell > .container-fluid,
.page-shell{
    position: relative;
    z-index: 1;
}

.hero-panel,
.metric-card,
.app-card,
.sub-card,
.chart-card,
.ranking-card,
.accordion-item,
.login-panel,
.module-summary-card,
.profile-section-card,
.table-shell,
.content-shell{
    position: relative;
    overflow: hidden;
}
.hero-panel::before,
.metric-card::before,
.app-card::before,
.sub-card::before,
.chart-card::before,
.ranking-card::before,
.login-panel::before,
.module-summary-card::before,
.profile-section-card::before,
.table-shell::before,
.content-shell::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 26%, transparent 72%, rgba(240,202,134,.05));
}

.app-navbar{
    background: var(--premium-topbar);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.public-navbar .navbar-brand,
.app-navbar .navbar-brand{
    padding: .45rem 0;
}
.brand-logo-wrap{
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.06) 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.18);
}
.brand-logo{
    max-width: 40px;
    max-height: 40px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.28));
}
.brand-title{display:flex;flex-direction:column;line-height:1.05;}
.brand-kicker{
    display:inline-flex;align-items:center;gap:.45rem;
    color: var(--gold-2);
    font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
    margin-bottom:.25rem;
}
.brand-mainline{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
.brand-mainline strong{
    font-size: clamp(1.05rem, .96rem + .4vw, 1.35rem);
    color:#fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.brand-word-wos,.brand-word-rest{display:inline;}
.brand-title-beta-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.22rem .5rem;
    border-radius:999px;
    font-size:.68rem;
    font-weight:800;
    line-height:1;
    letter-spacing:.01em;
    color:#111827;
    background:linear-gradient(135deg, #efcb85 0%, #b58134 100%);
    border:1px solid rgba(239,203,133,.78);
    box-shadow:0 8px 18px rgba(181,129,52,.24);
    white-space:nowrap;
}
.brand-subline{
    margin-top:.22rem;
    color: rgba(230,238,248,.72);
    font-size:.82rem;
}

.navbar-dark .navbar-nav .nav-link,
.module-subnav .nav-link,
.module-subnav .dropdown-item{
    border-radius: 14px;
    font-weight: 600;
}
.navbar-dark .navbar-nav .nav-link{
    padding:.7rem .9rem;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active{
    background: rgba(255,255,255,.07);
    color:#fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.app-dropdown,
.app-lang-menu,
.module-subnav-menu{
    background: linear-gradient(180deg, rgba(18,34,55,.96) 0%, rgba(11,22,37,.98) 100%);
    
    border-radius: 18px;
    padding: .5rem;
}
.app-dropdown .dropdown-item,
.app-lang-menu .dropdown-item,
.module-subnav-menu .dropdown-item{
    color: rgba(239,243,250,.92);
    border-radius: 12px;
    padding: .65rem .8rem;
}
.app-dropdown .dropdown-item:hover,
.app-lang-menu .dropdown-item:hover,
.module-subnav-menu .dropdown-item:hover,
.app-dropdown .dropdown-item.active,
.module-subnav-menu .dropdown-item.active{
    background: rgba(255,255,255,.08);
    color:#fff;
}
.nav-user-avatar{
    width: 30px;
    height: 30px;
    object-fit: cover;
    border:1px solid rgba(255,255,255,.16);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.module-subnav{
    background: var(--premium-subnav);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 24px rgba(0,0,0,.14);
}
.module-subnav .container-fluid{
    min-height: 64px;
}
.module-subnav-title strong{
    display:inline-flex;align-items:center;gap:.6rem;
    color:#fff;
    font-size:.95rem;
    letter-spacing:.02em;
}
.module-subnav-toggle{
    display:inline-flex;align-items:center;gap:.45rem;
    padding:.7rem .95rem !important;
    color: rgba(239,243,250,.85) !important;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.module-subnav-toggle:hover,
.module-subnav-toggle.active{
    color:#fff !important;
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.12);
}
.module-subnav-dropdown .dropdown-menu{min-width: 250px;}

.site-footer{
    margin-top: auto;
    background: transparent;
}
.site-footer .container-fluid{padding-left:1rem;padding-right:1rem;}
.site-footer-inner{
    
    
    
    padding: 1rem 1.2rem 1.1rem;
    
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 1rem;
}
.footer-copyright-line,
.footer-madeby{
    display:flex;
    align-items:center;
    gap:.6rem;
    color: rgba(233,239,248,.76);
    flex-wrap:wrap;
}
.footer-madeby .bi-heart-fill{color:#ff7a8b;}
.footer-version-link{
    display:inline-flex;align-items:center;gap:.45rem;
    padding:.4rem .7rem;border-radius:999px;
    background: rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
}
.footer-version-link:hover{background: rgba(255,255,255,.08);}

.app-table-wrap,
.dataTables_wrapper,
.table-responsive{
    border-radius: 20px;
}
.app-table tbody tr{
    transition: background .16s ease;
}
.app-table tbody tr:hover{
    background: rgba(255,255,255,.035);
}
.app-table tbody tr.is-clickable{cursor:pointer;}

.section-title-icon{
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color: var(--gold-2);
    background: rgba(240,202,134,.10);
    border: 1px solid rgba(240,202,134,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.badge,
.app-badge{
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

@media (max-width: 991.98px){
    .brand-logo-wrap{width:54px;height:54px;border-radius:18px;}
    .brand-logo{max-width:34px;max-height:34px;}
    .brand-subline{display:none;}
    .module-subnav .container-fluid{min-height:auto;padding-top:.55rem;padding-bottom:.55rem;}
    .site-footer-inner{flex-direction:column;align-items:flex-start;}
}


/* v76 targeted adjustments */
.public-navbar .navbar-brand,
.app-navbar .navbar-brand{
  flex-wrap:nowrap;
}
.brand-logo-wrap{
  position:relative;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.brand-logo{
  width:110px;
  max-width:110px;
  max-height:none;
  height:auto;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.28));
}
.brand-kicker{display:none !important;}
.module-subnav-title{display:flex;align-items:center;}
.module-subnav-badges{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;}
.module-subnav-chip{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.52rem .95rem;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.01em;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.14);
}
.module-subnav-chip-alliance{
  color:#fff7e6;
  background:linear-gradient(135deg, rgba(240,202,134,.18), rgba(255,255,255,.06));
}
.module-subnav-chip-server{
  color:#dfe9f7;
  background:linear-gradient(135deg, rgba(111,170,255,.18), rgba(255,255,255,.05));
  min-width:68px;
  justify-content:center;
}
@media (max-width: 991.98px){
  .brand-logo{width:96px;max-width:96px;}
}


/* v84 fixes */
.module-subnav-admin,
.module-subnav-admin .module-subnav-menu{
  background:linear-gradient(135deg, rgba(40,14,18,.95) 0%, rgba(63,18,22,.93) 52%, rgba(88,24,26,.9) 100%)!important;
}
.module-subnav-admin .module-subnav-toggle{
  background:rgba(255,255,255,.05)!important;
}
.module-subnav-admin .module-subnav-toggle:hover,
.module-subnav-admin .module-subnav-toggle.active,
.module-subnav-admin .module-subnav-menu .dropdown-item:hover,
.module-subnav-admin .module-subnav-menu .dropdown-item.active{
  background:rgba(255,255,255,.10)!important;
  color:#fff!important;
}
.admin-action-menu{min-width:220px}
.admin-action-menu .dropdown-item,
.admin-action-menu button.dropdown-item{
  min-height:42px;
  display:flex;
  align-items:center;
}


/* v85 refinements */
.action-dropdown-toggle{min-width:120px;border-radius:10px;font-weight:600;}
.action-dropdown-menu{min-width:220px;border:1px solid rgba(255,255,255,.12);box-shadow:0 14px 34px rgba(0,0,0,.28);border-radius:14px;padding:.45rem;}
.action-dropdown-menu .dropdown-item,
.action-dropdown-menu button.dropdown-item{border-radius:10px;min-height:42px;display:flex;align-items:center;}
.module-subnav-admin{background:linear-gradient(180deg, rgba(86,24,24,.96) 0%, rgba(68,16,16,.94) 100%)!important;}
.module-subnav-admin .module-subnav-menu{background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.98) 100%)!important;}
.module-subnav-admin .module-subnav-toggle{border-color:rgba(255,255,255,.16)!important;}
.profile-actions-two-cols .profile-action-group{margin-bottom:0;}
.profile-inline-btn{width:auto;display:inline-flex;align-items:center;justify-content:center;}
#profileActionsCard .d-grid .profile-inline-btn,#profileActionsCard .d-grid .btn.profile-inline-btn{width:auto;}
@media (max-width: 767.98px){#profileActionsCard .profile-inline-btn{width:100%;}}
.landing-metrics{position:relative;}
.premium-stat-card{height:100%;padding:1.15rem 1.15rem;border-radius:20px;background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 36px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:.35rem;}
.premium-stat-card strong{font-size:1.1rem;color:#fff;}
.premium-stat-card small{color:var(--muted-soft);font-size:.92rem;}
.premium-stat-label{display:inline-flex;align-self:flex-start;padding:.28rem .55rem;border-radius:999px;background:rgba(240,202,134,.14);border:1px solid rgba(240,202,134,.22);color:#f0ca86;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;}
.premium-flow-card{position:relative;overflow:hidden;}
.premium-flow-step{font-size:2rem;font-weight:800;line-height:1;color:rgba(240,202,134,.85);margin-bottom:1rem;}
.landing-faq-shell{padding:1.1rem;border-radius:24px;background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.08);box-shadow:0 22px 42px rgba(0,0,0,.22);}
.landing-faq .accordion-item{background:rgba(16,22,33,.68)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:18px!important;overflow:hidden;margin-bottom:.8rem;}
.landing-faq .accordion-button{background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));color:#fff;font-weight:700;box-shadow:none!important;padding:1rem 1.15rem;}
.landing-faq .accordion-button:not(.collapsed){background:linear-gradient(180deg, rgba(240,202,134,.13), rgba(255,255,255,.03));color:#fff;}
.landing-faq .accordion-button::after{filter:brightness(1.4);}
.landing-faq .accordion-body{padding:1rem 1.15rem 1.15rem;}


/* v86 overrides */
.action-dropdown-toggle{
  min-width:120px;
  border-radius:12px;
  font-weight:600;
  padding:.6rem .9rem;
  border:1px solid rgba(255,255,255,.14)!important;
  background:rgba(255,255,255,.04)!important;
  color:#eef3fa!important;
  box-shadow:none!important;
}
.action-dropdown-toggle:hover,
.action-dropdown-toggle:focus,
.action-dropdown-toggle.show{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
}
.action-dropdown-menu,
.admin-action-menu{
  min-width:220px;
  background:linear-gradient(180deg, rgba(13,44,86,.96) 0%, rgba(10,35,68,.98) 100%)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  padding:.45rem!important;
  border-radius:14px!important;
  box-shadow:0 18px 40px rgba(0,0,0,.28)!important;
}
.action-dropdown-menu .dropdown-item,
.action-dropdown-menu button.dropdown-item,
.admin-action-menu .dropdown-item,
.admin-action-menu button.dropdown-item{
  border-radius:10px;
  padding:.6rem .8rem;
  min-height:42px;
  display:flex;
  align-items:center;
  font-weight:600;
  color:#eef3fa!important;
  background:transparent!important;
}
.action-dropdown-menu .dropdown-item:hover,
.action-dropdown-menu .dropdown-item:focus,
.admin-action-menu .dropdown-item:hover,
.admin-action-menu .dropdown-item:focus{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}
.action-dropdown-menu .dropdown-item.text-success,
.admin-action-menu .dropdown-item.text-success{color:#7ce7a6!important;}
.action-dropdown-menu .dropdown-item.text-danger,
.admin-action-menu .dropdown-item.text-danger{color:#ff8f8f!important;}
.module-subnav.module-subnav-admin,
.module-subnav.module-subnav-admin .module-subnav-menu{
  background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.98) 100%)!important;
}
.module-subnav.module-subnav-admin .module-subnav-toggle{
  border-color:rgba(255,255,255,.16)!important;
}
.btn-copy-code{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;}
.profile-action-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:start;}
.profile-grid-equal{align-items:stretch;}
.profile-grid-equal>[class*="col-"]{display:flex;flex-direction:column;min-width:0;}
.profile-grid-equal .app-card{min-width:0;}
#profileActionsCard .btn,.profile-resource-card .btn{max-width:100%;white-space:normal;}
.profile-resource-actions,.profile-actions-two-cols{min-width:0;}
.profile-action-group,.profile-resource-card{min-width:0;}
@media (max-width: 767.98px){.profile-action-grid-two{grid-template-columns:1fr;}}

.beta-tester-badge{background:linear-gradient(180deg, #f0ca86 0%, #d9b15b 100%)!important;color:#111!important;border:1px solid rgba(240,202,134,.35)!important;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.18);}
.admin-action-menu{background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.98) 100%)!important;}
.action-dropdown-toggle,.module-subnav-toggle{letter-spacing:.01em;}
.action-dropdown-menu .dropdown-item,.action-dropdown-menu button.dropdown-item,.admin-action-menu .dropdown-item,.admin-action-menu button.dropdown-item{white-space:nowrap;}


/* v88 admin actions + tooltips */
.system-settings-icon{height:3.75rem;font-size:1.55rem;}
.beta-tester-badge{cursor:help;display:inline-flex;align-items:center;justify-content:center;min-width:1.8rem;}
.admin-action-toggle{
  min-width:120px;
  border-radius:12px;
  font-weight:600;
  padding:.6rem .9rem;
  border:1px solid rgba(255,255,255,.12)!important;
  background:linear-gradient(180deg, rgba(86,24,24,.96) 0%, rgba(68,16,16,.98) 100%)!important;
  color:#fff!important;
  box-shadow:none!important;
}
.admin-action-toggle:hover,
.admin-action-toggle:focus,
.admin-action-toggle.show{
  background:linear-gradient(180deg, rgba(110,30,30,.98) 0%, rgba(82,20,20,.98) 100%)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.dropdown-menu.admin-action-menu.action-dropdown-menu,
.admin-action-menu.action-dropdown-menu{
  background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.98) 100%)!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
.dropdown-menu.admin-action-menu.action-dropdown-menu .dropdown-item,
.dropdown-menu.admin-action-menu.action-dropdown-menu button.dropdown-item{
  color:#fff!important;
}
.dropdown-menu.admin-action-menu.action-dropdown-menu .dropdown-item:hover,
.dropdown-menu.admin-action-menu.action-dropdown-menu .dropdown-item:focus,
.dropdown-menu.admin-action-menu.action-dropdown-menu button.dropdown-item:hover,
.dropdown-menu.admin-action-menu.action-dropdown-menu button.dropdown-item:focus{
  background:rgba(255,255,255,.08)!important;
}

.module-subnav-admin .action-dropdown-toggle.admin-action-toggle{background:linear-gradient(180deg, rgba(86,24,24,.96) 0%, rgba(68,16,16,.98) 100%)!important;border-color:rgba(255,255,255,.14)!important;color:#fff!important;}
.module-subnav-admin .action-dropdown-toggle.admin-action-toggle:hover,
.module-subnav-admin .action-dropdown-toggle.admin-action-toggle:focus,
.module-subnav-admin .action-dropdown-toggle.admin-action-toggle.show{background:linear-gradient(180deg, rgba(110,30,30,.98) 0%, rgba(82,20,20,.98) 100%)!important;color:#fff!important;}
.module-subnav-admin .dropdown-menu.admin-action-menu.action-dropdown-menu,
.module-subnav-admin .admin-action-menu.action-dropdown-menu{background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.98) 100%)!important;}


.system-settings-icon{height:3.75rem;font-size:1.85rem;}
.admin-action-toggle{background:linear-gradient(180deg, rgba(86,24,24,.96) 0%, rgba(68,16,16,.98) 100%)!important;border-color:rgba(255,255,255,.14)!important;color:#fff!important;}
.admin-action-toggle:hover,
.admin-action-toggle:focus,
.admin-action-toggle.show{background:linear-gradient(180deg, rgba(110,30,30,.98) 0%, rgba(82,20,20,.98) 100%)!important;color:#fff!important;}
.dropdown-menu.admin-action-menu.action-dropdown-menu,
.admin-action-menu.action-dropdown-menu{background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.98) 100%)!important;border-color:rgba(255,255,255,.14)!important;}
.dropdown-menu.admin-action-menu.action-dropdown-menu .dropdown-item,
.dropdown-menu.admin-action-menu.action-dropdown-menu button.dropdown-item{color:#fff!important;}
.dropdown-menu.admin-action-menu.action-dropdown-menu .dropdown-item:hover,
.dropdown-menu.admin-action-menu.action-dropdown-menu .dropdown-item:focus,
.dropdown-menu.admin-action-menu.action-dropdown-menu button.dropdown-item:hover,
.dropdown-menu.admin-action-menu.action-dropdown-menu button.dropdown-item:focus{background:rgba(255,255,255,.08)!important;color:#fff!important;}
.dropdown-menu.nav-color-blue.action-dropdown-menu,
.nav-color-blue.action-dropdown-menu{background:linear-gradient(180deg, rgba(18,53,98,.98) 0%, rgba(13,39,74,.98) 100%)!important;border-color:rgba(255,255,255,.14)!important;}
.dropdown-menu.nav-color-blue.action-dropdown-menu .dropdown-item,
.dropdown-menu.nav-color-blue.action-dropdown-menu button.dropdown-item{color:#fff!important;}
.dropdown-menu.nav-color-blue.action-dropdown-menu .dropdown-item:hover,
.dropdown-menu.nav-color-blue.action-dropdown-menu .dropdown-item:focus,
.dropdown-menu.nav-color-blue.action-dropdown-menu button.dropdown-item:hover,
.dropdown-menu.nav-color-blue.action-dropdown-menu button.dropdown-item:focus{background:rgba(255,255,255,.08)!important;color:#fff!important;}


.system-settings-icon{width:auto!important;}


/* v93 role badges aligned with member pills */
.role-badge{display:inline-flex;align-items:center;gap:.48rem;padding:.25rem .5rem;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:.83rem;font-weight:700;line-height:1;color:rgba(255,255,255,.9);white-space:nowrap;}
.role-badge__icon{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border-radius:999px;background:rgba(255,255,255,.08);font-size:.82rem;}
.role-badge__icon i{font-size:.82rem;opacity:.98;}
.role-badge__label{position:relative;top:0;}
.role-badge--superadmin{background:rgba(198,144,56,.16);border-color:rgba(230,185,105,.34);color:#f2d08a;}
.role-badge--superadmin .role-badge__icon{background:rgba(230,185,105,.18);color:#f2d08a;}
.role-badge--owner{background:rgba(90,120,168,.18);border-color:rgba(126,156,207,.3);color:#cddbf7;}
.role-badge--owner .role-badge__icon{background:rgba(126,156,207,.16);color:#cddbf7;}
.role-badge--admin{background:rgba(95,109,143,.16);border-color:rgba(143,159,198,.28);color:#d5def4;}
.role-badge--admin .role-badge__icon{background:rgba(143,159,198,.14);color:#d5def4;}
.role-badge--member{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.09);color:rgba(255,255,255,.86);}
.role-badge--member .role-badge__icon{background:rgba(255,255,255,.08);color:rgba(255,255,255,.86);}
.beta-tester-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.9rem;height:1.9rem;padding:0 .45rem;border-radius:999px;background:linear-gradient(180deg,#f4d690 0%,#d7af55 100%)!important;color:#111!important;border:1px solid rgba(240,202,134,.42)!important;font-weight:700;font-size:1rem;box-shadow:0 10px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);vertical-align:middle;line-height:1;padding-top:0;padding-bottom:0;position:relative;text-align:center;white-space:nowrap;}
.creator-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.9rem;height:1.9rem;padding:0 .48rem;border-radius:999px;background:linear-gradient(180deg,#b9d6ff 0%,#7ca7e6 100%)!important;color:#0d1a2b!important;border:1px solid rgba(157,196,255,.44)!important;font-weight:700;font-size:1.22rem;box-shadow:0 10px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.24);cursor:help;vertical-align:middle;line-height:1;padding-top:0;padding-bottom:0;position:relative;text-align:center;white-space:nowrap;}
.beta-tester-badge, .creator-badge{font-variant-ligatures:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
.news-table-card{overflow:visible;}
.news-table-card .table-responsive,
.news-table-card .dataTables_wrapper,
.news-table-card .dt-container,
.news-table-card .dropdown{overflow:visible;}
.news-table-responsive{overflow-x:auto;overflow-y:visible;}
.app-card.overflow-hidden{overflow:visible;}
.app-card.overflow-hidden > .table-responsive,
.app-card.overflow-hidden > .app-card-header + .table-responsive,
.app-card.overflow-hidden .dataTables_wrapper,
.app-card.overflow-hidden .dt-container,
.app-card.overflow-hidden .dropdown{overflow:visible;}
.kpi-pill .role-badge,.dropdown-item-text .role-badge{vertical-align:middle;}


.profile-menu-dropdown{min-width:18rem;}
.profile-role-line{display:flex;align-items:center;white-space:normal;color:rgba(255,255,255,.92)!important;padding-top:.15rem;padding-bottom:.15rem;}
.profile-role-value{display:inline-flex;align-items:center;gap:.35rem;min-width:0;flex-wrap:wrap;}
.profile-role-value .role-badge{font-size:.83rem;padding:.25rem .5rem;gap:.48rem;}
.profile-role-value .role-badge__icon{width:1.35rem;height:1.35rem;font-size:.82rem;}
.profile-role-value .role-badge__icon i{font-size:.82rem;}
.profile-role-value .badge{font-size:1rem;}
.profile-menu-dropdown .dropdown-item,.profile-menu-dropdown .dropdown-item-text{white-space:nowrap;}
@media (max-width: 575.98px){
  .profile-menu-dropdown{min-width:min(21rem, calc(100vw - 1.5rem));}
}

.profile-menu-role,
.profile-menu-dropdown .dropdown-item {
  white-space: nowrap;
}


/* Disabled/coming soon menu state */
a.js-coming-soon,
.module-subnav-toggle.is-disabled-menu,
.module-subnav-menu .dropdown-item.js-coming-soon{
  opacity:.62;
}

a.js-coming-soon,
.module-subnav-menu .dropdown-item.js-coming-soon{
  filter:saturate(.72);
  cursor:not-allowed;
}

a.js-coming-soon i,
.module-subnav-toggle.is-disabled-menu i,
.module-subnav-menu .dropdown-item.js-coming-soon i{
  opacity:.72;
}

a.js-coming-soon:hover,
a.js-coming-soon:focus,
.module-subnav-menu .dropdown-item.js-coming-soon:hover,
.module-subnav-menu .dropdown-item.js-coming-soon:focus{
  opacity:.88;
}

.module-subnav-toggle.is-disabled-menu{
  color:rgba(223,231,241,.68)!important;
  filter:saturate(.72);
}

.module-subnav-toggle.is-disabled-menu:hover,
.module-subnav-toggle.is-disabled-menu:focus{
  color:#eef3fa!important;
  background:rgba(255,255,255,.04)!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

.module-subnav-toggle.is-disabled-menu::after{
  opacity:.55;
}


/* v115 — branding + footer link simplification */
.footer-version-link{
    display:inline;
    padding:0;
    border:0;
    background:transparent;
    border-radius:0;
    color:rgba(233,239,248,.76);
    font-weight:400;
    text-decoration:none;
}
.footer-version-link:hover{
    background:transparent;
    color:#fff;
    text-decoration:underline;
    text-underline-offset:2px;
}


/* Alliance dashboard + news */
.dashboard-kpi-card{display:flex;flex-direction:column;gap:.35rem;justify-content:center;min-height:132px}
.dashboard-kpi-label{color:var(--muted-soft);font-size:.92rem;font-weight:600}
.dashboard-kpi-value{font-size:2rem;line-height:1;color:#fff}
.news-card{display:flex;flex-direction:column;padding:1rem;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));min-height:100%}
.news-card .text-secondary.small{overflow-wrap:anywhere;word-break:break-word;}
.news-view-card{line-height:1.7}
.news-content-body{white-space:normal;color:#eef3fa}
.empty-state-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;min-height:220px;border:1px dashed rgba(255,255,255,.12);border-radius:18px;color:var(--muted-soft)}
.quick-list .list-group-item{padding-left:0;padding-right:0;border-color:rgba(255,255,255,.08)}
.activity-timeline{display:flex;flex-direction:column;gap:1rem}
.activity-item{display:flex;align-items:flex-start;gap:.9rem}
.activity-dot{width:12px;height:12px;border-radius:999px;background:var(--gold-2);box-shadow:0 0 0 6px rgba(239,203,133,.12);margin-top:.35rem;flex:0 0 auto}
.quick-link-card{display:flex;align-items:center;gap:.8rem;padding:1rem 1.1rem;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#fff;text-decoration:none;font-weight:700;min-height:74px}
.quick-link-card:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:#fff}
.quick-link-card i{font-size:1.15rem;color:var(--gold-2)}

.alliance-news-carousel{padding-bottom:3rem;position:relative;overflow:visible;-webkit-user-select:none;user-select:none;}
.alliance-news-carousel .carousel-inner{overflow:visible;}
.news-card-carousel{min-height:280px;display:flex;flex-direction:column;padding:1.35rem 1.4rem;width:100%;}
.alliance-news-track{overflow:hidden;cursor:grab;touch-action:pan-y;-webkit-overflow-scrolling:touch;}
.alliance-news-track.is-native-scroll{overflow-x:auto;overflow-y:hidden;cursor:auto;touch-action:pan-x pan-y;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;padding-bottom:.15rem;}
.alliance-news-track.is-native-scroll::-webkit-scrollbar{display:none;}
.alliance-news-carousel.is-dragging .alliance-news-track{cursor:grabbing;}
.alliance-news-carousel.is-dragging, .alliance-news-carousel.is-dragging *{-webkit-user-select:none;user-select:none;}
#allianceNewsTrack{display:flex;flex-wrap:nowrap;will-change:transform;}
#allianceNewsTrack.is-native-scroll-row{will-change:auto;transform:none !important;transition:none !important;}
#allianceNewsTrack.is-native-scroll-row > [class*="col-"]{scroll-snap-align:start;}
#allianceNewsTrack > [class*="col-"]{flex:0 0 100%;max-width:100%;display:flex;align-items:stretch;}
#allianceNewsTrack > [class*="col-"] > .news-card-carousel,
#allianceNewsTrack > [class*="col-"] > .news-card-locale-card{width:100%;}
.news-card-locale-card,.news-card-locale-inner,.news-card-locale-face{height:100%;}
@media (min-width: 768px){
  #allianceNewsTrack > [class*="col-"]{flex:0 0 50%;max-width:50%;display:flex;}
}
@media (min-width: 1200px){
  #allianceNewsTrack > [class*="col-"]{flex:0 0 33.333333%;max-width:33.333333%;display:flex;}
}
.alliance-news-carousel .carousel-indicators{position:absolute;left:50%;bottom:1.15rem;transform:translateX(-50%);margin:0;gap:.55rem;align-items:center;justify-content:center;}
.alliance-news-carousel .carousel-indicators button{width:10px;height:10px;min-width:10px;min-height:10px;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.28);opacity:1;margin:0;appearance:none;-webkit-appearance:none;display:inline-block;flex:0 0 10px;}
.alliance-news-carousel .carousel-indicators .active{background:var(--gold,#efcb85);box-shadow:0 0 0 4px rgba(239,203,133,.16);}

.news-card-locale-card{position:relative;perspective:1400px;overflow:visible;transform-style:preserve-3d;}
.news-card-locale-inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr);width:100%;height:100%;min-height:100%;transform-style:preserve-3d;transition:transform .56s cubic-bezier(.22,.61,.36,1);will-change:transform;flex:1 1 auto;}
.news-card-locale-card.is-flipped .news-card-locale-inner{transform:rotateY(180deg);}
.news-card-locale-face{grid-area:1 / 1;position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:preserve-3d;pointer-events:none;overflow:hidden;}
.news-card-locale-face.is-front{transform:rotateY(0deg);pointer-events:auto;}
.news-card-locale-face.is-back{transform:rotateY(180deg);}
.news-card-locale-card.is-flipped .news-card-locale-face.is-front{pointer-events:none;}
.news-card-locale-card.is-flipped .news-card-locale-face.is-back{pointer-events:auto;}
.news-card-locale-card:not(.has-secondary-language) .news-card-locale-face.is-back{display:none;}
.alliance-news-language-badge{appearance:none;-webkit-appearance:none;cursor:default;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);color:rgba(255,255,255,.88);box-shadow:none;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;}
button.alliance-news-language-badge{cursor:pointer;}
button.alliance-news-language-badge:hover{background:rgba(239,203,133,.16);border-color:rgba(239,203,133,.3);color:#f5dfab;}
button.alliance-news-language-badge:hover .role-badge__icon{background:rgba(239,203,133,.18);color:#f5dfab;}
.alliance-news-language-badge .role-badge__icon{background:rgba(255,255,255,.08);}
.alliance-news-language-badge.is-active{background:rgba(239,203,133,.16);border-color:rgba(239,203,133,.3);color:#f5dfab;}
.alliance-news-language-badge.is-active .role-badge__icon{background:rgba(239,203,133,.18);color:#f5dfab;}
.alliance-news-type-badge{display:inline-flex;background:rgba(91,168,255,.14);border:1px solid rgba(91,168,255,.25);color:#dcebff;}
.news-view-card .lead{color:#fff!important;}
.rich-editor-wrap{border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(7,20,38,.72);overflow:hidden;}
.rich-editor-toolbar{display:flex;flex-wrap:wrap;gap:.45rem;padding:.85rem;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);}
.rich-editor-toolbar .btn{min-width:40px;padding:.45rem .65rem;}
.rich-editor-surface{min-height:280px;padding:1rem 1rem 1.1rem;color:#eef3fa;outline:none;}
.rich-editor-surface:empty:before{content:attr(data-placeholder);color:rgba(255,255,255,.35);}
.rich-editor-surface p:last-child{margin-bottom:0;}
.rich-editor-surface iframe,.rich-editor-output iframe{width:100%;min-height:320px;border:0;border-radius:16px;background:#081523;margin:1rem 0;}
.rich-editor-output{color:#eef3fa;}
.rich-editor-output p,.rich-editor-output ul,.rich-editor-output ol,.rich-editor-output blockquote{margin-bottom:1rem;}
.rich-editor-output a{color:#9ed0ff;}
.rich-editor-output blockquote{padding:1rem 1.2rem;border-left:4px solid rgba(239,203,133,.45);background:rgba(255,255,255,.04);border-radius:0 14px 14px 0;}
@media (max-width: 991.98px){
  .alliance-news-carousel{padding-bottom:3.25rem;}
  .alliance-news-carousel .carousel-indicators{bottom:.55rem;}
  .news-card-carousel{min-height:100%;height:100%;padding-bottom:1.45rem;}
}
@media (min-width: 768px) and (max-width: 991.98px){
  .news-card-carousel .btn.btn-sm{width:50%;justify-content:center;}
}
@media (max-width: 767.98px){
  .news-card-carousel{min-height:auto;padding:1.1rem 1.1rem 1.55rem;}
  .news-card-carousel h3.h4{font-size:1.08rem;line-height:1.35;}
  .news-card-carousel .btn.btn-sm{width:100%;justify-content:center;}
  .news-card-carousel .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mt-auto{align-items:stretch !important;row-gap:.7rem !important;}
  .news-card-carousel .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mt-auto .btn.btn-sm{margin-top:.2rem;}
  .news-card-carousel .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mt-auto > *{width:100%;}
  .news-card-author-meta .beta-tester-badge,
  .news-card-author-meta .creator-badge,
  .news-card-author-meta .primary-account-badge,
  .news-card-author-meta .secondary-account-badge{display:none !important;}
  .alliance-news-carousel .carousel-indicators{bottom:.55rem;gap:.5rem;}
  .rich-editor-surface{min-height:220px;}
  .rich-editor-surface iframe,.rich-editor-output iframe{min-height:220px;}
}


.alliance-news-carousel .carousel-item{padding:.1rem;}
.news-list-link{color:#fff;text-decoration:none;}
.news-list-link:hover{color:#fff;text-decoration:underline;text-underline-offset:2px;}
.news-editor-image-wrap{display:block;margin:1rem 0;cursor:move;}
.news-editor-image-wrap img{display:block;max-width:100%;height:auto;border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.22);}
.news-editor-image-wrap.is-left img{margin-left:0;margin-right:auto;}
.news-editor-image-wrap.is-centered img{margin-left:auto;margin-right:auto;}
.news-editor-image-wrap.is-right img{margin-left:auto;margin-right:0;}
.news-editor-image-wrap.is-selected img{outline:2px solid rgba(239,203,133,.85);outline-offset:4px;}
.rich-editor-output .news-editor-image-wrap{cursor:default;}
.rich-editor-output img{max-width:100%;height:auto;border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.22);}
.rich-editor-output .news-editor-image-wrap.is-left img{margin-left:0;margin-right:auto;}
.rich-editor-output .news-editor-image-wrap.is-centered img{margin-left:auto;margin-right:auto;}
.rich-editor-output .news-editor-image-wrap.is-right img{margin-left:auto;margin-right:0;}
.news-lang-tabs{display:flex;flex-wrap:wrap;gap:.5rem;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:0;margin-bottom:1.25rem;}
.news-lang-tabs .nav-item{margin:0;}
.news-lang-tabs .nav-link{position:relative;display:inline-flex;align-items:center;gap:.35rem;border:1px solid rgba(255,255,255,.08);border-bottom-color:transparent;border-radius:14px 14px 0 0;color:#cdd8eb;background:rgba(255,255,255,.03);padding:.78rem 1.1rem .72rem;font-weight:700;line-height:1.1;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;}
.news-lang-tabs .nav-link:hover,.news-lang-tabs .nav-link:focus{color:#fff;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14);border-bottom-color:transparent;}
.news-lang-tabs .nav-link.active{background:linear-gradient(180deg, rgba(239,203,133,.2) 0%, rgba(239,203,133,.1) 100%);border-color:rgba(239,203,133,.34);border-bottom-color:rgba(10,22,43,.92);color:#fff;transform:translateY(1px);}
.news-lang-tabs .nav-link .news-lang-tabs__meta{color:#94a8c8;font-weight:600;font-size:.86em;}
.news-lang-tabs .nav-link.active .news-lang-tabs__meta{color:#f2ddb0;}
@media (max-width: 575.98px){
  .news-lang-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.55rem;
    border-bottom:0;
    margin-bottom:1rem;
  }
  .news-lang-tabs .nav-item{
    width:100%;
  }
  .news-lang-tabs .nav-link{
    width:100%;
    min-height:56px;
    justify-content:flex-start;
    align-items:flex-start;
    flex-direction:column;
    text-align:left;
    border-radius:14px;
    border-bottom-color:rgba(255,255,255,.08);
    padding:.72rem .85rem;
    line-height:1.2;
    white-space:normal;
  }
  .news-lang-tabs .nav-link.active{
    transform:none;
    border-bottom-color:rgba(239,203,133,.34);
    box-shadow:0 10px 24px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.03);
  }
  .news-lang-tabs .nav-link .news-lang-tabs__meta{
    display:block;
    margin-left:0 !important;
    margin-top:.18rem;
    font-size:.8rem;
  }
}
.alliance-news-type-badge{display:inline-flex;align-items:center;gap:.48rem;padding:.25rem .5rem;border-radius:999px;background:rgba(91,168,255,.12);border:1px solid rgba(91,168,255,.24);font-size:.83rem;font-weight:700;line-height:1;color:#dcebff;white-space:nowrap;text-transform:none;letter-spacing:0;}
.alliance-news-type-badge .role-badge__icon{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border-radius:999px;background:rgba(255,255,255,.08);font-size:.82rem;}
.alliance-news-type-badge .role-badge__icon i{font-size:.82rem;opacity:.98;}
.alliance-news-type-badge--information{background:rgba(91,168,255,.14);border-color:rgba(91,168,255,.26);color:#dcebff;}
.alliance-news-type-badge--information .role-badge__icon{background:rgba(91,168,255,.18);color:#dcebff;}
.alliance-news-type-badge--annonce{background:rgba(239,203,133,.16);border-color:rgba(239,203,133,.3);color:#f5dfab;}
.alliance-news-type-badge--annonce .role-badge__icon{background:rgba(239,203,133,.18);color:#f5dfab;}
.alliance-news-type-badge--note{background:rgba(143,159,198,.16);border-color:rgba(143,159,198,.28);color:#d5def4;}
.alliance-news-type-badge--note .role-badge__icon{background:rgba(143,159,198,.14);color:#d5def4;}
.alliance-news-type-badge--mise-a-jour{background:rgba(116,199,166,.16);border-color:rgba(116,199,166,.28);color:#cff4e6;}
.alliance-news-type-badge--mise-a-jour .role-badge__icon{background:rgba(116,199,166,.16);color:#cff4e6;}
.news-content-clickable-image{cursor:zoom-in}
.news-lightbox-modal{background:rgba(5,10,20,.92);border:1px solid rgba(255,255,255,.08)}
.news-lightbox-image{max-height:78vh;object-fit:contain}

.alliance-news-track{overflow:visible;}


.news-view-lang-panel{display:none;}
.news-view-lang-panel.is-active{display:block;}
.news-view-top-badges{margin-bottom:.75rem;}
.news-view-top-row{width:100%;}
.news-view-language-switcher{display:flex;align-items:center;justify-content:flex-end;}
@media (max-width: 991.98px){
  .news-view-top-row{align-items:flex-start;}
  .news-view-language-switcher{width:100%;justify-content:flex-start;}
}
.news-view-language-switcher{display:inline-flex;flex-wrap:wrap;gap:.5rem;}
.news-view-actions{min-width:fit-content;padding-top:.1rem;}
.news-view-edit-btn{align-self:flex-start;margin-top:.15rem;}
@media (min-width: 992px){
  .news-view-edit-btn{align-self:flex-end;}
}


.alliance-news-status-badge{display:inline-flex;align-items:center;gap:.48rem;padding:.25rem .5rem;border-radius:999px;border:1px solid rgba(255,255,255,.08);font-size:.83rem;font-weight:700;line-height:1;white-space:nowrap;}
.alliance-news-status-badge .role-badge__icon{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border-radius:999px;background:rgba(255,255,255,.08);font-size:.82rem;}
.alliance-news-status-badge .role-badge__icon i{font-size:.82rem;opacity:.98;}
.alliance-news-status-badge--active{background:rgba(116,199,166,.12);border-color:rgba(116,199,166,.22);color:#cff4e6;}
.alliance-news-status-badge--active .role-badge__icon{background:rgba(116,199,166,.16);color:#cff4e6;}
.alliance-news-status-badge--inactive{background:rgba(197,122,122,.12);border-color:rgba(197,122,122,.22);color:#f5c9c9;}
.alliance-news-status-badge--inactive .role-badge__icon{background:rgba(197,122,122,.16);color:#f5c9c9;}
.alliance-news-status-badge .role-badge__label{margin-left:.3rem;}
.news-view-hero .news-view-top-row{align-items:flex-start;}
.news-view-actions{min-width:min(100%, 17rem);}
.news-view-actions-top{width:100%;}
.news-view-actions-top .news-view-language-switcher, .news-view-actions-top .news-view-back-btn{display:inline-flex;}
.news-view-edit-btn{align-self:flex-end;}
@media (max-width: 991.98px){
  .news-view-actions{min-width:100%;align-items:flex-start !important;}
  .news-view-actions-top{justify-content:flex-start !important;}
  .news-view-edit-btn{align-self:flex-start;}
}

.recette-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.recette-panel__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.1rem;
}

.recette-panel__summary--section {
}

.recette-panel__summary--page {
  padding: .85rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}

.recette-panel__summary::-webkit-details-marker {
  display: none;
}

.recette-panel__summary-main,
.recette-panel__meta {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}

.recette-panel__text {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.recette-panel__eyebrow {
  display: inline-flex;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.recette-panel__title {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

.recette-panel__subtitle {
  color: rgba(255,255,255,.68);
  font-size: .88rem;
}

.recette-panel__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217,170,89,.14);
  color: var(--gold-2);
  border: 1px solid rgba(217,170,89,.18);
  flex: 0 0 auto;
}

.recette-panel__icon--page {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.08);
}

.recette-panel__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.84);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.recette-panel__body {
  padding: 1rem;
}

.recette-panel__chevron {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease;
}

details[open] > .recette-panel__summary .recette-panel__chevron {
  transform: rotate(180deg);
}

details[open] > .recette-panel__summary .recette-panel__chevron,
.recette-panel__summary:hover .recette-panel__chevron {
  background: rgba(217,170,89,.16);
}

.recette-table tbody tr.recette-row--ok,
.recette-table tbody tr.recette-row--ok > td {
  background: rgba(45, 164, 78, 0.12) !important;
}

.recette-table tbody tr.recette-row--bug,
.recette-table tbody tr.recette-row--bug > td {
  background: rgba(220, 53, 69, 0.12) !important;
}

.recette-table tbody tr.recette-row--ok:hover,
.recette-table tbody tr.recette-row--ok:hover > td {
  background: rgba(45, 164, 78, 0.16) !important;
}

.recette-table tbody tr.recette-row--bug:hover,
.recette-table tbody tr.recette-row--bug:hover > td {
  background: rgba(220, 53, 69, 0.16) !important;
}

.recette-user-switcher {
  min-width: 280px;
}

.recette-col-url input {
  min-width: 220px;
}


.recette-progress-card {
  border: 1px solid rgba(255,255,255,.08);
}

.recette-progress-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.recette-progress-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(217,170,89,.14);
  border: 1px solid rgba(217,170,89,.2);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}

.recette-progress-chip--danger {
  background: rgba(220,53,69,.14);
  border-color: rgba(220,53,69,.22);
}

.recette-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.recette-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(217,170,89,.72), rgba(255,214,128,.95));
}

.recette-table tbody td {
  vertical-align: top;
}

.recette-table tbody td:first-child {
  min-width: 360px;
}

.recette-table textarea.form-control {
  min-width: 280px;
  resize: vertical;
}

@media (max-width: 991.98px) {
  .recette-panel__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: .85rem;
    padding: .95rem 1rem;
  }

  .recette-panel__summary-main,
  .recette-panel__meta {
    width: 100%;
  }

  .recette-panel__meta {
    justify-content: space-between;
  }

  .recette-user-switcher {
    min-width: 100%;
  }

  .recette-panel__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .recette-panel__title {
    font-size: .96rem;
  }

  .recette-panel__subtitle,
  .recette-panel__pill {
    font-size: .8rem;
  }

  .recette-table {
    table-layout: auto;
  }

  .recette-table thead {
    display: none;
  }

  .recette-table,
  .recette-table tbody,
  .recette-table tr,
  .recette-table td {
    display: block;
    width: 100%;
  }

  .recette-table tbody tr {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: .9rem;
  }

  .recette-table tbody td {
    min-width: 0 !important;
    border: 0;
    padding: .75rem 1rem;
  }

  .recette-table tbody td + td {
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .recette-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .35rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
  }

  .recette-col-ref,
  .recette-col-block,
  .recette-col-url,
  .recette-col-status,
  .recette-col-action {
    width: 100%;
  }

  .recette-task-label {
    min-width: 0;
  }

  .recette-table textarea.form-control,
  .recette-col-url input,
  .recette-col-status .form-select,
  .recette-col-action .btn,
  .recette-col-url .btn {
    width: 100%;
    min-width: 0;
  }

  .recette-col-action.text-end,
  .recette-col-url,
  .recette-col-status {
    text-align: left !important;
  }
}


.spec-doc-page .hero-panel {
  overflow: hidden;
}

.spec-doc-stat-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.spec-doc-stat-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.spec-doc-stat-value {
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.spec-doc-tags,
.spec-doc-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.spec-doc-tag,
.spec-doc-block-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 600;
}

.spec-doc-block-pill--muted {
  color: rgba(255,255,255,.64);
}

.spec-doc-section-card {
  border: 1px solid rgba(255,255,255,.08);
}

.spec-doc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.spec-doc-table td,
.spec-doc-table th {
  vertical-align: top;
}

.spec-doc-url-cell code {
  white-space: normal;
  word-break: break-word;
  color: #fff;
}

.spec-doc-check-count {
  display: inline-flex;
  min-width: 40px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(217,170,89,.14);
  border: 1px solid rgba(217,170,89,.2);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .spec-doc-section-head {
    flex-direction: column;
  }

  .spec-doc-table th:nth-child(2),
  .spec-doc-table td:nth-child(2) {
    min-width: 180px;
  }
}


/* v337 profile/spec responsive refinements */
#profileInfoCard .table-responsive{
  overflow-x:hidden;
}
#profileInfoCard table{
  table-layout:fixed;
  width:100%;
}
#profileInfoCard th,
#profileInfoCard td{
  overflow-wrap:anywhere;
  word-break:break-word;
}
#profileInfoCard td .d-flex{
  min-width:0;
}
#profileInfoCard td .btn{
  max-width:100%;
}

@media (max-width: 991.98px){
  .spec-doc-page .table-responsive{
    overflow:visible;
  }
  .spec-doc-table,
  .spec-doc-table thead,
  .spec-doc-table tbody,
  .spec-doc-table tr,
  .spec-doc-table th,
  .spec-doc-table td{
    display:block;
    width:100%;
  }
  .spec-doc-table thead{
    display:none;
  }
  .spec-doc-table tbody{
    display:grid;
    gap:.85rem;
  }
  .spec-doc-table tr{
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:rgba(255,255,255,.025);
    overflow:hidden;
  }
  .spec-doc-table td{
    padding:.8rem 1rem !important;
    border-top:1px solid rgba(255,255,255,.06);
  }
  .spec-doc-table td:first-child{
    border-top:0;
  }
  .spec-doc-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:.32rem;
    color:rgba(255,255,255,.62);
    font-size:.74rem;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
  }
  .spec-doc-url-cell code{
    display:block;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .spec-doc-blocks{
    gap:.4rem;
  }
}


/* BST accordion header fix (v192) */
.bst-dashboard-page .app-accordion .accordion-button,
.bst-player-view-page .app-accordion .accordion-button {
    padding: 1rem 1.1rem;
    align-items: center;
}

.bst-dashboard-page .app-accordion .accordion-button::after,
.bst-player-view-page .app-accordion .accordion-button::after {
    margin-top: 0;
}

#adminAlliancesTable th, #adminAlliancesTable td, #adminAlliancesTable_wrapper .dt-details__label, #adminAlliancesTable_wrapper .dt-details__value{text-align:left !important}


/* DataTables: keep all columns left-aligned across the app */
table.dataTable thead th,
table.dataTable tbody td,
.app-table thead th,
.app-table tbody td {
    text-align: left !important;
}

table.dataTable td.dt-control,
table.dataTable th.dt-control-head {
    text-align: center !important;
}

.dt-details__value {
    text-align: left !important;
}


/* SuperAdmin module DataTables actions */
.admin-dt-actions,
.admin-dt-actions .admin-dt-actions-wrap {
    min-width: 0;
}

.admin-dt-action-btn {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .admin-dt-actions .admin-dt-actions-wrap {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
        gap: .5rem !important;
    }

    .admin-dt-actions .admin-dt-actions-wrap form {
        width: 100%;
    }

    .admin-dt-actions .admin-dt-action-btn {
        width: 100%;
        min-height: 38px;
        padding-inline: .9rem;
    }

    #systemLogsTable td.admin-dt-actions,
    #backupJobsTable td.admin-dt-actions {
        min-width: 150px;
    }
}


.news-toggle-lang{opacity:.72;transition:opacity .2s ease,color .2s ease;font-weight:700;}
.news-toggle-lang.is-active{opacity:1;color:inherit;}
.news-toggle-separator{opacity:.5;}


/* v300 filtered alliance badge in hero panel */
.hero-panel-filter-badge{flex:0 0 auto;align-self:center;box-shadow:0 10px 24px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);}
.hero-panel-filter-badge .role-badge__label{display:inline-flex;align-items:center;gap:.2rem;}
@media (max-width: 767.98px){
  .hero-panel-filter-badge{align-self:flex-start;}
}


/* ---- Landing v3 conversion ---- */
.landing-hero-conversion .display-5{max-width: 12ch;}
.py-xl-6{padding-top:4.5rem!important;padding-bottom:4.5rem!important;}
.hero-checks{display:flex;flex-wrap:wrap;gap:.7rem;}
.hero-check{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .8rem;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--muted-soft);font-weight:600;font-size:.95rem;}
.hero-check i{color:var(--gold-2);} 
.community-note{padding:1rem 1.1rem;border-radius:18px;background:linear-gradient(180deg, rgba(18,31,48,.88), rgba(14,24,38,.94));border:1px solid rgba(255,255,255,.1);color:var(--muted-soft);}
.section-intro{max-width:900px;margin-inline:auto;}
.section-copy{max-width:800px;}
.landing-browser-carousel{position:relative;background:linear-gradient(180deg, rgba(20,35,55,.92), rgba(10,18,29,.94));border-radius:26px;box-shadow:0 24px 70px rgba(0,0,0,.28);}
.browser-shell-top{display:flex;align-items:center;gap:.55rem;padding:1rem 1.2rem;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);}
.browser-shell-title{margin-left:.5rem;font-size:.92rem;color:var(--muted-soft);font-weight:600;}
.browser-carousel{padding-bottom:3.8rem;}
.custom-indicators{bottom:.7rem;gap:.35rem;}
.custom-indicators [data-bs-target]{width:10px;height:10px;border-radius:999px;border:0;background:rgba(255,255,255,.35);}
.custom-indicators .active{background:var(--gold-2);} 
.browser-slide{padding:1.35rem 1.35rem 1.2rem;min-height:500px;display:flex;flex-direction:column;justify-content:flex-start;}
.browser-slide-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.15rem;}
.browser-slide-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;color:var(--gold-2);font-weight:700;margin-bottom:.3rem;}
.browser-slide h2,.browser-slide h3{font-size:1.45rem;margin:0 0 .5rem;line-height:1.2;}
.browser-slide p{margin:0;color:var(--muted);} 
.slide-badge{display:inline-flex;align-items:center;padding:.5rem .75rem;border-radius:999px;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;}
.slide-badge.live{background:rgba(49,193,120,.16);color:#8fefba;border:1px solid rgba(49,193,120,.25);} 
.slide-badge.coming{background:rgba(103,183,255,.16);color:#bfe0ff;border:1px solid rgba(103,183,255,.25);} 
.slide-badge.beta{background:rgba(217,170,89,.16);color:#ffd998;border:1px solid rgba(217,170,89,.25);} 
.dash-grid,.future-grid,.community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.dash-kpi,.future-card,.community-box,.roadmap-item{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:1rem;}
.dash-kpi small,.community-box small,.future-card small,.roadmap-item small{display:block;color:var(--muted);font-size:.86rem;line-height:1.4;}
.dash-kpi strong{display:block;font-size:2rem;line-height:1.1;margin:.35rem 0;color:#fff;}
.dash-kpi span{display:block;color:var(--gold-2);font-size:.84rem;font-weight:700;}
.member-table-card{border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;background:rgba(255,255,255,.03);}
.member-row{display:grid;grid-template-columns:1.5fr .8fr .6fr .8fr;gap:.75rem;padding:.9rem 1rem;border-top:1px solid rgba(255,255,255,.07);align-items:center;color:var(--muted-soft);} 
.member-row.header{border-top:0;background:rgba(255,255,255,.04);font-weight:700;color:#fff;}
.member-row i{color:var(--gold-2);margin-right:.35rem;}
.real-shot-frame{border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.2);}
.community-box{display:flex;flex-direction:column;gap:.45rem;min-height:130px;}
.community-box i{font-size:1.35rem;color:var(--gold-2);} 
.community-box strong,.future-card strong,.roadmap-item strong{display:block;color:#fff;margin-bottom:.35rem;}
.rich-list li span{display:inline-block;vertical-align:top;}
.compare-card{padding:1.5rem;}
.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.compare-block{border-radius:20px;padding:1.2rem;border:1px solid rgba(255,255,255,.08);}
.compare-before{background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));}
.compare-after{background:linear-gradient(180deg, rgba(217,170,89,.14), rgba(217,170,89,.06));}
.compare-title{font-weight:800;color:#fff;margin-bottom:.75rem;}
.compare-block ul{margin:0;padding-left:1.15rem;color:var(--muted-soft);} 
.compare-block li+li{margin-top:.45rem;}
.roadmap-card{padding:1.4rem;}
.roadmap-title-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;}
.roadmap-list{display:grid;gap:.85rem;}
.upcoming-card .roadmap-item{background:linear-gradient(180deg, rgba(103,183,255,.08), rgba(255,255,255,.02));}
.cta-card-large{align-items:center;gap:1.25rem;}
@media (max-width: 1199.98px){.browser-slide{min-height:470px;}}
@media (max-width: 991.98px){
  .landing-hero-conversion .display-5{max-width:none;}
  .browser-slide{min-height:auto;}
}
@media (max-width: 767.98px){
  .dash-grid,.future-grid,.community-grid,.compare-grid{grid-template-columns:1fr;}
  .member-row{grid-template-columns:1.4fr .8fr .6fr .8fr;font-size:.88rem;gap:.5rem;padding:.8rem .75rem;}
  .browser-slide{padding:1rem 1rem 1rem;}
  .browser-slide h2,.browser-slide h3{font-size:1.18rem;}
  .browser-slide-head{flex-direction:column;}
  .browser-shell-top{padding:.85rem 1rem;}
}



/* v5 landing enhancements */
.concrete-card,
.advanced-compare-card,
.testimonial-chip {
  background: linear-gradient(180deg, rgba(13,20,38,.92) 0%, rgba(9,15,30,.94) 100%);
}

.benefit-band {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(220, 184, 95, .2);
  border-radius: 22px;
  background: rgba(8, 13, 25, .72);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.benefit-band-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #d7dfec;
  font-weight: 500;
}
.benefit-band-item i {
  color: var(--gold-300, #e8c77a);
}

.advanced-compare-card {
  padding: 1.5rem !important;
}
.compare-head-row,
.compare-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.7fr) 120px 120px;
  gap: 1rem;
  align-items: center;
}
.compare-head-row {
  margin-bottom: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.compare-col-title {
  font-weight: 700;
  color: #f7f9fd;
  text-align: center;
  padding: .8rem 1rem;
  border-radius: 16px;
}
.discord-col { background: rgba(88,101,242,.18); border: 1px solid rgba(88,101,242,.28); }
.tools-col { background: rgba(220,184,95,.14); border: 1px solid rgba(220,184,95,.22); }
.compare-row {
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.compare-row:last-child { border-bottom: 0; }
.compare-label {
  color: #d7dfec;
  font-weight: 500;
}
.compare-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  justify-self: center;
  box-shadow: 0 0 0 5px rgba(255,255,255,.03);
}
.compare-dot.yes { background: #6fd18b; }
.compare-dot.limited { background: #f0c56a; }
.compare-dot.no { background: #6e7792; }
.compare-note {
  color: #9facc2;
  font-size: .98rem;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1rem;
}

.testimonial-marquee-group {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.testimonial-track.marquee-left {
  animation: marqueeLeft 38s linear infinite;
}
.testimonial-track.marquee-right {
  animation: marqueeRight 40s linear infinite;
}
.testimonial-marquee-group:hover .testimonial-track {
  animation-play-state: paused;
}
.testimonial-chip {
  width: 360px;
  max-width: 84vw;
  min-height: 180px;
  padding: 1.2rem 1.2rem 1.05rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.testimonial-chip p {
  color: #eef2f7;
  margin: .55rem 0 .8rem;
  line-height: 1.6;
}
.testimonial-chip span {
  color: #9facc2;
  font-size: .8rem;
}
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 991.98px) {
  .compare-head-row,
  .compare-row {
    grid-template-columns: minmax(0,1fr) 78px 78px;
    gap: .65rem;
  }
  .compare-col-title {
    font-size: .92rem;
    padding: .7rem .5rem;
  }
  .testimonial-track.marquee-left,
  .testimonial-track.marquee-right {
    animation-duration: 26s;
  }
}
@media (max-width: 767.98px) {
  .benefit-band {
    justify-content: flex-start;
  }
  .testimonial-chip {
    width: 300px;
    min-height: 200px;
  }
}


.community-banner-wrap{margin-top:-.5rem;position:relative;z-index:3;}
.hero-community-banner-wrap{position:relative;z-index:3;margin-bottom:20px;}

.hero-home-shell{padding-bottom:0 !important;}
.community-banner{width:100%;padding:1rem 1.25rem;border-radius:18px;background:linear-gradient(180deg, rgba(15,23,42,.78), rgba(10,16,30,.88));border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 40px rgba(0,0,0,.24);color:#dbe5f6;text-align:center;}
.community-banner strong{color:#fff5cf;}
@media (max-width: 991.98px){.community-banner-wrap{margin-top:0;}}


/* v7 adjustments */
.landing-hero-title{max-width:none !important;}
@media (min-width: 992px){
  #hero-preview{align-self:flex-start;padding-top:.2rem;}
}

.compare-head-row,
.compare-row {
  grid-template-columns: minmax(240px, 1.8fr) 160px 160px;
}
.compare-col-title{
  min-height: 64px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.compare-label{padding-right:1rem;}
.compare-dot{flex-shrink:0;}
@media (max-width: 1199.98px){
  .compare-head-row,
  .compare-row {
    grid-template-columns: minmax(220px, 1.6fr) 140px 140px;
  }
}
@media (max-width: 767.98px){
  .compare-head-row,
  .compare-row {
    grid-template-columns: minmax(0, 1fr) 76px 76px;
    gap:.75rem;
  }
  .compare-col-title{min-height:unset;padding:.7rem .55rem;font-size:.95rem;}
  .compare-label{font-size:.98rem;padding-right:0;}
}


/* v8 landing tweaks */
.browser-shell-top{justify-content:space-between;}
.browser-shell-top .top-indicators{position:static;transform:none;gap:.45rem;display:flex;align-items:center;margin:0;}
.browser-shell-top .top-indicators button{width:10px;height:10px;min-width:10px;min-height:10px;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.28);opacity:1;margin:0;appearance:none;-webkit-appearance:none;display:inline-block;flex:0 0 10px;}
.browser-shell-top .top-indicators .active{background:var(--gold,#efcb85);box-shadow:0 0 0 4px rgba(239,203,133,.16);}
.browser-shell-title{margin-left:0;}
.landing-faq .accordion-button{background:linear-gradient(180deg, rgba(34,59,112,.78), rgba(22,34,65,.92));color:#fff;}
.landing-faq .accordion-button:not(.collapsed){background:linear-gradient(180deg, rgba(239,203,133,.22), rgba(39,52,86,.98));color:#fff5cf;}
.landing-faq .accordion-item{border-color:rgba(96,133,225,.18)!important;}
.no-wrap-desktop{white-space:nowrap;}
@media (max-width: 991.98px){.no-wrap-desktop{white-space:normal;}}
.compare-col-title.tools-col b,.landing strong b,.landing h2 b,.landing p b,.landing li b,.landing .eyebrow b,.landing .accordion-button b{font-weight:800;}


/* v9 landing tweaks */
.hero-title-break{display:block;}
#hero-preview{align-self:flex-start;}
.browser-shell-top .top-indicators button.active,
.browser-shell-top .top-indicators button[aria-current="true"]{
  background:var(--gold,#efcb85);
  box-shadow:0 0 0 4px rgba(239,203,133,.16);
}
.browser-carousel{touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;}
.browser-carousel *{-webkit-user-select:none;user-select:none;}
.browser-carousel.is-dragging{cursor:grabbing;}
body.hero-carousel-dragging{-webkit-user-select:none;user-select:none;}
.text-gold{color:#fff5cf!important;}
.discord-gap{display:block;height:.35rem;}
.compare-head-row,
.compare-row{grid-template-columns:minmax(240px,1.8fr) 160px 160px;}
.compare-head-row{align-items:stretch;}
.compare-col-spacer{min-height:1px;}
.compare-col-title{width:100%;}
.roadmap-item{display:flex;gap:.9rem;align-items:flex-start;}
.roadmap-item > div{display:flex;flex-direction:column;}
.roadmap-item-icon{font-size:1.1rem;color:#efcb85;line-height:1;margin-top:.2rem;flex-shrink:0;}
.community-banner strong.text-gold{color:#efcb85!important;}
@media (max-width:1199.98px){
  .compare-head-row,
  .compare-row{grid-template-columns:minmax(220px,1.6fr) 140px 140px;}
}
@media (max-width:767.98px){
  .compare-head-row,
  .compare-row{grid-template-columns:minmax(0,1fr) 76px 76px;}
  .discord-gap{height:.45rem;}
}


/* -------------------------------------------------------------------------- */
/* Cookie consent + Go top                                                     */
/* -------------------------------------------------------------------------- */
.go-top-btn{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(16,32,51,.96), rgba(7,18,31,.96));
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, box-shadow .22s ease, border-color .22s ease;
  backdrop-filter: blur(14px);
}
.go-top-btn:hover{
  border-color: rgba(217,170,89,.5);
  box-shadow: 0 22px 48px rgba(0,0,0,.34);
  color: #fff;
}
.go-top-btn.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.go-top-btn__icon{
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,170,89,.24), rgba(103,183,255,.18));
  color: var(--gold-2);
  font-size: 1rem;
}
.go-top-btn__label{
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .8rem;
}

.cookie-consent{
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.cookie-consent.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-consent__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at top left, rgba(103,183,255,.12), transparent 38%),
    radial-gradient(circle at bottom right, rgba(217,170,89,.12), transparent 30%),
    linear-gradient(145deg, rgba(10,20,34,.96), rgba(8,17,30,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
}
.cookie-consent__content{
  max-width: 800px;
}
.cookie-consent__eyebrow{
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-2);
  margin-bottom: .5rem;
}
.cookie-consent__title{
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0 0 .45rem;
}
.cookie-consent__text{
  margin: 0;
  color: rgba(238,243,250,.82);
  line-height: 1.65;
}
.cookie-consent__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
}
.cookie-btn{
  border-radius: 999px;
  min-height: 46px;
  padding: .72rem 1rem;
  font-weight: 700;
  box-shadow: none !important;
}
.cookie-btn--primary{
  background: linear-gradient(135deg, #d9aa59, #f0ca86);
  border-color: transparent;
  color: #102033;
}
.cookie-btn--primary:hover{
  color: #091321;
  filter: brightness(1.03);
}
.cookie-btn--secondary,
.cookie-btn--ghost{
  border-color: rgba(255,255,255,.14);
  color: #eef3fa;
}
.cookie-btn--secondary:hover,
.cookie-btn--ghost:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

.cookie-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(4,9,18,.68);
  z-index: 1060;
  opacity: 0;
  transition: opacity .22s ease;
}
.cookie-modal-backdrop.is-visible{ opacity: 1; }
.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 1061;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  padding: 1rem;
}
.cookie-modal.is-visible{
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__panel{
  width: min(720px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at top left, rgba(103,183,255,.12), transparent 35%),
    linear-gradient(145deg, rgba(10,20,34,.98), rgba(8,17,30,.99));
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
  overflow: hidden;
}
.cookie-modal__header,
.cookie-modal__footer{
  padding: 1.25rem 1.35rem;
}
.cookie-modal__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cookie-modal__title{
  margin: 0;
  font-size: 1.35rem;
}
.cookie-modal__close{
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #fff;
}
.cookie-modal__body{
  padding: 1.25rem 1.35rem;
}
.cookie-option{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cookie-option:last-child{ border-bottom: 0; }
.cookie-option__copy h4{
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.cookie-option__copy p{
  margin: 0;
  color: rgba(238,243,250,.76);
}
.cookie-option.is-locked .form-check-input{
  opacity: .9;
}
.cookie-modal__footer{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-modal-open{
  overflow: hidden;
}
.cookie-modal .form-check-input{
  width: 3rem;
  height: 1.65rem;
  background-color: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.18);
}
.cookie-modal .form-check-input:checked{
  background-color: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 991.98px){
  .cookie-consent__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent__actions{
    justify-content: stretch;
  }
  .cookie-consent__actions .cookie-btn{
    flex: 1 1 180px;
  }
}
@media (max-width: 575.98px){
  .go-top-btn{
    right: .85rem;
    bottom: .85rem;
    padding: .72rem .88rem;
  }
  .go-top-btn__label{
    display: none;
  }
  .cookie-consent{
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
  }
  .cookie-consent__inner{
    border-radius: 22px;
    padding: 1rem;
  }
  .cookie-modal__header,
  .cookie-modal__body,
  .cookie-modal__footer{
    padding: 1rem;
  }
}


.cookie-reopen-btn{
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 1085;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8,18,42,.96), rgba(16,36,82,.92));
  color: #f4f7ff;
  box-shadow: 0 18px 40px rgba(2,8,24,.38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, border-color .25s ease;
}
.cookie-reopen-btn:hover{
  border-color: rgba(244,194,92,.45);
  transform: translateY(-2px);
}
.cookie-reopen-btn.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-reopen-btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(244,194,92,.12);
  color: #f4c25c;
  font-size: 1rem;
}
@media (max-width: 767.98px){
  .cookie-reopen-btn{ left: .85rem; bottom: .85rem; width: 52px; height: 52px; border-radius: 16px; }
}


/* v13 targeted refinements */
.eyebrow b{font-weight:800;}
.community-highlight{color:#efcb85;font-weight:800;}
.hero-subcopy b{font-weight:800;color:#fff;}
.section-copy .roadmap-subline{display:inline-block;margin-top:.35rem;}
.landing-faq .accordion-item{border-radius:22px!important;overflow:hidden;background:linear-gradient(180deg, rgba(14,21,35,.86), rgba(10,15,27,.92))!important;}
.landing-faq .accordion-button{border-radius:22px!important;background:linear-gradient(180deg, rgba(23,35,58,.96), rgba(14,22,39,.96));color:#f4f7ff;border:none;}
.landing-faq .accordion-button.collapsed{border-radius:22px!important;}
.landing-faq .accordion-button:not(.collapsed){background:linear-gradient(180deg, rgba(31,47,78,.98), rgba(16,26,46,.98));color:#efcb85;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;}
.landing-faq .accordion-button:focus{box-shadow:none;}
.landing-faq .accordion-body{padding:1.1rem 1.2rem 1.25rem;border-top:1px solid rgba(255,255,255,.07);}
.landing-faq .accordion-body p{margin:0 0 .8rem;line-height:1.65;}
.landing-faq .accordion-body p:last-child{margin-bottom:0;}
.go-top-btn{width:58px;height:58px;padding:0;border-radius:50%;}
.go-top-btn__icon{width:2.25rem;height:2.25rem;}
@media (max-width:575.98px){.go-top-btn{width:54px;height:54px;padding:0;border-radius:50%;}}

/* v14 refinements */
.landing b,
.landing .accordion-button b,
.landing .accordion-body b{font-weight:600;}
.landing-faq .accordion-button b{font-weight:600;padding-inline:.08em;}
.go-top-btn{justify-content:center;align-items:center;}
.go-top-btn__icon{display:flex;align-items:center;justify-content:center;line-height:1;}
.go-top-btn__icon i{display:flex;align-items:center;justify-content:center;line-height:1;position:relative;left:0;top:0;}
.browser-slide{min-height:540px;}
.dash-grid--extended{grid-template-columns:repeat(3,minmax(0,1fr));}
.community-grid--extended{grid-template-columns:repeat(3,minmax(0,1fr));}
.future-grid--expanded{grid-template-columns:repeat(2,minmax(0,1fr));}
.member-table-card--rich .member-row{grid-template-columns:1.45fr .65fr .9fr 1.1fr;}
.member-table-card--rich .member-row.header span:last-child{text-align:left;}
.member-row--rich .role-badge{justify-self:start;}
.member-cell-player{display:flex;align-items:center;gap:.15rem;font-weight:600;color:#fff;}
.member-furnace{display:flex;align-items:center;gap:.45rem;color:#fff;}
.member-furnace img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.28));}
.member-furnace em{font-style:normal;font-size:.82rem;color:var(--gold-2);font-weight:700;}
.bst-split{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);gap:1rem;align-items:stretch;}
.real-shot-frame--compact{padding:.65rem;background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:center;min-height:250px;}
.real-shot-frame--compact img{max-height:230px;width:auto;object-fit:contain;}
.bst-copy{display:grid;gap:.8rem;}
.bst-copy-card{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:1rem;}
.bst-copy-card strong{display:block;color:#fff;margin-bottom:.35rem;}
.bst-copy-card small{display:block;color:var(--muted);line-height:1.45;}
.future-grid--expanded .future-card{min-height:118px;}
.future-grid--expanded .future-card strong{font-size:.98rem;line-height:1.25;}
.future-grid--expanded .future-card small{margin-top:.25rem;}
@media (max-width: 1199.98px){
  .browser-slide{min-height:580px;}
  .dash-grid--extended,.community-grid--extended{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 991.98px){
  .browser-slide{min-height:auto;}
  .bst-split{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
  .dash-grid--extended,.community-grid--extended,.future-grid--expanded{grid-template-columns:1fr;}
  .member-table-card--rich .member-row{grid-template-columns:1.2fr .7fr .9fr 1fr;}
  .member-furnace img{width:24px;height:24px;}
  .real-shot-frame--compact img{max-height:190px;}
}

/* v15 adjustments: hero stability, SEO polish, slide sizing */
.landing-hero-conversion .row{align-items:flex-start!important;}
#hero-preview{align-self:flex-start;}
.landing-browser-carousel{min-height:606px;}
.browser-carousel,.browser-carousel .carousel-inner,.browser-carousel .carousel-item{height:100%;}
.browser-slide{min-height:560px;}
.browser-slide-head > div{max-width:34rem;}
.member-table-card--rich .member-row{align-items:center;}
.member-furnace{display:inline-flex;align-items:center;gap:.45rem;}
.member-furnace img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(0,0,0,.22));}
.member-furnace em{font-style:normal;font-weight:700;letter-spacing:.02em;color:#f5d792;}
.bst-split{grid-template-columns:minmax(0,1.05fr) minmax(290px,.95fr);}
.bst-copy-card strong{display:block;margin-bottom:.2rem;}
.future-grid--expanded .future-card{min-height:126px;}
@media (max-width: 1199.98px){
  .landing-browser-carousel{min-height:620px;}
  .browser-slide{min-height:590px;}
}
@media (max-width: 991.98px){
  .landing-browser-carousel{min-height:auto; margin-top:20px;}
  .browser-carousel,.browser-carousel .carousel-inner,.browser-carousel .carousel-item{height:auto;}
  .browser-slide{min-height:auto;}
}


/* v16 footer + SEO bottom copy */
.landing-seo-copy{padding-top:0;}
.seo-copy-card{
    padding: 1.4rem 1.4rem 1.5rem;
    background: linear-gradient(180deg, rgba(12,24,39,.94) 0%, rgba(10,19,31,.98) 100%);
    border: 1px solid rgba(255,255,255,.08);
}
.seo-copy-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
}
.seo-copy-block{
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}
.seo-copy-block h3{
    font-size: 1rem;
    margin: 0 0 .65rem;
    color: #fff;
}
.seo-copy-block p{
    margin: 0 0 .8rem;
    color: var(--muted-soft);
    line-height: 1.72;
}
.seo-copy-block p:last-child{margin-bottom:0;}

.site-footer{
    margin-top: auto !important;
    background: transparent;
}
.site-footer .container-fluid{
    padding-left: 1rem;
    padding-right: 1rem;
}
.site-footer-inner.app-card{
    padding: 1.2rem 1.2rem 1rem;
    background: linear-gradient(180deg, rgba(12,24,39,.96) 0%, rgba(9,18,30,.98) 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.footer-top-grid{
    display:grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);
    gap: 1.2rem 1.5rem;
    align-items:start;
}
.footer-brand{
    display:inline-flex;
    align-items:center;
    gap:.8rem;
    text-decoration:none;
    color:#fff;
    margin-bottom:.9rem;
}
.footer-brand:hover{color:#fff;text-decoration:none;}
.footer-brand-logo{
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}
.footer-brand-text{
    display:flex;
    flex-direction:column;
    gap:.2rem;
    line-height:1.15;
}
.footer-brand-text strong{font-size:1rem;}
.footer-brand-text small{
    color: var(--muted);
    font-size: .86rem;
}
.footer-brand-copy{
    margin: 0;
    max-width: 56ch;
    color: var(--muted-soft);
    line-height: 1.7;
}
.footer-links-col h3,
.footer-meta-col h3{
    font-size: .98rem;
    margin: .15rem 0 .85rem;
    color: #fff;
}
.footer-links{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .55rem .9rem;
}
.footer-links a{
    color: var(--muted-soft);
    text-decoration:none;
}
.footer-links a:hover{color:#fff;}
.footer-pills{
    display:flex;
    flex-wrap:wrap;
    gap:.55rem;
}
.footer-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height: 36px;
    padding:.55rem .85rem;
    border-radius:999px;
    background: rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color: var(--muted-soft);
    text-decoration:none;
    font-size:.92rem;
}
.footer-pill--gold{
    color:#1e1200;
    background: linear-gradient(180deg, #f0ca86 0%, #d9aa59 100%);
    border-color: rgba(240,202,134,.45);
    font-weight:700;
}
.footer-pill--link:hover{
    color:#fff;
    background: rgba(255,255,255,.09);
}
.footer-version-row{
    margin-top: .9rem;
}
.footer-version-link{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    padding:.45rem .78rem;
    border-radius:999px;
    background: rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color: var(--gold-2);
    text-decoration:none;
    font-weight:700;
}
.footer-version-link:hover{
    color:#fff;
    background: rgba(255,255,255,.08);
}
.footer-bottom-row{
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: .8rem 1rem;
    flex-wrap:wrap;
}
.footer-copyright-line,
.footer-madeby{
    display:flex;
    align-items:center;
    gap:.45rem;
    flex-wrap:wrap;
    color: rgba(233,239,248,.76);
}
.footer-madeby .bi-heart-fill{
    color:#ff7a8b;
}

@media (max-width: 1199.98px){
    .footer-top-grid{grid-template-columns:1fr;gap:1rem;}
}
@media (max-width: 991.98px){
    .seo-copy-grid{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
    .site-footer-inner.app-card,
    .seo-copy-card{padding:1rem;}
    .footer-links{grid-template-columns:1fr;}
    .footer-bottom-row{align-items:flex-start;}
}

.future-grid--expanded{
    grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 991.98px){
    .future-grid--expanded{
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 575.98px){
    .future-grid--expanded{
        grid-template-columns: 1fr;
    }
}


/* v17 fixes */
.site-footer{display:block !important; visibility:visible !important; opacity:1 !important; margin-top:2rem !important; padding-bottom:1.25rem;}
.site-footer .site-footer-inner.app-card{background:linear-gradient(180deg, rgba(15,30,49,.96) 0%, rgba(9,18,31,.98) 100%); border:1px solid rgba(239,203,133,.18); box-shadow:0 18px 42px rgba(0,0,0,.28);}
.footer-top-grid{align-items:start;}
.landing-seo-copy .seo-copy-card{background:linear-gradient(180deg, rgba(16,31,51,.90) 0%, rgba(10,19,32,.92) 100%); border:1px solid rgba(239,203,133,.14);}
.landing-seo-copy .eyebrow{letter-spacing:.08em;}


/* v18 fixes: audience default on, tighter hero slides, guaranteed footer visibility */
.landing-browser-carousel{min-height:540px !important;}
.browser-carousel{padding-bottom:2.8rem !important;}
.browser-slide{min-height:492px !important; padding-bottom:1rem;}
.browser-slide-head{margin-bottom:1rem !important;}
.dash-grid--extended,.community-grid--extended,.future-grid--expanded,.member-table-card--rich,.bst-split{margin-bottom:0 !important;}
.browser-shell{padding-bottom:0 !important;}
#hero-preview .landing-browser-carousel{overflow:hidden;}
@media (max-width:1199.98px){
  .landing-browser-carousel{min-height:510px !important;}
  .browser-slide{min-height:470px !important;}
}
@media (max-width:991.98px){
  .landing-browser-carousel{min-height:auto !important;}
  .browser-slide{min-height:auto !important; padding-bottom:.35rem;}
}
.site-footer{display:block !important; visibility:visible !important; opacity:1 !important; position:relative; z-index:2; margin-top:2rem !important; padding-bottom:1.25rem;}
.site-footer .site-footer-inner.app-card{display:block !important; min-height:unset; border-radius:24px; overflow:visible;}
.site-footer .footer-top-grid,.site-footer .footer-bottom-row{display:grid !important;}
.site-footer .footer-bottom-row{margin-top:1rem; padding-top:1rem; border-top:1px solid rgba(255,255,255,.08);}

/* v19 fixes */
.app-shell,
main.container-fluid,
.landing,
.landing section{
  overflow: visible !important;
}
.site-footer{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  z-index:5 !important;
  flex:0 0 auto !important;
  margin-top:3rem !important;
  padding:0 0 2rem !important;
  overflow:visible !important;
}
.site-footer .container-fluid{
  max-width:none !important;
}
.site-footer .site-footer-inner.app-card{
  display:block !important;
  min-height:unset !important;
  overflow:visible !important;
  padding:1.35rem 1.35rem 1.15rem !important;
}
.footer-top-grid,
.footer-bottom-row{
  display:grid !important;
}
.footer-bottom-row{
  grid-template-columns:1fr auto;
  align-items:center;
}
@media (max-width: 767.98px){
  .footer-bottom-row{grid-template-columns:1fr;}
}


/* v20 footer simplification + legal modal + role badge alignment */
.footer-top-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) !important;}
.footer-brand-col{display:flex;flex-direction:column;align-items:flex-start;text-align:left;}
.footer-meta-col{display:flex;flex-direction:column;align-items:flex-start;text-align:left;}
.footer-meta-col h3{margin-top:.15rem;}
.footer-brand, .footer-brand-copy, .footer-pills, .footer-version-row{justify-content:flex-start;}
.footer-pills{gap:.6rem;max-width:44rem;}
.footer-bottom-row{grid-template-columns:1fr !important;justify-items:start;text-align:left;}
.footer-copyright-stack{display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;}
.footer-copyright-line,.footer-madeby{justify-content:flex-start !important;}
.footer-madeby{font-size:.95rem;color:rgba(233,239,248,.74);}

@media (max-width: 991.98px){
  .footer-copyright-line,
  .footer-madeby{
    font-size:.87rem;
    gap:.32rem;
  }
}
@media (max-width: 575.98px){
  .footer-copyright-line,
  .footer-madeby{
    font-size:.8rem;
  }
}
.footer-links-col{display:none !important;}
.role-badge{gap:.42rem;padding:.24rem .52rem;}
.role-badge__icon{width:1.3rem;height:1.3rem;line-height:1;flex:0 0 1.3rem;position:relative;top:0;}
.role-badge__icon i{display:flex;align-items:center;justify-content:center;line-height:1;font-size:.78rem;position:static;}
.role-badge__label{display:inline-flex;align-items:center;line-height:1.05;}
.legal-modal{position:fixed;inset:0;z-index:1400;display:none;}
.legal-modal.is-open{display:block;}
.legal-modal__backdrop{position:absolute;inset:0;background:rgba(4,10,18,.72);backdrop-filter:blur(6px);}
.legal-modal__dialog{position:relative;z-index:1;max-width:760px;margin:5vh auto 0;background:linear-gradient(180deg, rgba(19,36,58,.98) 0%, rgba(11,21,35,.99) 100%);border:1px solid rgba(239,203,133,.18);border-radius:26px;box-shadow:0 28px 60px rgba(0,0,0,.42);padding:1.35rem 1.35rem 1.15rem;color:#eef3fb;}
.legal-modal__close{position:absolute;top:1rem;right:1rem;width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#fff;display:inline-flex;align-items:center;justify-content:center;}
.legal-modal__close:hover{background:rgba(255,255,255,.09);}
.legal-modal__content h2{font-size:1.6rem;margin:.5rem 0 1rem;color:#fff;}
.legal-copy p{margin:0 0 .95rem;color:var(--muted-soft);line-height:1.78;}
.legal-copy p:last-child{margin-bottom:0;}
@media (max-width:767.98px){
  .footer-top-grid{grid-template-columns:1fr !important;}
  .footer-pills{max-width:none;}
  .legal-modal__dialog{margin:0;min-height:100vh;border-radius:0;padding:1.25rem 1rem 1rem;}
}


/* v21 footer minimal + centered copyright */
.footer-minimal{padding:3.35rem 1.4rem 1.1rem;}
.footer-top-grid--minimal{grid-template-columns:1fr !important;}
.footer-minimal .footer-brand-col{align-items:center;text-align:center;max-width:920px;margin-inline:auto;}
.footer-inline-links{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;color:rgba(233,239,248,.78);margin-top:.3rem;}
.footer-inline-links a{color:var(--gold-2);text-decoration:none;font-weight:600;}
.footer-inline-links a:hover{color:#fff;text-decoration:underline;}
.footer-inline-sep{opacity:.5;}
.footer-inline-version{}
.footer-bottom-row--centered{display:flex !important;justify-content:center !important;justify-items:center !important;text-align:center !important;}
.footer-copyright-stack--centered{width:100%;display:flex;flex-direction:column;align-items:center;gap:.32rem;}
.footer-copyright-stack--centered .footer-copyright-line,.footer-copyright-stack--centered .footer-madeby{justify-content:center !important;text-align:center;}
.footer-meta-col,.footer-pills,.footer-version-row{display:none !important;}
.legal-copy b{font-weight:700;}
.legal-copy p{margin-bottom:1rem;}
@media (max-width: 767.98px){.footer-inline-links{gap:.4rem;}.footer-minimal .footer-brand-col{max-width:none;}}

.footer-minimal .footer-brand,.footer-minimal .footer-brand-copy,.footer-minimal .footer-inline-links{justify-content:center;text-align:center;align-self:center;}
.footer-minimal .footer-brand-text{align-items:center;text-align:center;}


/* v23 footer alignment tweaks */
.footer-minimal .footer-brand{align-items:center;gap:.9rem;justify-content:flex-start;text-align:left;align-self:flex-start;}
.footer-minimal .footer-brand-logo{width:100px;max-width:100px;height:auto;flex:0 0 100px;}
.footer-minimal .footer-brand-text{align-items:flex-start !important;text-align:left !important;}
.footer-minimal .footer-brand-text strong,
.footer-minimal .footer-brand-text small{display:block;text-align:left;}
.footer-minimal .footer-brand-copy{white-space:nowrap;max-width:none;text-align:center;align-self:center;}
@media (max-width: 991.98px){
  .footer-minimal .footer-brand{align-self:center;}
}
@media (max-width: 767.98px){
  .footer-minimal .footer-brand{justify-content:center;text-align:center;}
  .footer-minimal .footer-brand-text{align-items:center !important;text-align:center !important;}
  .footer-minimal .footer-brand-text strong,
  .footer-minimal .footer-brand-text small{text-align:center;}
  .footer-minimal .footer-brand-copy{white-space:normal;}
}


/* v24 footer centering + legal modal scroll */
.footer-brand-col{
  align-items:center !important;
  text-align:center !important;
}
.footer-brand{
  justify-content:center !important;
  text-align:center !important;
}
.footer-brand-text{
  align-items:center !important;
  text-align:center !important;
}
.footer-brand-copy{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.footer-inline-links{
  justify-content:center !important;
}
.legal-modal__dialog{
  max-height:90vh;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.legal-modal__content{
  overflow:visible;
}
@media (max-width: 767.98px){
  .legal-modal__dialog{
    max-height:100vh;
    overflow-y:auto;
  }
}


/* v25 footer cleanup + center block */
.site-footer{position:relative; z-index:2; overflow:visible; padding-bottom:1rem;}
.site-footer .site-footer-inner.footer-minimal{display:block !important; width:100%; max-width:none; margin:0 auto; padding:3.35rem 1.4rem 1.1rem; background:transparent !important; border:none !important; box-shadow:none !important; border-radius:0 !important; min-height:unset !important; overflow:visible !important;}
.site-footer .footer-top-grid--minimal{display:block;}
.site-footer .footer-brand-col{display:flex; flex-direction:column; align-items:center !important; justify-content:center; text-align:center !important; max-width:1100px; margin:0 auto;}
.site-footer .footer-brand{display:flex; align-items:center; justify-content:center !important; align-self:center !important; gap:.95rem; text-align:center !important; margin:0 auto;}
.site-footer .footer-brand-logo{width:100px; max-width:100px; height:auto; flex:0 0 100px;}
.site-footer .footer-brand-text{display:flex; flex-direction:column; align-items:center !important; text-align:center !important;}
.site-footer .footer-brand-text strong, .site-footer .footer-brand-text small{display:block; text-align:center !important;}
.site-footer .footer-brand-copy{white-space:nowrap; max-width:none; margin:.65rem auto 0; text-align:center !important; align-self:center !important;}
.site-footer .footer-inline-links{justify-content:center; align-self:center; margin-top:.5rem;}
.site-footer .footer-bottom-row--centered{margin-top:.7rem;}
@media (max-width: 991.98px){.site-footer .footer-brand-copy{white-space:normal;}}


/* v26 footer/logo stack */
.site-footer .footer-brand{flex-direction:column !important; gap:.65rem !important;}
.site-footer .footer-brand-logo{display:block; margin:0 auto;}
.site-footer .footer-brand-text{align-items:center !important; text-align:center !important;}
.site-footer .footer-brand-text strong, .site-footer .footer-brand-text small{display:block; text-align:center !important;}
.site-footer .footer-brand-copy{margin-top:.8rem !important;}

/* v27 footer adjustments */
.site-footer .footer-brand{gap:.35rem !important;}
.site-footer .footer-brand-text{gap:.05rem !important;}
.site-footer .footer-brand-logo{margin-bottom:.1rem !important;}
.site-footer .footer-brand-text strong{line-height:1.05;}
.site-footer .footer-brand-text small{line-height:1.15; margin-top:.05rem;}
.site-footer .footer-inline-links{gap:.5rem;}

/* v29 footer logo/text tighter */
.site-footer .footer-brand{gap:.16rem !important;}
.site-footer .footer-brand-logo{margin-bottom:0 !important;}
.site-footer .footer-brand-text{gap:0 !important;}
.site-footer .footer-brand-text strong{margin:0; line-height:1.02;}
.site-footer .footer-brand-text small{margin-top:0 !important; line-height:1.08;}

/* v30 — footer logo spacing */
.site-footer .footer-brand{gap:10px !important;}
.site-footer .footer-brand-logo{margin-bottom:10px !important;}
.site-footer .footer-brand-text{gap:0 !important;}
.site-footer .footer-brand-text strong{margin:0 !important; line-height:1.02;}
.site-footer .footer-brand-text small{margin:0 !important; line-height:1.08;}

/* v31 footer spacing + CTA tweak */
.site-footer .footer-brand{gap:0 !important;}
.site-footer .footer-brand-logo{margin-bottom:10px !important;}
.site-footer .footer-brand-text{gap:0 !important;}
.site-footer .footer-brand-text strong{margin:0 !important; line-height:1.02 !important;}
.site-footer .footer-brand-text small{margin:0 !important; line-height:1.08 !important;}

/* v33 footer spacing */
.site-footer .site-footer-inner.footer-minimal{padding:3.35rem 1.4rem 1.1rem !important;}
.site-footer .footer-brand-text strong{font-size:1.25rem; line-height:1.2; margin-bottom:.32rem;}

.site-footer .footer-brand-text small{margin-top:.5rem;}

.site-footer .footer-brand-text small {
  margin: 0.5rem !important;
}


/* v40 hero banner gutter + responsive pass */
.hero-community-banner-wrap{
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.hero-community-banner-wrap .community-banner{
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: .75rem;
}
@media (max-width: 991.98px){
  .hero-community-banner-wrap{
    padding-left: .75rem;
    padding-right: .75rem;
  }
  .landing-hero .row{
    align-items: flex-start;
  }
  #hero-preview{
    margin-top: .25rem;
  }
}
@media (max-width: 767.98px){
  .landing-hero-title{
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.04;
  }
  .landing-hero .lead,
  .landing-hero .hero-subcopy{
    font-size: 1rem;
  }
  .hero-checks{
    gap: .5rem;
  }
  .hero-actions .btn{
    width: 100%;
  }
  .community-banner{
    padding: .95rem 1rem;
    font-size: .94rem;
    line-height: 1.5;
  }
  .browser-shell-title{
    font-size: .8rem;
  }
}


/* v42 hero carousel stable height */
#hero-preview .landing-browser-carousel{display:flex;flex-direction:column;}
#hero-preview .browser-carousel{flex:1 1 auto;}
#hero-preview .browser-carousel .carousel-inner{transition:height .28s ease;padding-bottom:20px;}
#hero-preview .browser-carousel .carousel-item{height:100%;}

/* v41 mobile polish: header, hero carousel, FAQ */
@media (max-width: 575.98px){
  .public-navbar .container-fluid,
  .app-navbar .container-fluid{
    flex-wrap: nowrap;
    align-items: center;
    gap: .5rem;
  }
  .public-navbar .navbar-brand,
  .app-navbar .navbar-brand{
    flex: 1 1 auto;
    min-width: 0;
    margin-right: .25rem;
  }
  .public-navbar .navbar-toggler,
  .app-navbar .navbar-toggler{
    flex: 0 0 auto;
    margin-left: auto;
  }
  .brand-logo{ width: 76px; max-width: 76px; }
  .brand-mainline{ gap: .35rem; flex-wrap: nowrap; }
  .brand-mainline strong{ font-size: .92rem; line-height: 1.05; }
  .brand-title-beta-badge{ font-size: .58rem; padding: .15rem .38rem; }
  .landing-hero .container-fluid{ padding-top: 1.25rem !important; }
  #hero-preview{ margin-top: .75rem !important; }
  .landing-browser-carousel{ min-height: auto !important; }
  .browser-shell-top{ padding: .8rem .95rem; }
  .browser-shell-title{ font-size: .9rem; max-width: 58%; text-align: right; }
  .browser-slide{ padding: .95rem .95rem .85rem; min-height: auto !important; }
  .browser-slide h2,.browser-slide h3{ font-size: 1.06rem; line-height: 1.25; }
  .browser-slide p{ font-size: .98rem; line-height: 1.6; }
  .browser-slide-head{ margin-bottom: .85rem !important; gap: .75rem; }
  .browser-slide-head .slide-badge{ align-self: flex-start; }
  .dash-grid,.future-grid,.community-grid,.dash-grid--extended,.community-grid--extended,.future-grid--expanded,.compare-grid{ gap: .8rem; }
  .member-table-card--rich .member-row{
    grid-template-columns: minmax(0,1.35fr) .6fr .75fr .95fr;
    column-gap: .35rem;
    font-size: .78rem;
  }
  .member-table-card--rich .member-row .member-meta{ gap: .45rem; }
  .member-row .player-preview img{ width: 32px; height: 32px; }
  .member-row .role-badge{ transform: scale(.92); transform-origin: left center; }
  .bst-split{ grid-template-columns: 1fr !important; gap: .75rem; }
  .bst-split img{ max-width: 70%; margin: 0 auto; }
  .landing-faq .accordion-button{
    position: relative;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    align-items: flex-start;
    padding: 1rem 3rem 1rem 1rem;
  }
  .landing-faq .accordion-button::after{
    position: absolute;
    right: 1rem;
    top: 1.15rem;
    margin-top: 0;
  }
  .landing-faq .accordion-button b{ padding-inline: 0; }
  .landing-faq .accordion-body{ padding: .95rem 1rem 1.05rem; }
}


/* v322/v325 mobile-tablet navbar overlay (landing + connected header) */
@media (max-width: 991.98px){
  .public-navbar,
  .public-navbar .container-fluid{
    overflow: visible;
  }
  .public-navbar .container-fluid{
    padding-left: .9rem !important;
    padding-right: .9rem !important;
  }
  .public-navbar .navbar-brand{
    padding-left: .15rem;
  }
  .brand-logo-wrap{
    padding: .3rem .58rem;
    min-width: 98px;
    min-height: 48px;
    border-radius: 15px;
  }
  .brand-logo{
    width: 94px;
    max-width: 94px;
  }
  .public-navbar .navbar-toggler{
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 14px;
    border-color: rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 20px rgba(0,0,0,.16);
  }
  .public-navbar .navbar-toggler .navbar-toggler-icon{
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    background-position: center;
    background-size: 100% 100%;
    flex: 0 0 auto;
  }
  .public-navbar .navbar-toggler:focus{
    box-shadow: 0 0 0 .2rem rgba(239,203,133,.18), inset 0 1px 0 rgba(255,255,255,.05), 0 10px 20px rgba(0,0,0,.16);
  }
  .public-navbar .navbar-collapse{
    position: fixed;
    top: calc(var(--app-navbar-height, 74px) + .35rem);
    left: .75rem;
    right: .75rem;
    z-index: 1059;
    margin: 0;
    padding: .9rem 1rem 1rem;
    max-height: calc(100vh - var(--app-navbar-height, 74px) - 1.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(8,18,33,.99) 0%, rgba(10,21,38,.982) 100%);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.985);
    transform-origin: top center;
    transition: opacity .22s ease, transform .24s ease, visibility .24s ease;
    display: block !important;
  }
  .public-navbar .navbar-collapse.show,
  .public-navbar .navbar-collapse.collapsing{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .public-navbar .navbar-collapse.collapsing{
    height: auto !important;
    overflow: hidden;
  }
  .public-navbar .navbar-nav{
    gap: .55rem !important;
  }
  .public-navbar .nav-link,
  .public-navbar .dropdown-toggle,
  .public-navbar .btn-outline-light,
  .public-navbar .btn-gold{
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
  .public-navbar .nav-item,
  .public-navbar .dropdown{
    width: 100%;
  }
  .public-navbar .dropdown-menu,
  .public-navbar .lang-dropdown .dropdown-menu,
  .public-navbar .app-lang-menu,
  .public-navbar .profile-menu-dropdown{
    position: static;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    margin-top: .45rem;
  }
  .public-navbar .dropdown-toggle::after{
    margin-left: auto;
  }
}

@media (max-width: 575.98px){
  .public-navbar .container-fluid,
  .app-navbar .container-fluid{
    min-height: 74px;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }
  .public-navbar .navbar-brand,
  .app-navbar .navbar-brand{
    gap: .6rem !important;
    align-items: center !important;
  }
  .brand-logo-wrap{
    width: auto;
    height: 50px;
    min-width: 96px;
    min-height: 50px;
    padding: .26rem .52rem;
    border-radius: 15px;
  }
  .brand-logo{
    width: 88px;
    max-width: 88px;
    height: auto;
  }
  .brand-title{
    min-width: 0;
  }
  .brand-mainline{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "wos rest"
      "beta rest";
    align-items: start;
    column-gap: .28rem;
    row-gap: .14rem;
    min-width: 0;
  }
  .brand-mainline strong{
    min-width: 0;
    font-size: .88rem;
    line-height: 1.08;
    display: contents;
  }
  .brand-word-wos{ grid-area:wos; }
  .brand-word-rest{ grid-area:rest; align-self:start; }
  .brand-title-beta-badge{ grid-area:beta; justify-self:start; margin-top:0; }
  .landing-page .public-navbar .navbar-collapse{
    left: .6rem;
    right: .6rem;
    padding: .85rem .9rem .95rem;
    border-radius: 20px;
  }
  .landing-page .brand-subline{
    display: none;
  }
}



/* v330 mobile/footer/admin alliances/news fixes */
@media (max-width: 991.98px){
  body:has(.has-mobile-bottom-nav){
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }
  .module-mobile-sheet{
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .module-mobile-sheet .offcanvas-body{
    max-height: calc(100dvh - var(--app-navbar-height, 74px) - 148px - env(safe-area-inset-bottom, 0px));
  }
  .news-table-card #allianceNewsTable td:first-child,
  .news-table-card #allianceNewsTable th:first-child{
    white-space: normal;
    min-width: 0;
  }
  .news-list-locale-panel,
  .news-list-locale-panel strong,
  .news-list-link,
  .news-list-locale-panel .text-secondary.small{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}
@media (max-width: 575.98px){
  body:has(.has-mobile-bottom-nav){
    padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  }
  .module-mobile-sheet .offcanvas-body{
    max-height: calc(100dvh - var(--app-navbar-height, 74px) - 136px - env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 1024px){
  .dt-details__value,
  #adminAlliancesTable_wrapper .dt-details__value{
    text-align:right !important;
  }
  #adminAlliancesTable_wrapper .dt-details__value .dropdown,
  #adminAlliancesTable_wrapper .dt-details__value .btn{
    margin-left:auto;
  }
  #adminAlliancesTable_wrapper .dt-details__value .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}

/* v326 mobile connected/admin bottom navigation */
.module-mobile-nav,
.module-mobile-sheet{
  display:none;
}

@media (max-width: 991.98px){
  body:has(.has-mobile-bottom-nav){
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .has-mobile-bottom-nav .module-subnav-desktop-content{
    display:none;
  }
  .module-mobile-nav{
    position:fixed;
    left:.7rem;
    right:.7rem;
    bottom:calc(.7rem + env(safe-area-inset-bottom, 0px));
    z-index:1048;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:.4rem;
    padding:.45rem;
    border:1px solid rgba(255,255,255,.10);
    border-radius:24px;
    backdrop-filter:blur(18px);
    box-shadow:0 18px 44px rgba(0,0,0,.34);
  }
  .module-mobile-nav-app{
    background:linear-gradient(180deg, rgba(8,18,33,.98) 0%, rgba(10,21,38,.99) 100%);
  }
  .module-mobile-nav-admin{
    background:linear-gradient(180deg, rgba(86,24,24,.98) 0%, rgba(68,16,16,.99) 100%);
  }
  .module-mobile-nav__item{
    appearance:none;
    border:0;
    background:transparent;
    color:rgba(233,240,252,.74);
    min-height:58px;
    border-radius:18px;
    padding:.5rem .3rem .45rem;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.32rem;
    text-decoration:none;
    position:relative;
    font-weight:700;
    font-size:.72rem;
    line-height:1.08;
    transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
  }
  .module-mobile-nav__item i{
    font-size:1.15rem;
    line-height:1;
  }
  .module-mobile-nav__item span{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
  }
  .module-mobile-nav__item:hover,
  .module-mobile-nav__item:focus{
    color:#fff;
    background:linear-gradient(180deg, rgba(78,118,184,.22), rgba(44,75,129,.14));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  }
  .module-mobile-nav__item.is-active{
    color:#fff;
    background:linear-gradient(180deg, rgba(91,135,208,.34) 0%, rgba(48,84,145,.24) 100%);
    border:1px solid rgba(126,169,236,.26);
    box-shadow:0 10px 24px rgba(10,18,34,.26), inset 0 1px 0 rgba(255,255,255,.08);
  }
  .module-mobile-nav__item.is-active i,
  .module-mobile-nav__item.is-active span{
    color:#fff;
  }
  .module-mobile-nav-admin .module-mobile-nav__item:hover,
  .module-mobile-nav-admin .module-mobile-nav__item:focus,
  .module-mobile-nav-admin .module-mobile-nav__item.is-active{
    background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  }
  .module-mobile-nav__badge{
    position:absolute;
    top:.4rem;
    right:.55rem;
    min-width:1.1rem;
    height:1.1rem;
    padding:0 .28rem;
    border-radius:999px;
    background:#dc3545;
    color:#fff;
    font-style:normal;
    font-size:.62rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 6px 14px rgba(0,0,0,.24);
  }
  .module-mobile-sheet{
    display:block;
    z-index:1061 !important;
    top:auto !important;
    left:.75rem !important;
    right:.75rem !important;
    width:auto !important;
    bottom:calc(94px + env(safe-area-inset-bottom, 0px)) !important;
    height:auto !important;
    max-height:calc(100dvh - var(--app-navbar-height, 74px) - 98px - env(safe-area-inset-bottom, 0px)) !important;
    border-radius:26px;
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 -18px 44px rgba(0,0,0,.36);
    backdrop-filter:blur(20px);
    padding-bottom:0;
    background:linear-gradient(180deg, rgba(8,18,33,.99) 0%, rgba(10,21,38,.99) 100%);
    color:#eef3fa;
    overflow:hidden;
  }
  .module-mobile-sheet--admin{
    background:linear-gradient(180deg, rgba(86,24,24,.99) 0%, rgba(68,16,16,.99) 100%);
  }

  .module-mobile-sheet + .offcanvas-backdrop,
  .offcanvas-backdrop.show{
    z-index:1060;
  }
  .module-mobile-sheet .offcanvas-header{
    align-items:flex-start;
    padding:1rem 1rem .6rem;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .module-mobile-sheet .offcanvas-body{
    flex:1 1 auto;
    min-height:0;
    max-height:calc(100dvh - var(--app-navbar-height, 74px) - 178px - env(safe-area-inset-bottom, 0px));
    padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
  }
  .module-mobile-sheet.show,
  .module-mobile-sheet.showing{
    pointer-events:auto;
  }
  .module-mobile-sheet.show .offcanvas-body,
  .module-mobile-sheet.showing .offcanvas-body{
    touch-action:pan-y;
  }
  .module-mobile-sheet__eyebrow{
    font-size:.74rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(233,240,252,.62);
    margin-bottom:.18rem;
  }
  .module-mobile-sheet .offcanvas-title{
    font-size:1.18rem;
    font-weight:800;
    color:#fff;
  }
  .module-mobile-sheet__group-label,

.module-mobile-sheet__group-label--sub{font-size:.72rem;letter-spacing:.06em;color:rgba(255,255,255,.56);margin-top:.7rem;margin-bottom:.35rem;}
  .module-mobile-sheet__lang-title{
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:rgba(233,240,252,.62);
    margin:0 0 .7rem;
  }
  .module-mobile-sheet__group-label + .module-mobile-sheet__list{
    margin-bottom:1rem;
  }
  .module-mobile-sheet__list{
    display:flex;
    flex-direction:column;
    gap:.65rem;
  }
  .module-mobile-sheet__link{
    min-height:52px;
    padding:.9rem 1rem;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    color:#eef3fa;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:.8rem;
    font-weight:700;
  }
  .module-mobile-sheet__link i{
    font-size:1.06rem;
    color:#efcb85;
  }
  .module-mobile-sheet__link span{
    flex:1 1 auto;
    min-width:0;
  }
  .module-mobile-sheet__link small{
    color:#efcb85;
    font-size:.72rem;
    font-weight:800;
  }
  .module-mobile-sheet__link.is-active{
    background:linear-gradient(180deg, rgba(91,135,208,.24) 0%, rgba(48,84,145,.16) 100%);
    border-color:rgba(126,169,236,.28);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(7,14,28,.18);
  }
  .module-mobile-sheet__link.is-active i,
  .module-mobile-sheet__link.is-active small{
    color:#d9e8ff;
  }
  .module-mobile-sheet__link.is-disabled{
    opacity:.62;
  }
  .module-mobile-sheet__link.is-danger i,
  .module-mobile-sheet__link.is-danger small{
    color:#ff9a9a;
  }
  .module-mobile-sheet__divider{
    height:1px;
    background:rgba(255,255,255,.08);
    margin:.2rem 0;
  }
  .module-mobile-sheet__lang-list{
    display:flex;
    flex-wrap:wrap;
    gap:.55rem;
  }
  .module-mobile-sheet__lang{
    padding:.65rem .85rem;
    border-radius:999px;
    text-decoration:none;
    color:rgba(233,240,252,.82);
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    font-weight:700;
    font-size:.84rem;
  }
  .module-mobile-sheet__lang.is-active{
    color:#fff;
    background:linear-gradient(180deg, rgba(239,203,133,.15), rgba(239,203,133,.08));
    border-color:rgba(239,203,133,.2);
  }

@media (max-width: 991.98px){
  .module-mobile-sheet__divider{margin:.6rem 0;}
}
  .module-subnav.has-mobile-bottom-nav{
    position:static;
    top:auto;
    border-bottom:0;
    background:transparent !important;
    backdrop-filter:none;
    min-height:0;
  }
}

@media (max-width: 575.98px){
  body:has(.has-mobile-bottom-nav){
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .module-mobile-nav{
    left:.5rem;
    right:.5rem;
    bottom:calc(.45rem + env(safe-area-inset-bottom, 0px));
    gap:.28rem;
    padding:.38rem;
    border-radius:22px;
  }
  .module-mobile-nav__item{
    min-height:54px;
    padding:.42rem .18rem .38rem;
    font-size:.66rem;
  }
  .module-mobile-nav__item i{
    font-size:1.06rem;
  }
  .module-mobile-sheet{
    left:.5rem !important;
    right:.5rem !important;
    bottom:calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    max-height:calc(100dvh - var(--app-navbar-height, 74px) - 92px - env(safe-area-inset-bottom, 0px)) !important;
    border-radius:22px;
  }
  .module-mobile-sheet--tools{
    height:min(74dvh, 540px) !important;
  }
}


@media (max-width: 991.98px){
  .go-top-btn,
  .cookie-reopen-btn{
    display:none !important;
  }
}


/* v331 mobile/tablet footer + responsive datatables alignment */
@media (max-width: 991.98px){
  body:has(.has-mobile-bottom-nav){
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.has-mobile-bottom-nav) main,
  body:has(.has-mobile-bottom-nav) .app-shell > main,
  body:has(.has-mobile-bottom-nav) .site-footer{
    margin-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.has-mobile-bottom-nav) .footer-brand-copy{
    display:none !important;
  }
}

@media (max-width: 1024px){
  .dt-details__value,
  #adminAlliancesTable_wrapper .dt-details__value,
  #adminUsersTable_wrapper .dt-details__value,
  #adminNoAllianceUsersTable_wrapper .dt-details__value,
  #adminUsersWithoutAccountTable_wrapper .dt-details__value,
  #adminJoinRequestsTable_wrapper .dt-details__value,
  #membersTable_wrapper .dt-details__value,
  #alliance_membersTable_wrapper .dt-details__value,
  #logsTable_wrapper .dt-details__value,
  #ownerUsersTable_wrapper .dt-details__value{
    text-align:right !important;
  }

  .dt-details__value .dropdown,
  .dt-details__value .btn{
    margin-left:auto;
  }

  .dt-details__value .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}


/* v334 logs truncation + admin migrations */
@media (max-width: 1024px){
  #logsTable td.log-action-cell,
  #logsTable td:nth-child(4){
    max-width: 0;
  }

  #logsTable .log-action-text{
    display:block;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

#adminMigrationsTable td:nth-child(3),
#adminMigrationsTable td:nth-child(5){
  white-space:nowrap;
}


@media (min-width: 768px) and (max-width: 991.98px){
  .admin-dashboard-card--wide-tablet{
    width:50%;
  }
}



/* v338 beta spec responsive polish */
.spec-doc-page{
  padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}
.spec-doc-page .app-card,
.spec-doc-page .spec-doc-section-card,
.spec-doc-page .hero-panel{
  overflow: hidden;
}
.spec-doc-page .app-card{
  min-width: 0;
}
.spec-doc-page .spec-doc-tags,
.spec-doc-page .spec-doc-blocks{
  min-width: 0;
}
.spec-doc-page .spec-doc-tag,
.spec-doc-page .spec-doc-block-pill{
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 991.98px){
  .spec-doc-page{
    padding-left: .35rem !important;
    padding-right: .35rem !important;
    padding-bottom: calc(9.25rem + env(safe-area-inset-bottom, 0px));
  }
  .spec-doc-page .hero-panel,
  .spec-doc-page > .app-card,
  .spec-doc-page .spec-doc-section-card{
    border-radius: 20px;
  }
  .spec-doc-page .spec-doc-table tbody{
    gap: 1rem;
  }
  .spec-doc-page .spec-doc-table tr{
    border-radius: 20px;
  }
  .spec-doc-page .spec-doc-table td{
    padding: .9rem 1rem !important;
  }
    .spec-doc-page .spec-doc-table td:nth-child(3){
    overflow: hidden;
  }
  .spec-doc-page .spec-doc-blocks{
    gap: .45rem;
  }
  .spec-doc-page .spec-doc-block-pill{
    font-size: .74rem;
    padding: .38rem .68rem;
  }
}
@media (max-width: 767.98px){
  .spec-doc-page{
    padding-left: .15rem !important;
    padding-right: .15rem !important;
    padding-bottom: calc(9.75rem + env(safe-area-inset-bottom, 0px));
  }
  .spec-doc-page .hero-panel{
    gap: 1rem;
  }
  .spec-doc-page .hero-panel .btn{
    width: 100%;
    justify-content: center;
  }
  .spec-doc-page .spec-doc-section-card{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .spec-doc-page .spec-doc-section-head{
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .spec-doc-page .spec-doc-table td{
    padding: .85rem 1rem !important;
  }
  .spec-doc-page .spec-doc-check-count{
    min-width: 46px;
  }
}


/* v339 beta mobile refinements */
.recette-page{
  padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
}
.recette-page .app-card,
.recette-page .hero-panel,
.recette-page .recette-panel,
.recette-page .table-responsive{
  min-width:0;
}
.recette-page .table-responsive{
  overflow-x:visible;
}
.recette-page .recette-panel__title,
.recette-page .recette-panel__subtitle,
.recette-page .recette-panel__pill,
.recette-page .recette-table td,
.recette-page .recette-table th{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.recette-page .recette-col-url input,
.recette-page .recette-table textarea.form-control,
.recette-page .recette-col-status .form-select,
.recette-page .recette-col-action .btn,
.recette-page .recette-col-url .btn{
  max-width:100%;
}
.recette-summary-table td,
.recette-summary-table th{
  vertical-align:top;
}
@media (max-width: 991.98px){
  .recette-page{
    padding-left:.65rem !important;
    padding-right:.65rem !important;
    padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
  }
  .recette-page .hero-panel,
  .recette-page > .app-card,
  .recette-page .recette-panel{
    border-radius:20px;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .recette-page .app-card,
  .recette-page .hero-panel,
  .recette-page .recette-panel,
  .recette-page .recette-context-card,
  .recette-page .recette-progress-card,
  .recette-page .table-responsive,
  .recette-page .recette-summary-table-wrap,
  .recette-page .recette-table,
  .recette-page .recette-summary-table{
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .recette-page .recette-panel__body{
    overflow:hidden;
  }
  .recette-page .recette-panel__summary-main,
  .recette-page .recette-panel__text,
  .recette-page .recette-panel__meta,
  .recette-page .recette-progress-stats,
  .recette-page .recette-user-switcher,
  .recette-page .row,
  .recette-page [class*="col-"]{
    min-width:0;
  }
  .recette-page .recette-panel__summary,
  .recette-page .recette-panel__body{
    padding-left:1rem;
    padding-right:1rem;
  }
  .recette-page .recette-panel__body.pt-0{
    padding-left:.9rem;
    padding-right:.9rem;
  }
  .recette-page .recette-summary-table-wrap{
    overflow:visible;
  }
  .recette-summary-table,
  .recette-summary-table thead,
  .recette-summary-table tbody,
  .recette-summary-table tr,
  .recette-summary-table th,
  .recette-summary-table td{
    display:block;
    width:100%;
  }
  .recette-summary-table thead{
    display:none;
  }
  .recette-summary-table tbody{
    display:grid;
    gap:.85rem;
  }
  .recette-summary-table tr{
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    overflow:hidden;
    background:rgba(255,255,255,.025);
  }
  .recette-summary-table td{
    padding:.8rem 1rem !important;
    border-top:1px solid rgba(255,255,255,.06);
  }
  .recette-summary-table td:first-child{
    border-top:0;
  }
  .recette-summary-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:.32rem;
    color:rgba(255,255,255,.62);
    font-size:.74rem;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
  }
}
@media (max-width: 767.98px){
  .recette-page .recette-user-switcher{width:100%;}
  .recette-page .recette-user-switcher .form-select{width:100%;}
  div.dt-container div.dt-paging ul.pagination,
  .dataTables_wrapper .dataTables_paginate .pagination,
  .dataTables_wrapper .dt-paging .pagination{
    background: transparent !important;
  }
  .spec-doc-page{
    padding-left:.75rem !important;
    padding-right:.75rem !important;
  }
  .spec-doc-page > .row.g-3{
    margin-left:0;
    margin-right:0;
  }
  .spec-doc-page > .row.g-3 > [class*="col-"]{
    padding-left:0;
    padding-right:0;
  }
  .spec-doc-page .hero-panel,
  .spec-doc-page > .app-card,
  .spec-doc-page .spec-doc-section-card{
    margin-left:0;
    margin-right:0;
  }
  .spec-doc-page .spec-doc-section-card{
    padding-left:.15rem !important;
    padding-right:.15rem !important;
  }
  .spec-doc-page .spec-doc-section-head{
    padding-left:.85rem;
    padding-right:.85rem;
  }
  .spec-doc-page .spec-doc-table td{
    padding:.82rem .85rem !important;
  }
  .spec-doc-page .spec-doc-block-pill,
  .spec-doc-page .spec-doc-tag{
    font-size:.72rem;
  }
  .recette-page{
    padding-left:.75rem !important;
    padding-right:.75rem !important;
    padding-bottom: calc(9.75rem + env(safe-area-inset-bottom, 0px));
  }
  .recette-page .hero-panel{
    gap:1rem;
  }
  .recette-page .hero-panel .btn{
    width:100%;
    justify-content:center;
  }
  .recette-page .recette-panel__summary,
  .recette-page .recette-panel__body{
    padding-left:.85rem;
    padding-right:.85rem;
  }
  .recette-page .recette-panel__body.pt-0{
    padding-left:.7rem;
    padding-right:.7rem;
  }
  .recette-page .recette-context-card,
  .recette-page .recette-progress-card,
  .recette-page .app-card,
  .recette-page .hero-panel,
  .recette-page .recette-panel{
    margin-left:0;
    margin-right:0;
  }
  .recette-page .recette-progress-stats{
    width:100%;
    justify-content:flex-start;
  }
  .recette-page .recette-progress-chip,
  .recette-page .recette-panel__pill{
    white-space:normal;
    text-align:center;
  }
  .recette-page .recette-summary-table td:nth-child(2){
    display:none;
  }
  .recette-page .recette-panel__title{
    font-size:1rem;
  }
  .recette-page .recette-panel__subtitle{
    font-size:.9rem;
  }
  .recette-page .recette-table tbody td{
    padding:.78rem .85rem;
  }
}


/* v340 spec mobile wrap for key sections */
@media (max-width: 767.98px){
  .spec-doc-page .spec-doc-table td[data-label="Sections clés"],
  .spec-doc-page .spec-doc-table td[data-label="Key sections"],
  .spec-doc-page .spec-doc-table td[data-label="Secciones clave"],
  .spec-doc-page .spec-doc-table td[data-label="Schlüsselabschnitte"],
  .spec-doc-page .spec-doc-table td[data-label="Sezioni chiave"],
  .spec-doc-page .spec-doc-table td[data-label="Seções-chave"],
  .spec-doc-page .spec-doc-table td[data-label="主要セクション"],
  .spec-doc-page .spec-doc-table td[data-label="주요 섹션"],
  .spec-doc-page .spec-doc-table td[data-label="關鍵區塊"],
  .spec-doc-page .spec-doc-table td[data-label="الأقسام الرئيسية"]{
    overflow: hidden;
  }

  .spec-doc-page .spec-doc-blocks{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:.45rem;
    width:100%;
    min-width:0;
  }

  .spec-doc-page .spec-doc-block-pill{
    flex:0 1 auto;
    max-width:100%;
  }

  .spec-doc-page .spec-doc-block-pill--muted{
    flex:0 0 auto;
  }
}


/* v341 spec mobile stack key sections cleanly */
@media (max-width: 767.98px){
  .spec-doc-page .spec-doc-table td[data-label="Sections clés"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="Key sections"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="Secciones clave"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="Schlüsselabschnitte"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="Sezioni chiave"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="Seções-chave"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="主要セクション"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="주요 섹션"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="關鍵區塊"] .spec-doc-blocks,
  .spec-doc-page .spec-doc-table td[data-label="الأقسام الرئيسية"] .spec-doc-blocks{
    display:flex;
    flex-wrap:wrap;
    gap:.45rem;
    align-items:flex-start;
  }

  .spec-doc-page .spec-doc-table td[data-label="Sections clés"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Key sections"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Secciones clave"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Schlüsselabschnitte"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Sezioni chiave"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Seções-chave"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="主要セクション"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="주요 섹션"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="關鍵區塊"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="الأقسام الرئيسية"] .spec-doc-block-pill{
    display:inline-flex;
    width:auto;
    max-width:100%;
  }
}


/* v343 spec/recette beta translations & mobile containment */
@media (max-width: 767.98px){
  .spec-doc-page .table-responsive > .spec-doc-table{
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed;
  }
  .spec-doc-page .spec-doc-table td,
  .spec-doc-page .spec-doc-table th{
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .spec-doc-page .spec-doc-table td[data-label="Sections clés"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Key sections"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Secciones clave"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Schlüsselabschnitte"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Sezioni chiave"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="Seções-chave"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="主要セクション"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="주요 섹션"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="關鍵區塊"] .spec-doc-block-pill,
  .spec-doc-page .spec-doc-table td[data-label="الأقسام الرئيسية"] .spec-doc-block-pill{
    width: auto;
  }
}


/* v353 responsive alliance refinements */
.news-list-locale,
.news-list-locale-panel{min-width:0;max-width:100%;}
.news-list-link{display:block;max-width:100%;}
#allianceNewsTable td:first-child .text-secondary.small{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;}

@media (max-width: 991.98px){
  .news-view-top-row{align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;}
  .news-view-top-badges{flex:1 1 auto;min-width:0;margin-bottom:0;}
  .news-view-actions{min-width:auto;align-items:flex-end !important;flex:0 0 auto;}
  .news-view-actions-top{width:auto;justify-content:flex-end !important;align-items:center;}
  .news-view-language-switcher{width:auto;justify-content:flex-end;}
  .news-view-edit-btn{align-self:flex-end;}
}
@media (max-width: 767.98px){
  .news-view-top-row{gap:1rem;}
  .news-view-top-badges{min-width:0;}
  .news-view-actions{align-items:flex-end !important;}
  .news-view-actions-top{flex-wrap:wrap;gap:.55rem;justify-content:flex-end !important;}
  .news-view-author-line{gap:.4rem .5rem !important;align-items:flex-start !important;}
  .news-view-author-sep{display:none;}
  .news-view-byline{display:inline-flex;align-items:center;gap:.45rem;flex-wrap:wrap;flex-basis:100%;}
}


/* v354 alliance responsive refinements */
@media (max-width: 1024px){
  .news-table-card .table-responsive > #allianceNewsTable{min-width:0 !important;width:100% !important;table-layout:auto;}
  #allianceNewsTable td:first-child,
  #allianceNewsTable th:first-child{white-space:normal !important;min-width:0 !important;width:auto !important;}
  #allianceNewsTable td:first-child strong,
  #allianceNewsTable td:first-child a,
  #allianceNewsTable td:first-child .text-secondary.small{white-space:normal !important;overflow-wrap:anywhere;word-break:break-word;}
  .news-view-top-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:1rem;row-gap:.9rem;}
  .news-view-top-badges{min-width:0;grid-column:1;}
  .news-view-actions{grid-column:2;justify-self:end;align-items:flex-end !important;margin-left:auto;min-width:auto;}
  .news-view-actions-top{width:auto;justify-content:flex-end !important;align-items:center;}
}
@media (max-width: 767.98px){
  .news-view-top-row{grid-template-columns:minmax(0,1fr) auto;align-items:start;}
  .news-view-actions{justify-self:end;align-items:flex-end !important;}
  .news-view-actions-top{flex-wrap:nowrap;gap:.55rem;justify-content:flex-end !important;}
  .news-view-author-line{display:flex;flex-wrap:wrap;gap:.3rem .5rem !important;align-items:flex-start !important;}
  .news-view-published{flex-basis:100%;}
  .news-view-byline{display:inline-flex;align-items:center;gap:.45rem;flex-wrap:nowrap;flex-basis:auto;max-width:100%;}
  .news-view-byline .role-badge{max-width:100%;}
}


/* v355 alliance responsive corrections */
@media (max-width: 1024px){
  .news-table-card,
  .news-table-card .table-responsive,
  .news-table-card .dataTables_wrapper,
  .news-table-card .dt-container,
  .news-table-card #allianceNewsTable_wrapper{max-width:100%;overflow-x:hidden !important;}
  .news-table-card #allianceNewsTable{width:100% !important;max-width:100% !important;table-layout:fixed !important;}
  .news-table-card #allianceNewsTable colgroup{display:none;}
  .news-table-card #allianceNewsTable th,
  .news-table-card #allianceNewsTable td{box-sizing:border-box;}
  .news-table-card #allianceNewsTable th:first-child,
  .news-table-card #allianceNewsTable td:first-child{width:auto !important;min-width:0 !important;}
  .news-table-card #allianceNewsTable td:first-child > *,
  .news-table-card #allianceNewsTable td:first-child .news-list-locale,
  .news-table-card #allianceNewsTable td:first-child .news-list-locale-panel{max-width:100%;min-width:0;}
  .news-table-card #allianceNewsTable td:first-child .text-secondary.small{display:block;white-space:normal !important;overflow-wrap:anywhere;word-break:break-word;}
  .news-table-card #allianceNewsTable td,
  .news-table-card #allianceNewsTable th{overflow:hidden;}

  .news-view-actions{justify-self:end;align-items:flex-end !important;margin-left:auto;}
  .news-view-actions-top{justify-content:flex-end !important;align-items:flex-start;}
  .news-view-language-switcher{display:flex !important;justify-content:flex-end !important;margin-left:auto;}
  .news-view-language-switcher .alliance-news-language-badge{margin-left:auto;}
}
@media (max-width: 767.98px){
  .news-view-actions-top{display:flex;flex-direction:row;justify-content:flex-end !important;align-items:flex-start;gap:.55rem;flex-wrap:nowrap;}
  .news-view-language-switcher{align-self:flex-start;}
  .news-view-author-line{display:flex;flex-wrap:wrap;gap:.3rem .45rem !important;align-items:center !important;}
  .news-view-published{flex-basis:100%;}
  .news-view-byline{display:inline-flex;align-items:center;gap:.45rem;flex-wrap:nowrap;flex-basis:auto;max-width:100%;}
}


/* v356 alliance news responsive fix */
.news-view-top-badges-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;min-width:0;}
.news-view-language-switcher--hero{justify-content:flex-start;width:auto;}
@media (max-width: 991.98px){
  .news-view-top-row{align-items:flex-start;}
  .news-view-top-badges-wrap{width:auto;flex:1 1 auto;min-width:0;}
  .news-view-actions{margin-left:auto;min-width:auto;align-items:flex-end !important;}
  .news-view-actions-top{width:auto;justify-content:flex-end !important;}
  .news-view-edit-btn{align-self:flex-end;}
}

@media (max-width: 767.98px){
  .news-table-card,
  .news-table-card .table-responsive,
  .news-table-card .dataTables_wrapper,
  .news-table-card .dt-container,
  #allianceNewsTable_wrapper,
  #allianceNewsTable{max-width:100% !important; width:100% !important;}
  .news-table-card .table-responsive{overflow-x:hidden !important;}
  #allianceNewsTable{table-layout:fixed;}
  #allianceNewsTable th,
  #allianceNewsTable td{white-space:normal; overflow-wrap:anywhere; word-break:break-word;}
  #allianceNewsTable td:nth-child(2),
  #allianceNewsTable th:nth-child(2){width:auto !important;}
  #allianceNewsTable .news-list-locale,
  #allianceNewsTable .news-list-locale-panel,
  #allianceNewsTable .news-list-link{display:block; min-width:0; max-width:100%;}
  #allianceNewsTable .news-list-locale-panel .text-secondary{display:block; max-width:100%; overflow-wrap:anywhere; word-break:break-word;}
  #allianceNewsTable_wrapper table.dataTable th.dt-mobile-hide,
  #allianceNewsTable_wrapper table.dataTable td.dt-mobile-hide{display:none !important;}
}




@media (min-width: 768px) and (max-width: 991.98px){
  .news-view-language-switcher--tablet{display:inline-flex;align-items:center;justify-content:flex-end;}
  .news-view-language-switcher--tablet .alliance-news-language-badge{margin-bottom:0 !important;}
  .news-view-language-switcher--hero{display:none !important;}
}
@media (max-width: 767.98px){
  .news-view-language-switcher--tablet{display:none !important;}
}
@media (min-width: 992px){
  .news-view-language-switcher--tablet{display:none !important;}
}

/* v368 news-view mobile-only layout */
@media (max-width: 767.98px){
  .news-view-top-row{
    flex-direction:column;
    align-items:stretch !important;
    gap:.6rem !important;
  }
  .news-view-top-badges-wrap{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-start;
    gap:.28rem;
    min-width:0;
    width:100%;
  }
  .news-view-top-badges{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:.28rem !important;
    margin-bottom:0;
    min-width:0;
    flex:1 1 auto;
  }
  .news-view-top-badges > *{flex:0 1 auto; min-width:0;}
  .news-view-top-badges-wrap > .news-view-language-switcher--hero{flex:0 0 auto; min-width:0;}
  .news-view-language-switcher--hero{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start !important;
    width:auto;
    margin:0;
    padding:0;
    flex:0 0 auto;
  }
  .news-view-top-badges .eyebrow,
  .news-view-top-badges .alliance-news-type-badge,
  .news-view-language-switcher--hero .alliance-news-language-badge{
    margin-bottom:0 !important;
    font-size:.69rem;
    padding:.18rem .38rem;
    min-height:1.8rem;
    height:1.8rem;
    display:inline-flex;
    align-items:center;
    box-sizing:border-box;
    white-space:nowrap;
  }
  .news-view-top-badges .eyebrow i,
  .news-view-top-badges .alliance-news-type-badge .role-badge__icon,
  .news-view-language-switcher--hero .alliance-news-language-badge .role-badge__icon{
    width:1.08rem;
    height:1.08rem;
    font-size:.69rem;
    flex:0 0 1.08rem;
  }
  .news-view-top-badges .alliance-news-type-badge .role-badge__icon i,
  .news-view-language-switcher--hero .alliance-news-language-badge .role-badge__icon i{
    font-size:.66rem;
  }
  .news-view-top-badges .alliance-news-type-badge .role-badge__label,
  .news-view-language-switcher--hero .alliance-news-language-badge .role-badge__label,
  .news-view-top-badges .eyebrow{
    line-height:1;
  }
  .news-view-actions{
    display:flex;
    flex-direction:row;
    justify-content:flex-end;
    align-items:center !important;
    gap:.55rem;
    width:100%;
    min-width:0;
    margin-left:0;
  }
  .news-view-actions-top{
    order:2;
    width:auto;
    display:flex;
    justify-content:flex-end !important;
    flex:0 0 auto;
  }
  .news-view-edit-btn{
    order:1;
    align-self:auto;
    margin-top:0;
    flex:0 0 auto;
  }
  .news-view-back-btn,
  .news-view-edit-btn{
    white-space:nowrap;
  }
  .news-view-author-line{
    display:flex;
    flex-wrap:wrap;
    gap:.3rem .5rem !important;
    align-items:center !important;
  }
  .news-view-published{
    flex-basis:100%;
  }
  .news-view-author-sep{
    display:none;
  }
  .news-view-byline{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    flex-wrap:nowrap;
    flex-basis:auto;
    max-width:calc(100% - 8.5rem);
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .news-view-author-line > .role-badge{
    flex:0 0 auto;
    margin-left:auto;
    max-width:8rem;
  }
}


/* v372 news-view mobile cleanup + alliance news childrows */
@media (max-width: 767.98px){
  .news-view-top-row{
    display:flex !important;
    flex-direction:column;
    align-items:stretch !important;
    gap:.7rem !important;
  }
  .news-view-top-badges-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:.55rem;
    width:100%;
    min-width:0;
  }
  .news-view-top-badges{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:.5rem !important;
    width:100%;
    margin-bottom:0;
  }
  .news-view-language-switcher--hero{
    display:inline-flex;
    width:auto;
    justify-content:flex-start !important;
    align-self:flex-start;
    margin:0;
    padding:0;
  }
  .news-view-top-badges .eyebrow,
  .news-view-top-badges .alliance-news-type-badge,
  .news-view-language-switcher--hero .alliance-news-language-badge{
    font-size:inherit;
    padding:inherit;
    min-height:0;
    height:auto;
  }
  .news-view-top-badges .alliance-news-type-badge,
  .news-view-language-switcher--hero .alliance-news-language-badge{
    display:inline-flex;
    align-items:center;
  }
  .news-view-top-badges .alliance-news-type-badge .role-badge__icon,
  .news-view-language-switcher--hero .alliance-news-language-badge .role-badge__icon{
    width:1.35rem;
    height:1.35rem;
    flex:0 0 1.35rem;
    font-size:.82rem;
  }
  .news-view-top-badges .alliance-news-type-badge .role-badge__icon i,
  .news-view-language-switcher--hero .alliance-news-language-badge .role-badge__icon i{
    font-size:.82rem;
  }
  .news-view-actions{
    display:flex;
    flex-direction:column;
    align-items:flex-end !important;
    justify-content:flex-start;
    width:100%;
    min-width:0;
    margin-left:0;
    gap:.55rem;
  }
  .news-view-actions-top{
    width:auto;
    display:flex;
    justify-content:flex-end !important;
    align-items:flex-start;
    gap:0;
    flex-wrap:nowrap;
  }
  .news-view-back-btn,
  .news-view-edit-btn{
    white-space:nowrap;
    align-self:flex-end;
  }
  .news-view-edit-btn{margin-top:0;}
  .news-view-author-line{
    display:flex;
    flex-wrap:wrap;
    gap:.3rem .5rem !important;
    align-items:center !important;
  }
  .news-view-published{flex-basis:100%;}
  .news-view-author-sep{display:none;}
  .news-view-byline{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    flex-wrap:nowrap;
    flex-basis:auto;
    max-width:none;
    min-width:0;
    white-space:nowrap;
  }
  .news-view-author-line > .role-badge{
    flex:0 0 auto;
    margin-left:0;
    max-width:none;
  }

  .news-table-card #allianceNewsTable th.dt-control-head,
  .news-table-card #allianceNewsTable td.dt-control{
    width:2rem !important;
    min-width:2rem !important;
    max-width:2rem !important;
    padding-left:.35rem !important;
    padding-right:.35rem !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px){
  .news-table-card #allianceNewsTable th.dt-control-head,
  .news-table-card #allianceNewsTable td.dt-control{
    width:2.15rem !important;
    min-width:2.15rem !important;
    max-width:2.15rem !important;
    padding-left:.4rem !important;
    padding-right:.4rem !important;
  }
}


/* v373 alliance news childrows + news-view mobile/tablet refinements */
@media (min-width: 768px) and (max-width: 1024px){
  .dt-details__value--author > .d-flex{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:.45rem !important;
    width:100%;
    text-align:right;
  }
  .dt-details__value--author > .d-flex > span:first-child{
    min-width:0;
    white-space:nowrap;
    text-align:right;
  }
  .dt-details__value--author > .d-flex > .role-badge,
  .dt-details__value--author > .d-flex > .badge{
    flex:0 0 auto;
  }

  .news-view-language-switcher--tablet{
    display:inline-flex !important;
    align-items:center;
    justify-content:flex-end;
  }
  .news-view-language-switcher--hero{display:none !important;}
}

@media (max-width: 767.98px){
  .dt-details__value--author > .d-flex{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:.35rem .45rem !important;
    width:100%;
    text-align:right;
  }
  .dt-details__value--author > .d-flex > span:first-child{
    min-width:0;
    max-width:100%;
    text-align:right;
    margin-left:auto;
  }
  .dt-details__value--author > .d-flex > .role-badge,
  .dt-details__value--author > .d-flex > .badge{
    flex:0 0 auto;
    margin-left:auto;
  }

  .news-view-top-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start !important;
    column-gap:.85rem;
    row-gap:.85rem;
  }
  .news-view-top-badges-wrap{
    grid-column:1;
    width:auto;
    flex:none;
    gap:.65rem;
    min-width:0;
  }
  .news-view-top-badges{
    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start !important;
    gap:.5rem !important;
    margin-bottom:0 !important;
    width:auto;
  }
  .news-view-top-badges .eyebrow,
  .news-view-top-badges .alliance-news-type-badge,
  .news-view-language-switcher--tablet .alliance-news-language-badge{
    font-size:.83rem !important;
    padding:.25rem .5rem !important;
    min-height:auto !important;
    height:auto !important;
  }
  .news-view-top-badges .alliance-news-type-badge .role-badge__icon,
  .news-view-language-switcher--tablet .alliance-news-language-badge .role-badge__icon{
    width:1.35rem !important;
    height:1.35rem !important;
    flex:0 0 1.35rem !important;
    font-size:.82rem !important;
  }
  .news-view-top-badges .alliance-news-type-badge .role-badge__icon i,
  .news-view-language-switcher--tablet .alliance-news-language-badge .role-badge__icon i{
    font-size:.82rem !important;
  }
  .news-view-language-switcher--hero{display:none !important;}
  .news-view-language-switcher--tablet{
    display:inline-flex !important;
    align-items:center;
    justify-content:flex-start !important;
    width:auto;
    margin:0;
    padding:0;
  }
  .news-view-actions{
    grid-column:2;
    justify-self:end;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    gap:.55rem !important;
    min-width:auto;
    width:auto;
    margin-left:auto;
  }
  .news-view-actions-top{
    width:auto !important;
    display:block !important;
    justify-content:flex-end !important;
  }
  .news-view-actions-top .news-view-language-switcher--tablet{display:none !important;}
  .news-view-back-btn,
  .news-view-edit-btn{
    display:inline-flex;
    white-space:nowrap;
  }
  .news-view-back-btn{order:1;}
  .news-view-edit-btn{order:2; align-self:flex-end !important; margin-top:0 !important;}
}


/* v374 alliance news mobile author badges + news-view language switch restore */
@media (max-width: 767.98px){
  .dt-details__value--author > .d-flex{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:flex-start !important;
    justify-content:flex-end !important;
    gap:.3rem .45rem !important;
    width:100%;
    text-align:right;
  }
  .dt-details__value--author > .d-flex > span:first-child{
    min-width:0;
    max-width:100%;
    text-align:right;
    margin-left:auto;
  }
  .dt-details__author-badges{
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:.35rem;
    flex-wrap:nowrap;
    white-space:nowrap;
    margin-left:auto;
    max-width:100%;
  }
  .dt-details__author-badges > .role-badge,
  .dt-details__author-badges > .badge{
    flex:0 0 auto;
    margin-left:0 !important;
  }

  .news-view-language-switcher--hero{display:none !important;}
  .news-view-actions-top .news-view-language-switcher--tablet{display:none !important;}
  .news-view-top-badges-wrap .news-view-language-switcher--tablet{
    display:inline-flex !important;
    align-items:center;
    justify-content:flex-start !important;
    width:auto;
    margin:0;
    padding:0;
  }
}


/* v375 targeted responsive fixes */
@media (max-width: 767.98px){
  .news-view-language-switcher--hero{
    display:inline-flex !important;
    align-items:center;
    justify-content:flex-start !important;
    width:auto;
    margin:0;
    padding:0;
  }
  .news-view-language-switcher--hero .alliance-news-language-badge{
    margin-left:0 !important;
  }
  .news-view-actions-top .news-view-language-switcher--tablet{
    display:none !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px){
  .bst-player-view-page .hero-panel-player-view .hero-player{
    width:100%;
    display:flex;
    align-items:center;
    gap:1rem;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player > div{
    min-width:0;
    flex:1 1 auto;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player h1{
    margin-bottom:.35rem;
    line-height:1.2;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player-avatar{
    width:68px;
    height:68px;
    flex:0 0 68px;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player-furnace{
    justify-content:flex-start;
  }
  .bst-player-view-page .hero-panel-player-view .kpi-inline{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.65rem;
  }
  .bst-player-view-page .hero-panel-player-view .kpi-pill{
    width:100%;
    text-align:center;
  }
}

@media (max-width: 767.98px){
  .bst-player-view-page .hero-panel-player-view .hero-player{
    align-items:flex-start;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player-avatar{
    width:58px;
    height:58px;
    flex:0 0 58px;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player h1{
    margin-bottom:.4rem;
  }
  .bst-player-view-page .hero-panel-player-view .hero-player-furnace{
    margin-top:.1rem;
  }
  .bst-player-view-page .hero-panel-player-view .kpi-inline{
    grid-template-columns:1fr;
    gap:.5rem;
  }
  .bst-player-view-page .hero-panel-player-view .kpi-pill{
    text-align:left;
    justify-content:flex-start;
  }
  .bst-player-view-page .compare-meta{
    display:grid;
    grid-template-columns:1fr;
    gap:.55rem;
  }
  .bst-player-view-page .compare-meta .kpi-pill{
    width:100%;
    text-align:center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px){
  .bst-dashboard-page .podium-grid{
    grid-template-columns:1fr;
  }
  .bst-dashboard-page .podium-card{
    grid-template-columns:72px 62px 1fr;
    min-height:104px;
  }
}

@media (max-width: 991.98px){
  .bst-player-view-page .action-dropdown-toggle{
    min-width:auto;
  }
}


/* v376 alliance news-view mobile switch + spacing */
@media (max-width: 767.98px){
  .news-view-language-switcher--hero{display:none !important;}
  .news-view-actions-top{
    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-end !important;
    gap:.5rem !important;
  }
  .news-view-actions-top .news-view-language-switcher--tablet{
    display:inline-flex !important;
    align-items:center;
    justify-content:flex-end;
    margin:0;
    padding:0;
  }
  .news-view-lang-panel.is-active{
    margin-top:.45rem;
  }
}


/* v378 targeted fixes */
@media (min-width: 768px) and (max-width: 991.98px){
  .bst-dashboard-page .ranking-row{grid-template-columns:32px minmax(190px,max-content) auto minmax(0,1fr) minmax(84px,auto);column-gap:.5rem;align-items:center;}
  .bst-dashboard-page .ranking-position{grid-column:1;}
  .bst-dashboard-page .ranking-name{grid-column:2;min-width:0;max-width:100%;}
  .bst-dashboard-page .ranking-furnace{grid-column:3;justify-self:start;min-width:0;width:auto;display:inline-flex;justify-content:flex-start;}
  .bst-dashboard-page .ranking-furnace .furnace-badge{margin-left:0;}
  .bst-dashboard-page .ranking-value{grid-column:5;justify-self:end;}
  .bst-dashboard-page .podium-grid{grid-template-columns:1fr;}
  .bst-dashboard-page .podium-card{grid-template-columns:72px 62px 1fr;min-height:104px;}
}

@media (max-width: 767.98px){
  .news-view-language-switcher--hero{display:none !important;}
  .news-view-actions-top .news-view-language-switcher--tablet{display:inline-flex !important;align-items:center;justify-content:flex-end;}
  .news-view-actions-top .news-view-language-switcher--tablet .alliance-news-language-badge{margin-bottom:0 !important;}
  .news-view-lang-panel.is-active{margin-top:.55rem;}
}


.module-mobile-sheet--tools{
  height:auto !important;
  max-height:min(78dvh, 620px) !important;
}
.module-mobile-sheet--tools .offcanvas-body{
  min-height:320px;
  max-height:calc(min(78dvh, 620px) - 84px - env(safe-area-inset-bottom, 0px));
  overflow-y:auto !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable both-edges;
}
.module-mobile-sheet__link--toggle{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.module-mobile-sheet__link--toggle.is-active{
  background:linear-gradient(180deg, rgba(91,135,208,.24) 0%, rgba(48,84,145,.16) 100%);
  border-color:rgba(126,169,236,.28);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(7,14,28,.18);
}
.module-mobile-sheet__link--toggle.is-active i,
.module-mobile-sheet__link--toggle.is-active small{
  color:#d9e8ff;
}
.module-mobile-sheet__submenu{
  margin-top:.6rem;
  padding:.15rem 0 0 .8rem;
  border-left:1px solid rgba(239,203,133,.16);
}
.module-mobile-sheet__submenu .module-mobile-sheet__link + .module-mobile-sheet__link{margin-top:.65rem;}
.module-mobile-sheet__link--sub{
  padding-left:2.85rem;
  min-height:52px;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.075);
}

.module-mobile-sheet__link--toggle{width:100%;appearance:none;text-align:left;cursor:pointer;position:relative;overflow:hidden;transition:background .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease;}
.module-mobile-sheet__link--toggle:hover,.module-mobile-sheet__link--toggle:focus-visible{background:rgba(255,255,255,.05);border-color:rgba(239,203,133,.18);box-shadow:0 10px 24px rgba(0,0,0,.18);}
.module-mobile-sheet__link--toggle .module-mobile-sheet__chevron{margin-left:auto;font-size:.95rem;opacity:.85;transition:transform .25s ease,opacity .2s ease;}
.module-mobile-sheet__link--toggle[aria-expanded="true"] .module-mobile-sheet__chevron{transform:rotate(180deg);opacity:1;}
.module-mobile-sheet__submenu{
  margin-top:0;
  padding:.05rem 0 0 .7rem;
  border-left:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .22s ease,transform .22s ease,margin-top .22s ease,padding-top .22s ease;
  will-change:opacity,transform;
}
.module-mobile-sheet__submenu .module-mobile-sheet__link + .module-mobile-sheet__link{margin-top:.55rem;}
.module-mobile-sheet__submenu.show,
.module-mobile-sheet__submenu.collapsing{
  display:block;
  opacity:1;
  transform:translateY(0);
  margin-top:.55rem;
  padding-top:.35rem;
}
.module-mobile-sheet__submenu.collapsing{transition:height .26s ease,opacity .22s ease,transform .22s ease,margin-top .22s ease,padding-top .22s ease;}
.module-mobile-sheet__link--sub{padding-left:2.7rem;min-height:50px;background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.06);}
.module-mobile-sheet__link--sub span{font-weight:600;}

@media (min-width: 768px) and (max-width: 991.98px){
  .news-table-card #allianceNewsTable td .d-flex .role-badge + .role-badge,
  .news-table-card #allianceNewsTable td .d-flex .role-badge + .badge,
  .news-table-card #allianceNewsTable td .d-flex .badge + .role-badge,
  .news-table-card #allianceNewsTable td .d-flex .badge + .badge{margin-left:.35rem !important;}
  .dt-details__author-badges{gap:.45rem;}
}

@media (min-width: 768px) and (max-width: 991.98px){
  .bst-player-view-page .hero-panel-player-view{padding:1.1rem 1rem;}
  .bst-player-view-page .hero-panel-player-view .hero-player{align-items:flex-start;gap:.9rem;}
  .bst-player-view-page .hero-panel-player-view .hero-player > div{display:flex;flex-direction:column;gap:.35rem;}
  .bst-player-view-page .hero-panel-player-view .hero-player-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:18px;}
  .bst-player-view-page .hero-panel-player-view .hero-player h1{margin-bottom:0;font-size:1.22rem;}
  .bst-player-view-page .hero-panel-player-view .hero-player-furnace .furnace-badge{transform:scale(.94);transform-origin:left center;}
  .bst-player-view-page .hero-panel-player-view .kpi-inline{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;}
  .bst-player-view-page .hero-panel-player-view .kpi-pill{min-height:46px;text-align:left;justify-content:flex-start;padding:.72rem .8rem;white-space:normal;}
  .bst-player-view-page .hero-panel-player-view .kpi-pill .role-badge{max-width:100%;}
}

@media (max-width: 767.98px){
  .bst-player-view-page .hero-panel-player-view{padding:1rem .95rem;}
  .bst-player-view-page .hero-panel-player-view .hero-player{gap:.8rem;align-items:flex-start;}
  .bst-player-view-page .hero-panel-player-view .hero-player > div{display:flex;flex-direction:column;gap:.3rem;min-width:0;}
  .bst-player-view-page .hero-panel-player-view .hero-player-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:16px;}
  .bst-player-view-page .hero-panel-player-view .hero-player h1{margin-bottom:0;font-size:1.08rem;line-height:1.2;}
  .bst-player-view-page .hero-panel-player-view .hero-player-furnace .furnace-badge{transform:scale(.88);transform-origin:left center;}
  .bst-player-view-page .hero-panel-player-view .kpi-inline{grid-template-columns:1fr;gap:.45rem;margin-top:.85rem;}
  .bst-player-view-page .hero-panel-player-view .kpi-pill{min-height:44px;padding:.68rem .78rem;white-space:normal;line-height:1.2;}
  .bst-player-view-page .hero-panel-player-view .kpi-pill .role-badge{max-width:100%;}
  .bst-player-view-page .compare-meta .kpi-pill{text-align:left;justify-content:flex-start;}
}

@media (max-width: 767.98px){
  .news-view-language-switcher--hero{display:none !important;}
  .news-view-actions-top .news-view-language-switcher--tablet{display:inline-flex !important;align-items:center;justify-content:flex-end;}
  .news-view-actions-top .news-view-language-switcher--tablet .alliance-news-language-badge{margin-bottom:0 !important;}
  .news-view-lang-panel.is-active{margin-top:.6rem;}
}


/* v27 bear module actions */
.hero-panel,
.hero-panel .bear-module-actions,
.hero-panel .bear-module-actions-dropdown{overflow:visible;}
.hero-panel{position:relative;z-index:1;}
.bear-module-actions{position:relative;z-index:1080;}
.bear-module-actions-dropdown .action-dropdown-menu{z-index:1085;}
.action-dropdown-menu .dropdown-item.active,
.action-dropdown-menu .dropdown-item.active:hover,
.action-dropdown-menu .dropdown-item.active:focus{
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  font-weight:700;
}
.action-dropdown-menu .dropdown-item.is-current{pointer-events:none;cursor:default;}


.bear-time-readonly,
.bear-time-readonly[readonly] {
  color: #dfe7f1 !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.12) !important;
  -webkit-text-fill-color: #dfe7f1 !important;
  opacity: 1 !important;
  cursor: default;
}

.bear-assignments-accordion .accordion-item {
  overflow: hidden;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.10);
}

.bear-assignments-accordion .accordion-button {
  background: rgba(255,255,255,0.04);
  color: var(--bs-body-color);
  box-shadow: none;
  border-radius: 22px !important;
}

.bear-assignments-accordion .accordion-button:not(.collapsed) {
  background: rgba(255,255,255,0.08);
  color: var(--bs-body-color);
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.bear-assignments-accordion .accordion-button:focus {
  box-shadow: none;
}

.bear-assignments-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: .92;
}




.bear-assignments-hero__top .bear-module-actions {
  margin-left: auto;
  flex: 0 0 auto;
}

.bear-assignments-hero__top .bear-module-actions-dropdown,
.bear-assignments-hero__top .bear-module-actions .dropdown {
  margin-left: auto;
}

@media (min-width: 992px) {
  .bear-assignments-hero__top {
    flex-wrap: nowrap;
    align-items: center;
  }

  .bear-assignments-hero__top .eyebrow {
    min-width: 0;
    flex: 1 1 auto;
  }

  .bear-assignments-hero__top .bear-module-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  .bear-assignments-hero__top {
    flex-wrap: nowrap;
    align-items: center;
  }

  .bear-assignments-hero__top .eyebrow {
    min-width: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: calc(100% - 8rem);
    white-space: nowrap;
  }

  .bear-assignments-hero__top .bear-module-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}


/* Bear module hero action placement */
.bear-summary-hero,
.bear-events-hero,
.bear-settings-hero{position:relative;overflow:visible;}
.bear-summary-hero .bear-module-actions,
.bear-events-hero .bear-module-actions,
.bear-settings-hero .bear-module-actions{flex:0 0 auto;margin-left:auto;position:relative;z-index:5;justify-content:flex-end;}
.bear-summary-hero .bear-module-actions .dropdown,
.bear-events-hero .bear-module-actions .dropdown,
.bear-settings-hero .bear-module-actions .dropdown{margin-left:auto;}

@media (max-width: 991.98px){
  .bear-summary-hero,
  .bear-events-hero,
  .bear-settings-hero{display:block !important;position:relative;}
  .bear-summary-hero > div:first-child,
  .bear-events-hero > div:first-child,
  .bear-settings-hero > div:first-child{min-width:0;flex:1 1 auto;width:100%;}
  .bear-summary-hero > div:first-child .eyebrow,
  .bear-events-hero > div:first-child .eyebrow,
  .bear-settings-hero > div:first-child .eyebrow{
    max-width:calc(100% - 8.75rem);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    margin-bottom:1rem;
  }
  .bear-summary-hero .bear-module-actions,
  .bear-events-hero .bear-module-actions,
  .bear-settings-hero .bear-module-actions{
    position:absolute;
    top:.15rem;
    right:0;
    margin-left:0;
  }
  .bear-summary-hero .bear-module-actions .dropdown,
  .bear-events-hero .bear-module-actions .dropdown,
  .bear-settings-hero .bear-module-actions .dropdown{margin-left:0;}
}

@media (min-width: 768px) and (max-width: 991.98px){
  .bear-summary-hero .bear-module-actions .dropdown,
  .bear-events-hero .bear-module-actions .dropdown,
  .bear-settings-hero .bear-module-actions .dropdown{
    margin-top: 1.35rem;
    margin-right: 1.25rem;
  }
}

@media (max-width: 767.98px){
  .bear-summary-hero .bear-module-actions .dropdown,
  .bear-events-hero .bear-module-actions .dropdown,
  .bear-settings-hero .bear-module-actions .dropdown{
    margin-top: 0.95rem;
    margin-right: 0.95rem;
  }
}



/* Bear assignments hero */

.bear-assignments-hero.hero-panel::before{border-radius:18px;}
.bear-assignments-hero{position:relative;overflow:visible;}
.bear-assignments-hero__content{min-width:0;flex:1 1 auto;width:100%;}
.bear-assignments-hero__top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:nowrap;}
.bear-assignments-hero__top .eyebrow{display:inline-flex;align-items:center;flex:0 0 auto;white-space:nowrap;margin-bottom:0;}
.bear-assignments-hero .bear-module-actions{flex:0 0 auto;margin-left:auto;position:relative;z-index:5;justify-content:flex-end;}
.bear-assignments-hero .bear-module-actions .dropdown{margin-left:auto;}

@media (min-width: 992px){
  .bear-assignments-hero{display:flex !important;align-items:flex-start;justify-content:space-between;gap:1rem;}
  .bear-assignments-hero__content{width:auto;}
}

@media (max-width: 991.98px){
  .bear-assignments-hero{display:block !important;position:relative;}
  .bear-assignments-hero__content{width:100%;}
  .bear-assignments-hero__content .eyebrow{
    max-width:calc(100% - 8.75rem);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    margin-bottom:1rem;
  }
  .bear-assignments-hero .bear-module-actions{
    position:absolute;
    top:.15rem;
    right:0;
    margin-left:0;
  }
  .bear-assignments-hero .bear-module-actions .dropdown{margin-left:0;}
}

@media (min-width: 768px) and (max-width: 991.98px){
  .bear-assignments-hero .bear-module-actions .dropdown{
    margin-top: 1.35rem;
    margin-right: 1.25rem;
  }
}

@media (max-width: 767.98px){
  .bear-assignments-hero .bear-module-actions .dropdown{
    margin-top: 0.95rem;
    margin-right: 0.95rem;
  }
}


/* Bear events */
.bear-participants-summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.bear-badge-count,
.bear-badge-rate {
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1;
  padding: .42rem .58rem;
}
.bear-badge-count {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.bear-badge-rate {
  background: rgba(214,165,61,.18);
  color: #f4d88a;
  border: 1px solid rgba(214,165,61,.28);
}
.bear-participants-meta {
  margin-top: .35rem;
}
.bear-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .bear-participants-summary {
    margin-bottom: .25rem;
  }
  .bear-participants-meta {
    display: block;
    margin-top: .4rem;
  }
}
@media (max-width: 767.98px) {
  .bear-events-toolbar {
    justify-content: center !important;
  }
  .bear-events-toolbar > .text-start,
  .bear-events-toolbar > div:first-child {
    width: 100%;
    text-align: left !important;
  }
  .bear-events-filter-form {
    width: 100%;
    justify-content: center;
  }
}

/* Bear Trap event page */
.select2-container--default .select2-selection--multiple {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    min-height: 46px;
    padding: .35rem .45rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(255, 209, 102, .7);
    box-shadow: 0 0 0 .2rem rgba(255, 209, 102, .15);
}

.select2-dropdown {
    background: #182232;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    overflow: hidden;
}

.select2-container--default .select2-results__option,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-search__field {
    color: #eef3fa;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(255, 209, 102, .15);
    border: 1px solid rgba(255, 209, 102, .28);
    border-radius: 999px;
    padding: .15rem .45rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
}

.select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(255,255,255,.08);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(255, 209, 102, .18);
    color: #fff7da;
}

.bear-guest-lookup-result {
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    padding: .9rem 1rem;
}

.bear-guest-lookup-result.is-ready {
    background: rgba(19, 85, 58, .18);
    border-color: rgba(89, 196, 141, .3);
}

.bear-guest-lookup-result.is-error {
    background: rgba(124, 44, 44, .18);
    border-color: rgba(233, 99, 99, .28);
}

.bear-guest-lookup-result__placeholder {
    color: #aeb9c8;
}

.bear-guest-lookup-card {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.bear-guest-lookup-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.14);
}

.bear-guest-lookup-card__body {
    min-width: 0;
    flex: 1;
}

.bear-guest-lookup-card__top,
.bear-guest-lookup-card__meta-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.bear-guest-lookup-card__top strong {
    font-size: 1rem;
}

.bear-guest-lookup-result__meta {
    color: #d6deea;
}

.bear-guest-lookup-card__furnace {
    margin-top: .45rem;
}

.bear-attendance-cell__select {
    min-width: 180px;
    flex: 1 1 180px;
}

.bear-attendance-cell__action {
  min-width:2.3rem;
  height:2.3rem;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

    flex: 0 0 auto;
}

.bear-attendance-cell__action--danger {
    color: var(--bs-danger);
    border-color: rgba(var(--bs-danger-rgb), .45);
    background: rgba(var(--bs-danger-rgb), .08);
}

.bear-attendance-cell__action--danger:hover,
.bear-attendance-cell__action--danger:focus,
.bear-attendance-cell__action--danger:active {
    color: #fff;
    border-color: var(--bs-danger);
    background: var(--bs-danger);
}

@media (max-width: 767.98px) {
    .bear-guest-lookup-card {
        align-items: flex-start;
    }

    .bear-attendance-cell__select {
        min-width: 100%;
        flex-basis: 100%;
    }
}


#bearEventParticipantsTable .role-badge,
#bearEventParticipantsTable .beta-tester-badge,
#bearEventParticipantsTable .creator-badge {
    vertical-align: middle;
}

.bear-guest-lookup-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bear-guest-lookup-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.bear-guest-lookup-card__identity {
    min-width: 0;
    flex: 1;
}

.bear-guest-lookup-card__top,
.bear-guest-lookup-card__meta-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.bear-guest-lookup-card__furnace {
    margin-top: 0;
    flex: 0 0 auto;
}

.bear-guest-lookup-card__furnace .furnace-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.bear-guest-lookup-card__furnace .furnace-badge img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.bear-guest-lookup-card__furnace .furnace-badge span {
    display: none;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    min-width: 8rem !important;
    height: 28px;
    line-height: 28px;
}

@media (max-width: 767.98px) {
    .bear-guest-lookup-card,
    .bear-guest-lookup-card__body {
        align-items: flex-start;
    }

    .bear-guest-lookup-card__body {
        flex-direction: row;
    }
}

/* Bear Trap event page – refined Select2 + participants level column */
.bear-guest-lookup-card__meta-row {
    justify-content: space-between;
}

.select2-container--default .select2-selection--multiple {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: .3rem .65rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    align-items: center;
    align-content: center;
    min-height: 28px;
    gap: .45rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .2rem .45rem .2rem .65rem;
    background: rgba(255, 209, 102, .16);
    border: 1px solid rgba(255, 209, 102, .3);
    border-radius: 999px;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: #fff7da;
    font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    order: 2;
    position: static;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background: rgba(255,255,255,.24);
    color: #fff;
}

.select2-results__options {
    padding: .4rem;
}

.select2-container--default .select2-results__option {
    border-radius: 12px;
    padding: .55rem .7rem;
}


.select2-container--default .select2-results__option {
    display: flex;
    align-items: center;
}


.bear-select2-option {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.bear-select2-option__name {
    color: #eef3fa;
    font-weight: 600;
}

.bear-select2-option__meta {
    color: #9db0c8;
    font-size: .82rem;
}

.bear-participant-level-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#bearEventParticipantsTable .furnace-badge {
    min-width: 3.25rem;
    justify-content: center;
}

#bearEventParticipantsTable .furnace-badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#bearEventParticipantsTable td:nth-child(3),
#bearEventParticipantsTable th:nth-child(3) {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .bear-guest-lookup-card__meta-row {
        justify-content: flex-start;
    }

    .select2-container--default .select2-selection--multiple {
        min-height: 40px;
        padding-top: .3rem;
        padding-bottom: .3rem;
    }
}


/* v66 bear event select2 + participants refinements */
.select2-container--open {
    z-index: 2500;
}

.select2-dropdown {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(112, 182, 255, .18);
    color: #f4f9ff;
}

.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    padding: .2rem .6rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    min-height: 34px;
    padding: 0;
    gap: .4rem;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 34px;
    line-height: 34px;
    margin: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    min-height: 28px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    width: 1.2rem;
    height: 1.2rem;
    transform: none;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    transform: translateY(-.5px);
}

.select2-results__options {
    max-height: 260px;
}

.bear-exception-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#bearEventParticipantsTable .badge.text-bg-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

#bearEventParticipantsTable td:nth-child(2),
#bearEventParticipantsTable th:nth-child(2) {
    width: 72px;
    text-align: center;
}


/* v66.1 bear event select2 final polish */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(112, 182, 255, .14);
    border-color: rgba(112, 182, 255, .26);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: #edf5ff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    display: grid;
    place-items: center;
    line-height: 1;
}


/* v67 bear event refinements */
.bear-overflow-visible,
.bear-overflow-visible .table-responsive,
.bear-overflow-visible .dataTables_wrapper,
.bear-overflow-visible .dt-container,
.bear-overflow-visible .select2-container {
    overflow: visible !important;
}

#bearEventParticipantsTable .bear-participant-level-icon {
    margin: 0;
}

#bearEventParticipantsTable td:nth-child(2),
#bearEventParticipantsTable th:nth-child(2) {
    text-align: left;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    align-self: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove > span {
    transform: none;
}

.select2-container--default .select2-results__option {
    background: rgba(17, 28, 49, .96);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(88, 145, 255, .22);
    color: #f5f9ff;
}

.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(255,255,255,.07);
    color: #dfe9f8;
}

/* v68 bear event fixes */
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    padding: .1rem .6rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    min-height: 28px;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    min-height: 28px;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 28px;
    line-height: 28px;
}

@media (max-width: 767.98px) {
    #bearEventParticipantsTable .bear-attendance-cell,
    .dt-details .bear-attendance-cell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
        width: 100%;
    }

    #bearEventParticipantsTable .bear-attendance-cell__select,
    .dt-details .bear-attendance-cell__select {
        width: 100%;
        flex: 1 1 100%;
    }

    #bearEventParticipantsTable .bear-attendance-cell__action,
    .dt-details .bear-attendance-cell__action {
  min-width:2.3rem;
  height:2.3rem;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

        align-self: flex-start;
        margin-top: 0;
    }
}

/* v69 bear event select2 selected tags vertical centering */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    align-items: center;
}


/* v73 bear event tweaks */
.bear-guest-lookup-result {
    min-height: 0 !important;
}


/* v74 bear event overview + management + childrow fixes */
.bear-event-overview-card,
.bear-event-management-card{position:relative;overflow:hidden;}
.bear-event-overview-card::before,
.bear-event-management-card::before{content:'';position:absolute;inset:0 auto auto 0;width:100%;height:1px;background:linear-gradient(90deg, rgba(112,182,255,.45), rgba(255,255,255,0));pointer-events:none;}
.bear-event-overview-card__pill,
.bear-event-management-card__lock{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .85rem;border-radius:999px;background:rgba(112,182,255,.12);border:1px solid rgba(112,182,255,.2);color:#eaf3ff;font-weight:600;font-size:.92rem;}
.bear-event-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;margin-top:.35rem;margin-bottom:1rem;}
.bear-event-kpis--five{grid-template-columns:repeat(5,minmax(0,1fr));}
.bear-event-kpi--neutral{border-color:rgba(182,198,224,.18);background:linear-gradient(180deg, rgba(182,198,224,.12), rgba(182,198,224,.04));}
.bear-event-kpi--neutral::before{background:#8ea4c9;}
.bear-event-kpi--percent .bear-event-kpi__value--percent{font-size:2.35rem;font-weight:800;letter-spacing:-.03em;}
.bear-event-kpi{position:relative;padding:1rem 1.05rem;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));box-shadow:inset 0 1px 0 rgba(255,255,255,.04);display:flex;flex-direction:column;gap:.3rem;min-width:0;overflow:hidden;}
.bear-event-kpi::before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:3px;border-radius:18px 18px 0 0;background:rgba(182,198,224,.78);opacity:.95;}
.bear-event-kpi__label{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#9fb0c9;}
.bear-event-kpi__value{font-size:1.75rem;line-height:1;color:#fff;}
.bear-event-kpi__meta{font-size:.9rem;color:#d9e5f5;}
.bear-event-kpi__meta small{font-size:.85em;}
.bear-event-kpi--primary{border-color:rgba(112,182,255,.22);background:linear-gradient(180deg, rgba(112,182,255,.16), rgba(112,182,255,.06));}
.bear-event-kpi--primary::before{background:#5ea8ff;}
.bear-event-kpi--success{border-color:rgba(77,208,147,.22);background:linear-gradient(180deg, rgba(77,208,147,.16), rgba(77,208,147,.05));}
.bear-event-kpi--success::before{background:#24d79f;}
.bear-event-kpi--danger{border-color:rgba(255,111,145,.22);background:linear-gradient(180deg, rgba(255,111,145,.16), rgba(255,111,145,.05));}
.bear-event-kpi--danger::before{background:#ff7d85;}
.bear-event-kpi--accent{border-color:rgba(255,209,102,.22);background:linear-gradient(180deg, rgba(255,209,102,.16), rgba(255,209,102,.05));}
.bear-event-kpi--accent::before{background:#f5c24f;}
.bear-event-overview-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.95rem;margin-bottom:1.1rem;}
.bear-event-overview-strip__item{padding:.85rem .95rem;border-radius:16px;background:rgba(10,19,33,.5);border:1px solid rgba(255,255,255,.06);min-width:0;}
.bear-event-overview-strip__label{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#8fa1bc;margin-bottom:.3rem;}
.bear-event-overview-strip__value{display:block;color:#f5f8fd;white-space:normal;overflow-wrap:anywhere;}
#bearEventParticipantsTable td:nth-child(2),#bearEventParticipantsTable th:nth-child(2){text-align:left;}
#bearEventParticipantsTable .bear-exception-badge{display:inline-flex;align-items:center;justify-content:center;text-align:center;}
#bearEventParticipantsTable td:nth-child(3),#bearEventParticipantsTable th:nth-child(3){white-space:nowrap;}
@media (max-width: 1024px){
  #bearEventParticipantsTable td:nth-child(2),#bearEventParticipantsTable th:nth-child(2){width:64px;}
}
@media (max-width: 767.98px){
  .bear-event-kpis,.bear-event-overview-strip{grid-template-columns:1fr;}
  .dt-details{max-width:100%;overflow:hidden;padding:.75rem 0;}
  .dt-details__row{grid-template-columns:1fr 1fr;gap:.35rem .75rem;padding:.4rem 0;align-items:start;}
  .dt-details__label{text-align:left;max-width:100%;min-width:0;}
  .dt-details__value{text-align:right;max-width:100%;min-width:0;}
  .dt-details__value > *{max-width:100%;}
  .dt-details .bear-attendance-cell{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:.5rem;width:100%;max-width:100%;}
  .dt-details .bear-attendance-cell__select{width:100% !important;min-width:0 !important;flex:1 1 auto !important;}
  .dt-details .bear-attendance-cell__action{align-self:flex-start !important;}
}


/* v98 bear event detail tablet-only hero actions */
@media (min-width: 768px) and (max-width: 991.98px){
  .bear-event-detail-hero{
    position:relative;
  }
  .bear-event-detail-hero__actions{
    position:absolute;
    right:20px;
    top:20px;
    margin-left:0 !important;
  }
}

/* Bear summary dashboard */
.bear-summary-page .bear-summary-filters__help{display:flex;align-items:center;min-height:42px;margin-top:30px}.bear-summary-page .bear-summary-filters .row{align-items:center !important}
.bear-summary-page .accordion .accordion .accordion-body{padding-left:.75rem;padding-right:.75rem}
@media (max-width: 767.98px){.bear-summary-page .bear-summary-filters__help{margin-top:0 !important}.bear-summary-page .accordion .accordion .accordion-body{padding-left:.5rem;padding-right:.5rem}}
.bear-summary-kpi{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.bear-summary-kpi::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:rgba(255,255,255,.18)}
.bear-summary-kpi__label{display:block;font-size:.84rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#b8c7de;margin-bottom:.55rem}
.bear-summary-kpi__value{display:block;font-size:2rem;line-height:1.05;font-weight:800;color:#fff;margin-bottom:.45rem}
.bear-summary-kpi__value--sm{font-size:1.3rem;line-height:1.2}
.bear-summary-kpi__meta{display:block;color:#93a8c5;font-size:.88rem}
.bear-summary-kpi--blue::before{background:linear-gradient(90deg,#5ca8ff 0%,#3f6bff 100%)}
.bear-summary-kpi--success::before{background:linear-gradient(90deg,#30d998 0%,#149e74 100%)}
.bear-summary-kpi--dark::before{background:linear-gradient(90deg,#6f86a8 0%,#3f526d 100%)}
.bear-summary-kpi--gold::before{background:linear-gradient(90deg,#f1c96b 0%,#c98d2b 100%)}
.bear-summary-kpi--success-soft::before{background:linear-gradient(90deg,#5ee8b6 0%,#22b892 100%)}
.bear-summary-kpi--danger-soft::before{background:linear-gradient(90deg,#ff9a8a 0%,#df5a58 100%)}
.bear-summary-kpi--violet::before{background:linear-gradient(90deg,#a88cff 0%,#6e59dc 100%)}
.bear-summary-kpi--teal::before{background:linear-gradient(90deg,#63d4de 0%,#2a9db0 100%)}

.bear-summary-kpi-row .col{min-width:0}
.bear-summary-kpi__label,.bear-summary-kpi__value{white-space:nowrap}.bear-summary-kpi__meta{white-space:normal}
.bear-summary-kpi-row{align-items:stretch}
.bear-summary-kpi-row .app-card{min-height:100%}
.bear-summary-kpi__label{font-size:.78rem}
.bear-summary-kpi__value{font-size:1.75rem}
.bear-rate-badge{background:rgba(92,168,255,.18);border-color:rgba(92,168,255,.34);color:#e9f3ff}
.bear-slot-badge{background:rgba(241,201,107,.15);border-color:rgba(241,201,107,.32)}
.bear-chart-legend__grid{display:grid;grid-template-columns:1fr;gap:.6rem .9rem}
.bear-chart-legend__item{display:flex;align-items:center;gap:.55rem;width:100%;padding:.5rem .7rem;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#dbe7ff;font-weight:600;font-size:.88rem;text-align:left}
.bear-chart-legend__item.is-hidden{opacity:.48}
.bear-chart-legend__swatch{display:inline-block;width:18px;min-width:18px;border-top:3px solid currentColor;background:transparent}
@media (min-width: 768px){.bear-chart-legend--two-cols .bear-chart-legend__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

.bear-event-overview-card__pill--table{display:inline-flex;vertical-align:middle;white-space:nowrap}
.bear-summary-kpi__meta{font-size:.82rem}
.bear-summary-kpi__value{font-size:1.7rem}
@media (min-width: 1200px){.bear-summary-kpi__value{font-size:1.8rem}}

@media (min-width: 1200px){
  .bear-summary-kpi-row{row-gap:1rem}
  .bear-summary-kpi__meta{font-size:.8rem}
}

.bear-summary-kpi__meta{white-space:normal}
.bear-summary-kpi-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;align-items:stretch}
.bear-summary-kpi-row .col{display:block}
.bear-summary-kpi-row > h2.h5{margin:0 0 1rem 0 !important}
@media (max-width: 1199.98px){.bear-summary-kpi-row{display:flex}}
.bear-event-overview-card__pill--bear-1{background:linear-gradient(180deg, rgba(56,111,188,.24) 0%, rgba(39,81,143,.34) 100%);border-color:rgba(92,168,255,.38)}
.bear-event-overview-card__pill--bear-2{background:linear-gradient(180deg, rgba(124,103,196,.22) 0%, rgba(78,63,149,.34) 100%);border-color:rgba(168,140,255,.35)}
.bear-rate-badge--high{background:rgba(39,136,87,.22);border-color:rgba(80,201,128,.38);color:#d7ffe6}
.bear-rate-badge--mid{background:rgba(176,121,22,.24);border-color:rgba(241,201,107,.42);color:#fff1c9}
.bear-rate-badge--low{background:rgba(154,60,60,.24);border-color:rgba(255,138,138,.38);color:#ffe0e0}

@media (min-width: 1200px){
  .bear-summary-kpi-row{grid-template-columns:repeat(5,minmax(0,1fr));}
  .bear-summary-kpi-row .col{min-width:0;}
  .bear-summary-kpi-row .app-card{height:100%;}
}

/* Bear summary KPI layout fix */
.bear-summary-kpi-row{display:grid !important;grid-template-columns:1fr;gap:1rem;align-items:stretch;margin:0 0 1.5rem;}
.bear-summary-kpi-col{min-width:0;width:auto !important;max-width:none !important;flex:none !important;}
.bear-summary-kpi-col .app-card{height:100%;width:100%;}
@media (min-width:768px){.bear-summary-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1200px){.bear-summary-kpi-row{grid-template-columns:repeat(5,minmax(0,1fr));}}


/* v127 bear summary mobile pill compact */
/* Recruitment module */
.recruitment-page .hero-panel{
  align-items:flex-start;
}
.recruitment-page .hero-panel .btn{
  min-height:42px;
}
.recruitment-page .app-card,
.recruitment-page .metric-card{
  min-width:0;
}
.recruitment-active-phase .app-card-header{
  border-bottom:0;
  margin-bottom:0;
}
.recruitment-form-card .app-card-header,
.recruitment-page .app-card-header{
  gap:1rem;
}
.recruitment-phase-pill{
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}
.recruitment-phase-status-pill{
  color:#eef3fa;
}
.recruitment-phase-status-pill--primary{
  background:rgba(112,182,255,.16);
  border-color:rgba(112,182,255,.24);
}
.recruitment-phase-status-pill--success{
  background:rgba(77,208,147,.16);
  border-color:rgba(77,208,147,.24);
}
.recruitment-phase-status-pill--warning{
  background:rgba(255,209,102,.16);
  border-color:rgba(255,209,102,.24);
}
.recruitment-phase-status-pill--danger{
  background:rgba(255,111,145,.16);
  border-color:rgba(255,111,145,.24);
}
.recruitment-phase-status-pill--muted,
.recruitment-phase-status-pill--light{
  background:rgba(182,198,224,.12);
  border-color:rgba(182,198,224,.18);
}
.recruitment-history-table td,
.recruitment-history-table th{
  white-space:nowrap;
}
.recruitment-record-card{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  border-radius:18px;
  padding:1rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.recruitment-danger-card{
  background:linear-gradient(180deg, rgba(68,18,26,.32), rgba(38,10,14,.22));
}
@media (max-width: 991.98px){
  .recruitment-page .hero-panel{
    align-items:stretch;
  }
  .recruitment-page .hero-panel .btn{
    width:100%;
    justify-content:center;
  }
  .recruitment-page .app-card-header{
    flex-direction:column;
    align-items:flex-start!important;
  }
}


.recruitment-phase-pill--preview{
  border-color: rgba(112,182,255,.22);
  background: linear-gradient(180deg, rgba(112,182,255,.14), rgba(112,182,255,.06));
  color: #eaf4ff;
}
.recruitment-history-table .badge{
  font-weight: 700;
}

.recruitment-table-badge{
  min-width:3rem;
  justify-content:center;
  padding:.38rem .68rem;
  color:#eef3fa;
}
.recruitment-table-badge--neutral{
  background:rgba(92,168,255,.18);
  border-color:rgba(92,168,255,.34);
  color:#e9f3ff;
}
.recruitment-table-badge--success{
  background:rgba(39,136,87,.22);
  border-color:rgba(80,201,128,.38);
  color:#d7ffe6;
}
.recruitment-table-badge--danger{
  background:rgba(154,60,60,.24);
  border-color:rgba(255,138,138,.38);
  color:#ffe0e0;
}

.recruitment-power-limit-field{
  position:relative;
}
.recruitment-power-limit-field__input{
  padding-right:4.1rem !important;
}
.recruitment-power-limit-field__suffix{
  position:absolute;
  top:50%;
  right:.6rem;
  transform:translateY(-50%);
  min-width:2.5rem;
  height:32px;
  padding:0 .7rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#eef3fa;
  font-weight:700;
  line-height:1;
  pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.recruitment-kpis{margin-bottom:1rem;}
.recruitment-history-table .recruitment-phase-status-pill,
.recruitment-history-table .recruitment-table-badge{display:inline-flex;align-items:center;gap:.42rem;}
.recruitment-history-table .recruitment-phase-status-pill i{font-size:.82rem;line-height:1;}
.recruitment-table-badge--warning{
  background:rgba(255,209,102,.16);
  border-color:rgba(255,209,102,.32);
  color:#fff1c9;
}
.recruitment-history-table .app-badge.recruitment-phase-status-pill{
  padding:.38rem .68rem;
}


/* v196 recruitment KPI width + status icon */
.recruitment-kpis{grid-template-columns:repeat(6,minmax(0,1fr));}
@media (min-width: 768px) and (max-width: 1199.98px){
  .recruitment-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 767.98px){
  .recruitment-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.recruitment-history-table .recruitment-table-badge{display:inline-flex;align-items:center;gap:.45rem;}
.recruitment-history-table .recruitment-table-badge i{font-size:.86rem;line-height:1;opacity:.95;}


/* v197 recruitment KPI visual parity with bear */
.recruitment-kpis .bear-event-kpi{
  background:linear-gradient(180deg, rgba(22,37,58,.72) 0%, rgba(13,24,39,.78) 100%);
  border-color:rgba(255,255,255,.12);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.recruitment-kpis .bear-event-kpi--primary,
.recruitment-kpis .bear-event-kpi--success,
.recruitment-kpis .bear-event-kpi--danger,
.recruitment-kpis .bear-event-kpi--accent,
.recruitment-kpis .bear-event-kpi--neutral{
  background:linear-gradient(180deg, rgba(22,37,58,.72) 0%, rgba(13,24,39,.78) 100%);
}
.recruitment-kpis .bear-event-kpi__label{color:#d7e3f7;}
.recruitment-kpis .bear-event-kpi__value{color:#ffffff;}


/* Recruitment power input */
.required-star{color:var(--gold)!important;font-weight:700;}
.recruitment-power-group {
  align-items: stretch;
}
.recruitment-power-group .recruitment-power-amount-input {
  min-width: 0;
}
.recruitment-power-group .recruitment-power-unit-select {
  width: 170px;
  max-width: 170px;
  flex: 0 0 170px;
  color: var(--text);
  background-color: rgba(24, 39, 61, .96);
  border-color: rgba(255,255,255,.12);
  background-position: right .85rem center;
  padding-right: 2.35rem;
  border-radius: 0 14px 14px 0 !important;
}
.recruitment-recruit-form .form-label.required-label::after,
.recruitment-recruit-form .form-check-label.required-label::after {
  content: none;
}
.recruitment-power-group .recruitment-power-unit-select:focus {
  border-color: rgba(217,170,89,.55);
  box-shadow: 0 0 0 .25rem rgba(217,170,89,.12);
}
@media (max-width: 575.98px) {
  .recruitment-power-group .recruitment-power-unit-select {
    width: 150px;
    max-width: 150px;
    flex-basis: 150px;
  }
}


.recruitment-offcanvas{
  --bs-offcanvas-width:min(500px, 100vw);
  background:linear-gradient(180deg, rgba(10,21,38,.99) 0%, rgba(8,18,33,.99) 100%);
  color:#eef3fa;
  border-left:1px solid rgba(255,255,255,.08);
  z-index:1090;
}
.recruitment-offcanvas + .offcanvas-backdrop,
.offcanvas-backdrop.show:has(+ .recruitment-offcanvas){
  z-index:1089;
}
.recruitment-offcanvas .offcanvas-header{
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:1rem 1rem .85rem;
}
.recruitment-offcanvas .offcanvas-body{
  padding:1rem;
}
.recruitment-offcanvas-form{
  display:block;
}
.recruitment-offcanvas-form .btn{
  min-height:42px;
}
@media (min-width: 768px) and (max-width: 991.98px){
  .recruitment-offcanvas{
    --bs-offcanvas-width:75vw;
  }
}
@media (max-width: 767.98px){
  .recruitment-offcanvas{
    --bs-offcanvas-width:100vw;
  }
}


.recruitment-offcanvas .recruitment-offcanvas-form .player-preview-card {
  min-height: auto;
}

.recruitment-offcanvas .recruitment-recruit-form .input-group-lg > .form-control,
.recruitment-offcanvas .recruitment-recruit-form .input-group-lg > .form-select {
  min-height: 52px;
}
.recruitment-offcanvas .recruitment-recruit-form .input-group-lg > .btn,
.recruitment-offcanvas .recruitment-recruit-form .input-group-lg .player-id-tip-wrap {
  min-height: 42px !important;
  height: 42px !important;
}
.recruitment-offcanvas .recruitment-recruit-form .input-group-lg .player-id-tip-wrap{
  display:inline-flex;
}
.recruitment-offcanvas .recruitment-recruit-form .input-group-lg .player-id-tip-wrap .btn{
  min-height: 42px !important;
  height: 42px !important;
}


.recruitment-player-card{
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022));
  border-radius:18px;
  padding:1rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  overflow:hidden;
}
.recruitment-player-card--incoming::before,
.recruitment-player-card--outgoing::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-1px;
  height:3px;
  border-radius:18px 18px 0 0;
  opacity:.95;
}
.recruitment-player-card--incoming::before{background:linear-gradient(90deg, rgba(92,168,255,.95), rgba(167,203,255,.95));}
.recruitment-player-card--outgoing::before{background:linear-gradient(90deg, rgba(255,138,138,.92), rgba(255,111,145,.92));}
.recruitment-player-card__header{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
}
.recruitment-player-card__identity{
  display:flex;
  gap:.85rem;
  min-width:0;
  align-items:center;
}
.recruitment-player-card__avatar{
  width:52px;height:52px;object-fit:cover;flex:0 0 52px;
  border-radius:16px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.recruitment-player-card__title-wrap{min-width:0;}
.recruitment-player-card__title-wrap .fw-semibold{line-height:1.2;word-break:break-word;}
.recruitment-player-card__badges{
  display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.9rem;
}
.recruitment-player-card__notes{
  margin-top:.85rem;color:var(--text);font-size:.95rem;
}
.recruitment-player-card__furnace{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:flex-end;}

.recruitment-status-section-header{padding:.2rem 0 .45rem;border-bottom:1px solid rgba(255,255,255,.06);}
.recruitment-status-section-header .recruitment-table-badge{min-height:34px;}
.recruitment-player-card__furnace .furnace-badge{min-height:52px;border-radius:18px;padding:.42rem .72rem;gap:.48rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);display:inline-flex;align-items:center;justify-content:center;overflow:visible;max-width:100%;}
.recruitment-player-card__furnace .furnace-badge img{width:38px;height:38px;object-fit:contain;display:block;background:transparent;flex:0 0 auto;}
.recruitment-player-card__furnace .furnace-badge span{font-size:1.05rem;line-height:1;font-weight:700;color:#fff;white-space:nowrap;}
.recruitment-player-card__furnace .furnace-badge.furnace-badge-text{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:.42rem .62rem;}
.recruitment-player-card__furnace .furnace-badge.furnace-badge-text span{font-size:.95rem;font-weight:700;}
.recruitment-player-card__badges .app-badge{min-height:32px;}
.recruitment-page .hero-panel .recruitment-module-actions{align-self:flex-start;justify-content:flex-end;margin-top:.15rem;}
.recruitment-page .hero-panel .recruitment-module-actions .dropdown{margin-left:auto;}
/* Recruitment hero action placement */
.recruitment-summary-hero{position:relative;overflow:visible;}
.recruitment-summary-hero .recruitment-module-actions{flex:0 0 auto;margin-left:auto;position:relative;z-index:5;justify-content:flex-end;}
.recruitment-summary-hero .recruitment-module-actions .dropdown{margin-left:auto;}
@media (max-width: 991.98px){
  .recruitment-summary-hero{display:block !important;position:relative;}
  .recruitment-summary-hero > div:first-child{min-width:0;flex:1 1 auto;width:100%;}
  .recruitment-summary-hero > div:first-child .eyebrow{
    max-width:calc(100% - 8.75rem);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    margin-bottom:1rem;
  }
  .recruitment-summary-hero .recruitment-module-actions{
    position:absolute;
    top:.15rem;
    right:0;
    margin-left:0;
  }
  .recruitment-summary-hero .recruitment-module-actions .dropdown{margin-left:0;}
}
@media (min-width: 768px) and (max-width: 991.98px){
  .recruitment-summary-hero .recruitment-module-actions .dropdown{margin-top:1.35rem;margin-right:1.25rem;}
}
@media (max-width: 767.98px){
  .recruitment-summary-hero .recruitment-module-actions .dropdown{margin-top:.95rem;margin-right:.95rem;}
}
@media (min-width: 768px) and (max-width: 1199.98px){
  .recruitment-page .recruitment-player-grid > [class*="col-"]{flex:0 0 50%;max-width:50%;}
}
.recruitment-history-table .btn{pointer-events:auto;}
.recruitment-history-table .dt-details__value .app-badge,
.recruitment-history-table .dt-details__value .btn{display:inline-flex;align-items:center;}
@media (max-width: 767.98px){
  .recruitment-history-table .recruitment-period-full{display:none;}
  .recruitment-history-table .recruitment-period-short{display:inline;}
  .recruitment-phase-pill--preview{width:100%;justify-content:flex-start;gap:.65rem;}
  .recruitment-phase-pill--preview i{margin-right:.2rem;}
  .recruitment-phase-pill--preview .recruitment-phase-preview-title,
  .recruitment-phase-pill--preview .recruitment-phase-preview-range{display:block;}
}
@media (min-width: 768px){
  .recruitment-history-table .recruitment-period-short{display:none;}
}
@media (max-width: 991.98px){
  .recruitment-phase-form .btn-outline-light{width:auto;min-width:0;}
}
.recruitment-departure-form .form-label.required-label::after,
.recruitment-departure-form .form-check-label.required-label::after,
.recruitment-phase-form .form-label.required-label::after,
.recruitment-phase-form .form-check-label.required-label::after{content:none;}
@media (min-width: 992px){
  .recruitment-page .hero-panel .recruitment-module-actions{margin-bottom:auto;}
}
@media (max-width: 575.98px){
  .recruitment-player-card__header{flex-direction:column;}
}

@media (max-width: 767.98px){
  #bearSummaryMembersTable_wrapper .dt-details__value .bear-event-overview-card__pill--table{
    display:inline-flex;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

@media (max-width: 767.98px){
  #bearSummaryMembersTable_wrapper .dt-details__value .bear-event-overview-card__pill--table i{
    display:none;
  }
}


.recruitment-rules-editor-toolbar{display:flex;flex-wrap:wrap;}
@media (max-width: 575.98px){
  .recruitment-rules-editor-toolbar{gap:.35rem;}
  .recruitment-rules-editor-toolbar .btn{flex:0 0 calc((100% - 1.75rem) / 6);min-width:0;padding:.42rem .3rem;}
}



@media (max-width: 767.98px){
  .recruitment-rules-page .recruitment-rules-switcher{
    width:100%;
    justify-content:flex-start !important;
    margin-left:0 !important;
    margin-top:.5rem;
    order:99;
  }
  .recruitment-rules-page .recruitment-rules-switcher .alliance-news-language-badge{
    margin-left:0 !important;
  }
}


/* Alliance leadership roles */
.alliance-responsibility-card .select2-container{width:100% !important}
.alliance-responsibility-item{padding:1rem 1.05rem;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.02)}
.leadership-role-option{display:flex;align-items:center;gap:.75rem}
.leadership-role-option__avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.12);flex:0 0 auto}
.leadership-role-selection{display:inline-flex;align-items:center;gap:.4rem;min-width:0}
.leadership-role-selection__avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.12);flex:0 0 auto}
.leadership-roles-panel{overflow:hidden}
.leadership-role-dashboard-row{padding:1rem 1.05rem;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(17,31,51,.35)}
.leadership-role-dashboard-row__title{font-size:.95rem;font-weight:700;color:#fff;margin-bottom:.7rem}
.leadership-role-dashboard-row__members{display:flex;flex-wrap:wrap;gap:.65rem}
.leadership-role-chip{display:inline-flex;align-items:center;gap:.55rem;padding:.45rem .7rem;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);min-width:0;max-width:100%}
.leadership-role-chip__avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.12);flex:0 0 auto}
.leadership-role-chip__name{color:#fff;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width: 767.98px){.leadership-role-dashboard-row__members{flex-direction:column;align-items:stretch}.leadership-role-chip{width:100%}}

.alliance-responsibility-controls{display:flex;gap:.45rem;justify-content:flex-start}.alliance-responsibility-move,.alliance-responsibility-remove-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0;flex:0 0 auto}.alliance-responsibility-controls .alliance-responsibility-move{border-radius:14px}@media (min-width: 1200px){.alliance-responsibility-item .form-label{min-height:2.5rem;display:flex;align-items:flex-end}.alliance-responsibility-controls{justify-content:center}}

/* Alliance leadership compact form */
.alliance-responsibility-item{padding:.75rem .9rem}
.alliance-responsibility-item .row{--bs-gutter-y:.65rem}
.alliance-responsibility-item .form-label{margin-bottom:.35rem;font-size:.88rem}
.alliance-responsibility-item .form-control,.alliance-responsibility-item .form-select{min-height:42px;padding-top:.45rem;padding-bottom:.45rem}
.alliance-responsibility-card .select2-container--default .select2-selection--multiple{min-height:42px;padding:.15rem .4rem;border-radius:14px}
.alliance-responsibility-card .select2-container--default .select2-selection--multiple .select2-search__field{margin-top:6px}
.alliance-responsibility-card .select2-container--default .select2-selection--multiple .select2-selection__choice{margin-top:4px}
@media (min-width:1200px){.alliance-responsibility-item .form-label{min-height:1.5rem}}

.alliance-responsibility-card .select2-container--default .select2-selection--multiple .select2-selection__rendered{margin:0}
.alliance-responsibility-card .select2-container--default .select2-selection--multiple .select2-selection__choice{margin-top:0}

@media (min-width: 768px) and (max-width: 1199.98px){.alliance-responsibility-controls{margin-top:29px}}
.alliance-responsibility-card .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field{width:100% !important;min-width:14rem}


@media (min-width: 992px){
  #hero-preview .browser-carousel,
  #hero-preview .browser-carousel .carousel-inner,
  #hero-preview .browser-carousel .carousel-item,
  #hero-preview .browser-slide{
    height: 620px !important;
    min-height: 620px !important;
  }
}
@media (min-width: 768px) and (max-width: 991.98px){
  #hero-preview .browser-carousel,
  #hero-preview .browser-carousel .carousel-inner,
  #hero-preview .browser-carousel .carousel-item,
  #hero-preview .browser-slide{
    height: 700px !important;
    min-height: 700px !important;
  }
}

.secondary-account-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.9rem;height:1.9rem;padding:0 .45rem;border-radius:999px;background:linear-gradient(180deg,#95c786 0%,#4b7f53 100%)!important;color:#f4fff2!important;border:1px solid rgba(111,164,112,.45)!important;font-weight:700;font-size:1rem;box-shadow:0 10px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.14);cursor:help;vertical-align:middle;line-height:1;padding-top:0;padding-bottom:0;position:relative;text-align:center;white-space:nowrap;font-variant-ligatures:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.secondary-account-badge:hover{filter:brightness(1.03);color:#f4fff2!important}.primary-account-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.9rem;height:1.9rem;padding:0 .45rem;border-radius:999px;background:linear-gradient(180deg,#dcf6b9 0%,#95cb64 100%)!important;color:#19320d!important;border:1px solid rgba(179,219,124,.5)!important;font-weight:700;font-size:1rem;box-shadow:0 10px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.22);cursor:help;vertical-align:middle;line-height:1;padding-top:0;padding-bottom:0;position:relative;text-align:center;white-space:nowrap;font-variant-ligatures:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.primary-account-badge:hover{filter:brightness(1.03);color:#19320d!important}

.secondary-main-preview-card{height:100%;}
.secondary-main-preview-card .player-preview-card-title{margin-bottom:.55rem;}
@media (min-width: 1200px){
  .secondary-account-layout--member-edit{align-items:stretch;}
  .secondary-main-preview-card{min-height:100%;display:flex;flex-direction:column;justify-content:center;}
  .secondary-main-preview{min-height:84px;}
}

/* v67 alliance members childrow role badges mobile wrap fix */
@media (max-width: 767.98px){
  #membersTable_wrapper .dt-details__value{
    overflow: visible;
  }
  #membersTable_wrapper .dt-details__value .role-badge,
  #membersTable_wrapper .dt-details__value .secondary-account-badge,
  #membersTable_wrapper .dt-details__value .primary-account-badge,
  #membersTable_wrapper .dt-details__value .creator-badge,
  #membersTable_wrapper .dt-details__value .beta-tester-badge{
    display: inline-flex;
    vertical-align: middle;
    overflow: visible;
    margin-top: 2px;
    margin-bottom: 2px;
  }
  #membersTable_wrapper .dt-details__value .role-badge{
    transform: none;
  }
  #membersTable_wrapper .dt-details__value > *{
    max-width: none;
  }
  #membersTable_wrapper .dt-details__value:has(.role-badge){
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:.28rem;
    white-space:normal;
  }
  #membersTable_wrapper .dt-details__value:has(.role-badge) .role-badge,
  #membersTable_wrapper .dt-details__value:has(.role-badge) .creator-badge,
  #membersTable_wrapper .dt-details__value:has(.role-badge) .beta-tester-badge,
  #membersTable_wrapper .dt-details__value:has(.role-badge) .secondary-account-badge,
  #membersTable_wrapper .dt-details__value:has(.role-badge) .primary-account-badge{
    flex:0 0 auto;
    margin-left:0 !important;
  }
}

@media (max-width: 767.98px){
  #alliance_membersTable_wrapper .dt-details__value{
    overflow: visible;
  }
  #alliance_membersTable_wrapper .dt-details__value .role-badge,
  #alliance_membersTable_wrapper .dt-details__value .secondary-account-badge,
  #alliance_membersTable_wrapper .dt-details__value .primary-account-badge{
    display: inline-flex;
    vertical-align: middle;
    overflow: visible;
    margin-top: 2px;
    margin-bottom: 2px;
  }
  #alliance_membersTable_wrapper .dt-details__value .role-badge{
    transform: none;
  }
  #alliance_membersTable_wrapper .dt-details__value > *{
    max-width: none;
  }
  #alliance_membersTable_wrapper .dt-details__value:has(.role-badge){
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:.28rem;
    white-space:normal;
  }
  #alliance_membersTable_wrapper .dt-details__value:has(.role-badge) .role-badge,
  #alliance_membersTable_wrapper .dt-details__value:has(.role-badge) .creator-badge,
  #alliance_membersTable_wrapper .dt-details__value:has(.role-badge) .beta-tester-badge,
  #alliance_membersTable_wrapper .dt-details__value:has(.role-badge) .secondary-account-badge,
  #alliance_membersTable_wrapper .dt-details__value:has(.role-badge) .primary-account-badge{
    flex:0 0 auto;
    margin-left:0 !important;
  }
}


/* v1.5.77 help dock + guided tour */
.help-fab-dock{position:fixed;right:18px;bottom:88px;z-index:1045;display:flex;flex-direction:column;gap:.6rem;align-items:center}.help-fab{display:inline-flex;align-items:center;justify-content:center;width:56px;min-width:56px;max-width:56px;height:56px;min-height:56px;max-height:56px;aspect-ratio:1/1;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.12);text-decoration:none;color:#fff;background:rgba(9,16,29,.92);box-shadow:0 16px 36px rgba(0,0,0,.28);backdrop-filter:blur(12px);flex:0 0 56px;overflow:hidden}.help-fab:hover{color:#fff;border-color:rgba(217,170,89,.5)}.help-fab--primary{background:linear-gradient(180deg,rgba(28,45,74,.96) 0%,rgba(11,21,38,.96) 100%)}.help-fab--secondary{background:rgba(9,16,29,.92)}.help-fab i{font-size:1.18rem;line-height:1}.help-fab span{display:none}
.app-tour-overlay[hidden]{display:none!important}.app-tour-overlay{position:fixed;inset:0;z-index:2000}.app-tour-overlay__backdrop{position:absolute;inset:0;background:rgba(4,8,15,.7);transition:opacity .18s ease}.app-tour-overlay__spotlight{position:absolute;z-index:2001;border-radius:20px;border:2px solid rgba(255,215,130,.9);box-shadow:0 0 0 9999px rgba(4,8,15,.62),0 24px 60px rgba(0,0,0,.45);pointer-events:none;transition:all .22s ease,opacity .16s ease}.app-tour-popover{position:absolute;z-index:2003;max-width:min(420px,calc(100vw - 32px));background:linear-gradient(180deg,#13233d 0%,#0d1727 100%);border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:1rem;box-shadow:0 28px 70px rgba(0,0,0,.42);color:#fff;transition:opacity .16s ease,transform .16s ease}.app-tour-overlay--transitioning .app-tour-overlay__spotlight,.app-tour-overlay--transitioning .app-tour-popover{opacity:0}.app-tour-overlay--transitioning .app-tour-popover{transform:translateY(8px)}.app-tour-popover__eyebrow{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#9fb8dd;margin-bottom:.45rem}.app-tour-popover__title{font-size:1.1rem;margin:0 0 .45rem}.app-tour-popover__text{margin:0;color:rgba(255,255,255,.88);line-height:1.55}.app-tour-popover__meta{margin-top:.7rem;color:#9fb8dd;font-size:.85rem}.app-tour-popover__actions{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-top:1rem}.app-tour-target{position:relative;z-index:2002}
@media (max-width: 1024px){.help-fab-dock{right:12px;bottom:84px}.help-fab{width:54px;min-width:54px;max-width:54px;height:54px;min-height:54px;max-height:54px;flex-basis:54px}.help-fab i{font-size:1.15rem}}
@media (max-width: 575.98px){.help-fab-dock{bottom:88px;right:10px}.app-tour-popover{left:16px!important;right:16px!important;top:16px!important;bottom:auto!important;max-width:none;width:auto;max-height:calc(100vh - 150px - env(safe-area-inset-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:1rem}.app-tour-popover[data-tour-step="6"]{top:170px!important;max-height:calc(100vh - 198px - env(safe-area-inset-bottom))}.app-tour-popover__actions{position:sticky;bottom:0;padding-top:.75rem;padding-bottom:max(.2rem,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(19,35,61,.08) 0%,rgba(13,23,39,.96) 28%,rgba(13,23,39,1) 100%)}}

@media (max-width: 1199.98px){
  .alliance-news-track.is-native-scroll{padding-inline:.1rem;}
  #allianceNewsTrack.is-native-scroll-row{column-gap:0 !important;}
}


/* v1.5.176 notifications center */
.notification-dropdown{min-width:min(420px,82vw);max-width:460px}.notification-dropdown__list{display:flex;flex-direction:column;gap:.75rem;max-height:420px;overflow:auto;overscroll-behavior:contain;padding-right:.15rem}.notification-empty{padding:.75rem 0}.notification-item{display:flex;gap:.85rem;padding:.9rem;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(12,21,38,.72)}.notification-item.is-unread{border-color:rgba(217,170,89,.45);box-shadow:0 0 0 1px rgba(217,170,89,.16) inset}.notification-item--compact{padding:.8rem}.notification-item__icon,.notification-table-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(217,170,89,.16);color:#f2cd76;flex:0 0 42px}.notification-item__body{min-width:0;flex:1}.notification-item__top{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;margin-bottom:.3rem}.notification-item__type{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#9fb8dd}.notification-item__date{font-size:.78rem;color:rgba(255,255,255,.58)}.notification-item__title,.notification-table-title{font-weight:700;color:#fff}.notification-item__title{font-size:.9rem}.notification-item__text{margin:.25rem 0 0;color:rgba(255,255,255,.75);font-size:.82rem;line-height:1.45}.notification-item__actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem}.notification-row-unread td{background:rgba(217,170,89,.06)!important}.notification-pref-card{display:flex;align-items:center;gap:.9rem;padding:1rem 1.05rem;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(10,18,31,.72);width:100%}.notification-pref-card__icon{width:42px;height:42px;border-radius:14px;background:rgba(217,170,89,.16);color:#f2cd76;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px}.notification-pref-card__body{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1}.notification-pref-card__title{font-weight:700}.notification-pref-card__text{font-size:.9rem;color:rgba(255,255,255,.65)}.notifications-page .hero-panel{align-items:flex-start}.notifications-filters-form .form-label{margin-bottom:.4rem}
@media (max-width: 767.98px){.notification-dropdown{min-width:unset;max-width:none}.notification-item__top{flex-direction:column;gap:.25rem}.notification-pref-card{align-items:flex-start}}

.notification-nav-item .dropdown-menu{background:linear-gradient(180deg,#13233d 0%,#0d1727 100%);border:1px solid rgba(255,255,255,.1);border-radius:22px;min-width:min(460px,88vw)}
.notification-nav-link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px}.notification-nav-link .badge{position:absolute;top:2px;right:-4px}
@media (max-width: 991.98px){.notification-nav-item .dropdown-menu{min-width:100%}}


.notifications-table-card,.notifications-table-card .table-responsive{overflow:visible!important}
.notifications-mark-all-btn{color:#f8f9fa;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.04)}
.notifications-mark-all-btn:hover,.notifications-mark-all-btn:focus{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.26)}
.notification-action-btn,.notification-dropdown .notification-action-btn,.notification-nav-item .notification-action-btn{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;line-height:1}.notification-action-btn i{font-size:.72rem}
.notification-status-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.38rem .72rem;border-radius:999px;font-size:.78rem;font-weight:700;line-height:1}.notification-status-badge i{font-size:.9rem;line-height:1}.notification-status-badge.is-unread{background:rgba(217,170,89,.18);color:#f4cf78;border:1px solid rgba(217,170,89,.28)}.notification-status-badge.is-read{background:rgba(255,255,255,.08);color:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.12)}
.notifications-page .badge.text-bg-warning{background:rgba(217,170,89,.18)!important;color:#f4cf78!important;border:1px solid rgba(217,170,89,.28);padding:.52rem .85rem}
.notifications-page .action-dropdown-menu{min-width:190px;z-index:1200}
.notification-nav-link__label{font-size:.92rem;font-weight:600}
.notification-nav-item .notification-empty{text-align:center}


/* v1.5.187 notifications page dropdown + mobile table fix */
.notifications-page{padding-bottom:7rem}
.notifications-page .notifications-actions-dropdown .action-dropdown-menu{min-width:190px;z-index:1300}
@media (min-width: 1025px){
  .notifications-page .notifications-actions-dropdown .action-dropdown-menu{
    inset:auto 0 calc(100% + .35rem) auto !important;
    transform:none !important;
  }
}
@media (max-width: 767.98px){
  #notificationsTable_wrapper table.dataTable th:nth-child(2),
  #notificationsTable_wrapper table.dataTable td:nth-child(2),
  #notificationsTable_wrapper table.dataTable th:nth-child(4),
  #notificationsTable_wrapper table.dataTable td:nth-child(4),
  #notificationsTable_wrapper table.dataTable th:nth-child(5),
  #notificationsTable_wrapper table.dataTable td:nth-child(5),
  #notificationsTable_wrapper table.dataTable th:nth-child(6),
  #notificationsTable_wrapper table.dataTable td:nth-child(6){display:none !important;}
  #notificationsTable_wrapper table.dataTable th:nth-child(3),
  #notificationsTable_wrapper table.dataTable td:nth-child(3){white-space:normal !important;}
  #notificationsTable_wrapper table.dataTable td:nth-child(3){overflow-wrap:anywhere;word-break:break-word;}
  #notificationsTable_wrapper .notification-table-title,
  #notificationsTable_wrapper table.dataTable td:nth-child(3) .text-secondary.small{white-space:normal;overflow-wrap:anywhere;word-break:break-word;}
}


@media (max-width: 991.98px){
  .notification-nav-item .notification-dropdown{width:100%;min-width:100%;max-width:none}
  .notification-nav-item .notification-dropdown__header .notifications-mark-all-btn,
  .notification-nav-item .notification-dropdown__footer .btn{display:inline-flex;align-items:center;justify-content:center;text-align:center}
}
@media (min-width: 768px) and (max-width: 991.98px){
  .notification-nav-item .notification-dropdown__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:.75rem}
  .notification-nav-item .notification-dropdown__header > strong{flex:1 1 auto;min-width:0;text-align:left}
  .notification-nav-item .notification-dropdown__header .notifications-mark-all-btn{width:40%;min-width:0;max-width:40%;margin-left:auto;flex:0 0 40%;white-space:nowrap}
}
@media (max-width: 767.98px){
  .notification-nav-item .notification-dropdown__header{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:.5rem}
  .notification-nav-item .notification-dropdown__header > strong,
  .notification-nav-item .notification-dropdown__header .notifications-mark-all-btn,
  .notification-nav-item .notification-dropdown__footer .btn{width:100%;max-width:none;flex:0 0 auto;text-align:center;justify-content:center}
  .notification-nav-item .notification-dropdown__footer .btn{width:100%}
}

[data-discord-required-label].is-required::after{content:"*";color:var(--gold-2);font-weight:700;margin-left:.3rem;display:inline-block}
.app-readonly-display{display:flex;align-items:center;width:100%;min-height:42px;padding:.75rem 1rem;border-radius:var(--radius-md);border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:rgba(255,255,255,.88);box-shadow:inset 0 1px 0 rgba(255,255,255,.02);cursor:default;user-select:none;line-height:1.4}.app-readonly-display[readonly]{display:block}

/* -------------------------------------------------------------------------- */
/* Calendar / Absences module                                                  */
/* -------------------------------------------------------------------------- */
.calendar-app-card,
.calendar-side-card{
  background: linear-gradient(180deg, rgba(16,32,51,.96) 0%, rgba(10,24,41,.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.calendar-surface{
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(255,255,255,.04);
  --fc-border-color: rgba(255,255,255,.08);
  --fc-today-bg-color: rgba(217,170,89,.10);
  --fc-now-indicator-color: var(--gold-2);
  --fc-list-event-hover-bg-color: rgba(255,255,255,.06);
  --fc-button-bg-color: rgba(255,255,255,.06);
  --fc-button-border-color: rgba(255,255,255,.14);
  --fc-button-hover-bg-color: rgba(255,255,255,.12);
  --fc-button-hover-border-color: rgba(255,255,255,.18);
  --fc-button-active-bg-color: rgba(217,170,89,.24);
  --fc-button-active-border-color: rgba(240,202,134,.44);
  --fc-event-border-color: transparent;
  color: var(--text);
}
.calendar-surface .fc-toolbar-title{color:var(--text);font-weight:700;}
.calendar-surface .fc .fc-button{
  box-shadow:none;
  color:var(--text);
  border-radius:12px;
  text-transform:none;
  font-weight:650;
}
.calendar-surface .fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(217,170,89,.22)!important;}
.calendar-surface .fc-theme-standard td,
.calendar-surface .fc-theme-standard th,
.calendar-surface .fc-theme-standard .fc-scrollgrid{border-color:rgba(255,255,255,.08)!important;}
.calendar-surface .fc .fc-col-header-cell-cushion,
.calendar-surface .fc .fc-daygrid-day-number,
.calendar-surface .fc .fc-timegrid-axis-cushion,
.calendar-surface .fc .fc-timegrid-slot-label-cushion,
.calendar-surface .fc .fc-list-day-text,
.calendar-surface .fc .fc-list-day-side-text{color:var(--text);}
.calendar-surface .fc .fc-daygrid-day.fc-day-today,
.calendar-surface .fc .fc-timegrid-col.fc-day-today{
  background:radial-gradient(circle at top, rgba(255,223,149,.34) 0%, rgba(217,170,89,.22) 38%, rgba(217,170,89,.10) 100%);
  box-shadow:inset 0 0 0 2px rgba(240,202,134,.48), inset 0 18px 38px rgba(217,170,89,.12), 0 0 0 1px rgba(255,214,132,.08);
}
.calendar-surface .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame{background:linear-gradient(180deg, rgba(255,227,164,.06), rgba(255,227,164,0));}

.calendar-surface .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame{position:relative;}
.calendar-surface .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame::after{
  content:'';
  position:absolute;
  top:10px;
  right:10px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--gold-2);
  box-shadow:0 0 0 6px rgba(217,170,89,.12), 0 0 18px rgba(240,202,134,.45);
}
.calendar-surface .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number,
.calendar-surface .fc .fc-timegrid-col.fc-day-today .fc-col-header-cell-cushion,
.calendar-surface .fc .fc-timegrid-col.fc-day-today .fc-daygrid-day-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  min-height:36px;
  padding:.2rem .8rem;
  border-radius:999px;
  background:linear-gradient(135deg, #d9aa59 0%, #f0ca86 52%, #fff0c8 100%);
  color:#102033 !important;
  font-weight:900;
  box-shadow:0 14px 30px rgba(217,170,89,.34), 0 0 0 2px rgba(255,255,255,.22) inset;
}
.calendar-surface .fc .fc-event{
  border-radius:16px;
  padding:.28rem .5rem;
  box-shadow:0 12px 26px rgba(0,0,0,.26);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.calendar-surface .fc .fc-event:hover{
  transform:translateY(-2px) scale(1.01);
  box-shadow:0 18px 34px rgba(0,0,0,.34);
  filter:saturate(1.12) brightness(1.04);
}
.calendar-surface .fc .fc-event::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 52%);
  pointer-events:none;
}
.calendar-surface .fc .fc-event-main{font-weight:700;position:relative;z-index:1;}
.calendar-surface .fc .fc-daygrid-event-dot{border-color:rgba(255,255,255,.85);}
.calendar-surface .fc .fc-event.calendar-event-bear-auto{border-left:4px solid #ffe29b;background:linear-gradient(135deg, rgba(217,170,89,.96) 0%, rgba(166,113,33,.96) 100%);}
.calendar-surface .fc .fc-event.calendar-event-manual{border-left:4px solid #b9ffdb;background:linear-gradient(135deg, rgba(49,193,120,.96) 0%, rgba(19,112,75,.96) 100%);}
.calendar-surface .fc .fc-event.calendar-event-absence{border-left:4px solid #ffd5dc;background:linear-gradient(135deg, rgba(197,87,108,.96) 0%, rgba(114,35,55,.96) 100%);}
.calendar-surface .fc .fc-event.calendar-event-r5{border-left:4px solid #d6d9ff;background:linear-gradient(135deg, rgba(79,116,200,.96) 0%, rgba(41,62,118,.96) 100%);}
.calendar-surface .fc .fc-event.calendar-event-bear-auto .fc-event-main::before,
.calendar-surface .fc .fc-event.calendar-event-manual .fc-event-main::before,
.calendar-surface .fc .fc-event.calendar-event-absence .fc-event-main::before,
.calendar-surface .fc .fc-event.calendar-event-r5 .fc-event-main::before{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  margin-right:.3rem;
  opacity:.92;
}
.calendar-surface .fc .fc-event.calendar-event-bear-auto .fc-event-main::before{content:'🐻';}
.calendar-surface .fc .fc-event.calendar-event-manual .fc-event-main::before{content:'✨';}
.calendar-surface .fc .fc-event.calendar-event-absence .fc-event-main::before{content:'🌙';}
.calendar-surface .fc .fc-event.calendar-event-r5 .fc-event-main::before{content:'👑';}
.calendar-surface .fc .fc-event,
.calendar-surface .fc .fc-daygrid-event,
.calendar-surface .fc .fc-timegrid-event,
.calendar-surface .fc .fc-event-main,
.calendar-surface .fc .fc-event-title,
.calendar-surface .fc .fc-event-time{cursor:pointer;}
.calendar-legend-list{display:grid;gap:.75rem;}
.calendar-legend-item{display:flex;align-items:center;gap:.6rem;font-weight:600;color:var(--text);}
.calendar-legend-dot{width:12px;height:12px;border-radius:999px;display:inline-block;box-shadow:0 0 0 2px rgba(255,255,255,.08);}
.calendar-legend-dot.bear-1{background:#d9aa59;}
.calendar-legend-dot.bear-2{background:#67b7ff;}
.calendar-legend-dot.manual{background:#31c178;}
.calendar-legend-dot.r5{background:#4f74c8;}
.calendar-draggable-users{display:grid;gap:.75rem;}
.calendar-draggable-user{
  display:flex;align-items:center;gap:.6rem;justify-content:flex-start;
  width:100%;padding:.75rem .9rem;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);color:var(--text);
}
.calendar-draggable-user:hover{background:rgba(255,255,255,.08);color:var(--gold-2);}
.calendar-rotation-order{display:grid;gap:.75rem;max-height:min(48vh,520px);overflow:auto;padding-right:.15rem;}
.calendar-rotation-item{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:.85rem;padding:.9rem 1rem;border-radius:16px;background:linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.04) 100%);border:1px solid rgba(255,255,255,.08);cursor:grab;box-shadow:0 10px 22px rgba(0,0,0,.12);}
.calendar-rotation-index{width:32px;height:32px;border-radius:999px;background:rgba(217,170,89,.18);display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:var(--gold-2);flex:0 0 auto;}
.calendar-rotation-label{min-width:0;font-weight:650;line-height:1.35;overflow-wrap:anywhere;padding-right:.25rem;}
.calendar-rotation-handle{width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:rgba(255,255,255,.72);flex:0 0 auto;touch-action:none;user-select:none;-webkit-user-select:none;}
.calendar-rotation-controls{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap;}
.calendar-rotation-move{width:36px;height:36px;padding:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;line-height:1;}
.calendar-rotation-move.is-invisible{visibility:hidden;pointer-events:none;}
.calendar-rotation-remove{min-width:52px;height:40px;padding:.35rem .95rem;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:1.05rem;font-weight:700;}
.calendar-rotation-item.is-dragging{opacity:.55;border-color:rgba(217,170,89,.55);box-shadow:0 12px 24px rgba(0,0,0,.22);}
.calendar-empty-state{min-height:420px;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.03);color:rgba(255,255,255,.75);font-weight:600;padding:1.5rem;text-align:center;}
.app-modal-dark{background:linear-gradient(180deg, rgba(16,32,51,.98) 0%, rgba(10,24,41,.99) 100%);color:var(--text);border:1px solid rgba(255,255,255,.08);border-radius:22px;}
.app-modal-dark .modal-header,.app-modal-dark .modal-footer{background:transparent;}
.app-modal-dark .form-control,.app-modal-dark .form-select,.app-modal-dark textarea{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:var(--text);}
.app-modal-dark .form-control:focus,.app-modal-dark .form-select:focus{border-color:rgba(240,202,134,.44);box-shadow:0 0 0 .2rem rgba(217,170,89,.18);background:rgba(255,255,255,.08);color:var(--text);}
.app-modal-dark .form-control::placeholder,.app-modal-dark textarea::placeholder{color:rgba(199,209,220,.7);}
.app-modal-dark .form-control-color{min-height:42px;padding:.35rem;}
.calendar-rule-list li + li{margin-top:.6rem;}

.app-modal-dark .select2-container{width:100% !important;}
.app-modal-dark .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single.calendar-select2-single{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:.35rem .9rem;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
}
.app-modal-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single.calendar-select2-single .select2-selection__rendered{
  color:var(--text);
  line-height:1.4;
  padding-left:0;
  padding-right:1.5rem;
}
.app-modal-dark .select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single.calendar-select2-single .select2-selection__arrow{
  height:100%;
  right:.55rem;
}
.app-modal-dark .select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--single.calendar-select2-single .select2-selection__placeholder{color:rgba(199,209,220,.72);}
.app-modal-dark .select2-container--default.select2-container--open .select2-selection--single,
.app-modal-dark .select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single.calendar-select2-single,
.select2-container--default.select2-container--focus .select2-selection--single.calendar-select2-single{
  border-color:rgba(240,202,134,.44);
  box-shadow:0 0 0 .2rem rgba(217,170,89,.18);
  background:rgba(255,255,255,.08);
}
.calendar-select2-dropdown,
.app-modal-dark .select2-dropdown{
  background:linear-gradient(180deg, rgba(16,32,51,.98) 0%, rgba(10,24,41,.99) 100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  box-shadow:0 16px 30px rgba(0,0,0,.28);
}
.calendar-select2-dropdown .select2-results__option,
.app-modal-dark .select2-dropdown .select2-results__option{color:var(--text);}
.calendar-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable,
.app-modal-dark .select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable{background:rgba(217,170,89,.18);color:var(--text);}
.calendar-select2-dropdown .select2-search__field,
.app-modal-dark .select2-dropdown .select2-search__field{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--text);}

@media (max-width: 767.98px){
  .calendar-surface .fc-header-toolbar{gap:.75rem;align-items:flex-start;}
  .calendar-surface .fc-toolbar.fc-header-toolbar{display:flex;flex-direction:column;}
  .calendar-surface .fc-toolbar-chunk{display:flex;flex-wrap:wrap;gap:.45rem;}
  .calendar-surface .fc .fc-button{padding:.45rem .6rem;font-size:.92rem;}
  .calendar-surface .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number,
  .calendar-surface .fc .fc-timegrid-col.fc-day-today .fc-col-header-cell-cushion,
  .calendar-surface .fc .fc-timegrid-col.fc-day-today .fc-daygrid-day-number{min-width:30px;min-height:30px;padding:.15rem .55rem;}
  .calendar-rotation-order{gap:.65rem;max-height:none;overflow:visible;padding-right:0;}
  .calendar-rotation-item{grid-template-columns:auto auto;align-items:start;gap:.7rem .65rem;padding:.8rem;}
  .calendar-rotation-index{width:28px;height:28px;font-size:.92rem;grid-column:1;grid-row:1;}
  .calendar-rotation-handle{width:36px;height:36px;touch-action:none;cursor:grab;grid-column:2;grid-row:1;justify-self:start;}
  .calendar-rotation-label{grid-column:1 / -1;font-size:.98rem;line-height:1.45;padding-right:0;}
  .calendar-rotation-controls{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;width:100%;}
  .calendar-rotation-move,.calendar-rotation-remove{width:100%;min-width:0;height:40px;}
  .calendar-rotation-remove{padding:.42rem .8rem;font-size:1rem;}
}

@media (max-width: 575.98px){
  .calendar-rotation-item{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:
      "index label handle"
      "controls controls controls";
    align-items:center;
    gap:.7rem .65rem;
    padding:.85rem;
  }
  .calendar-rotation-index{
    grid-area:index;
    grid-column:auto;
    grid-row:auto;
    align-self:center;
  }
  .calendar-rotation-label{
    grid-area:label;
    grid-column:auto;
    font-size:.98rem;
    line-height:1.4;
    padding-right:0;
    align-self:center;
  }
  .calendar-rotation-handle{
    grid-area:handle;
    grid-column:auto;
    grid-row:auto;
    justify-self:end;
    align-self:center;
  }
  .calendar-rotation-controls{
    grid-area:controls;
    grid-column:auto;
    margin-top:.1rem;
  }
}

body.calendar-touch-dragging{overflow:hidden;touch-action:none;}

/* v1.6.45 mobile/tablet notification badges */
.app-navbar-toggler{position:relative;overflow:visible}
.app-navbar-toggler__badge{position:absolute;top:-8px;right:-10px;z-index:4;min-width:20px;height:20px;padding:0 6px;display:none;align-items:center;justify-content:center;font-size:.68rem;line-height:20px;box-shadow:0 2px 8px rgba(0,0,0,.28);pointer-events:none;text-align:center}
@media (max-width: 991.98px){
  .app-navbar-toggler__badge{display:inline-flex}
}
@media (min-width: 992px){
  .profile-menu-dropdown .dropdown-item .badge{display:none!important}
}


/* v58 supervision datatables mobile/tablet polish */
@media (max-width: 991.98px) {
  #systemLogsTable_wrapper .dt-details__row,
  #backupJobsTable_wrapper .dt-details__row {
    grid-template-columns: 1fr;
    gap: .2rem;
    padding: .55rem 0;
  }
  #systemLogsTable_wrapper .dt-details__label,
  #backupJobsTable_wrapper .dt-details__label,
  #systemLogsTable_wrapper .dt-details__value,
  #backupJobsTable_wrapper .dt-details__value {
    text-align: left;
  }
  #systemLogsTable_wrapper .dt-details__value .btn,
  #backupJobsTable_wrapper .dt-details__value .btn,
  #backupJobsTable_wrapper .dt-details__value form,
  #backupJobsTable_wrapper .dt-details__value .d-flex {
    max-width: 100%;
  }
  #backupJobsTable_wrapper .dt-details__value .d-flex {
    flex-direction: column;
    align-items: stretch;
  }
  #backupJobsTable_wrapper .dt-details__value .btn,
  #backupJobsTable_wrapper .dt-details__value form .btn,
  #systemLogsTable_wrapper .dt-details__value .btn {
    width: 100%;
    justify-content: center;
  }
  #systemLogsTable_wrapper .log-action-text,
  #backupJobsTable_wrapper .log-action-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
}
