

.app-main-container {
    flex: 1;
    padding: 0 0 60px;
    position: relative;
    z-index: 10;
}


.app-main-container > .container {
    width: 100%;
    max-width: none;
    padding-left: clamp(20px, 2.2vw, 40px);
    padding-right: clamp(20px, 2.2vw, 40px);
}


.page-header {
    margin-bottom: 26px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--border-line);
    position: relative;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.leaderboard-masthead {
    display: none !important;
}

.matches-page {
    margin-top: 24px;
}

.matches-content {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.leaderboard-page .filter-bar {
    width: 100%;
    max-width: 1040px;
    margin: 24px auto 18px;
}

.leaderboard-page #leaderboard-table-container {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.site-page-rail {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: -19px;
    height: 38px;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
}

.site-page-rail-link {
    --proximity: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    height: 38px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    text-decoration: none;
}

.site-page-rail-link span {
    position: absolute;
    top: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: var(--proximity);
    transform: translateY(4px);
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(240, 168, 12, var(--proximity)), 0 0 24px rgba(240, 168, 12, calc(var(--proximity) * 0.55));
    transition: opacity 100ms linear, transform 180ms ease, color 180ms ease;
}

.site-page-rail-link.is-current span {
    opacity: 1;
    transform: none;
    text-shadow: 0 0 10px rgba(240, 168, 12, 0.72), 0 0 24px rgba(240, 168, 12, 0.48), 0 0 42px rgba(240, 168, 12, 0.24);
}

.site-page-rail-link::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 17px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(158, 163, 168, 0.78);
    border: 1px solid rgba(8, 8, 8, 0.92);
    transform: translateX(-50%);
    transition: background 140ms ease;
}

.site-page-rail-link.is-current::before,
.site-page-rail-link.is-near::before,
.site-page-rail-link:focus-visible::before {
    background: var(--gold-bright);
}

.site-page-rail-link::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 18px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(240, 168, 12, 0.28) 7%, var(--gold-bright) 23%, var(--gold-bright) 77%, rgba(240, 168, 12, 0.28) 93%, transparent 100%);
    filter: drop-shadow(0 0 4px rgba(240, 168, 12, 0.72)) drop-shadow(0 0 10px rgba(240, 168, 12, 0.28));
    opacity: var(--proximity);
    transform: scaleX(var(--proximity));
    transition: opacity 100ms linear, transform 120ms ease-out;
}

.site-page-rail-link:hover,
.site-page-rail-link:focus-visible {
    color: var(--gold-bright);
    outline: none;
}

.site-page-rail-link:focus-visible span {
    opacity: 1;
    transform: none;
}

.site-page-rail-link.is-current::after {
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(240, 168, 12, 0.3) 0%, rgba(240, 168, 12, 0.72) 8%, var(--gold-bright) 24%, var(--gold-bright) 76%, rgba(240, 168, 12, 0.72) 92%, rgba(240, 168, 12, 0.3) 100%);
    opacity: 1;
    transform: scaleX(1);
}

.site-page-rail-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-page-rail-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 95;
    padding-top: 0;
    padding-bottom: 2px;
    margin-bottom: 8px;
    margin-left: calc(-1 * clamp(20px, 2.2vw, 40px));
    margin-right: calc(-1 * clamp(20px, 2.2vw, 40px));
    padding-left: clamp(20px, 2.2vw, 40px);
    padding-right: clamp(20px, 2.2vw, 40px);
    background: rgba(8, 7, 6, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none !important;
    box-shadow: none !important;
}

.site-page-rail.is-flow {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    border: none !important;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.08;
}

.page-title span {
    color: var(--gold);
}

.page-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
}


.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-field {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-input-wrap .input-field {
    padding-left: 40px;
}

.input-field:focus {
    border-color: var(--gold-border);
    background: var(--bg-surface-2);
}

.textarea-field, textarea.input-field, textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 6px;
    outline: none;
    resize: none !important;
    height: 95px !important;
    transition: border-color 0.15s ease;
}

.textarea-field:focus, textarea.input-field:focus, textarea:focus {
    border-color: var(--gold-border);
    background: var(--bg-surface-2);
}

