/* Additional palettes for eXtreme Club stats. The existing light theme is unchanged. */
:root{color-scheme:light}
.ex-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.23);border-radius:10px;color:#e8edf3;background:rgba(255,255,255,.07);cursor:pointer;transition:background-color .18s,border-color .18s}
.ex-theme-toggle:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.45);color:#fff}
.ex-theme-toggle:focus-visible{outline:2px solid #a8d1ff;outline-offset:3px}
.ex-theme-toggle svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ex-theme-sun,html[data-ex-theme="dark"] .ex-theme-moon{display:none}
html[data-ex-theme="dark"] .ex-theme-sun{display:block}
@media(max-width:1199.98px){.ex-theme-toggle{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.ex-theme-toggle{transition:none}}
html[data-ex-theme="dark"]{color-scheme:dark;
--ex-bg:#161a1e;--ex-card:#252b30;--ex-card-soft:#2a3238;--ex-border:#3b464e;--ex-border-strong:#52606a;
--ex-text:#e4ebf0;--ex-muted:#a0afbc;--ex-link:#9ccbf0;--ex-link-hover:#c6e5ff;--ex-green:#6ccc96;--ex-green-bg:#253b32;
--ex-gold:#e6c275;--ex-gold-bg:#4e3927;--ex-gold-border:#94714e;--ex-silver-bg:#41494e;--ex-silver-border:#647079;
--ex-bronze-bg:#44352c;--ex-bronze-border:#a17c5e;
--bs-body-bg:#161a1e;--bs-body-color:#e4ebf0;--bs-border-color:#3b464e;--bs-secondary-color:#a8b4c1;--bs-tertiary-bg:#2e363c}
html[data-ex-theme="dark"] body{background:var(--ex-bg)!important;color:var(--ex-text)}
html[data-ex-theme="dark"] .extreme-navbar{background:#30363c!important;border-bottom:1px solid #47545f}
html[data-ex-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.shop-card-link):not(.vip-primary-btn):not(.vip-pay-btn){color:var(--ex-link)}
html[data-ex-theme="dark"] a:not(.btn):hover{color:var(--ex-link-hover)}
html[data-ex-theme="dark"] footer{color:var(--ex-muted)}
html[data-ex-theme="dark"] .dropdown-menu{background:#293137;border-color:#4b565f;color:var(--ex-text)}
html[data-ex-theme="dark"] .dropdown-item,html[data-ex-theme="dark"] .records-mode-toggle{color:#dce4ea}
html[data-ex-theme="dark"] .dropdown-item:hover,html[data-ex-theme="dark"] .dropdown-item:focus{background:#364048;color:#fff}
html[data-ex-theme="dark"] .lang-menu .dropdown-item.active{background:#614933;color:#fff}
html[data-ex-theme="dark"] :is(.text-muted,.text-secondary,.leaderboard-subtitle,.home-section-head p,.record-label,.record-description,.record-value small,.record-top-value small,.records-updated,.activity-offline,.mobile-player-detail,.monthly-feature-title,.monthly-record-label,.monthly-record-value small,.monthly-metrics-since,.monthly-note,.monthly-category-empty,.monthly-server-subtitle,.monthly-server-mode,.shop-card p,.shop-price-line span,.vip-subtitle,.vip-command,.vip-feature-card li,.vip-section-heading p,.vip-checkout-note,.vip-provider-hint,.vip-provider-state,.vip-pay-subtitle,.skins-content p,.vip-rules-box p,.store-product-heading p,.store-product-price span,.store-summary-action small){color:#a8b7c4!important}
html[data-ex-theme="dark"] :is(.leaderboard-card,.record-card,.shop-card,.vip-feature-card,.vip-checkout-section,.skins-section,.vip-rules-box,.vip-provider-card-inner,.store-product-module,.monthly-category-card,.stats-empty,.records-loading,.records-error,.card,.modal-content){background:var(--ex-card)!important;border-color:var(--ex-border)!important;color:var(--ex-text)}
html[data-ex-theme="dark"] :is(.shop-vip-card,.vip-hero){background:linear-gradient(130deg,#3b332d,#2d2d2f 75%,#252b30)!important;border-color:#8b6547!important}
html[data-ex-theme="dark"] :is(.vip-hero h1,.vip-feature-card h2,.vip-section-heading h2,.skins-content h2,.vip-rules-box h2,.shop-card h3,.store-product-heading h2,.monthly-server-title,.monthly-server-brand,.monthly-category-head .monthly-feature-title,.monthly-category-head .monthly-metric-title,.top-heading){color:var(--ex-text)!important}
html[data-ex-theme="dark"] :is(.vip-price strong,.vip-checkout-price strong,.store-product-price strong,.vip-hero-badge,.vip-eyebrow,.vip-summary-total strong,.store-summary-price strong,.shop-card-kicker){color:#e6b47e}
html[data-ex-theme="dark"] :is(.leaderboard-table,.table){--bs-table-bg:var(--ex-card);--bs-table-color:var(--ex-text);--bs-table-border-color:var(--ex-border);--bs-table-striped-bg:#2b3339;--bs-table-striped-color:var(--ex-text);--bs-table-hover-bg:#343e45;--bs-table-hover-color:#fff;color:var(--ex-text);background:var(--ex-card)}
html[data-ex-theme="dark"] .leaderboard-table thead th{background:#30373d!important;border-color:var(--ex-border)!important;color:var(--ex-text)}
html[data-ex-theme="dark"] .leaderboard-table tbody td{background:var(--ex-card);border-color:var(--ex-border)!important;color:var(--ex-text)}
html[data-ex-theme="dark"] .leaderboard-table tbody tr:nth-child(even) td{background:#2a3238}
html[data-ex-theme="dark"] .leaderboard-table tbody tr:hover td{background:#343e45}
html[data-ex-theme="dark"] .leaderboard-table>:not(caption)>*>*{border-bottom-color:var(--ex-border)}
html[data-ex-theme="dark"] :is(.points-value,.record-value,.record-top-value,.monthly-record-value,.shop-price-line strong,.vip-provider-label,.store-product-fields .vip-field>span){color:var(--ex-text)}
html[data-ex-theme="dark"] :is(.record-top-row,.monthly-history-row,.monthly-record-row,.monthly-metric-block,.monthly-server-card .monthly-card-head,.vip-checkout-section .vip-section-heading,.store-payment-area,.store-product-header){border-color:var(--ex-border)!important}
html[data-ex-theme="dark"] :is(.monthly-category-head,.monthly-category-points .monthly-category-head,.store-product-header){background:#2e363c!important;color:var(--ex-text);border-color:var(--ex-border)}
html[data-ex-theme="dark"] :is(.monthly-month-selector,.vip-yoo-m,.monthly-archive-box,.monthly-pill,.monthly-chip){background:#2e363c;border-color:var(--ex-border)}
html[data-ex-theme="dark"] :is(.monthly-month-selector label,.monthly-head-link,.monthly-more-muted){color:#b7c7d3}
html[data-ex-theme="dark"] :is(.monthly-server-card,.monthly-history-card){color:var(--ex-text)}
html[data-ex-theme="dark"] :is(.rank-badge,.record-rank){background:#253344;border-color:#52616b;color:#cfdeee}
html[data-ex-theme="dark"] :is(.rank-gold,.record-rank-1){background:#59432d;border-color:#a47b4b;color:#f1c890}
html[data-ex-theme="dark"] :is(.rank-silver,.record-rank-2){background:#3d464e;border-color:#78848b;color:#dbe3e8}
html[data-ex-theme="dark"] :is(.rank-bronze,.record-rank-3){background:#573d31;border-color:#aa785f;color:#eeb99e}
html[data-ex-theme="dark"] .vip-badge{background:#5c4226;color:#ffe0a8}
html[data-ex-theme="dark"] .rank-banned{background:#482d32!important;color:#ffc9cf!important}
html[data-ex-theme="dark"] .team-survivor{background:#293d48;color:#bcdcf8;border-color:#577789}
html[data-ex-theme="dark"] .team-infected{background:#463139;color:#ffd1d1;border-color:#88616a}
html[data-ex-theme="dark"] .team-spectator{background:#333a40;color:#d3dce2;border-color:#66717b}
html[data-ex-theme="dark"] .activity-online{background:#264034;color:#b6e7c8;border-color:#4d8f70}
html[data-ex-theme="dark"] .leaderboard-meta>span,html[data-ex-theme="dark"] .leaderboard-meta>a{background:#30373d;color:#c6d9e5;border-color:var(--ex-border)}
html[data-ex-theme="dark"] .leaderboard-pagination .page-link{background:#30373d;color:#d4e2ef;border-color:var(--ex-border)}
html[data-ex-theme="dark"] .leaderboard-pagination .page-item.active .page-link{background:#8b5d38;color:#fff;border-color:#ad7d51}
html[data-ex-theme="dark"] :is(.form-control,.form-select,.leaderboard-search .form-control,.monthly-month-selector select,.vip-field .form-control,.vip-field .form-select,.store-product-fields .form-control){color:#edf3f9!important;background-color:#1c2227!important;border-color:#54616b!important}
html[data-ex-theme="dark"] input::placeholder{color:#91a7b6;opacity:1}
html[data-ex-theme="dark"] :is(.form-control,.form-select):focus{border-color:#86a9c3!important;box-shadow:0 0 0 3px rgba(104,159,234,.2)!important}
html[data-ex-theme="dark"] :is(.form-control,.form-select):disabled{background:#2f363d!important;color:#a0adba!important}
html[data-ex-theme="dark"] :is(.leaderboard-search-btn,.shop-btn){background:#303b43;color:#b7d9f4;border-color:#687a87}
html[data-ex-theme="dark"] :is(.leaderboard-search-btn,.shop-btn):hover{background:#3c4c58;color:#fff}
html[data-ex-theme="dark"] :is(.vip-provider-input:checked+.vip-provider-card-inner,.vip-checkout-summary,.store-product-summary,.store-product-unavailable){background:#302d2b!important;border-color:#8d6c4e!important;color:#e5dac0}
html[data-ex-theme="dark"] :is(.vip-field,.vip-summary-total span,.store-summary-price span){color:#c9d5de}
html[data-ex-theme="dark"] .vip-provider-radio{background:#242b31;border-color:#5b6870}
html[data-ex-theme="dark"] .vip-yoo-methods input:checked+span{background:#3a464e;color:#ffdd91}
html[data-ex-theme="dark"] .vip-command code{background:#513c2b;color:#f2c894}
html[data-ex-theme="dark"] .vip-test-notice{background:#46382c;color:#e9d0b3}

/* Dark mode coverage for Bootstrap table variants and checkout controls. */
html[data-ex-theme="dark"] .table :is(th,thead th){background:#30373d!important;color:#e5edf1!important;border-color:#46525c!important}
html[data-ex-theme="dark"] .table :is(td,tbody td){border-color:#445058!important}
html[data-ex-theme="dark"] .table-light,html[data-ex-theme="dark"] .table-secondary{--bs-table-bg:#30373d!important;--bs-table-color:#e5edf1!important;--bs-table-border-color:#46525c!important}
html[data-ex-theme="dark"] .shop-card .shop-btn{background:#303b43!important;border-color:#687a87!important;color:#b7d9f4!important}
html[data-ex-theme="dark"] .shop-card .shop-btn-active{background:#523c29!important;border-color:#9e774b!important;color:#f1c796!important}
html[data-ex-theme="dark"] .vip-hero-badge{background:rgba(63,51,29,.85)!important;color:#f1c894!important;border-color:#9b774d!important}
html[data-ex-theme="dark"] .vip-yoo-methods{background:#2e363c!important;border-color:#52616b!important;color:#dce5eb!important}
html[data-ex-theme="dark"] .vip-yoo-methods span{color:#bdcdd8}
html[data-ex-theme="dark"] :is(.skins-lifetime,.store-lifetime-note){color:#efc877!important}


/* === Forum-inspired eXtreme Club dark mode. Palette sampled from the forum ===
   Canvas: #161a1e | sections: #20262b | cards: #262d33
   Navigation: #30363c | blue links: #9ccbf0 | warm accents: #e5ad77 */
html[data-ex-theme="dark"]{
  --forum-canvas:#161a1e;
  --forum-section:#20262b;
  --forum-card:#262d33;
  --forum-card-alt:#232a30;
  --forum-navigation:#30363c;
  --forum-border:#3d4850;
  --forum-text:#e3eaf0;
  --forum-muted:#9daebb;
  --forum-link:#a4cdec;
  --forum-accent:#e5ad77;
  --forum-accent-hover:#f1bf8f;
  --bs-link-color:#a4cdec;
  --bs-link-hover-color:#c6e5ff;
  --ex-bg:var(--forum-canvas);
  --ex-card:var(--forum-card);
  --ex-card-soft:var(--forum-card-alt);
  --ex-border:var(--forum-border);
  --ex-border-strong:#56616b;
  --ex-text:var(--forum-text);
  --ex-muted:var(--forum-muted);
  --ex-link:var(--forum-link);
  --ex-link-hover:#d0e9fb;
  --bs-body-bg:var(--forum-canvas);
  --bs-body-color:var(--forum-text);
  --bs-border-color:var(--forum-border);
  --bs-secondary-color:var(--forum-muted);
  --bs-tertiary-bg:var(--forum-card-alt);
}
html[data-ex-theme="dark"] body{
   background:var(--forum-canvas)!important;
   color:var(--forum-text);
}
html[data-ex-theme="dark"] .extreme-navbar{
  background:var(--forum-navigation)!important;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
  border-bottom:1px solid #424e57;
}
html[data-ex-theme="dark"] .extreme-brand,
html[data-ex-theme="dark"] .navbar .extreme-brand{
  color:var(--forum-accent)!important;
  text-shadow:none;
}
html[data-ex-theme="dark"] .navbar .nav-link{color:#d2e0ea}
html[data-ex-theme="dark"] .navbar .nav-link:hover,
html[data-ex-theme="dark"] .navbar .nav-link:focus{color:var(--forum-accent-hover)}
html[data-ex-theme="dark"] .vip-nav-link{
  background:#40352d;
  border-color:#9b744f;
  color:#f5c28b!important;
}
html[data-ex-theme="dark"] .vip-nav-link:hover{background:#55402e}
html[data-ex-theme="dark"] .ex-theme-toggle{background:#242a2f;color:#ffd184;border-color:#68747c}
html[data-ex-theme="dark"] .ex-theme-toggle:hover{background:#3a434b;border-color:#dfa975;color:#ffe0a3}
html[data-ex-theme="dark"] .dropdown-menu,
html[data-ex-theme="dark"] .records-menu,
html[data-ex-theme="dark"] .lang-menu{background:#262d33;border:1px solid var(--forum-border)}
html[data-ex-theme="dark"] .dropdown-item,
html[data-ex-theme="dark"] .records-mode-toggle{color:#d9e5ed}
html[data-ex-theme="dark"] .dropdown-item:hover,
html[data-ex-theme="dark"] .records-mode-toggle:hover{color:var(--forum-accent-hover);background:#343d43}
html[data-ex-theme="dark"] .lang-menu .dropdown-item.active{color:#f7d4ac;background:#493b31}
html[data-ex-theme="dark"] :is(.leaderboard-card,.record-card,.shop-card,.vip-feature-card,.vip-checkout-section,.skins-section,.vip-rules-box,.vip-provider-card-inner,.store-product-module,.monthly-category-card,.stats-empty,.records-loading,.records-error,.card,.modal-content){
   background:#262d33!important;
   border:1px solid var(--forum-border)!important;
   color:var(--forum-text);
   box-shadow:0 3px 12px rgba(0,0,0,.12);
}
html[data-ex-theme="dark"] .monthly-server-card,
html[data-ex-theme="dark"] .monthly-history-card,
html[data-ex-theme="dark"] .monthly-card{
   background:var(--forum-section);
   border-color:var(--forum-border);
}
html[data-ex-theme="dark"] :is(.home-section-head h2,.leaderboard-heading h1,.stats-section-title,.top-heading,.vip-section-heading h2){
  color:var(--forum-text)!important;
}
html[data-ex-theme="dark"] :is(.home-server-title a,.monthly-server-brand,.monthly-server-title,.shop-card h3,.record-card:hover .record-value){
  color:var(--forum-accent)!important;
}
html[data-ex-theme="dark"] :is(.leaderboard-subtitle,.record-label,.record-description,.records-updated,.monthly-note,.monthly-feature-title,.monthly-server-subtitle){
  color:var(--forum-muted)!important;
}
html[data-ex-theme="dark"] :is(.record-player,.player-name,.record-top-name,.monthly-record-player a){
  color:var(--forum-link)!important;
}
html[data-ex-theme="dark"] .leaderboard-card{overflow:hidden}
html[data-ex-theme="dark"] .leaderboard-table,
html[data-ex-theme="dark"] .table{
  --bs-table-bg:#262d33;
  --bs-table-color:var(--forum-text);
  --bs-table-border-color:var(--forum-border);
  --bs-table-striped-bg:#2a3339;
  --bs-table-striped-color:var(--forum-text);
  --bs-table-hover-bg:#354148;
  --bs-table-hover-color:#fff;
  background:#262d33;
}
html[data-ex-theme="dark"] .leaderboard-table thead th,
html[data-ex-theme="dark"] .table thead th,
html[data-ex-theme="dark"] .table-light th{
  color:#d7e3ed!important;
  background:#30383f!important;
  border-color:var(--forum-border)!important;
}
html[data-ex-theme="dark"] .leaderboard-table tbody td,
html[data-ex-theme="dark"] .table tbody td{
  color:var(--forum-text);
  background:#262d33;
  border-color:var(--forum-border)!important;
}
html[data-ex-theme="dark"] .leaderboard-table tbody tr:nth-child(even) td,
html[data-ex-theme="dark"] .table-striped tbody tr:nth-of-type(odd) td{background:#2a3238}
html[data-ex-theme="dark"] .leaderboard-table tbody tr:hover td,
html[data-ex-theme="dark"] .table tbody tr:hover td{background:#354148}
html[data-ex-theme="dark"] :is(.monthly-category-head,.monthly-category-points .monthly-category-head,.store-product-header){
  color:#e2e9ef;
  background:#30383f!important;
  border-bottom:1px solid var(--forum-border)!important;
}
html[data-ex-theme="dark"] :is(.monthly-record-row,.record-top-row,.monthly-history-row,.monthly-metric-block,.monthly-server-card .monthly-card-head){border-color:var(--forum-border)!important}
html[data-ex-theme="dark"] :is(.monthly-category-head .monthly-feature-title,.monthly-category-head .monthly-metric-title){color:#e1e9ef!important}
html[data-ex-theme="dark"] :is(.leaderboard-meta>span,.leaderboard-meta>a,.monthly-month-selector,.monthly-archive-box,.monthly-chip,.monthly-pill){
  background:#2c343a;
  border-color:var(--forum-border);
  color:#d0dce6;
}
html[data-ex-theme="dark"] :is(.form-control,.form-select,.leaderboard-search .form-control,.monthly-month-selector select,.vip-field .form-control,.vip-field .form-select){
  color:var(--forum-text)!important;
  background:#1d2328!important;
  border-color:#55616b!important;
}
html[data-ex-theme="dark"] :is(.form-control,.form-select):focus{
  border-color:#c99767!important;
  box-shadow:0 0 0 3px rgba(215,160,100,.17)!important;
}
html[data-ex-theme="dark"] input::placeholder{color:#8c9ca9}
html[data-ex-theme="dark"] .leaderboard-pagination .page-link{
  color:#b9d7eb;
  background:#2b3339;
  border-color:#48545e;
}
html[data-ex-theme="dark"] .leaderboard-pagination .page-link:hover{background:#354048}
html[data-ex-theme="dark"] .leaderboard-pagination .page-item.active .page-link{
  background:#76543a;
  border-color:#b4835d;
  color:#fff4e8;
}
html[data-ex-theme="dark"] :is(.leaderboard-search-btn,.shop-btn){
  background:#2e383f!important;
  color:#c5dded!important;
  border-color:#586a75!important;
}
html[data-ex-theme="dark"] :is(.leaderboard-search-btn,.shop-btn):hover{
  background:#394650!important;
  color:#fff!important;
  border-color:#8a9da8!important;
}
html[data-ex-theme="dark"] .shop-card .shop-btn-active{
  background:#514031!important;
  border-color:#ad865b!important;
  color:#f4d4af!important;
}
html[data-ex-theme="dark"] .shop-vip-card,
html[data-ex-theme="dark"] .vip-hero{
  background:linear-gradient(140deg,#36302c,#2b2c2e 75%,#262d33)!important;
  border-color:#85694f!important;
}
html[data-ex-theme="dark"] :is(.vip-checkout-summary,.store-product-summary,.vip-provider-input:checked+.vip-provider-card-inner){
  background:#342f2c!important;
  border-color:#9c784f!important;
}
html[data-ex-theme="dark"] :is(.vip-provider-label,.vip-field,.vip-summary-total span,.store-summary-price span){color:#d4dfe7}
html[data-ex-theme="dark"] .vip-yoo-methods{background:#293137!important;border-color:#48545d!important}
html[data-ex-theme="dark"] .vip-hero-badge{background:#3d332c!important;border-color:#aa7e55!important}
html[data-ex-theme="dark"] footer{color:#8a9aa5}


/* Profile page: forum graphite palette. Only active in dark mode. */
html[data-ex-theme="dark"] .ex-profile-hero {
  background:#262d33!important;
  border:1px solid #3d4850;
  border-radius:9px;
  box-shadow:0 4px 18px rgba(0,0,0,.18)!important;
}
html[data-ex-theme="dark"] .ex-profile-hero .execlub-main { color:#e5ebf0!important; }
html[data-ex-theme="dark"] .ex-profile-hero h1 {
  color:#f0e9e0!important;
  text-shadow:none!important;
}
html[data-ex-theme="dark"] .ex-profile-hero p.text-break {
  color:#aebdc8!important;
}
html[data-ex-theme="dark"] .ex-profile-hero img {
  border-radius:6px;
  border:1px solid #4c575e;
}
html[data-ex-theme="dark"] .ex-profile-hero .btn-dark {
  color:#d5e2ea!important;
  background:#303940!important;
  border:1px solid #58646d!important;
  border-radius:6px;
}
html[data-ex-theme="dark"] .ex-profile-hero .btn-dark:hover,
html[data-ex-theme="dark"] .ex-profile-hero .btn-dark:focus-visible {
  color:#fff!important;
  background:#40505a!important;
  border-color:#8999a4!important;
}
html[data-ex-theme="dark"] .ex-profile-metric {
  background:#262d33!important;
  border:1px solid #404b53!important;
  border-radius:8px;
  color:#e8edf1!important;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
  min-height:100%;
}
html[data-ex-theme="dark"] .ex-profile-metric .ex-profile-metric-value {
  color:#e8edf1!important;
  font-variant-numeric:tabular-nums;
}
html[data-ex-theme="dark"] .ex-profile-metric .ex-profile-metric-label {
  color:#a8b8c3!important;
}
html[data-ex-theme="dark"] .ex-profile-metric .profile-kpd-scale {
  color:#a5b1ba!important;
}
html[data-ex-theme="dark"] .ex-profile-metric.profile-kpd-low .profile-kpd-value {color:#f19c9c}
html[data-ex-theme="dark"] .ex-profile-metric.profile-kpd-mid .profile-kpd-value {color:#a7c8ed}
html[data-ex-theme="dark"] .ex-profile-metric.profile-kpd-high .profile-kpd-value {color:#9bd8b0}
html[data-ex-theme="dark"] .ex-profile-metric.profile-kpd-very-high .profile-kpd-value {color:#f1ca85}
html[data-ex-theme="dark"] .ex-profile-metric.profile-kpd-elite .profile-kpd-value {color:#f5c47f}
html[data-ex-theme="dark"] .ex-profile-section-title.ex-profile-section-survivor { color:#9fc6e2!important; }
html[data-ex-theme="dark"] .ex-profile-section-title.ex-profile-section-infected { color:#e3a5a1!important; }
html[data-ex-theme="dark"] .ex-profile-table {
  --bs-table-bg:#262d33;
  --bs-table-color:#e5ebef;
  --bs-table-border-color:#4b565e;
  --bs-table-hover-bg:#343f47;
  background:#262d33!important;
  color:#e5ebef!important;
  border-color:#4b565e!important;
}
html[data-ex-theme="dark"] .ex-profile-table :is(thead th,tbody th,.table-secondary th) {
  background:#30383e!important;
  color:#e2ebf1!important;
  border-color:#4b565e!important;
}
html[data-ex-theme="dark"] .ex-profile-table tbody td {
  background:#262d33!important;
  color:#e1e8ed!important;
  border-color:#4b565e!important;
}
html[data-ex-theme="dark"] .ex-profile-table tbody tr:hover td {background:#313d44!important}
html[data-ex-theme="dark"] .ex-profile-table .tvalue {font-variant-numeric:tabular-nums}
html[data-ex-theme="dark"] .profile-entitlement-skins,
html[data-ex-theme="dark"] .skins-badge {
  background:#34454c!important;
  color:#c4dbe4!important;
  border:1px solid #59717a!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
html[data-ex-theme="dark"] .profile-entitlement-vip {
  background:#493a2d!important;
  color:#e9c39d!important;
  border:1px solid #956f4c!important;
  box-shadow:none!important;
}
html[data-ex-theme="dark"] .profile-entitlement-buy {
  background:#41352d!important;
  color:#e9c39d!important;
  border:1px solid #806146!important;
}
html[data-ex-theme="dark"] .profile-entitlement-buy:hover {
  background:#584333!important;
  color:#f7dcbd!important;
}
html[data-ex-theme="dark"] .profile-entitlement-buy-skins {
  background:#2f4149!important;
  color:#c4dbe4!important;
  border:1px solid #59717a!important;
}
html[data-ex-theme="dark"] .profile-entitlement-buy-skins:hover {
  background:#3c535d!important;
  color:#ecf6fa!important;
}
@media(max-width:767.98px) {
 html[data-ex-theme="dark"] .ex-profile-hero {gap:12px}
 html[data-ex-theme="dark"] .ex-profile-metric {padding:12px 8px!important}
 html[data-ex-theme="dark"] .ex-profile-metric .ex-profile-metric-value {font-size:22px!important}
}


/* Dark table lines v5: forum-compatible low-contrast boundaries. */
html[data-ex-theme="dark"] {
  --ex-line-soft:#384249;
  --ex-line-main:#3d4850;
  --ex-line-frame:#414b53;
  --ex-line-rule:#353f46;
  --bs-table-border-color:var(--ex-line-soft);
}
html[data-ex-theme="dark"] hr {
  border:0!important;
  border-top:1px solid var(--ex-line-rule)!important;
  opacity:1!important;
}
html[data-ex-theme="dark"] :is(.table,.table-bordered,.table-light,.table-secondary,.leaderboard-table,.ex-profile-table) {
  --bs-table-border-color:var(--ex-line-soft)!important;
  border-color:var(--ex-line-frame)!important;
}
html[data-ex-theme="dark"] :is(.table,.table-bordered,.leaderboard-table,.ex-profile-table) > :not(caption) > * > * {
  border-color:var(--ex-line-soft)!important;
  border-bottom-color:var(--ex-line-soft)!important;
}
html[data-ex-theme="dark"] :is(.table,.leaderboard-table,.ex-profile-table) :is(th,td) {
  border-color:var(--ex-line-soft)!important;
}
html[data-ex-theme="dark"] :is(.table,.leaderboard-table,.ex-profile-table) :is(thead th,tbody th,.table-secondary th,.table-secondary td) {
  border-color:var(--ex-line-main)!important;
}
html[data-ex-theme="dark"] :is(.leaderboard-card,.record-card,.monthly-category-card,.monthly-server-card,.monthly-history-card,.shop-card,.vip-feature-card,.vip-checkout-section,.skins-section,.card,.modal-content,.ex-profile-hero,.ex-profile-metric) {
  border-color:var(--ex-line-frame)!important;
}
html[data-ex-theme="dark"] :is(.record-top-row,.monthly-record-row,.monthly-history-row,.monthly-metric-block,.monthly-server-card .monthly-card-head,.monthly-category-head,.store-product-header) {
  border-color:var(--ex-line-soft)!important;
}


/* Dark line specificity fix v6 (profile tables + record cards). */
html[data-ex-theme="dark"] .ex-profile-table.table.table-bordered > :not(caption) > * > * {
  border-color:#384249!important;
}
html[data-ex-theme="dark"] .ex-profile-table.table.table-bordered tbody td {
  border-color:#384249!important;
}
html[data-ex-theme="dark"] .ex-profile-table.table.table-bordered :is(thead th,tbody th,.table-secondary th) {
  border-color:#3d4850!important;
}
html[data-ex-theme="dark"] .record-card.record-card {
  border-color:#414b53!important;
}