.select-field {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.filter-bar .select-field {
    flex: 0 0 clamp(200px, 20vw, 260px);
    width: auto;
}

.filter-bar .select-field-mode {
    flex: 0 0 clamp(85px, 8vw, 105px);
    text-align: center;
}

.select-field:focus {
    border-color: var(--gold-border);
}



.lb-table-wrap {
    position: relative;
    background: linear-gradient(90deg, rgba(20, 17, 11, 0.12) 0%, rgba(20, 17, 11, 0.72) 7%, rgba(20, 17, 11, 0.88) 16%, rgba(10, 9, 8, 0.82) 52%, rgba(20, 17, 11, 0.88) 84%, rgba(20, 17, 11, 0.72) 93%, rgba(20, 17, 11, 0.12) 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.018);
}

.lb-table-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 146, 10, 0.2);
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.lb-head-row {
    background: rgba(5, 5, 4, 0.62);
    border-bottom: 1px solid rgba(212, 146, 10, 0.16);
}

.lb-th {
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.lb-th-rank { width: 70px; text-align: center; }
.lb-th-region { text-align: center; }
.lb-th-elo { text-align: right; }

.lb-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    border-left: 2px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.025);
    border-left-color: rgba(240, 168, 12, 0.4);
}

.lb-row:last-child {
    border-bottom: none;
}


.lb-rank-gold {
    background: linear-gradient(90deg, rgba(212, 146, 10, 0.14) 0%, rgba(212, 146, 10, 0.025) 42%, transparent 100%);
    border-left: 3px solid #d4920a;
}
.lb-rank-silver {
    background: linear-gradient(90deg, rgba(189, 195, 199, 0.05) 0%, transparent 100%);
    border-left: 3px solid #bdc3c7;
}
.lb-rank-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.05) 0%, transparent 100%);
    border-left: 3px solid #cd7f32;
}

.lb-td {
    padding: 16px 20px;
    font-size: 14px;
    vertical-align: middle;
}


.lb-td-rank { text-align: center; }

.lb-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: rotate(45deg);
    margin: 4px;
}
.lb-rank-badge span {
    transform: rotate(-45deg);
    display: inline-block;
}
.lb-badge-1 { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); border: 1px solid rgba(241,196,15,0.6); box-shadow: 0 0 14px rgba(241,196,15,0.4); }
.lb-badge-2 { background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%); border: 1px solid rgba(189,195,199,0.6); box-shadow: 0 0 14px rgba(189,195,199,0.3); }
.lb-badge-3 { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); border: 1px solid rgba(230,126,34,0.6); box-shadow: 0 0 14px rgba(230,126,34,0.3); }


.lb-rank-plain {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 14px;
}


.lb-player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-flag {
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.lb-flag-placeholder {
    display: inline-block;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.lb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.lb-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.lb-avatar-gold { color: #f1c40f; border-color: rgba(241, 196, 15, 0.3); background: rgba(241, 196, 15, 0.1); }
.lb-avatar-silver { color: #bdc3c7; border-color: rgba(189, 195, 199, 0.3); background: rgba(189, 195, 199, 0.1); }
.lb-avatar-bronze { color: #cd7f32; border-color: rgba(205, 127, 50, 0.3); background: rgba(205, 127, 50, 0.1); }

.lb-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lb-username {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}
.lb-username:hover { color: var(--gold); }


.common-chat-panel { position:absolute; inset:52px 14px 184px; display:flex; flex-direction:column; min-height:180px; padding:0; background:transparent; }
.common-chat-messages { min-height:0; flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:10px; padding:12px 1px; }
.common-chat-message { padding:8px 9px; border-left:2px solid rgba(212,146,10,.36); background:rgba(255,255,255,.018); }
.common-chat-message-head { display:flex; align-items:baseline; gap:7px; margin-bottom:3px; }
.common-chat-author { overflow:hidden; color:var(--gold-bright); font:700 11px var(--font-display); text-overflow:ellipsis; white-space:nowrap; }
.common-chat-time { color:var(--text-muted); font:9px var(--font-mono); }
.common-chat-body { color:var(--text-sub); font:12px/1.5 var(--font-main); overflow-wrap:anywhere; white-space:pre-wrap; }
.common-chat-deleted { color:var(--text-muted); font-style:italic; }
.common-chat-remove { margin-left:auto; border:0; background:none; color:#bd6d5a; font:10px var(--font-mono); cursor:pointer; }
.common-chat-report { margin-left:auto; color:var(--text-muted); }
.common-chat-report:hover { color:var(--gold-bright); }
.common-chat-report:disabled { color:#51d890; cursor:default; }
.common-chat-composer { display:grid; gap:7px; padding-top:10px; border-top:1px solid var(--border-line); }
.common-chat-input-row { display:flex; gap:6px; }
.common-chat-input { min-width:0; flex:1; padding:9px 10px; border:1px solid var(--border-line); border-radius:4px; background:#0b0a08; color:var(--text-main); font:12px var(--font-main); }
.common-chat-input:focus { border-color:var(--gold-border); outline:none; box-shadow:0 0 12px rgba(212,146,10,.1); }
.common-chat-send { border:1px solid rgba(212,146,10,.42); border-radius:4px; padding:0 11px; background:rgba(212,146,10,.13); color:var(--gold-bright); font:700 11px var(--font-mono); cursor:pointer; }
.common-chat-send:hover { background:rgba(212,146,10,.24); }
.common-chat-note,.common-chat-status { color:var(--text-muted); font:10px/1.45 var(--font-main); }
.common-chat-status:not(:empty) { color:#e1b04c; }
.common-chat-login { position:absolute; top:50%; left:50%; width:max-content; max-width:100%; margin:0; padding:0; transform:translate(-50%,-50%); color:var(--text-sub); font:11px/1.5 var(--font-main); text-align:center; }
.common-chat-login a { color:var(--gold-bright); text-decoration:underline; text-underline-offset:3px; }
.talent-card[hidden] { display:none !important; }

.mod-tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #fca5a5;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.38));
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
    vertical-align: middle;
    user-select: none;
}

.dispute-status-bar {
    margin-bottom: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-line);
    border-left: 3px solid #dc2626;
    border-radius: 4px;
}
.dispute-status-title {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ef4444;
}
.lb-verified {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 50%;
    width: 16px;
    height: 16px;
}


.lb-td-region {
    color: var(--text-sub);
    font-family: var(--font-mono);
    font-size: 13px;
}
.lb-empty-val {
    color: var(--text-muted);
}


.lb-crew-pill {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--gold-dim);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--gold-border);
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-block;
}
.lb-crew-pill:hover {
    background: rgba(212, 146, 10, 0.15);
    border-color: rgba(212, 146, 10, 0.4);
}


.lb-record {
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lb-wins { color: #2ecc71; font-weight: 700; }
.lb-losses { color: #e74c3c; font-weight: 700; }
.lb-record-sep { color: var(--text-muted); font-size: 10px; }
.lb-winrate { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.lb-trend-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    vertical-align: middle;
}
.lb-trend-up {
    color: #2ecc71;
    filter: drop-shadow(0 0 4px rgba(46, 204, 113, 0.45));
}
.lb-trend-down {
    color: #e74c3c;
    filter: drop-shadow(0 0 4px rgba(231, 76, 60, 0.45));
}


.lb-td-elo {
    text-align: right;
}
.lb-elo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 17px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}
.lb-elo-1 { color: #f1c40f; text-shadow: 0 0 15px rgba(241, 196, 15, 0.3); font-size: 19px; }
.lb-elo-2 { color: #bdc3c7; text-shadow: 0 0 15px rgba(189, 195, 199, 0.3); font-size: 18px; }
.lb-elo-3 { color: #cd7f32; text-shadow: 0 0 15px rgba(205, 127, 50, 0.3); font-size: 18px; }


.lb-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}
.lb-empty-icon {
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 12px;
}
.lb-empty-state strong {
    display: block;
    font-size: 16px;
    color: var(--text-sub);
    margin-bottom: 4px;
}
.lb-empty-state div {
    font-size: 13px;
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.crew-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.crew-card:hover {
    border-color: var(--gold-border);
    background: var(--bg-surface-2);
}

.crew-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crew-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.crew-card-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}

.crew-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
}


.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.showcase-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s ease;
}

.showcase-card:hover {
    border-color: var(--gold-border);
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-line);
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.play-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.showcase-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}


.content-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.rule-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 20px;
}

.rule-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rule-num-badge {
    padding: 2px 8px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
}

.rule-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.rule-body {
    font-size: 13.5px;
    color: var(--text-sub);
    line-height: 1.6;
    padding-left: 36px;
}


.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--bg-surface-2);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 240px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-line);
    padding: 10px 14px;
    border-radius: 6px;
}

.stat-box-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-box-value {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--gold-bright);
}



.tab-btn, .pill-tab, .category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-sub);
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.tab-btn:hover, .pill-tab:hover, .category-tab:hover {
    color: var(--text-main);
    border-color: var(--gold-border);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.tab-btn:active, .pill-tab:active, .category-tab:active {
    transform: translateY(0) scale(0.98);
}

.tab-btn.active, .pill-tab.active, .category-tab.active {
    color: var(--gold-bright);
    background: var(--gold-dim);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 146, 10, 0.15);
}


.data-table tbody tr {
    transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-table tbody tr:hover {
    background: rgba(243, 156, 18, 0.03);
}


.crew-card, .showcase-card, .glass-card, .rule-item-card {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.crew-card:hover, .showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.country-opt-btn:hover {
    background: rgba(243, 156, 18, 0.08) !important;
    border-color: var(--gold-border) !important;
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .common-chat-panel { inset:52px 8px 184px; }
}

@media (max-height: 600px) {
    .common-chat-panel { top:52px; bottom:170px; min-height:0; }
}

@media (max-width: 768px), (hover: none) {
    .site-page-rail {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        height: 42px;
        display: flex;
        overflow-x: auto;
        margin: 12px 0 -4px;
        scrollbar-width: none;
    }

    .site-page-rail::-webkit-scrollbar {
        display: none;
    }

    .site-page-rail-link {
        flex: 0 0 auto;
        width: auto;
        height: 42px;
        padding: 0 12px;
        align-items: flex-start;
        font-size: 10px;
    }

    .site-page-rail-link span {
        position: static;
        max-width: none;
        overflow: visible;
        opacity: 0.72;
        transform: none;
        padding-top: 1px;
    }

    .site-page-rail-link.is-current span,
    .site-page-rail-link:hover span,
    .site-page-rail-link:focus-visible span {
        opacity: 1;
    }

    .site-page-rail-link::after {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 2px;
        transform: scaleX(0);
    }

    .site-page-rail-link::before {
        top: auto;
        bottom: 1px;
        left: 50%;
        width: 4px;
        height: 4px;
    }

    .site-page-rail-link.is-current::before,
    .site-page-rail-link:hover::before,
    .site-page-rail-link:focus-visible::before {
        background: var(--gold-bright);
    }

    .site-page-rail-link.is-current::after,
    .site-page-rail-link:hover::after,
    .site-page-rail-link:focus-visible::after {
        opacity: 0.85;
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-page-rail-link,
    .site-page-rail-link span,
    .site-page-rail-link::after {
        transition: none;
    }
    .site-page-rail-link::before {
        transition: none;
    }
}
.match-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 24px}
.match-action-button{min-height:42px;padding:10px 18px;font-size:11.5px;font-weight:700;font-family:var(--font-display);letter-spacing:.05em;text-transform:uppercase;background:#111216;border:1px solid rgba(255,255,255,.09);border-radius:4px;color:#d5d8e0;cursor:pointer;transition:all .15s ease}
.match-action-button:hover:not(:disabled){background:#16181f;border-color:rgba(243,156,18,.4);color:#ffffff;box-shadow:0 4px 16px rgba(0,0,0,.5)}
.match-action-button:active:not(:disabled){transform:scale(.98)}
.match-locked-button{background:rgba(255,255,255,.015);border-color:rgba(255,255,255,.05);color:var(--text-muted);opacity:.5;cursor:not-allowed}
.match-queue-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}
.match-queue-overlay[hidden]{display:none!important}
.match-queue-dialog{width:min(100%,420px);padding:28px;background:#10100f;border:1px solid rgba(255,255,255,.11);border-radius:7px;box-shadow:0 18px 55px rgba(0,0,0,.45)}
.match-queue-dialog h2{margin:9px 0 7px;color:var(--text-main);font-family:var(--font-display);font-size:21px;font-weight:800;letter-spacing:-.02em}
.match-queue-dialog p{margin:0;color:var(--text-sub);font-size:13px;line-height:1.55}
.queue-eyebrow{font:700 10px var(--font-mono);letter-spacing:.1em;color:var(--gold-bright)}
.match-queue-dialog label{display:block;margin:12px 0 6px;color:var(--text-sub);font:700 10px var(--font-mono);text-transform:uppercase}
.match-queue-dialog input{width:100%;margin-bottom:14px}
.queue-primary-button{width:100%;margin:4px 0 8px}
.queue-wait-step h2{margin:0 0 26px;text-align:center;font-size:22px}
.queue-search-track{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:12px}
.queue-search-range,.queue-search-track time{color:var(--text-muted);font:11px var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.queue-search-progress{height:2px;overflow:hidden;background:rgba(255,255,255,.1)}
.queue-search-progress span{display:block;width:34%;height:100%;background:var(--gold-bright);animation:queue-progress 2.4s ease-in-out infinite}
@keyframes queue-progress{0%{transform:translateX(-110%)}100%{transform:translateX(410%)}}
.queue-cancel-button{display:block;width:100%;margin:23px 0 0;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:4px;background:transparent;color:var(--text-sub);font:600 11px var(--font-mono);cursor:pointer;transition:border-color .15s,color .15s}
.queue-cancel-button:hover{border-color:rgba(255,255,255,.3);color:var(--text-main)}
#queue-error{min-height:0;margin-top:8px;color:#ff8178;font-size:12px}
.site-queue-dock{position:fixed;right:22px;bottom:22px;z-index:9800;width:min(350px,calc(100vw - 28px));transition:right .24s ease,bottom .24s ease,left .24s ease,top .24s ease,width .24s ease,transform .24s ease}
.site-queue-dock[hidden]{display:none!important}
.site-queue-dock-panel{padding:13px 15px;background:#10100f;border:1px solid rgba(255,255,255,.14);border-radius:5px;box-shadow:0 12px 38px rgba(0,0,0,.42)}
.site-queue-dock.is-centered{top:50%;right:auto;bottom:auto;left:50%;width:min(350px,calc(100vw - 28px));padding:0;transform:translate(-50%,-50%);pointer-events:none}
.site-queue-dock.is-centered .site-queue-dock-panel{pointer-events:auto}
.site-queue-dock-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px}
.site-queue-dock-head>span{overflow:hidden;color:var(--text-main);font:700 12px var(--font-display);text-overflow:ellipsis;white-space:nowrap}
.site-queue-dock-head time{color:var(--text-muted);font:11px var(--font-mono);font-variant-numeric:tabular-nums}
.site-queue-dock-head button{padding:3px 0 3px 8px;border:0;background:none;color:var(--text-muted);font:11px var(--font-mono);cursor:pointer}
.site-queue-dock-head button:hover{color:var(--gold-bright)}
.site-queue-dock.is-collapsed .site-queue-dock-body{display:none}
.site-queue-dock-body{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.09)}
.site-queue-track{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;color:var(--text-muted);font:10px var(--font-mono);font-variant-numeric:tabular-nums}
.site-queue-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px}
.site-queue-search .queue-search-progress{width:100%}
.site-queue-search>button{padding:0;border:0;background:none;color:var(--text-muted);font:10px var(--font-mono);cursor:pointer;white-space:nowrap}
.site-queue-search>button:hover{color:var(--text-main)}
#site-queue-error{margin-top:7px;color:#ff8178;font-size:11px}
.match-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.match-result-actions button{min-height:44px}
@media(max-width:600px){.match-actions{align-items:stretch;flex-direction:column}.match-action-button{width:100%}.match-queue-dialog{padding:22px}.match-result-actions{grid-template-columns:1fr}.site-queue-dock{right:12px;bottom:12px;width:calc(100vw - 24px)}.site-queue-dock.is-centered{top:50%;right:auto;bottom:auto;left:50%;width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){.queue-search-progress span{animation:none;width:100%}}

/* ==========================================================================
   ESPORTS PROFILE & DASHBOARD (FACEIT-STYLE)
   ========================================================================== */

.profile-page-container {
    max-width: 1240px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

.profile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(20, 17, 11, 0.45);
    border: 1px solid rgba(212, 146, 10, 0.18);
    border-radius: 4px;
    color: var(--text-sub);
    font-size: 11px;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: all 0.15s ease;
}

.profile-back-link:hover {
    border-color: rgba(212, 146, 10, 0.35);
    color: var(--text-main);
    background: rgba(212, 146, 10, 0.08);
}

.esports-profile-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 960px) {
    .esports-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column: Player Identity Card */
.player-identity-card {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    position: relative;
}

.player-card-hero-bg {
    height: 85px;
    background: linear-gradient(180deg, rgba(212, 146, 10, 0.14) 0%, rgba(17, 16, 9, 0.98) 100%);
    border-bottom: 1px solid rgba(212, 146, 10, 0.12);
    position: relative;
}

.player-card-body {
    padding: 0 18px 20px;
    position: relative;
}

.player-avatar-wrapper {
    margin-top: -44px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.player-avatar-img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    background: #16140e;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.4), 0 6px 20px rgba(0, 0, 0, 0.7);
    display: block;
}

.player-avatar-fallback {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #16140e;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.4), 0 6px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-bright);
}

.player-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.player-name-section {
    margin-bottom: 12px;
}

.player-display-username {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-badge-pill {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-role-mod {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-role-gold {
    background: rgba(243, 156, 18, 0.12);
    color: var(--gold-bright);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.player-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-sub);
    margin-bottom: 14px;
}

.player-actions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.btn-esports-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f39c12;
    color: #0b0c0e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(243, 156, 18, 0.22);
    transition: all 0.15s ease;
}

.btn-esports-primary:hover {
    background: #f1c40f;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.35);
    filter: brightness(1.04);
}

.btn-esports-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(20, 17, 11, 0.55);
    border: 1px solid rgba(212, 146, 10, 0.18);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 7px 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-esports-secondary:hover {
    background: rgba(212, 146, 10, 0.12);
    border-color: rgba(212, 146, 10, 0.35);
    color: #fff;
}

.player-bio-box {
    padding: 10px 0 14px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.08);
}

.player-bio-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.player-bio-text {
    font-size: 12.5px;
    color: var(--text-sub);
    line-height: 1.5;
    word-break: break-word;
}

.player-connections-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(212, 146, 10, 0.06);
    font-size: 12px;
    transition: background 0.15s ease;
}

.connection-item:last-child {
    border-bottom: none;
}

.connection-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-sub);
    font-weight: 500;
}

.connection-brand svg {
    opacity: 0.85;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.connection-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.connection-status-dot.active {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.connection-status-dot.inactive {
    background: #555866;
}

/* Talent Showcase Medals */
.talent-medals-wrap {
    margin-bottom: 18px;
}

.talent-medals-wrap h4 {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 6px 0;
}

.talent-medal-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 9px;
    margin-bottom: 4px;
    background: rgba(243, 156, 18, 0.04);
    border: 1px solid rgba(243, 156, 18, 0.18);
    border-radius: 4px;
    font-size: 11px;
}

/* ==========================================================================
   FRIENDS ROSTER WIDGET (SLEEK, CLEAN, NO CLUNKY BOXES)
   ========================================================================== */
.friends-roster-card {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.friends-roster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.1);
}

.friends-roster-title {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.friends-count-dot {
    color: rgba(255, 255, 255, 0.2);
}

.friends-roster-count {
    color: var(--gold-bright);
    font-weight: 800;
}

.friends-roster-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.friend-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px;
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.friend-row-item:hover {
    background: rgba(212, 146, 10, 0.045);
    transform: translateX(2px);
}

.friend-left-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.friend-avatar-wrap {
    width: 30px;
    height: 30px;
    position: relative;
    flex-shrink: 0;
}

.friend-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #16140e;
    border: 1px solid rgba(212, 146, 10, 0.2);
    display: block;
}

.friend-avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18160f, #111009);
    border: 1px solid rgba(212, 146, 10, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-bright);
}

.friend-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    border: 1.5px solid var(--bg-surface);
}

.friend-text-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.friend-name-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.friend-row-item:hover .friend-name-text {
    color: var(--gold-bright);
}

.friend-sub-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.friend-elo-chip {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-mono);
}

.friend-elo-val {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--gold-bright);
}

.friend-elo-tag {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.friends-empty-state {
    text-align: center;
    padding: 16px 10px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-family: var(--font-mono);
}

/* ==========================================================================
   RIGHT COLUMN: COMPETITIVE DASHBOARD
   ========================================================================== */
.esports-dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ==========================================================================
   UNIFIED COMPETITIVE HUB (FACEIT / HLTV ESPORTS DESIGN)
   ========================================================================== */
.competitive-hub-card {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 6px;
    padding: 18px 22px 0 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.hub-header-eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.hub-season-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
}

.hub-tag-mode {
    color: var(--text-muted);
    font-weight: 700;
}

.hub-sep {
    color: rgba(255, 255, 255, 0.15);
}

.hub-standing-gold {
    color: var(--gold-bright);
    font-weight: 800;
    text-shadow: 0 0 12px rgba(243, 156, 18, 0.35);
}

.hub-standing-country {
    color: var(--text-sub);
    font-weight: 600;
    text-transform: uppercase;
}

.hub-mode-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Core Rating Showcase + Graph Row */
.hub-showcase-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
}

@media (max-width: 860px) {
    .hub-showcase-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.hub-elo-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(212, 146, 10, 0.1);
    padding-right: 20px;
}

@media (max-width: 860px) {
    .hub-elo-block {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(212, 146, 10, 0.1);
        padding-bottom: 14px;
    }
}

.hub-elo-meta-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hub-elo-number-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.hub-elo-number {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.hub-elo-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
}

.hub-elo-delta-pill {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
}

.delta-pos {
    color: #10b981;
}

.delta-neg {
    color: #ef4444;
}

.hub-graph-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hub-graph-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
}

.hub-graph-title {
    color: var(--text-sub);
    font-weight: 700;
}

.hub-graph-sub {
    color: var(--text-muted);
    font-size: 9px;
}

/* Interactive SVG Area Chart */
.svg-graph-container {
    width: 100%;
    height: 72px;
    position: relative;
    cursor: crosshair;
}

.svg-graph-container svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Interactive Tooltip & Guides */
.graph-tracker-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    border-left: 1px dashed rgba(243, 156, 18, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.graph-tracker-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-bright);
    border: 2px solid var(--bg-surface);
    box-shadow: 0 0 8px var(--gold-bright);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.graph-hover-tooltip {
    position: absolute;
    pointer-events: none;
    background: #16140e;
    border: 1px solid rgba(212, 146, 10, 0.35);
    border-radius: 3px;
    padding: 5px 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -125%);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

/* Integrated KPI Ribbon */
.hub-kpi-ribbon {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(5, 5, 4, 0.55);
    border-top: 1px solid rgba(212, 146, 10, 0.12);
    margin: 4px -22px 0 -22px;
    padding: 12px 22px;
}

@media (max-width: 900px) {
    .hub-kpi-ribbon {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.hub-kpi-cell {
    display: flex;
    flex-direction: column;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.hub-kpi-cell:first-child {
    padding-left: 0;
}

.hub-kpi-cell:last-child {
    border-right: none;
    padding-right: 0;
}

.hub-kpi-lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.hub-kpi-val {
    font-family: var(--font-mono);
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.hub-kpi-cell-form {
    min-width: 130px;
}

.form-disc-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.form-disc {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    border: none;
    transition: transform 0.15s ease;
}

.form-disc:hover {
    transform: scale(1.15);
}

.form-disc-w {
    background: #10b981;
    color: #042416;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.form-disc-l {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   RECENT MATCHES (FACEIT-STYLE WITH HEADER SHOW MORE LINK)
   ========================================================================== */
.recent-duels-card {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 6px;
    padding: 18px 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.duels-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.1);
}

.duels-card-header h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-sub);
}

.match-history-show-more-link {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.match-history-show-more-link:hover {
    color: var(--gold-bright);
}

.match-history-table {
    display: flex;
    flex-direction: column;
    border-top: none;
}

.match-row-item {
    display: grid;
    grid-template-columns: 56px 60px 1fr 140px 70px;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    user-select: none;
    transition: background 0.15s ease;
}

.match-row-item:hover {
    background: rgba(212, 146, 10, 0.045);
}

.match-row-item.match-item-hidden {
    display: none;
}

.match-outcome-col {
    display: flex;
    align-items: center;
}

.match-outcome-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.outcome-w {
    color: #10b981;
}

.outcome-l {
    color: #ef4444;
}

.match-score-text {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
}

.match-opponent-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-opp-avatar-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.match-opp-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #16140e;
    border: 1px solid rgba(212, 146, 10, 0.18);
    display: block;
}

.match-opp-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #16140e;
    border: 1px solid rgba(212, 146, 10, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-bright);
}

.match-opp-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-mode-cell {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.match-elo-delta-cell {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 800;
    text-align: right;
}

.btn-show-more-matches {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: rgba(20, 17, 11, 0.5);
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 6px;
    color: var(--text-sub);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-show-more-matches:hover {
    background: rgba(212, 146, 10, 0.1);
    border-color: rgba(212, 146, 10, 0.35);
    color: #fff;
}

.match-empty-box {
    text-align: center;
    padding: 34px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--text-muted);
}

.match-empty-box p {
    margin: 6px 0 14px;
    font-size: 12.5px;
}

@media (max-width: 760px) {
    .match-row-item {
        grid-template-columns: 50px 60px 1fr 60px;
    }
    .match-mode-cell {
        display: none;
    }
}


/* ==========================================================================
   MINIMAL GRAPHITE SETTINGS PAGE & ESPORTS PROFILE TABS
   ========================================================================== */

.profile-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.12);
    padding-bottom: 0;
}

.profile-tabs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: -1px;
    text-decoration: none;
}

.profile-tab-btn:hover {
    color: #ffffff;
}

.profile-tab-btn.active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-bright);
}

.profile-tab-badge {
    font-size: 9.5px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-sub);
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: tabSlideFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabSlideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Select & Toggle Styles for Settings */
.settings-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.settings-select {
    width: 100%;
    background: #0d0c0a;
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 12.5px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(212,146,10,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.settings-select:focus {
    border-color: var(--gold-border);
    background-color: var(--bg-surface-2);
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-toggle-row:last-child {
    border-bottom: none;
}

.settings-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-toggle-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
}

.settings-toggle-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Custom CSS switch toggle */
.switch-control {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #16140e;
    border: 1px solid rgba(212, 146, 10, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #888c99;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.switch-control input:checked + .switch-slider:before {
    transform: translateX(16px);
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.settings-page-wrap {
    max-width: 960px;
    margin: 16px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
}

.settings-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-back-link {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.15s ease;
}

.settings-back-link:hover {
    color: #fff;
}

.settings-top-view-link {
    color: var(--text-sub);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.15s ease;
}

.settings-top-view-link:hover {
    color: var(--gold-bright);
}

.settings-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}

.settings-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.1);
}

.settings-panel-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.settings-sub-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Status tags */
.settings-tag-ok {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    color: #2ecc71;
    letter-spacing: 0.06em;
}

.settings-tag-pending {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    color: #f1c40f;
    letter-spacing: 0.06em;
}

/* Row states */
.settings-row-connected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.settings-account-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.settings-account-value {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

/* Inputs & Form Elements */
.settings-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.settings-text-input {
    flex: 1;
    background: #0d0c0a;
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.settings-text-input:focus {
    border-color: var(--gold-border);
    background: var(--bg-surface-2);
}

.settings-panel textarea,
.player-card-body textarea {
    width: 100% !important;
    max-width: 100% !important;
    background: #0d0c0a !important;
    border: 1px solid rgba(212, 146, 10, 0.16) !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 12.5px !important;
    outline: none !important;
    transition: border-color 0.15s ease, background 0.15s ease !important;
    resize: none !important;
    height: 70px !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
}

.settings-panel textarea:focus,
.player-card-body textarea:focus {
    border-color: var(--gold-border) !important;
    background: var(--bg-surface-2) !important;
}

/* Single line code / token bar */
.settings-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d0c0a;
    border: 1px solid rgba(212, 146, 10, 0.16);
    border-radius: 4px;
    padding: 8px 12px;
    gap: 8px;
}

.settings-code-text {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.settings-token-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    text-overflow: ellipsis;
}

/* Verification Inner Section */
.settings-verification-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(212, 146, 10, 0.1);
}

.settings-verif-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons & Text Actions (Athletic / FACEIT Style) */
.settings-btn-save {
    background: rgba(20, 17, 11, 0.85);
    border: 1px solid rgba(212, 146, 10, 0.22);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-btn-save:hover {
    background: rgba(212, 146, 10, 0.15);
    border-color: rgba(212, 146, 10, 0.45);
}

.settings-btn-action {
    width: 100%;
    background: rgba(20, 17, 11, 0.85);
    border: 1px solid rgba(212, 146, 10, 0.22);
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-btn-action:hover {
    background: rgba(212, 146, 10, 0.15);
    border-color: rgba(212, 146, 10, 0.45);
}

.settings-btn-inline {
    background: rgba(20, 17, 11, 0.85);
    border: 1px solid rgba(212, 146, 10, 0.22);
    border-radius: 4px;
    color: var(--text-sub);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-btn-inline:hover {
    background: rgba(212, 146, 10, 0.15);
    color: #fff;
    border-color: rgba(212, 146, 10, 0.45);
}

.settings-btn-discord {
    width: 100%;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 4px;
    color: #7983f5;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-btn-discord:hover {
    background: #5865F2;
    color: #fff;
}

.settings-text-action {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.settings-text-action:hover {
    color: #ffffff;
}

.settings-link-btn-danger {
    background: none;
    border: none;
    color: #e74c3c;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.settings-link-btn-danger:hover {
    opacity: 1;
}

.settings-link-btn-sub {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0 0 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.settings-link-btn-sub:hover {
    color: var(--text-sub);
}
